
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    --cream: #f5f0e7;
    --dark: #201d19;
    --brown: #8b7563;
    --line: #d8d0c4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--cream);
    color: var(--dark);
    font-family: 'DM Sans', sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 6%;
    border-bottom: 1px solid var(--line);
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -1px;
}

.logo span {
    font-size: 9px;
    vertical-align: top;
}

nav {
    display: flex;
    gap: 35px;
    font-size: 14px;
}

nav a:hover,
nav a.active {
    text-decoration: underline;
    text-underline-offset: 6px;
}

.hero {
    min-height: 650px;
    display: flex;
    align-items: center;
    padding: 100px 8%;
    background:
        linear-gradient(90deg,
            rgba(245,240,231,.97) 0%,
            rgba(245,240,231,.86) 45%,
            rgba(245,240,231,.18) 100%),
        url('images/hero.jpg') center/cover;
}

.hero-content {
    max-width: 680px;
}

.eyebrow,
.section-label {
    font-size: 12px;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 25px;
}

h1, h2, h3 {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -2px;
}

h1 {
    font-size: clamp(48px, 7vw, 100px);
    line-height: .98;
    margin-bottom: 30px;
}

.hero-description {
    font-size: 18px;
    line-height: 1.7;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 35px;
}

.btn {
    display: inline-block;
    padding: 15px 25px;
    font-size: 14px;
    font-weight: 700;
    transition: transform .2s;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-dark {
    background: var(--dark);
    color: white;
}

.btn-light {
    background: var(--cream);
    border: 1px solid var(--dark);
}

.intro {
    padding: 110px 10%;
    max-width: 1150px;
}

h2 {
    font-size: clamp(38px, 5vw, 70px);
    line-height: 1.05;
}

.intro > p:last-child {
    max-width: 650px;
    margin-top: 30px;
    line-height: 1.9;
    font-size: 17px;
}

.steps {
    padding: 90px 8%;
    background: #e9e0d3;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 55px;
}

.step {
    border-top: 1px solid var(--brown);
    padding-top: 25px;
}

.step span {
    color: var(--brown);
    font-size: 13px;
}

.step h3 {
    font-size: 32px;
    margin: 20px 0;
}

.step p {
    line-height: 1.7;
}

.deadline {
    text-align: center;
    padding: 110px 20px;
}

#countdown {
    margin: 30px 0;
    font-size: 20px;
}

footer {
    background: var(--dark);
    color: var(--cream);
    padding: 35px 6%;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-size: 11px;
    letter-spacing: 1px;
}

@media (max-width: 700px) {
    .navbar {
        flex-direction: column;
        gap: 20px;
    }

    .hero {
        min-height: 580px;
        padding: 80px 6%;
    }

    .hero-description {
        font-size: 16px;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .intro {
        padding: 80px 6%;
    }

    footer {
        flex-direction: column;
        text-align: center;
    }
}


/* ==============================
   DRAFT BATTLE
============================== */

.battle-hero {
    padding: 100px 8% 90px;
    background: #e9e0d3;
    border-bottom: 1px solid var(--line);
}

.battle-hero h1 {
    font-size: clamp(70px, 12vw, 170px);
    line-height: .85;
    letter-spacing: -7px;
}

.battle-dot {
    color: var(--brown);
}

.battle-hero > p:not(.section-label) {
    max-width: 480px;
    margin-top: 35px;
    font-size: 17px;
    line-height: 1.8;
}

.battle-status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}

.status-dot {
    width: 9px;
    height: 9px;
    background: #a58c72;
    border-radius: 50%;
}

.battle-content {
    padding: 100px 8%;
}

.battle-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 25px;
}

#result-count {
    font-size: 13px;
    color: var(--brown);
}

.battle-toolbar {
    display: flex;
    gap: 15px;
    margin: 45px 0 35px;
}

.battle-toolbar input,
.battle-toolbar select {
    padding: 16px;
    background: transparent;
    border: 1px solid var(--line);
    font: inherit;
    font-size: 14px;
    color: var(--dark);
}

