/* Bingo Hard Game Styles */

.bingo-container {
    max-width: 500px;
}

/* Target Numbers Display */
.target-numbers {
    background: var(--bg-elevated);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.target-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.target-display {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
}

.target-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    background: rgba(245, 158, 11, 0.15);
    border: 3px solid var(--primary);
    border-radius: 12px;
    padding: 16px 28px;
    min-width: 100px;
    text-align: center;
    transition: all 0.3s ease;
}

.target-number.switching {
    animation: targetSwitch 0.5s ease;
}

@keyframes targetSwitch {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(0.8); opacity: 0.5; }
}

.target-timer {
    height: 6px;
    background: var(--bg-card);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 8px;
}

.target-timer-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    border-radius: 3px;
    width: 100%;
    transition: width 0.1s linear;
}

/* Bingo Columns Area */
.bingo-area {
    position: relative;
    background: var(--bg-elevated);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    overflow: hidden;
}

.bingo-columns {
    display: flex;
    gap: 12px;
    height: 450px;
}

.bingo-column {
    flex: 1;
    background: var(--bg-card);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

/* Number Tiles */
.number-tile {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 64px;
    height: 64px;
    background: var(--bg-elevated);
    border: 2px solid var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    user-select: none;
}

.number-tile:hover:not(.clicked) {
    border-color: var(--primary);
    background: rgba(245, 158, 11, 0.1);
    transform: translateX(-50%) scale(1.08);
}

.number-tile.target {
    /* Target tiles look the same until clicked - no visual hint */
    cursor: pointer;
}

.number-tile.clicked.correct {
    background: var(--success);
    border-color: var(--success);
    color: #fff;
    animation: correctPop 0.4s ease;
}

.number-tile.clicked.wrong {
    background: var(--error);
    border-color: var(--error);
    color: #fff;
    animation: wrongShake 0.4s ease;
}

@keyframes correctPop {
    0% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.2); }
    100% { transform: translateX(-50%) scale(1); opacity: 0.6; }
}

@keyframes wrongShake {
    0%, 100% { transform: translateX(-50%); }
    20%, 60% { transform: translateX(calc(-50% - 8px)); }
    40%, 80% { transform: translateX(calc(-50% + 8px)); }
}

.number-tile.entering {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Column fade at top */
.bingo-column::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to bottom, var(--bg-card), transparent);
    z-index: 1;
    pointer-events: none;
}

/* Pause Overlay */
.pause-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    z-index: 10;
    border-radius: 16px;
}

.pause-overlay.active {
    display: flex;
}

.pause-overlay i {
    font-size: 3rem;
    color: var(--primary);
}

.pause-overlay span {
    font-size: 1.5rem;
    color: var(--text-primary);
}

/* Start Overlay */
.start-overlay {
    position: absolute;
    inset: 0;
    background: var(--bg-elevated);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    z-index: 15;
}

.start-overlay.active {
    display: flex;
}

.start-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.start-content h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.start-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0 0 8px 0;
}

.start-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

.start-btn:active {
    transform: translateY(0);
}

/* Score box for hits */
.score-box.hits .score-value {
    color: var(--success);
}

/* Modal button centering */
.modal-content {
    text-align: center;
}

.modal-btn {
    margin: 0 auto;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .bingo-columns {
        height: 300px;
        gap: 8px;
    }
    
    .number-tile {
        width: 52px;
        height: 52px;
        font-size: 1.25rem;
    }
    
    .target-number {
        font-size: 2rem;
        padding: 12px 20px;
        min-width: 80px;
    }
    
    .target-display {
        gap: 16px;
    }
}

/* Light Theme for Bingo */
[data-theme="light"] .bingo-columns {
    background: #e7e5e4;
}

[data-theme="light"] .number-column {
    background: #f5f5f4;
}

[data-theme="light"] .number-tile {
    background: white;
    border-color: #d6d3d1;
    color: var(--text-primary);
}

[data-theme="light"] .target-numbers {
    background: #f5f5f4;
}

[data-theme="light"] .game-timer {
    background: #f5f5f4;
}

[data-theme="light"] .score-display {
    background: #f5f5f4;
}
