/* ============================================================
   Familievakanties — landingspagina
   ============================================================ */

*,
*::before,
*::after { box-sizing: border-box; }

:root {
    --ink: #1f2a37;
    --muted: #5b6775;
    --card: #ffffff;
    --radius: 22px;
    --shadow: 0 18px 50px -18px rgba(31, 42, 55, 0.35);
}

html, body { height: 100%; }

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(1200px 600px at 15% -10%, #cfeef0 0%, transparent 55%),
        radial-gradient(1000px 700px at 110% 10%, #fde7c3 0%, transparent 50%),
        linear-gradient(160deg, #f4f8fb 0%, #eef3f7 100%);
    min-height: 100%;
    -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }

/* ===================== Toegangspoort ===================== */

.gate {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(900px 500px at 20% 0%, rgba(126, 200, 227, 0.25), transparent 60%),
        radial-gradient(900px 500px at 100% 100%, rgba(246, 178, 74, 0.22), transparent 55%),
        linear-gradient(160deg, #1f2a37 0%, #28384a 100%);
    z-index: 50;
}

.gate-card {
    width: min(420px, 100%);
    background: var(--card);
    border-radius: var(--radius);
    padding: 40px 34px 34px;
    text-align: center;
    box-shadow: 0 30px 70px -25px rgba(0, 0, 0, 0.55);
    animation: pop 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes pop {
    from { opacity: 0; transform: translateY(14px) scale(0.97); }
    to   { opacity: 1; transform: none; }
}

.gate-emoji { font-size: 2.6rem; line-height: 1; }

.gate-title {
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    font-size: 1.7rem;
    margin: 14px 0 6px;
}

.gate-sub {
    color: var(--muted);
    font-size: 0.98rem;
    margin: 0 0 24px;
    line-height: 1.5;
}

.code-input {
    width: 100%;
    padding: 15px 18px;
    font-size: 1.05rem;
    font-family: inherit;
    text-align: center;
    letter-spacing: 0.04em;
    border: 2px solid #e3e8ee;
    border-radius: 14px;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.code-input:focus {
    border-color: #2a9d8f;
    box-shadow: 0 0 0 4px rgba(42, 157, 143, 0.15);
}

.gate-btn {
    width: 100%;
    margin-top: 14px;
    padding: 15px 18px;
    font-size: 1.02rem;
    font-weight: 600;
    font-family: inherit;
    color: #fff;
    background: linear-gradient(135deg, #2a9d8f 0%, #21867a 100%);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.gate-btn:hover { filter: brightness(1.05); box-shadow: 0 12px 26px -10px rgba(42, 157, 143, 0.7); }
.gate-btn:active { transform: translateY(1px) scale(0.99); }

.gate-error {
    margin: 16px 0 0;
    color: #c0392b;
    font-size: 0.9rem;
    font-weight: 500;
}

.gate.shake .gate-card { animation: shake 0.4s; }

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-5px); }
    80% { transform: translateX(5px); }
}

/* ===================== Landingspagina ===================== */

.content {
    max-width: 980px;
    margin: 0 auto;
    padding: clamp(40px, 8vh, 90px) 22px 60px;
    animation: fadeUp 0.6s ease both;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: none; }
}

.hero { text-align: center; margin-bottom: clamp(32px, 6vh, 56px); }

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    font-weight: 600;
    color: #2a9d8f;
    margin: 0 0 12px;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    font-size: clamp(2.1rem, 5.5vw, 3.2rem);
    margin: 0;
    line-height: 1.1;
}

.hero-sub {
    color: var(--muted);
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    margin: 14px auto 0;
    max-width: 460px;
    line-height: 1.55;
}

.tiles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(18px, 3vw, 28px);
}

.tile {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    color: var(--ink);
    box-shadow: var(--shadow);
    transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.22s ease;
}

.tile:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 60px -20px rgba(31, 42, 55, 0.45);
}

.tile-scene {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.tile-scene svg { width: 100%; height: 100%; display: block; }

.tile-scene::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(255, 255, 255, 0.5) 100%);
}

.tile-body { padding: 22px 24px 26px; }

.tile-flag { display: inline-flex; gap: 6px; }

.flag {
    display: inline-block;
    width: 26px;
    height: 17px;
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(31, 42, 55, 0.25);
    border: 1px solid rgba(31, 42, 55, 0.08);
}

/* Slovenië: wit / blauw / rood */
.flag--si { background: linear-gradient(#ffffff 0 33.33%, #2e5fb0 33.33% 66.66%, #d8282f 66.66% 100%); }
/* Kroatië: rood / wit / blauw */
.flag--hr { background: linear-gradient(#d8282f 0 33.33%, #ffffff 33.33% 66.66%, #2e5fb0 66.66% 100%); }
/* Egypte: rood / wit / zwart */
.flag--eg { background: linear-gradient(#cf2128 0 33.33%, #ffffff 33.33% 66.66%, #1a1a1a 66.66% 100%); }

.tile-name {
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    font-size: clamp(1.4rem, 3.5vw, 1.9rem);
    margin: 6px 0 2px;
    line-height: 1.1;
}

.tile-year {
    color: var(--muted);
    font-size: 0.98rem;
    margin: 0 0 14px;
}

.tile-cta {
    display: inline-block;
    font-weight: 600;
    font-size: 0.96rem;
    color: #21867a;
    transition: transform 0.18s ease;
}

.tile:hover .tile-cta { transform: translateX(4px); }

.tile--egypte .tile-cta,
.tile--egypte .eyebrow { color: #c77b1d; }
.tile--egypte:hover .tile-cta { color: #b56a12; }

.tile--eclipse .tile-cta { color: #8a5d0f; }
.tile--eclipse:hover .tile-cta { color: #6f4a0b; }

/* ===================== Archief ===================== */

.archive { margin-top: clamp(30px, 5vh, 48px); }

.archive-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 auto;
    padding: 12px 20px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid #dbe3ea;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.archive-toggle:hover {
    background: #fff;
    color: var(--ink);
    border-color: #c3ced8;
    box-shadow: var(--shadow);
}

.archive-toggle-icon { font-size: 1.05rem; line-height: 1; }

.archive-count {
    min-width: 22px;
    padding: 1px 8px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
    background: #2a9d8f;
    border-radius: 999px;
    text-align: center;
}

.archive-chevron {
    font-size: 0.8rem;
    transition: transform 0.22s ease;
}

.archive-toggle.is-open .archive-chevron { transform: rotate(180deg); }

.archive-tiles {
    margin-top: clamp(20px, 3vw, 28px);
    animation: fadeUp 0.4s ease both;
}

/* Gearchiveerde tegel: rustiger, met "geweest"-badge */
.tile--archived { box-shadow: 0 12px 34px -20px rgba(31, 42, 55, 0.4); }

.tile--archived .tile-scene { filter: saturate(0.72); }

.tile--archived .tile-scene::before {
    content: "\2713 Geweest";
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 4px 11px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #1f2a37;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    box-shadow: 0 4px 12px -4px rgba(31, 42, 55, 0.45);
}

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

.foot { text-align: center; margin-top: clamp(34px, 6vh, 56px); }

.logout-btn {
    background: transparent;
    border: 1px solid #cdd6df;
    color: var(--muted);
    font-family: inherit;
    font-size: 0.85rem;
    padding: 9px 18px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.logout-btn:hover { background: #fff; color: var(--ink); border-color: #b6c0ca; }

/* ===================== Mobiel ===================== */

@media (max-width: 600px) {
    .tiles { grid-template-columns: 1fr; }
}
