/**
 * 20Q Number Guessing Game - Premium Styling
 */

/* Import site's base styles */
@import url('/css/styles.css');

/* ============================================================================
   GAME MENU CUSTOMIZATION (20Q)
   ============================================================================ */
:root {
    --game-primary: #8b5cf6;
    --game-primary-dark: #7c3aed;
    --game-secondary: #ec4899;
}

body.game-menu-active {
    --menu-bg-image: url('/games/twentyq/background.png');
}

/* ============================================================================
   GAME-SPECIFIC STYLES
   ============================================================================ */

/* ===== VARIABLES ===== */
:root {
    --primary-color: #C90C0F;
    --primary-hover: #a00a0c;
    --secondary-color: #FAB719;
    --success-color: #22c55e;
    --danger-color: #ef4444;
    --info-color: #3b82f6;
    
    --bg-color: #f8fafc;
    --surface: #FFFFFF;
    --border-color: #e2e8f0;
    --text-primary: #1D1D1B;
    --text-secondary: #64748b;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    
    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow-x: hidden;
}

body {
    background: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    transition: background 0.3s ease, color 0.3s ease;
}

/* ===== GAME SCREENS ===== */
.game-screen,
.game-menu-screen {
    display: none;
    min-height: 100vh;
    background: var(--bg-color);
}

.game-screen.active,
.game-menu-screen.active {
    display: block;
}

.game-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg-color);
}

/* ===== HEADER ===== */
.game-header {
    background: var(--surface);
    border-bottom: 3px solid var(--primary-color);
    padding: 1rem 2rem;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.game-header h1 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: var(--primary-color);
    margin: 0;
    font-family: "Rockwell", "Rockwell Nova", "Roboto Slab", serif;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.difficulty-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow-sm);
}

.question-counter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--surface);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-weight: 600;
    color: var(--text-primary);
}

.header-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-secondary {
    background: var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: #d1d5db;
}

.btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    border-radius: var(--radius-md);
}

/* ===== MAIN GAME AREA ===== */
.game-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    gap: 2rem;
}

/* ===== AI THINKING ===== */
.ai-thinking {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.thinking-animation {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    animation: pulse 2s ease-in-out infinite;
}

.ai-thinking p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 500;
}

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

/* ===== QUESTION SECTION ===== */
.question-section {
    display: none;
}

