/* ============================================
   KoendeBoer.nl - Hoofdstylesheet
   Dark/Light thema met CSS variabelen
   ============================================ */

/* CSS Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ============================================
   Thema variabelen
   ============================================ */

[data-theme="dark"] {
    --bg-primary: #0a0a0a;
    --bg-secondary: #141414;
    --bg-tertiary: #1a1a1a;
    --bg-card: #1a1a1a;
    --bg-hover: #252525;
    --bg-input: #1a1a1a;
    --text-primary: #f5f5f5;
    --text-secondary: #a0a0a0;
    --text-muted: #666;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --accent-light: rgba(59, 130, 246, 0.1);
    --border: #2a2a2a;
    --border-light: #222;
    --success: #22c55e;
    --error: #ef4444;
    --warning: #f59e0b;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --nav-bg: rgba(10, 10, 10, 0.85);
    --sidebar-bg: #0f0f0f;
    --orb-1: rgba(59, 130, 246, 0.15);
    --orb-2: rgba(139, 92, 246, 0.12);
    --orb-3: rgba(6, 182, 212, 0.1);
}

[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #f0f0f0;
    --bg-card: #ffffff;
    --bg-hover: #f0f0f0;
    --bg-input: #f8f9fa;
    --text-primary: #1a1a1a;
    --text-secondary: #555;
    --text-muted: #999;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-light: rgba(37, 99, 235, 0.08);
    --border: #e5e7eb;
    --border-light: #f0f0f0;
    --success: #16a34a;
    --error: #dc2626;
    --warning: #d97706;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --nav-bg: rgba(255, 255, 255, 0.85);
    --sidebar-bg: #f8f9fa;
    --orb-1: rgba(59, 130, 246, 0.08);
    --orb-2: rgba(139, 92, 246, 0.06);
    --orb-3: rgba(6, 182, 212, 0.05);
}

/* ============================================
   Basis elementen
   ============================================ */

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--accent-hover);
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   Geanimeerde achtergrond
   ============================================ */

.animated-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
}

.bg-orb-1 {
    width: 600px;
    height: 600px;
    background: var(--orb-1);
    top: -200px;
    right: -100px;
    animation: float1 25s ease-in-out infinite;
}

.bg-orb-2 {
    width: 500px;
    height: 500px;
    background: var(--orb-2);
    bottom: -150px;
    left: -100px;
    animation: float2 30s ease-in-out infinite;
}

.bg-orb-3 {
    width: 400px;
    height: 400px;
    background: var(--orb-3);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: float3 20s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(-80px, 60px) scale(1.1); }
    50% { transform: translate(-40px, 120px) scale(0.95); }
    75% { transform: translate(60px, 40px) scale(1.05); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(100px, -80px) scale(1.05); }
    50% { transform: translate(60px, -40px) scale(1.1); }
    75% { transform: translate(-50px, -100px) scale(0.95); }
}

@keyframes float3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    33% { transform: translate(-40%, -60%) scale(1.15); }
    66% { transform: translate(-60%, -40%) scale(0.9); }
}

/* ============================================
   Iconen
   ============================================ */

.icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ============================================
   Knoppen
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    text-decoration: none;
}

.btn .icon {
    width: 16px;
    height: 16px;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-hover);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

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

.btn-danger {
    background: var(--error);
    color: #fff;
}

.btn-danger:hover {
    background: #dc2626;
    color: #fff;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

.btn-full {
    width: 100%;
}

/* ============================================
   Navigatie
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.35);
    backdrop-filter: blur(24px) saturate(1.2);
    -webkit-backdrop-filter: blur(24px) saturate(1.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0 1.5rem;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.4);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.7);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .navbar.scrolled {
    background: rgba(255, 255, 255, 0.75);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.nav-brand a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo {
    height: 28px;
    width: auto;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text-primary);
}

.nav-toggle .icon {
    width: 22px;
    height: 22px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

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

.nav-links a {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-weight: 450;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .nav-links a:hover,
[data-theme="light"] .nav-links a.active {
    background: rgba(0, 0, 0, 0.05);
}

.nav-links .icon {
    width: 16px;
    height: 16px;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-toggle::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    margin-left: 0.3rem;
    vertical-align: middle;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(20, 20, 20, 0.85);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    min-width: 180px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    list-style: none;
    padding: 0.4rem;
    z-index: 1001;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
    border-radius: 6px;
    transition: all 0.15s ease;
    font-size: 0.9rem;
}

.dropdown-menu a:hover,
.dropdown-menu a.active {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

[data-theme="light"] .dropdown-menu a:hover,
[data-theme="light"] .dropdown-menu a.active {
    background: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .dropdown-menu {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Nav actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-user {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Theme toggle */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.theme-toggle .icon {
    width: 20px;
    height: 20px;
}

[data-theme="dark"] .icon-sun { display: flex; }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: flex; }

/* ============================================
   Homepage
   ============================================ */

