/* Basis reset & donkere achtergrond */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

body {
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #e2e8f0;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Header sectie */
.header {
    text-align: center;
    margin-bottom: 2rem;
    max-width: 800px;
    width: 100%;
}

.small-text {
    color: #a0aec0;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.title {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
    letter-spacing: -0.05em;
}

.subtitle {
    color: #a0aec0;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* Notificatie vak */
#notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: #10b981;
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
    z-index: 1000;
    text-align: center;
    max-width: 90%;
}

#notification.show {
    transform: translateX(-50%) translateY(0);
}

/* Teller */
.counter {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #a0aec0;
    text-align: center;
}

/* Bingokaart grid */
.bingo-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    max-width: 800px;
    width: 100%;
    margin-bottom: 2rem;
}

@media (max-width: 640px) {
    .bingo-grid {
        gap: 0.5rem;
    }
    .title {
        font-size: 2rem;
    }
}

/* Bingokaart tegel */
.bingo-cell {
    background: #2d3748;
    border-radius: 1rem;
    padding: 1.5rem 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.9rem;
    min-height: 100px;
    user-select: none;
    border: 2px solid transparent;
}

@media (max-width: 640px) {
    .bingo-cell {
        padding: 1rem 0.25rem;
        font-size: 0.8rem;
        min-height: 80px;
    }
}

.bingo-cell:hover:not(.free) {
    background: #4a5568;
    transform: translateY(-2px);
    border-color: #718096;
}

.bingo-cell.checked {
    background: #10b981;
    color: white;
    border-color: #059669;
}

.bingo-cell.free {
    background: #10b981;
    color: white;
    cursor: not-allowed;
    font-weight: 600;
}

/* Bingo winnende tegels */
.bingo-cell.bingo-win {
    background: #f59e0b !important;
    animation: bingoPulse 1.5s infinite;
    border-color: #d97706;
}

/* Animaties */
@keyframes clickAnimation {
    0% { transform: scale(1); }
    50% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

@keyframes bingoPulse {
    0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); }
    100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

/* Knoppen */
.buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 2rem;
    max-width: 800px;
    width: 100%;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    border: none;
    background: #4a5568;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    min-width: 150px;
    max-width: 200px;
}

.btn:hover {
    background: #718096;
    transform: translateY(-1px);
}

.btn-primary {
    background: #10b981;
}

.btn-primary:hover {
    background: #059669;
}

.btn-secondary {
    background: #3b82f6;
}

.btn-secondary:hover {
    background: #2563eb;
}
