﻿/* Color Overrides / Enhancements */
:root {
    --spy-red: #ff3333;
    --spy-green: #00cc66;
    --spy-dark: #121212;
}

.spy-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
    font-family: system-ui, -apple-system, sans-serif;
    color: var(--text-main);
}

.hidden {
    display: none !important;
}

.screen-view {
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Status Header */
.status-header {
    text-align: center;
    margin-bottom: 2rem;
}

    .status-header h2 {
        margin: 0;
        font-size: 1.5rem;
        text-transform: uppercase;
        letter-spacing: 2px;
    }

    .status-header p {
        margin: 0.5rem 0 0;
        color: var(--text-muted);
    }

/* Lobby & Result Cards */
.lobby-card, .result-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.icon-pulse {
    font-size: 4rem;
    animation: pulseIcon 2s infinite;
    margin-bottom: 1rem;
}

@keyframes pulseIcon {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.action-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 1.5rem;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
    max-width: 300px;
}

    .action-btn:hover {
        background: var(--bg-surface-hover);
        transform: translateY(-2px);
    }

    .action-btn:active {
        transform: translateY(0);
    }

.wait-msg {
    margin-top: 1.5rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Mission Card (Active Game) */
.mission-card {
    background: repeating-linear-gradient(45deg, #1a1a1a, #1a1a1a 10px, #222 10px, #222 20px);
    border: 2px solid #333;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.mission-label {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 0.75rem;
    color: #666;
    letter-spacing: 2px;
}

.glitch-text {
    font-size: 2.5rem;
    margin: 0;
    font-weight: 900;
    letter-spacing: 3px;
    color: #fff;
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.is-spy-text {
    color: var(--spy-red) !important;
    text-shadow: 0 0 15px rgba(255,0,0,0.6) !important;
}

/* Player Grid */
.players-grid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.badge {
    background: var(--bg-surface);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

.players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.player-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.25rem;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

    .player-card.high-suspicion {
        border-color: var(--spy-red);
        box-shadow: 0 0 15px rgba(255, 51, 51, 0.2);
        animation: urgentPulse 1.5s infinite;
    }

@keyframes urgentPulse {
    0% {
        box-shadow: 0 0 10px rgba(255,51,51,0.2);
    }

    50% {
        box-shadow: 0 0 25px rgba(255,51,51,0.5);
    }

    100% {
        box-shadow: 0 0 10px rgba(255,51,51,0.2);
    }
}

.player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.player-name {
    font-weight: bold;
    font-size: 1.1rem;
}

.player-score {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.vote-btn {
    width: 100%;
    padding: 0.6rem;
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-main);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

    .vote-btn:hover {
        background: rgba(255,255,255,0.1);
    }

    .vote-btn.voted-active {
        background: var(--spy-red);
        color: white;
        border-color: var(--spy-red);
    }

.suspicion-tracker {
    margin-top: 1rem;
    height: 6px;
    background: rgba(0,0,0,0.5);
    border-radius: 3px;
    overflow: hidden;
}

.suspicion-fill {
    height: 100%;
    width: 0%;
    background: var(--accent);
    transition: width 0.4s ease, background-color 0.4s ease;
}

.vote-count-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--spy-red);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.85rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* Result Screen Specifics */
.result-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
}

.result-won {
    color: var(--spy-green);
}

.result-lost {
    color: var(--spy-red);
}
