/* ═══════════════════════════════════════════════════
   common.css — gedeelde basis voor alle Playo-pagina's
   Bevat: design-tokens, reset, gedeelde modal/form en
   de zwevende "home"-knop. Wordt vóór de pagina-eigen
   stylesheet geladen, zodat pagina's tokens hergebruiken.
═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@700;800&family=Nunito:wght@400;600&display=swap');

/* ── TOKENS ───────────────────────────────────────── */
:root {
    --c1: #c084fc;
    --c2: #fb7185;
    --c3: #fbbf24;
    --c4: #34d399;
    --c5: #60a5fa;

    --bg-warm:  #fdf4ff;
    --ink:      #1e0a3c;
    --muted:    #9d7ec0;
    --white:    #fff;

    --font-h: 'Baloo 2', cursive;
    --font-b: 'Nunito', sans-serif;
}

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

/* ── GEDEELDE ANIMATIES ───────────────────────────── */
@keyframes floatIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ═══════════════════════════════════════════════════
   ZWEVENDE HOME-KNOP (op spelpagina's)
═══════════════════════════════════════════════════ */
.playo-home {
    position: fixed;
    top: 14px; left: 14px;
    z-index: 900;
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.10);
    transition: transform 0.18s, background 0.18s, box-shadow 0.18s;
}
.playo-home svg { width: 22px; height: 22px; fill: #7c3aed; filter: drop-shadow(0 1px 3px rgba(0,0,0,0.45)); }
.playo-home:hover {
    transform: scale(1.12);
    background: rgba(255,255,255,0.9);
    box-shadow: 0 4px 18px rgba(192,84,252,0.22);
}
.playo-rules {
    display: none;
    position: fixed;
    top: 64px; left: 14px;
    z-index: 900;
    width: 42px; height: 42px;
    padding: 0;
    align-items: center; justify-content: center;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.10);
    transition: transform 0.18s, background 0.18s, box-shadow 0.18s;
}
.playo-rules { font-family: var(--font-h); font-size: 1.3rem; font-weight: 800; color: #7c3aed; text-shadow: 0 1px 3px rgba(0,0,0,0.45); }
.playo-rules:hover {
    transform: scale(1.12);
    background: rgba(255,255,255,0.9);
    box-shadow: 0 4px 18px rgba(192,84,252,0.22);
}

/* ═══════════════════════════════════════════════════
   GEDEELDE MODAL (feedback / bevestiging)
═══════════════════════════════════════════════════ */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(30,10,60,0.38);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex; justify-content: center; align-items: center;
    z-index: 1000;
    animation: fadeIn 0.22s ease;
}
.modal-content {
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2rem;
    border-radius: 28px;
    border: 1px solid rgba(255,255,255,0.8);
    box-shadow: 0 20px 60px rgba(120,60,200,0.18);
    width: 90%; max-width: 480px;
    position: relative;
    animation: floatIn 0.32s cubic-bezier(0.34,1.56,0.64,1);
}
.modal-close-button {
    position: absolute; top: 12px; right: 16px;
    background: transparent; border: none;
    font-size: 2rem; cursor: pointer;
    color: var(--muted); line-height: 1;
    transition: color 0.15s;
}
.modal-close-button:hover { color: var(--ink); }
.modal-content h2 {
    font-family: var(--font-h); font-weight: 800;
    color: var(--ink); margin-bottom: 0.4rem;
}

/* ═══════════════════════════════════════════════════
   CONTACTFORMULIER (feedback)
═══════════════════════════════════════════════════ */
#contact-form {
    display: flex; flex-direction: column; gap: 0.9rem;
    margin-top: 1rem;
}
#contact-form div { display: flex; flex-direction: column; }
#contact-form .form-buttons { flex-direction: row; gap: 10px; }
#contact-form label { margin-bottom: 4px; font-weight: 600; font-size: 0.88rem; }

#contact-form input,
#contact-form textarea {
    width: 100%; padding: 10px 14px;
    border: 1.5px solid rgba(192,84,252,0.25);
    border-radius: 14px;
    font-family: var(--font-b); font-size: 1rem;
    background: rgba(255,255,255,0.7);
    transition: border-color 0.2s, background 0.2s;
}
#contact-form input:focus,
#contact-form textarea:focus {
    outline: none; border-color: var(--c1);
    background: rgba(255,255,255,0.95);
}
#contact-form small { font-size: 0.8rem; color: var(--muted); margin-top: 3px; }
#contact-form .g-recaptcha { margin: 0.2rem 0; }

#contact-form button[type="submit"] {
    padding: 10px 22px;
    background: var(--c1); color: var(--white);
    border: none; border-radius: 999px;
    cursor: pointer;
    font-family: var(--font-h); font-size: 1rem; font-weight: 700;
    box-shadow: 0 4px 16px rgba(192,84,252,0.3);
    transition: background 0.2s, transform 0.15s;
}
#contact-form button[type="submit"]:hover { background: var(--c2); transform: scale(1.04); }

.cancel-btn {
    padding: 10px 18px !important;
    background: rgba(240,232,255,0.6) !important;
    color: var(--muted) !important;
    border: 1.5px solid rgba(192,84,252,0.2) !important;
    border-radius: 999px !important;
    font-family: var(--font-h) !important; font-weight: 600 !important;
    cursor: pointer; transition: background 0.2s;
}
.cancel-btn:hover { background: rgba(240,232,255,0.9) !important; }

#form-response .alert {
    padding: 0.85rem 1rem; border-radius: 12px;
    margin-bottom: 0.8rem; text-align: center; font-weight: 600;
}
#form-response .alert-success { background: rgba(52,211,153,0.15); color: #065f46; }
#form-response .alert-danger  { background: rgba(251,113,133,0.15); color: #9f1239; }

/* ═══════════════════════════════════════════════════
   BEVESTIGINGSDIALOOG (Playo.confirm)
═══════════════════════════════════════════════════ */
.confirm-content { max-width: 360px; }
.confirm-message {
    font-family: var(--font-b); font-size: 1.05rem;
    color: var(--ink); line-height: 1.5;
    margin-bottom: 1.4rem;
}
.confirm-buttons {
    display: flex; gap: 0.7rem; justify-content: flex-end;
}
.confirm-ok {
    padding: 10px 22px;
    background: var(--c1); color: var(--white);
    border: none; border-radius: 999px; cursor: pointer;
    font-family: var(--font-h); font-size: 1rem; font-weight: 700;
    box-shadow: 0 4px 16px rgba(192,84,252,0.3);
    transition: background 0.2s, transform 0.15s;
}
.confirm-ok:hover { background: var(--c2); transform: scale(1.04); }
.confirm-cancel {
    padding: 10px 18px;
    background: rgba(240,232,255,0.6);
    color: var(--muted);
    border: 1.5px solid rgba(192,84,252,0.2);
    border-radius: 999px; cursor: pointer;
    font-family: var(--font-h); font-size: 1rem; font-weight: 600;
    transition: background 0.2s;
}
.confirm-cancel:hover { background: rgba(240,232,255,0.9); }
