/* Reset en basis */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

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

/* Header en navigatie */
header {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    padding: 1rem 0;
    position: relative;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #667eea;
    text-decoration: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #667eea;
}

/* Hamburger (CSS-only via checkbox — geen JS nodig, CSP-vriendelijk) */
.nav-toggle { display: none; }
.nav-toggle-label {
    display: none;
    cursor: pointer;
    padding: 0.6rem;
    order: 3;
}
.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
    display: block;
    width: 26px;
    height: 3px;
    background: #667eea;
    border-radius: 2px;
    position: relative;
}
.nav-toggle-label span::before,
.nav-toggle-label span::after {
    content: '';
    position: absolute;
    left: 0;
}
.nav-toggle-label span::before { top: -8px; }
.nav-toggle-label span::after { top: 8px; }

/* Hero sectie */
.hero {
    background: rgba(255, 255, 255, 0.9);
    padding: 4rem 0;
    text-align: center;
    margin: 2rem 0;
    border-radius: 20px;
}

.hero h1 {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.3rem;
    color: #666;
}

/* Secties */
section {
    padding: 3rem 0;
}

section h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Grid layout */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Cards */
.card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Age cards */
.age-card {
    text-align: center;
}

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

.age-card h3 {
    color: #667eea;
    margin-bottom: 0.5rem;
}

/* Game cards */
.game-card {
    padding: 0;
    overflow: hidden;
}

.game-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.game-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.game-info {
    padding: 1.5rem;
}

.game-info h3 {
    color: #667eea;
    margin-bottom: 0.5rem;
}

.game-info p {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.difficulty {
    margin-bottom: 1rem;
}

/* Category cards */
.category-card {
    text-align: center;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
}

.btn-secondary {
    background: #6c757d;
    margin-left: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Filters */
.filters {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.filter-form {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.filter-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    background: white;
}

/* Game detail */
.game-detail {
    background: rgba(255, 255, 255, 0.95);
    padding: 3rem;
    border-radius: 20px;
    margin: 2rem 0;
}

.game-header {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
}

.game-thumbnail-large {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.game-placeholder-large {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
}

.game-meta h1 {
    color: #667eea;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.game-description {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.game-stats {
    margin-bottom: 2rem;
}

.stat {
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.stat strong {
    color: #667eea;
}

/* Age/Category detail */
.age-detail, .category-detail, .difficulty-detail {
    background: rgba(255, 255, 255, 0.95);
    padding: 3rem;
    border-radius: 20px;
    margin: 2rem 0;
}

.age-detail h1, .category-detail h1, .difficulty-detail h1 {
    color: #667eea;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.age-description, .category-description, .difficulty-description {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 1rem;
}

.age-range {
    font-size: 1.2rem;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 2rem;
}

/* No results */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 15px;
    color: #666;
    font-size: 1.1rem;
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.3);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-toggle-label { display: block; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        gap: 0;
        padding: 0.5rem 1.5rem 1rem;
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
    }
    .nav-links li { border-bottom: 1px solid #eee; }
    .nav-links a { display: block; padding: 0.65rem 0; }
    .nav-toggle:checked ~ .nav-links { display: flex; }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .grid {
        grid-template-columns: 1fr;
    }
    
    .game-header {
        grid-template-columns: 1fr;
    }
    
    .filter-form {
        flex-direction: column;
    }
    
    .filter-group {
        width: 100%;
    }
}

/* Contactformulier */
.contact-section {
    max-width: 640px;
    margin: 2rem auto;
}
.contact-intro {
    color: #666;
    margin-bottom: 1.5rem;
}
.contact-form .form-group {
    margin-bottom: 1rem;
}
.contact-form label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 600;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 0.7rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font: inherit;
    box-sizing: border-box;
}
.contact-form textarea {
    min-height: 140px;
    resize: vertical;
}
.field-error {
    color: #c0392b;
    margin-top: 0.35rem;
}
