/* Walking Dead Guesser - Clean Apocalypse Green Theme */

/* Apocalypse Theme Variables and Background */
body {
    --wd-primary: #059669;
    --wd-secondary: #047857;
    --wd-accent: #10b981;
    --wd-bg: rgba(25, 45, 25, 0.9);
    --wd-dark: rgba(10, 25, 10, 0.95);
    
    /* Background gradient */
    background: linear-gradient(135deg, #1a2d1a 0%, #2d4a2d 100%);
    min-height: 100vh;
    color: #ffffff;
}

/* Walking Dead Game Overrides */
.logo {
    color: var(--wd-primary) !important;
    text-shadow: 0 0 10px var(--wd-primary) !important;
}

.logo:hover {
    color: var(--wd-accent) !important;
    text-shadow: 0 0 15px var(--wd-accent) !important;
}

.nav-links a:hover {
    color: var(--wd-accent) !important;
    background: rgba(16, 185, 129, 0.15) !important;
}

/* Main Container */
.main-content .container {
    background: var(--wd-dark);
    border: 2px solid var(--wd-accent);
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.3);
}

/* Header */
h1 {
    color: var(--wd-accent);
    text-shadow: 0 0 15px rgba(16, 185, 129, 0.6);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Game Description */
.game-description {
    color: var(--wd-accent);
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

/* Player Info Section */
#roomInfo {
    background: var(--wd-bg);
    border: 1px solid var(--wd-accent);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

/* Guess Section */
.guess-section {
    background: var(--wd-bg);
    border: 2px solid var(--wd-accent);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.guess-section input {
    background: rgba(30, 80, 30, 0.9);
    border: 2px solid var(--wd-secondary);
    color: #a7f3d0;
    padding: 1rem;
    border-radius: 8px;
}

.guess-section input:focus {
    border-color: var(--wd-accent);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.guess-section button {
    background: linear-gradient(135deg, var(--wd-accent), var(--wd-secondary));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
}

.guess-section button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.4);
}

/* Guess Counter */
.guess-counter {
    color: var(--wd-accent);
    font-weight: bold;
    font-size: 1.1rem;
}

/* Attribute Headers */
.attributes-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    background: var(--wd-secondary);
    padding: 1rem;
    border-radius: 10px 10px 0 0;
    color: white;
    font-weight: bold;
    text-align: center;
}

/* Guesses Grid */
.guesses-grid {
    background: var(--wd-dark);
    border: 2px solid var(--wd-accent);
    border-top: none;
    border-radius: 0 0 10px 10px;
    min-height: 200px;
    max-height: 400px;
    overflow-y: auto;
}

.guess-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    padding: 0.75rem;
    border-bottom: 1px solid rgba(16, 185, 129, 0.2);
}

.guess-cell {
    background: rgba(30, 80, 30, 0.7);
    padding: 0.5rem;
    border-radius: 5px;
    text-align: center;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Match Colors */
.guess-cell.correct {
    background: #22c55e;
    color: white;
}

.guess-cell.partial {
    background: #f59e0b;
    color: white;
}

.guess-cell.incorrect {
    background: #ef4444;
    color: white;
}

/* Game Status */
.game-status {
    background: var(--wd-bg);
    border: 1px solid var(--wd-accent);
    color: var(--wd-accent);
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    font-weight: bold;
    margin: 1rem 0;
}

.game-status.win {
    background: rgba(34, 197, 94, 0.2);
    border-color: #22c55e;
    color: #22c55e;
}

.game-status.lose {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #ef4444;
}

/* Buttons */
.button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.button-group button {
    background: linear-gradient(135deg, var(--wd-accent), var(--wd-secondary));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
}

.button-group button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.4);
}

#newRound {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

#leaveRoom {
    background: linear-gradient(135deg, #6b7280, #4b5563);
}

/* Responsive */
@media (max-width: 768px) {
    .attributes-header,
    .guess-row {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .guess-row .guess-cell:nth-child(n+5),
    .attributes-header .attr-col:nth-child(n+5) {
        display: none;
    }
} 