.home {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 2rem 1rem;
}

.home-content {
    max-width: 1000px;
    width: 100%;
    text-align: center;
}

.home-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}

.home-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 2rem;
}

/* Category grid - 4 kaarten netjes naast elkaar */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

.category-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

.category-card-inner {
    position: relative;
    aspect-ratio: 3/4;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-secondary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border);
}

.category-card:hover .category-card-inner {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover .category-image {
    transform: scale(1.08);
}

.category-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
}

.category-placeholder-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-placeholder .icon {
    width: 48px;
    height: 48px;
    color: var(--text-muted);
    opacity: 0.4;
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem 1.25rem 1.25rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    color: #fff;
}

.category-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.category-count {
    font-size: 0.85rem;
    opacity: 0.75;
}

/* Responsive */
@media (max-width: 900px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        max-width: 360px;
        margin: 0 auto;
    }
}

/* ============================================
   Pagina header
   ============================================ */

.page-header {
    padding: 72px 2rem 2rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* ============================================
   Foto grid
   ============================================ */

.gallery {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.photo-grid {
    display: grid;
}

.photo-grid[data-columns="2"] { grid-template-columns: repeat(2, 1fr); }
.photo-grid[data-columns="3"] { grid-template-columns: repeat(3, 1fr); }
.photo-grid[data-columns="4"] { grid-template-columns: repeat(4, 1fr); }
.photo-grid[data-columns="6"] { grid-template-columns: repeat(6, 1fr); }

.photo-item {
    position: relative;
    overflow: hidden;
    background: var(--bg-secondary);
}

/* Ronding */
.photo-grid[data-rounded="none"] .photo-item { border-radius: 0; }
.photo-grid[data-rounded="sm"] .photo-item { border-radius: 6px; }
.photo-grid[data-rounded="md"] .photo-item { border-radius: 12px; }
.photo-grid[data-rounded="lg"] .photo-item { border-radius: 20px; }
.photo-grid[data-rounded="full"] .photo-item { border-radius: 50%; overflow: hidden; }

/* Verhouding */
.photo-grid[data-ratio="1/1"] .photo-link { aspect-ratio: 1; }
.photo-grid[data-ratio="3/4"] .photo-link { aspect-ratio: 3/4; }
.photo-grid[data-ratio="4/3"] .photo-link { aspect-ratio: 4/3; }
.photo-grid[data-ratio="16/9"] .photo-link { aspect-ratio: 16/9; }
.photo-grid[data-ratio="auto"] .photo-link { aspect-ratio: auto; }

.photo-link {
    display: block;
}

.photo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, filter 0.3s ease;
}

/* Hover effects */
.photo-grid[data-hover="zoom"] .photo-link:hover .photo-image {
    transform: scale(1.08);
}
.photo-grid[data-hover="lift"] .photo-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.photo-grid[data-hover="fade"] .photo-link:hover .photo-image {
    filter: brightness(0.8);
}
.photo-grid[data-hover="none"] .photo-link:hover .photo-image {
    transform: none;
}

/* Overlay icoon */
.photo-overlay-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
    color: #fff;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.photo-link:hover .photo-overlay-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Masonry */
.photo-grid[data-style="masonry"] {
    display: block;
}

.photo-grid[data-style="masonry"][data-columns="2"] { column-count: 2; }
.photo-grid[data-style="masonry"][data-columns="3"] { column-count: 3; }
.photo-grid[data-style="masonry"][data-columns="4"] { column-count: 4; }
.photo-grid[data-style="masonry"][data-columns="6"] { column-count: 6; }

.photo-grid[data-style="masonry"] .photo-item {
    break-inside: avoid;
    margin-bottom: 10px;
}

.photo-grid[data-style="masonry"] .photo-link {
    aspect-ratio: auto;
}

.photo-grid[data-style="masonry"] .photo-overlay-icon {
    display: none;
}

@media (max-width: 900px) {
    .photo-grid[data-style="masonry"] { column-count: 2; }
    .photo-grid[data-columns="4"],
    .photo-grid[data-columns="6"] { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .photo-grid[data-style="masonry"] { column-count: 1; }
    .photo-grid[data-columns="3"],
    .photo-grid[data-columns="4"],
    .photo-grid[data-columns="6"] { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 400px) {
    .photo-grid[data-columns="3"],
    .photo-grid[data-columns="4"],
    .photo-grid[data-columns="6"] { grid-template-columns: 1fr; }
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
    max-width: 400px;
    margin: 0 auto;
}

.empty-placeholder {
    width: 160px;
    height: 160px;
    margin: 0 auto 2rem;
    opacity: 0.8;
}

.empty-state h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.empty-state p {
    color: var(--text-muted);
    line-height: 1.6;
}

.empty-state .btn {
    margin-top: 1.5rem;
}

/* ============================================
   Footer
   ============================================ */

.footer {
    border-top: 1px solid var(--border);
    padding: 1.25rem 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ============================================
   Auth pagina's
   ============================================ */

.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
}

.auth-container {
    width: 100%;
    max-width: 400px;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    height: 48px;
    margin-bottom: 1rem;
}

.auth-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--accent);
}

.auth-theme-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
}

