/* Production Committee Styles */
.filter-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 15px;
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
    border-radius: 8px;
}

.filter-controls form {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    width: 100%;
}

.filter-select,
.search-input {
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid var(--border);
    background-color: var(--bg);
    color: var(--text);
    font-size: 14px;
    min-width: 120px;
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary);
}

.filter-button {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    background-color: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.filter-button:hover {
    background-color: var(--primary-dark);
}

.search-input {
    flex-grow: 1;
    min-width: 200px;
}

/* Loading indicator styles */
.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.loading-indicator.hidden {
    display: none;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

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

.committee-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem;
}

.committee-card {
    background-color: var(--bg-card);
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--shadow);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.committee-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 12px var(--shadow);
}

/* Committee Header */
.committee-header {
    padding: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.anime-info {
    display: flex;
    width: 100%;
    gap: 1rem;
    flex-direction: row;
    align-items: flex-start;
}

.anime-img {
    width: 120px;
    height: 180px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.anime-details {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    width: 100%;
}

.anime-title {
    margin: 0 0 0.75rem 0;
    font-size: 1.2rem;
    color: var(--text);
}

.anime-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    align-items: center;
}

/* Badges */
.season-badge,
.mal-badge,
.score-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.season-badge:hover,
.mal-badge:hover,
.score-badge:hover {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

.season-badge {
    text-transform: capitalize;
}

.season-badge.winter {
    background-color: #d6fffb;
    color: #000;
}

.season-badge.spring {
    background-color: #61aa27;
    color: #fff;
}

.season-badge.summer {
    background-color: #cf7130;
    color: #fff;
}

.season-badge.fall {
    background-color: #80262c;
    color: #fff;
}

.score-badge {
    background-color: #ffd700;
    color: #333;
}

.mal-badge {
    background-color: #2e51a2;
    color: #fff;
    text-decoration: none;
}


/* Committee Members */
.committee-members {
    padding: 1rem;
}

.committee-members h4 {
    margin: 0 0 1rem 0;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.committee-members h4::after {
    content: '';
    flex-grow: 1;
    height: 1px;
    background-color: var(--border);
}

.producer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

/* Legend styling */
.committee-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    font-size: 0.7rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--dark-text-light)
}

.legend-color {
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 3px;
    border: 1px solid var(--border);
}

.legend-color.animation-studio {
    background-color: bisque;
}

.producer-card {
    background-color: var(--bg);
    border-radius: 4px;
    padding: 0.75rem;
    transition: background-color 0.2s ease;
    position: relative;
}

.animation-studio {
    background-color: bisque;
}

.producer-card:hover {
    background-color: var(--border);
}

.producer-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 0.5rem;
}

.producer-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 0.5rem;
}

.placeholder-img {
    background-color: var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.placeholder-img::after {
    content: '?';
    font-size: 1.5rem;
    color: var(--text-light);
}

.producer-name {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}

.producer-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.established,
.favorites {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.favorites {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.favorites i {
    color: var(--accent);
}

/* Empty state */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    text-align: center;
    color: var(--text-light);
}

.empty-state.hidden {
    display: none;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state p {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.empty-state span {
    font-size: 0.9rem;
}

/* Media Queries */
@media (max-width: 768px) {
    .committee-container {
        grid-template-columns: 1fr;
    }

    .committee-header {
        flex-direction: column;
    }

    .anime-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .anime-meta {
        justify-content: center;
    }

    .producer-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .filter-controls form {
        flex-direction: column;
    }

    .filter-select,
    .filter-button,
    .search-input {
        width: 100%;
    }
}