/* Taboo Game Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.card-header {
    text-align: center;
    margin-bottom: 30px;
}

.card-header h1 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.card-header .subtitle {
    color: #666;
    font-size: 1.1rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #34D399, #10B981);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, #EF4444, #DC2626);
    color: white;
}

.btn-warning {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: white;
}

.btn-secondary {
    background: #6B7280;
    color: white;
}

.back-button {
    position: fixed;
    top: 20px;
    left: 20px;
    padding: 12px 20px;
    background: rgba(255,255,255,0.95);
    color: #667eea;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border: 2px solid #667eea;
    z-index: 1000;
    transition: all 0.3s;
}

.back-button:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

/* Controller Styles */
.word-card {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.word-main {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.forbidden-list {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 15px;
}

.forbidden-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    opacity: 0.9;
}

.forbidden-word {
    font-size: 1.5rem;
    padding: 10px;
    margin: 5px 0;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
}

.timer {
    font-size: 4rem;
    font-weight: 900;
    text-align: center;
    margin: 20px 0;
    color: #667eea;
}

.timer.warning {
    color: #EF4444;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.score-display {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.score-box {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
}

.score-box.active {
    box-shadow: 0 0 0 4px #FCD34D;
}

.score-label {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 10px;
}

.score-value {
    font-size: 3rem;
    font-weight: 900;
}

.button-grid {
    display: grid;
    gap: 15px;
}

.button-grid-2 {
    grid-template-columns: 1fr 1fr;
}

/* Display Styles */
.tv-display {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    text-align: center;
}

.tv-category {
    font-size: 3rem;
    color: white;
    margin-bottom: 40px;
    font-weight: 700;
}

.tv-timer {
    font-size: 10rem;
    font-weight: 900;
    color: white;
    margin: 40px 0;
    text-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.tv-timer.warning {
    color: #FEE2E2;
    animation: pulse 1s infinite;
}

.tv-scores {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    width: 100%;
    max-width: 800px;
}

.tv-score-box {
    background: rgba(255,255,255,0.95);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.tv-score-box.active {
    box-shadow: 0 0 0 6px #FCD34D;
}

.tv-score-label {
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 20px;
    font-weight: 700;
}

.tv-score-value {
    font-size: 6rem;
    font-weight: 900;
    color: #764ba2;
}

.error-message {
    background: #FEE2E2;
    color: #DC2626;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

.success-message {
    background: #D1FAE5;
    color: #065F46;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

.loading {
    text-align: center;
    padding: 40px;
    color: white;
    font-size: 1.5rem;
}

.session-code {
    font-size: 4rem;
    font-weight: 900;
    color: #667eea;
    text-align: center;
    margin: 20px 0;
    letter-spacing: 8px;
}

.info-text {
    text-align: center;
    color: #666;
    margin: 10px 0;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .word-main {
        font-size: 2.5rem;
    }
    
    .forbidden-word {
        font-size: 1.2rem;
    }
    
    .tv-timer {
        font-size: 6rem;
    }
    
    .tv-score-value {
        font-size: 4rem;
    }
    
    .session-code {
        font-size: 2.5rem;
        letter-spacing: 4px;
    }
}
