/* VreauProaspat.ro - Producers Page Styles */

/* ==================== */
/* HERO SECTION */
/* ==================== */
.producers-hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    padding: var(--spacing-xxl) 0;
    text-align: center;
}

.producers-hero h1 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    font-weight: 700;
    color: white;
}

.producers-hero p {
    font-size: 1.2rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
}

/* ==================== */
/* FILTERS SECTION */
/* ==================== */
.producers-filters {
    background: linear-gradient(135deg, #f8fdf9 0%, #ffffff 100%);
    border-bottom: 2px solid #e8f5e9;
    padding: var(--spacing-xl) 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.08);
    backdrop-filter: blur(10px);
}

.filters-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
    align-items: start;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.filter-group label {
    font-weight: 600;
    color: var(--color-primary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.filter-group label::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 16px;
    background: var(--color-primary);
    border-radius: 2px;
}

.filter-group select {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: var(--radius-lg);
    background: white;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234CAF50' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.filter-group select:hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.15);
    transform: translateY(-1px);
}

.filter-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.12), 0 4px 12px rgba(76, 175, 80, 0.15);
}

/* ==================== */
/* PRODUCERS SECTION */
/* ==================== */
.producers-section {
    padding: var(--spacing-xxl) 0;
    min-height: 60vh;
}

.producers-stats {
    margin-bottom: var(--spacing-lg);
}

.producers-stats p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* ==================== */
/* PRODUCERS GRID */
/* ==================== */
.producers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.producers-grid.loading {
    grid-template-columns: 1fr;
    place-items: center;
    min-height: 400px;
}

/* ==================== */
/* PRODUCER CARD */
/* ==================== */
.producer-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.producer-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.producer-card > a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--spacing-xl);
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.producer-logo {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-md);
    object-fit: cover;
    margin-bottom: var(--spacing-md);
    border: 2px solid var(--color-border-light);
    flex-shrink: 0;
}

.producer-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--spacing-xs);
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.producer-location {
    color: var(--color-text-light);
    font-size: 0.95rem;
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    min-height: 1.5rem;
}

.producer-location::before {
    content: '📍';
    font-size: 1rem;
}

.producer-verified {
    display: inline-block;
    background: var(--color-success);
    color: white;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: var(--spacing-xs);
    min-height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.producer-products-count {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-top: var(--spacing-sm);
    min-height: 1.5rem;
}

/* ==================== */
/* LOADING STATE */
/* ==================== */
.loading-state {
    text-align: center;
    padding: var(--spacing-xxl) 0;
    grid-column: 1 / -1;
}

.spinner {
    border: 4px solid var(--color-border-light);
    border-top: 4px solid var(--color-primary);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto var(--spacing-md);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==================== */
/* NO RESULTS STATE */
/* ==================== */
.no-results {
    text-align: center;
    padding: var(--spacing-xxl);
    color: var(--color-text-light);
    grid-column: 1 / -1;
}

.no-results-content {
    max-width: 500px;
    margin: 0 auto;
}

.no-results h3 {
    font-size: 1.5rem;
    color: var(--color-text);
    margin-bottom: var(--spacing-md);
}

.no-results p {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-lg);
}

/* ==================== */
/* RESPONSIVE */
/* ==================== */
@media (max-width: 1200px) {
    .producers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .producers-hero h1 {
        font-size: 2rem;
    }

    .producers-hero p {
        font-size: 1rem;
    }

    .filters-wrapper {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .filter-group select {
        width: 100%;
    }

    .producers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }

    .producer-logo {
        width: 100px;
        height: 100px;
    }

    .producer-name {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .producers-hero {
        padding: var(--spacing-xl) 0;
    }

    .producers-hero h1 {
        font-size: 1.5rem;
    }

    .producers-hero p {
        font-size: 0.95rem;
    }

    .producers-grid {
        grid-template-columns: 1fr;
    }

    .producer-card > a {
        padding: var(--spacing-lg);
    }

    .producer-logo {
        width: 80px;
        height: 80px;
    }
}
