/*
Theme Name:  Voorschoten Verkiezingen
Theme URI:   https://factory6.nl
Description: Dedicated fullscreen thema voor de Voorschoten verkiezingsavond. Geen header, geen footer, geen menu — alleen de shortcode fullscreen in beeld.
Version:     1.2.0
Author:      Factory6 Media House
Author URI:  https://factory6.nl
License:     GPL v2 or later
Text Domain: vs-thema
*/

/* ── RESET & FULLSCREEN ─────────────────────────────────────── */

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

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #0a0e1a;
}

body {
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

main.vs-content {
    overflow: visible !important;
}

/* ── WORDPRESS ROMMEL WEGSTOPPEN ────────────────────────────── */

/* Admin bar */
#wpadminbar {
    display: none !important;
}

html.wp-toolbar {
    padding-top: 0 !important;
}

/* ── PAGINA WRAPPER ─────────────────────────────────────────── */

#vs-page {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* ── SHORTCODE FULLSCREEN ───────────────────────────────────── */

.vs-screen {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    min-height: 100vh !important;
    overflow: hidden !important;
}

/* Scherm 2 (stembureaus) mag intern scrollen */
.vs-screen-stembureaus {
    overflow: hidden !important;
}

.vs-screen-stembureaus .vs-stations-table {
    max-height: calc(100vh - 130px);
    overflow-y: auto;
}

/* Scrollbar styling voor stembureautabel */
.vs-stations-table::-webkit-scrollbar {
    width: 4px;
}
.vs-stations-table::-webkit-scrollbar-track {
    background: transparent;
}
.vs-stations-table::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: 2px;
}

/* Kaartscherm */
.vs-screen-kaart {
    overflow: hidden !important;
}

/* ── ENTRY CONTENT OPSCHONEN ────────────────────────────────── */

.vs-content {
    flex: 1;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.vs-content > *:not(.vs-screen) {
    display: none !important;
}

/* WordPress voegt soms p-tags toe rondom shortcodes */
.vs-content > p:empty {
    display: none !important;
}

/* ═══════════════════════════════════════════════════════════
   LAUNCHER — HOMEPAGINA
   ═══════════════════════════════════════════════════════════ */

.vs-launcher {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #0a0e1a;
    background-image:
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(245,200,66,0.08) 0%, transparent 70%),
        radial-gradient(ellipse 40% 40% at 80% 80%, rgba(30,58,95,0.4) 0%, transparent 60%);
    padding: 40px 20px;
    gap: 48px;
    overflow: hidden;
}

/* ── Header ─────────────────────────────────────────────── */

.vs-launcher-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.vs-launcher-logo {
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.vs-launcher-logo-img {
    max-height: 56px;
    max-width: 220px;
    object-fit: contain;
}

.vs-launcher-wordmark {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    line-height: 1.4;
    text-align: center;
}

.vs-launcher-title {
    font-size: clamp(22px, 3vw, 38px);
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
    line-height: 1.1;
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.vs-launcher-year {
    color: #f5c842;
    font-size: 1em;
}

.vs-launcher-subtitle {
    font-size: 14px;
    color: rgba(255,255,255,0.4);
    letter-spacing: 0.02em;
}

/* ── Knoppen ─────────────────────────────────────────────── */

.vs-launcher-buttons {
    display: flex;
    gap: 20px;
    align-items: stretch;
}

.vs-launcher-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    width: 260px;
    padding: 28px 28px 24px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    text-decoration: none;
    color: white;
    cursor: pointer;
    transition:
        background   0.2s ease,
        border-color 0.2s ease,
        transform    0.18s ease,
        box-shadow   0.2s ease;
    overflow: hidden;
}

.vs-launcher-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(245,200,66,0.06) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.2s ease;
    border-radius: 16px;
}

.vs-launcher-btn:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(245,200,66,0.35);
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(245,200,66,0.15);
    text-decoration: none;
    color: white;
}

.vs-launcher-btn:hover::before { opacity: 1; }

.vs-launcher-btn:active {
    transform: translateY(-1px);
}

/* Gekleurde streep linksboven per scherm */
.vs-launcher-btn[data-screen="1"] { border-top: 3px solid #f5c842; }
.vs-launcher-btn[data-screen="2"] { border-top: 3px solid #3b82f6; }
.vs-launcher-btn[data-screen="3"] { border-top: 3px solid #10b981; }

.vs-btn-number {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.3);
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vs-btn-icon {
    font-size: 28px;
    margin-bottom: 14px;
    line-height: 1;
}

.vs-btn-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.35);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.vs-launcher-btn[data-screen="1"] .vs-btn-label { color: rgba(245,200,66,0.6); }
.vs-launcher-btn[data-screen="2"] .vs-btn-label { color: rgba(59,130,246,0.6); }
.vs-launcher-btn[data-screen="3"] .vs-btn-label { color: rgba(16,185,129,0.6); }

.vs-btn-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 6px;
}

.vs-btn-desc {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    line-height: 1.4;
    flex: 1;
}

.vs-btn-arrow {
    margin-top: 18px;
    font-size: 18px;
    color: rgba(255,255,255,0.2);
    transition: color 0.2s, transform 0.2s;
    align-self: flex-end;
}

.vs-launcher-btn:hover .vs-btn-arrow {
    color: rgba(255,255,255,0.6);
    transform: translateX(4px);
}

/* ── Footer ─────────────────────────────────────────────── */

.vs-launcher-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.25);
    text-transform: uppercase;
}

.vs-live-dot-small {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ef4444;
    animation: live-pulse 1.5s ease-in-out infinite;
}

@keyframes live-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.4; transform: scale(0.8); }
}

/* ── Responsive ─────────────────────────────────────────── */

@media (max-width: 900px) {
    .vs-launcher-buttons {
        flex-direction: column;
        align-items: center;
        gap: 14px;
    }

    .vs-launcher-btn {
        width: min(400px, 90vw);
        flex-direction: row;
        align-items: center;
        gap: 16px;
        padding: 20px 24px;
    }

    .vs-btn-icon { margin-bottom: 0; font-size: 24px; }
    .vs-btn-number { top: 12px; right: 12px; }

    .vs-btn-body {
        flex: 1;
    }

    .vs-btn-arrow {
        margin-top: 0;
        align-self: center;
    }
}