.battle-toolbar input {
    flex: 1;
    min-width: 0;
}

.battle-toolbar select {
    min-width: 180px;
    cursor: pointer;
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.story-card {
    background: #fffdf8;
    border: 1px solid var(--line);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.story-cover {
    height: 220px;
    background: #d8cbbb;
    overflow: hidden;
}

.story-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}

.story-card:hover .story-cover img {
    transform: scale(1.05);
}

.story-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.story-genre {
    font-size: 11px;
    color: var(--brown);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.story-info h3 {
    font-size: 27px;
    letter-spacing: -1px;
    margin: 15px 0;
}

.story-description {
    font-size: 14px;
    line-height: 1.7;
    color: #655b50;
    flex: 1;
}

.story-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    border-top: 1px solid var(--line);
    padding-top: 20px;
    margin-top: 25px;
}

.story-actions button {
    background: none;
    border: none;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.story-actions button:hover {
    text-decoration: underline;
}

.vote-button {
    color: #8c604d;
}

.vote-button:disabled {
    opacity: .5;
    cursor: default;
}

.no-results {
    padding: 40px 0;
    text-align: center;
}

.battle-bottom {
    background: #e9e0d3;
    padding: 100px 8%;
}

.battle-bottom > p:not(.section-label) {
    margin: 25px 0;
    line-height: 1.8;
    max-width: 460px;
}

/* READING WINDOW */

.story-dialog {
    position: fixed;
    inset: 0;
    margin: auto;
    width: min(90%, 750px);
    max-height: 85vh;
    padding: 55px;
    border: none;
    background: var(--cream);
    color: var(--dark);
    overflow-y: auto;
}

.story-dialog::backdrop {
    background: rgba(20, 17, 14, .75);
}

.dialog-close {
    position: absolute;
    top: 20px;
    right: 25px;
    border: none;
    background: none;
    font-size: 32px;
    cursor: pointer;
}

.story-dialog h2 {
    font-size: clamp(35px, 5vw, 60px);
}

.dialog-chapter {
    margin: 30px 0;
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--brown);
}

.dialog-content {
    font-size: 16px;
    line-height: 2;
}

.dialog-content p {
    margin-bottom: 22px;
}

.dialog-footer {
    margin-top: 35px;
    border-top: 1px solid var(--line);
    padding-top: 25px;
}

.dialog-footer button {
    border: none;
    cursor: pointer;
}

@media (max-width: 900px) {
    .story-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .battle-hero {
        padding: 75px 6%;
    }

    .battle-hero h1 {
        font-size: clamp(60px, 16vw, 95px);
        letter-spacing: -4px;
    }

    .battle-content,
    .battle-bottom {
        padding: 75px 6%;
    }

    .battle-heading {
        align-items: start;
        flex-direction: column;
    }

    .battle-toolbar {
        flex-direction: column;
    }

    .story-grid {
        grid-template-columns: 1fr;
    }

    .story-dialog {
        padding: 55px 25px 30px;
    }
}


.site-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    padding: 35px 6%;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-brand img {
    max-width: 100px;
    max-height: 55px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.footer-brand span {
    font-size: 12px;
}

@media (max-width: 600px) {
    .site-footer {
        flex-direction: column;
        text-align: center;
    }
}

.navbar .logo img {
    display: block;
    width: 170px;
    height: auto;
    object-fit: contain;
}

@media (max-width: 600px) {
    .navbar .logo img {
        width: 145px;
    }
}


/* DRAFT BATTLE - INZENDFORMULIER */

.submission-dialog {
    width: min(92%, 620px);
    max-height: 90vh;
    padding: 36px;
    border: 1px solid #d8d0c4;
    border-radius: 12px;
    background: #f5f0e7;
    color: #201d19;
    overflow-y: auto;
}

.submission-dialog::backdrop {
    background: rgba(25, 22, 19, 0.7);
    backdrop-filter: blur(4px);
}

.submission-header {
    position: relative;
    margin-bottom: 28px;
}

.submission-header h2 {
    margin: 16px 0;
    font-size: clamp(30px, 5vw, 46px);
    line-height: 1.05;
    letter-spacing: -1.5px;
}

.submission-header > p:last-child {
    color: #76695d;
}

.close-submission {
    position: absolute;
    top: 0;
    right: 0;
    border: 0;
    background: none;
    color: #201d19;
    font-size: 32px;
    cursor: pointer;
}

.submission-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.submission-form label {
    margin-top: 10px;
    font-size: 13px;
    font-weight: 700;
}

.submission-form input:not([type="radio"]),
.submission-form select,
.submission-form textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #d8d0c4;
    border-radius: 5px;
    background: #fffdf9;
    color: #201d19;
    font: inherit;
}

.submission-form input:focus,
.submission-form select:focus,
.submission-form textarea:focus {
    outline: 2px solid #8b7563;
    outline-offset: 1px;
}

.writer-identity {
    margin-top: 18px;
    padding: 22px;
    border: 1px solid #d8d0c4;
    border-radius: 8px;
    background: #eee7dc;
}

.identity-title {
    font-weight: 800;
    font-size: 14px;
}

.identity-description,
.form-note {
    margin-top: 6px;
    color: #76695d;
    font-size: 12px;
}

.identity-options {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin: 18px 0;
}

.identity-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    cursor: pointer;
}

