/* Vandromeda Reseller Hub - Frontend Styles */

.vrh-frontend-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Search Section */
.vrh-search-section {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.vrh-search-section h3 {
    margin: 0 0 20px 0;
    font-size: 24px;
    color: #1d2327;
}

.vrh-search-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.vrh-search-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s;
}

.vrh-search-input:focus {
    outline: none;
    border-color: #2271b1;
}

.vrh-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.vrh-filter-select {
    padding: 10px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
}

.vrh-price-range {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vrh-price-range input {
    width: 100px;
    padding: 10px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
}

/* Buttons */
.vrh-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.vrh-btn-primary {
    background: #2271b1;
    color: #fff;
}

.vrh-btn-primary:hover {
    background: #135e96;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.3);
}

.vrh-btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

/* Results Section */
.vrh-results-section {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.vrh-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f1;
}

.vrh-results-header h4 {
    margin: 0;
    font-size: 20px;
    color: #1d2327;
}

.vrh-view-toggle {
    display: flex;
    gap: 5px;
}

.vrh-view-btn {
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.vrh-view-btn:hover {
    border-color: #2271b1;
    color: #2271b1;
}

.vrh-view-btn.active {
    background: #2271b1;
    border-color: #2271b1;
    color: #fff;
}

/* Listings Grid */
.vrh-listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.vrh-listings-grid.list-view {
    grid-template-columns: 1fr;
}

.vrh-listing-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
}

.vrh-listing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-color: #2271b1;
}

.vrh-listing-image {
    position: relative;
    aspect-ratio: 1;
    background: #f0f0f1;
    overflow: hidden;
}

.vrh-listing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vrh-listing-platforms {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
}

.vrh-platform-badge {
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    backdrop-filter: blur(5px);
}

.vrh-listing-content {
    padding: 16px;
}

.vrh-listing-title {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1d2327;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vrh-listing-brand {
    margin: 0 0 12px 0;
    font-size: 13px;
    color: #646970;
}

.vrh-listing-details {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.vrh-listing-details span {
    padding: 4px 10px;
    background: #f0f0f1;
    border-radius: 12px;
    font-size: 12px;
    color: #646970;
}

.vrh-listing-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #f0f0f1;
}

.vrh-listing-price {
    font-size: 20px;
    font-weight: 700;
    color: #2271b1;
}

/* Loading State */
.vrh-loading {
    text-align: center;
    padding: 60px 20px;
}

.vrh-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f0f0f1;
    border-top-color: #2271b1;
    border-radius: 50%;
    animation: vrh-spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes vrh-spin {
    to { transform: rotate(360deg); }
}

.vrh-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #646970;
}

.vrh-empty-state h4 {
    margin: 0 0 10px 0;
    font-size: 20px;
    color: #1d2327;
}

/* Demo Notice */
.vrh-demo-notice {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.vrh-demo-notice p {
    margin: 0;
    font-size: 16px;
}

.vrh-demo-notice a {
    color: #fff;
    text-decoration: underline;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .vrh-search-form {
        flex-direction: column;
    }
    
    .vrh-filters {
        grid-template-columns: 1fr;
    }
    
    .vrh-listings-grid {
        grid-template-columns: 1fr;
    }
    
    .vrh-results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}