.question-card {
    background: var(--surface);
    border: 3px solid var(--primary-color);
    border-radius: var(--radius-xl);
    padding: 3rem;
    box-shadow: var(--shadow-xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.question-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.question-number {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.question-text {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
    line-height: 1.3;
}

.question-range {
    margin-top: 2rem;
}

.range-bar {
    position: relative;
    height: 8px;
    background: var(--border-color);
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.range-fill {
    position: absolute;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.range-marker {
    position: absolute;
    top: -4px;
    width: 16px;
    height: 16px;
    background: var(--danger-color);
    border: 3px solid white;
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: var(--shadow-md);
    display: none;
}

.range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ===== ANSWER BUTTONS ===== */
.answer-section {
    display: none;
    flex-direction: row;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.answer-btn {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
    padding: 2rem;
    border: none;
    border-radius: var(--radius-xl);
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.answer-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.answer-btn:hover::before {
    left: 100%;
}

.answer-btn:active {
    transform: scale(0.95);
}

.answer-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.answer-yes {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
}

.answer-yes:hover:not(:disabled) {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.answer-no {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.answer-no:hover:not(:disabled) {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.answer-btn i {
    font-size: 3rem;
}

/* ===== HISTORY SECTION ===== */
.history-section {
    background: var(--surface);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.history-header h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-toggle {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.btn-toggle:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

.history-list {
    max-height: 300px;
    overflow-y: auto;
    display: block;
}

.history-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-fast);
}

.history-item:last-child {
    border-bottom: none;
}

.history-item:hover {
    background: var(--bg-color);
}

.history-question-num {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.875rem;
}

.history-content {
    flex: 1;
}

.history-question {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.history-answer {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.history-range {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
}

/* ===== NUMBER SELECTION SCREEN ===== */
.number-input-section {
    background: var(--surface);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: var(--shadow-md);
}

.range-selector {
    margin-bottom: 2rem;
}

.range-selector label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.range-selector select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    background: var(--surface);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
}

.range-selector select:hover {
    border-color: var(--primary-color);
}

.number-input-group {
    margin-bottom: 2rem;
}

.number-input-group label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.number-input-group input {
    width: 100%;
    padding: 1rem;
    border: 3px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1.5rem;
    text-align: center;
    background: var(--surface);
    color: var(--text-primary);
    transition: var(--transition);
}

.number-input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(201, 12, 15, 0.1);
}

.input-hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-style: italic;
}

.number-display-preview {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    border-radius: var(--radius-lg);
    color: white;
}

.preview-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.preview-number {
    font-size: 4rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

/* ===== MODALS ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1001;
}

.modal-header {
    padding: 2rem;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.75rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 2px solid var(--border-color);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Result Modal */
.result-modal .modal-body {
    text-align: center;
}

.result-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.result-icon {
    font-size: 5rem;
    color: var(--primary-color);
}

.result-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.result-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    margin-top: 1rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    background: var(--bg-color);
    border-radius: var(--radius-md);
}

.stat-label {
    font-weight: 600;
    color: var(--text-secondary);
}

.stat-value {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.25rem;
}

/* Stats Modal */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-color);
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-color);
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===== PLAYER QUESTION INTERFACE ===== */
.player-question-section {
    display: none;
}

.question-prompt {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    text-align: center;
}

.question-templates {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.question-template-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.question-template-group label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.template-row {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.template-row input {
    flex: 0 0 120px;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    text-align: center;
    background: var(--surface);
    color: var(--text-primary);
    transition: var(--transition);
}

.template-row input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(201, 12, 15, 0.1);
}

.template-btn {
    flex: 1;
    min-width: 200px;
    padding: 1rem 1.5rem;
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-md);
    background: var(--surface);
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.template-btn:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.template-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.template-btn.guess-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    border-color: var(--primary-color);
}

.template-btn.guess-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--primary-hover) 0%, #8a090b 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.template-buttons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.computer-answer {
    margin-top: 2rem;
    animation: fadeIn 0.3s ease;
}

.answer-card {
    background: var(--surface);
    border: 3px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.answer-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.answer-icon.yes {
    color: var(--success-color);
}

.answer-icon.no {
    color: var(--danger-color);
}

.answer-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.info-box {
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-top: 1rem;
}

.info-box p {
    margin: 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-box i {
    color: var(--info-color);
}

/* ===== NUMBER GRID ===== */
.number-grid-section {
    background: var(--surface);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}

.number-grid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.number-grid-header h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.remaining-count {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.remaining-count span {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.number-grid-container {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    background: var(--bg-color);
}

.number-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 0.5rem;
    align-items: center;
    justify-items: center;
}

.number-cell,
.number-chunk {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.875rem;
    transition: var(--transition-fast);
    cursor: default;
    position: relative;
}

.number-cell.possible,
.number-chunk.possible {
    background: var(--surface);
    color: var(--text-primary);
    border-color: var(--success-color);
}

.number-cell.eliminated,
.number-chunk.eliminated {
    background: var(--bg-color) !important;
    color: var(--text-secondary) !important;
    border-color: var(--border-color) !important;
    opacity: 0.3 !important;
    text-decoration: line-through !important;
    position: relative;
    pointer-events: none;
}

.number-cell.eliminated::before,
.number-chunk.eliminated::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 3px;
    background: var(--danger-color);
    transform: translateY(-50%) rotate(-45deg);
    z-index: 1;
}

.number-cell.eliminated::after,
.number-chunk.eliminated::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 3px;
    background: var(--danger-color);
    transform: translateY(-50%) rotate(45deg);
    z-index: 1;
}

.number-chunk.partial {
    background: linear-gradient(135deg, var(--surface) 0%, var(--bg-color) 100%);
    color: var(--text-primary);
    border-color: var(--secondary-color);
    border-style: dashed;
}

.number-cell:hover:not(.eliminated),
.number-chunk:hover:not(.eliminated) {
    transform: scale(1.1);
    box-shadow: var(--shadow-sm);
    z-index: 1;
}

/* Responsive grid adjustments */
@media (max-width: 768px) {
    .number-grid {
        grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
        gap: 0.4rem;
    }
    
    .number-cell,
    .number-chunk {
        font-size: 0.75rem;
    }
    
    .number-grid-container {
        max-height: 300px;
    }
}

@media (max-width: 480px) {
    .number-grid {
        grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
        gap: 0.3rem;
    }
    
    .number-cell,
    .number-chunk {
        font-size: 0.7rem;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .game-main {
        padding: 1rem;
    }
    
    .question-card {
        padding: 2rem 1.5rem;
    }
    
    .question-text {
        font-size: 1.5rem;
    }
    
    .answer-btn {
        min-width: 100%;
        padding: 1.5rem;
    }
    
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .header-info {
        width: 100%;
        justify-content: space-between;
    }
    
    .preview-number {
        font-size: 3rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .template-row {
        flex-direction: column;
    }
    
    .template-row input {
        width: 100%;
    }
    
    .template-btn {
        width: 100%;
    }
    
    .template-buttons-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .question-card {
        padding: 1.5rem 1rem;
    }
    
    .answer-btn {
        font-size: 1.25rem;
    }
    
    .answer-btn i {
        font-size: 2rem;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.question-card {
    animation: fadeIn 0.5s ease;
}

.history-item {
    animation: fadeIn 0.3s ease;
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}