/* ============================================
   Formulieren
   ============================================ */

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.form-select {
    padding: 0.5rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
}

.form-select-sm {
    padding: 0.3rem 0.6rem;
    font-size: 0.85rem;
}

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

/* ============================================
   Alerts
   ============================================ */

.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ============================================
   Games pagina
   ============================================ */

.games-page {
    min-height: 100vh;
}

.games-content {
    padding: 72px 2rem 4rem;
    display: flex;
    justify-content: center;
}

.games-container {
    max-width: 800px;
    width: 100%;
    text-align: center;
}

.games-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.games-subtitle {
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.games-placeholder {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 4rem 2rem;
}

.placeholder-graphic {
    margin-bottom: 1.5rem;
}

.games-placeholder h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.games-placeholder p {
    color: var(--text-secondary);
}

.placeholder-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted) !important;
}

.games-access-denied {
    padding: 72px 2rem 4rem;
    display: flex;
    justify-content: center;
}

.access-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 3rem;
    text-align: center;
    max-width: 500px;
    width: 100%;
}

.access-card h1 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.access-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.auth-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
    .navbar {
        height: auto;
        min-height: 0;
        padding: 0.25rem 0.5rem;
        flex-wrap: nowrap;
        gap: 0.5rem;
        align-items: center;
    }

    .nav-brand {
        flex-shrink: 0;
    }

    .logo {
        height: 28px;
    }

    .nav-toggle {
        display: none !important;
    }

    .nav-menu {
        display: flex;
        position: static;
        background: none;
        flex-direction: row;
        align-items: center;
        gap: 0;
        padding: 0;
        z-index: auto;
        border: none;
        width: auto;
        flex: 1;
        min-width: 0;
    }

    .nav-links {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 0;
        flex-wrap: nowrap;
        width: auto;
        order: 0;
    }

    .nav-links > li {
        width: auto;
        flex-shrink: 0;
    }

    .nav-links > li > a {
        padding: 0.3rem 0.45rem;
        font-size: 0.78rem;
        width: auto;
        white-space: nowrap;
    }

    .nav-links .icon {
        display: none;
    }

    /* Portfolio dropdown op mobiel */
    .dropdown {
        position: relative;
    }

    .dropdown-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background: #1a1a1a;
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        box-shadow: var(--shadow);
        list-style: none;
        padding: 0.5rem 0;
        z-index: 1002;
        min-width: 160px;
    }

    [data-theme="light"] .dropdown-menu {
        background: #ffffff;
    }

    .dropdown.open .dropdown-menu {
        display: block;
    }

    .dropdown-toggle::after {
        transition: transform 0.2s;
    }

    .dropdown.open .dropdown-toggle::after {
        transform: rotate(180deg);
    }

    .dropdown-menu a {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .nav-actions {
        display: flex;
        align-items: center;
        gap: 0;
        margin-left: auto;
        flex-shrink: 0;
        order: 0;
    }

    .nav-user {
        display: none;
    }

    .theme-toggle {
        padding: 0.25rem;
    }

    .theme-toggle .icon {
        width: 16px;
        height: 16px;
    }

    .home {
        padding: 44px 1rem 1rem;
        min-height: auto;
    }

    .home-title {
        font-size: 1.4rem;
        margin-bottom: 0.15rem;
    }

    .home-subtitle {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
        max-width: 320px;
        margin: 0 auto;
    }

    .category-card-inner {
        aspect-ratio: 3/4;
        border-radius: var(--radius);
    }

    .category-name {
        font-size: 0.9rem;
    }

    .category-count {
        font-size: 0.7rem;
    }

    .category-overlay {
        padding: 1.5rem 0.6rem 0.6rem;
    }

    .footer {
        padding: 1rem;
        font-size: 0.75rem;
    }

    .page-header {
        padding: 64px 1rem 1rem;
    }

    .page-title {
        font-size: 1.6rem;
    }

    .gallery {
        padding: 0.75rem;
    }

    .auth-buttons {
        flex-direction: column;
    }
}

@media (max-width: 380px) {
    .category-grid {
        gap: 0.4rem;
        max-width: 280px;
    }

    .category-name {
        font-size: 0.8rem;
    }

    .category-overlay {
        padding: 1rem 0.4rem 0.4rem;
    }
}

/* ============================================
   Hulpklassen
   ============================================ */

.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

code {
    background: var(--bg-tertiary);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
}

.inline-form {
    display: inline;
}

/* ============================================
   Maintenance / Offline page
   ============================================ */

.maintenance {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: 2rem;
}

.maintenance-card {
    max-width: 500px;
}

.maintenance-card h1 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.maintenance-card p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.maintenance-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    opacity: 0.5;
}
