/* Kleuren en lettertype in de stijl van muuzevangers.nl */
:root {
    --mv-red: #ee1c24;
    --mv-red-dark: #c4141b;
    --mv-yellow: #ffff00;
    --mv-yellow-soft: #edd627;
    --mv-black: #000000;
    --mv-white: #ffffff;
    --mv-font: 'congenial', sans-serif;
}

body {
    font-family: var(--mv-font);
    background: var(--mv-white);
    color: var(--mv-black);
}

h1, h2, h3 { font-weight: 700; }

/* ===== Knoppen ===== */
.btn-mv-red {
    background: var(--mv-red);
    border-color: var(--mv-red);
    color: var(--mv-white);
    font-weight: 600;
}
.btn-mv-red:hover, .btn-mv-red:focus {
    background: var(--mv-red-dark);
    border-color: var(--mv-red-dark);
    color: var(--mv-white);
}
.btn-mv-yellow {
    background: var(--mv-yellow-soft);
    border-color: var(--mv-yellow-soft);
    color: var(--mv-black);
    font-weight: 600;
}
.btn-mv-yellow:hover, .btn-mv-yellow:focus {
    background: var(--mv-yellow);
    border-color: var(--mv-yellow);
    color: var(--mv-black);
}

/* ===== Beheer ===== */
.topbar {
    background: var(--mv-red);
    color: var(--mv-white);
    padding: 8px 0;
}
.topbar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.topbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--mv-white);
    font-weight: 700;
    font-size: 1.25rem;
    text-decoration: none;
}
.topbar-brand img { height: 48px; width: 48px; }
.topbar-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}
.topbar-links a, .link-button {
    color: var(--mv-white);
    font-weight: 600;
    text-decoration: none;
    background: none;
    border: 0;
    padding: 0;
}
.topbar-links a:hover, .topbar-links a.active, .link-button:hover {
    color: var(--mv-yellow);
}

.item-table .col-nr { width: 40px; }
.item-table .col-actions { width: 1%; white-space: nowrap; }
.item-table .omschrijving { color: #555; font-size: .95rem; }
.item-table tr.is-current td { background: #fffbd6; }
.item-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: flex-end;
}
.item-actions form { margin: 0; }
@media (min-width: 768px) {
    .item-actions { flex-wrap: nowrap; }
}
.badge-mv {
    background: var(--mv-red);
    color: var(--mv-white);
    margin-left: 6px;
}
.item-form { max-width: 560px; }

/* ===== Login ===== */
body.login {
    background: var(--mv-red);
    min-height: 100vh;
}
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.login-box {
    background: var(--mv-white);
    border-radius: 16px;
    padding: 32px 24px;
    width: 100%;
    max-width: 360px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
}
.login-box img { width: 120px; height: 120px; margin-bottom: 8px; }
.login-box h1 { font-size: 1.5rem; margin-bottom: 20px; }

/* ===== Voorkant (beamer/tv) ===== */
body.voorkant {
    margin: 0;
    background: var(--mv-red);
    color: var(--mv-white);
    min-height: 100vh;
    overflow: hidden;
}
.stage {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4vh;
    padding: 4vh 4vw 18vh;
    box-sizing: border-box;
    text-align: center;
}
.stage-logo {
    width: min(28vh, 40vw);
    height: auto;
}
.stage-name {
    font-weight: 700;
    font-size: min(14vw, 18vh);
    line-height: 1.05;
    color: var(--mv-white);
    text-shadow: 0 .06em 0 var(--mv-red-dark), 0 .1em .3em rgba(0, 0, 0, .25);
    overflow-wrap: break-word;
    max-width: 100%;
    transition: opacity .3s ease, transform .3s ease;
}
.stage-name.is-long { font-size: min(9vw, 13vh); }
.stage-name.is-xlong { font-size: min(6vw, 9vh); }
.stage-name.is-changing { opacity: 0; transform: scale(.96); }
.stage-name.is-empty { display: none; }
.stage-next {
    font-size: min(4.5vw, 6vh);
    line-height: 1.2;
    color: var(--mv-yellow);
    overflow-wrap: break-word;
    max-width: 100%;
}
.stage-next span { font-weight: 700; }
.stage-next.is-empty { display: none; }

/* Gele golfrand onderaan, zoals op muuzevangers.nl */
.wave {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 16vh;
    background:
        radial-gradient(circle at 50% 100%, var(--mv-yellow-soft) 70%, transparent 71%) 0 0 / 14vh 14vh repeat-x,
        linear-gradient(var(--mv-yellow-soft), var(--mv-yellow-soft)) 0 7vh / 100% 100% no-repeat;
}

@media (prefers-reduced-motion: reduce) {
    .stage-name { transition: none; }
}
