/* Category Game Specific Styles */

.current-letter {
    display: inline-block;
    font-size: 2.5em;
    color: #6366f1;
    font-weight: bold;
    padding: 0 10px;
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.timer-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
    padding: 10px 15px;
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.timer-label,
.timer-unit {
    color: white;
    font-weight: 600;
    font-size: 1em;
}

.timer-display {
    font-size: 1.5em;
    font-weight: bold;
    color: white;
    min-width: 40px;
    text-align: center;
    transition: all 0.3s ease;
}

.timer-display.timer-warning {
    animation: pulse 1s ease-in-out infinite;
    color: #fbbf24;
}

.timer-display.timer-critical {
    animation: pulse-fast 0.5s ease-in-out infinite;
    color: #ef4444;
}

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

@keyframes pulse-fast {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
}

.category-board {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 15px 0;
}

.category-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.category-item:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.category-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #334155;
}

.category-icon {
    font-size: 1.5em;
}

.category-name {
    font-size: 1.1em;
}

.category-input {
    padding: 12px 16px;
    font-size: 1.1em;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.category-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.category-input:disabled {
    background: #f1f5f9;
    cursor: not-allowed;
}

.category-input.correct {
    border-color: #10b981;
    background: #f0fdf4;
}

.category-input.incorrect {
    border-color: #ef4444;
    background: #fef2f2;
}

.category-feedback {
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.95em;
    font-weight: 500;
    transition: all 0.3s ease;
}

.category-feedback.correct {
    background: #dcfce7;
    color: #166534;
    border-left: 4px solid #10b981;
}

.category-feedback.incorrect {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

.game-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.game-message {
    padding: 15px 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.game-message.success {
    background: #dcfce7;
    color: #166534;
    border: 2px solid #10b981;
}

.game-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 2px solid #ef4444;
}

.game-message.info {
    background: #dbeafe;
    color: #1e40af;
    border: 2px solid #3b82f6;
}

.game-message.warning {
    background: #fef3c7;
    color: #92400e;
    border: 2px solid #f59e0b;
}

/* Results Modal Styles */
.results-content {
    padding: 20px 0;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin: 10px 0;
    border-radius: 8px;
    background: #f8fafc;
}

.result-item.correct {
    background: #dcfce7;
}

.result-item.incorrect {
    background: #fee2e2;
}

/* Notification Toast */
.notification-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 25px;
    background: #10b981;
    color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    animation: slideIn 0.3s ease;
    font-weight: 500;
}

.notification-toast.error {
    background: #ef4444;
}

.notification-toast.slideOut {
    animation: slideOut 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .current-letter {
        font-size: 2em;
    }
    
    .timer-container {
        flex-wrap: wrap;
        padding: 10px 15px;
    }
    
    .timer-display {
        font-size: 1.8em;
    }
    
    .timer-label,
    .timer-unit {
        font-size: 1em;
    }
    
    .category-item {
        padding: 15px;
    }
    
    .category-icon {
        font-size: 1.3em;
    }
    
    .category-name {
        font-size: 1em;
    }
    
    .category-input {
        font-size: 1em;
        padding: 10px 14px;
    }
    
    .game-actions {
        flex-direction: column;
    }
    
    .game-actions .btn {
        width: 100%;
    }
    
    .notification-toast {
        right: 10px;
        left: 10px;
    }
}

/* Vertical Layout - Stack game card and stats card for better readability */
@media (min-width: 769px) {
    .game-container {
        display: flex;
        flex-direction: column;
        max-width: 1200px;
        gap: 15px;
    }
    
    .category-board {
        gap: 8px;
        margin: 10px 0;
    }
    
    .category-item {
        padding: 8px;
        gap: 6px;
    }
    
    .category-icon {
        font-size: 1.2em;
    }
    
    .category-name {
        font-size: 1em;
    }
    
    .category-input {
        padding: 8px 12px;
        font-size: 1em;
    }
    
    .game-actions {
        margin-top: 15px;
    }
    
    .game-header h2 {
        font-size: 1.4em;
        margin-bottom: 8px;
    }
    
    .game-header .game-instructions {
        font-size: 0.9em;
        margin-bottom: 8px;
    }
    
    .timer-container {
        padding: 8px 12px;
        margin-top: 8px;
    }
}

/* Dark Mode Support */
.dark-mode .category-item {
    background: #1e293b;
}

.dark-mode .category-item:hover {
    background: #334155;
}

.dark-mode .category-label {
    color: #e2e8f0;
}

.dark-mode .category-input {
    background: #0f172a;
    border-color: #334155;
    color: #e2e8f0;
}

.dark-mode .category-input:focus {
    border-color: #818cf8;
}

.dark-mode .category-input:disabled {
    background: #1e293b;
}

.dark-mode .category-feedback.correct {
    background: #064e3b;
    color: #6ee7b7;
}

.dark-mode .category-feedback.incorrect {
    background: #7f1d1d;
    color: #fca5a5;
}

.dark-mode .game-message.success {
    background: #064e3b;
    color: #6ee7b7;
    border-color: #059669;
}

.dark-mode .game-message.error {
    background: #7f1d1d;
    color: #fca5a5;
    border-color: #dc2626;
}

.dark-mode .game-message.info {
    background: #1e3a8a;
    color: #93c5fd;
    border-color: #2563eb;
}

.dark-mode .game-message.warning {
    background: #78350f;
    color: #fcd34d;
    border-color: #d97706;
}

.dark-mode .timer-container {
    background: linear-gradient(135deg, #4338ca 0%, #6b21a8 100%);
}

/* High Contrast Mode */
.high-contrast .category-input {
    border-width: 3px;
}

.high-contrast .category-input:focus {
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

.high-contrast .category-feedback {
    border-left-width: 6px;
}

/* No Animations Mode */
.no-animations * {
    animation: none !important;
    transition: none !important;
}
