/**
 * COUNCIL AVATAR STYLES
 * Styling for LLM avatars in Council debates
 * Active = bright (speaking), Standby = dimmed (waiting)
 */

/* Avatar Grid Container */
.council-avatar-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    margin-bottom: 20px;
}

/* Individual Avatar Wrapper */
.council-avatar {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.5s ease;
    cursor: pointer;
}

/* Avatar Image */
.council-avatar img {
    border-radius: 50%;
    border: 3px solid #333;
    transition: all 0.5s ease;
    object-fit: cover;
}

/* Size Variants */
.council-avatar.size-large img {
    width: 120px;
    height: 120px;
}

.council-avatar.size-medium img {
    width: 100px;
    height: 100px;
}

.council-avatar.size-small img {
    width: 80px;
    height: 80px;
}

/* STANDBY STATE (Dimmed - Not Speaking) */
.council-avatar.standby img {
    filter: brightness(0.4) saturate(0.3) grayscale(0.3);
    border-color: #444;
    box-shadow: none;
}

.council-avatar.standby .avatar-label {
    opacity: 0.5;
}

/* ACTIVE STATE (Bright - Currently Speaking) */
.council-avatar.active img {
    filter: brightness(1.1) saturate(1.2);
    border-color: #00ff88;
    box-shadow:
        0 0 20px rgba(0, 255, 136, 0.4),
        0 0 40px rgba(0, 255, 136, 0.2);
    animation: pulse-glow 2s ease-in-out infinite;
}

.council-avatar.active .avatar-label {
    color: #00ff88;
    font-weight: bold;
}

/* SYNTHESIS STATE (All Glowing Together) */
.council-avatar.synthesis img {
    filter: brightness(1.2) saturate(1.3);
    border-color: #ffd700;
    box-shadow:
        0 0 30px rgba(255, 215, 0, 0.5),
        0 0 60px rgba(255, 215, 0, 0.3);
    animation: pulse-gold 1.5s ease-in-out infinite;
}

/* Avatar Label */
.avatar-label {
    margin-top: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

/* Avatar Dropdown (Model Swap) */
.avatar-swap-dropdown {
    margin-top: 5px;
    padding: 4px 8px;
    font-size: 0.65rem;
    background: rgba(0, 0, 0, 0.5);
    color: #aaa;
    border: 1px solid #333;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.council-avatar:hover .avatar-swap-dropdown {
    opacity: 1;
}

/* Pulse Animation for Active Speaker */
@keyframes pulse-glow {

    0%,
    100% {
        box-shadow:
            0 0 20px rgba(0, 255, 136, 0.4),
            0 0 40px rgba(0, 255, 136, 0.2);
    }

    50% {
        box-shadow:
            0 0 30px rgba(0, 255, 136, 0.6),
            0 0 60px rgba(0, 255, 136, 0.3);
    }
}

/* Gold Pulse for Synthesis */
@keyframes pulse-gold {

    0%,
    100% {
        box-shadow:
            0 0 30px rgba(255, 215, 0, 0.5),
            0 0 60px rgba(255, 215, 0, 0.3);
    }

    50% {
        box-shadow:
            0 0 50px rgba(255, 215, 0, 0.7),
            0 0 80px rgba(255, 215, 0, 0.4);
    }
}

/* Mobile: Hide avatar grid, show text fallback */
@media (max-width: 768px) {
    .council-avatar-grid {
        display: none;
    }

    .council-panelist-names {
        display: block;
    }
}

/* Desktop: Show avatar grid, hide text fallback */
@media (min-width: 769px) {
    .council-panelist-names {
        display: none;
    }
}

/* Hover Effects */
.council-avatar:hover img {
    transform: scale(1.05);
}

.council-avatar.standby:hover img {
    filter: brightness(0.6) saturate(0.5);
}