#name-fields,
#social-fields {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#name-fields[hidden],
#social-fields[hidden] {
    display: none;
}

.submission-form > button[type="submit"] {
    margin-top: 16px;
    cursor: pointer;
}

@media (max-width: 600px) {
    .submission-dialog {
        padding: 24px;
    }
}

.story-author {
    margin: 8px 0 14px;
    color: #8b7563;
    font-size: 0.9rem;
    font-weight: 600;
}

.admin-login {
  display: inline-block;
  margin-top: 15px;
  font-size: 12px;
  color: #888;
  text-decoration: none;
}

.admin-login:hover {
  color: #fff;
  text-decoration: underline;
}


/* Grote pop-up voor hoofdstuk insturen */
.submission-dialog {
    width: 95vw;
    max-width: 1100px;
    height: 90vh;
    max-height: 90vh;
    padding: 0;
    border: none;
    border-radius: 16px;
    overflow-y: auto;
    box-sizing: border-box;
}

/* Achtergrond donker maken */
.submission-dialog::backdrop {
    background: rgba(0, 0, 0, 0.75);
}

/* Ruimte binnen de pop-up */
.submission-header,
.submission-form {
    padding: 35px 50px;
}

/* Mobiele schermen */
@media (max-width: 768px) {
    .submission-dialog {
        width: 100vw;
        max-width: 100vw;
        height: 100dvh;
        max-height: 100dvh;
        border-radius: 0;
    }

    .submission-header,
    .submission-form {
        padding: 25px;
    }
}

.submission-dialog {
    position: fixed;
    inset: 0;
    margin: auto;
    width: 95vw;
    max-width: 1100px;
    height: 90vh;
    max-height: 90vh;
    box-sizing: border-box;
}


/* Hero met QR-code rechts */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-content {
    flex: 1;
    min-width: 0;
}

/* LOTUS aanmelding */
.hero-lotus {
    flex: 0 0 280px;
    text-align: center;
    padding: 30px;
    border: 1px solid #d5cfc5;
}

.lotus-label {
    font-size: 12px;
    letter-spacing: 2px;
}

.hero-lotus h2 {
    font-size: 28px;
    line-height: 1.1;
    margin: 18px 0;
}

.lotus-arrow {
    display: block;
    font-size: 48px;
    margin: 15px 0;
}

.lotus-qr {
    width: 190px;
    max-width: 100%;
    height: auto;
}

.hero-lotus p {
    font-size: 13px;
}

.lotus-register {
    display: inline-block;
    margin-top: 15px;
    padding: 14px 18px;
    background: #211e1a;
    color: white;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
}

/* Mobiel */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-lotus {
        flex: auto;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        box-sizing: border-box;
    }
}



