:root {
    --navy: #0a1836;
    --navy-2: #132a5c;
    --navy-3: #0e2044;
    --coral: #f2603e;
    --coral-light: #ff8b6b;
    --cream: #fdfaf6;
    --font-color: white;
    --font-color-hover: rgb(178, 178, 178);
    --cream-dim: rgba(253,250,246,0.68);
    --cream-faint: rgba(253,250,246,0.4);
    --font-display: 'Baloo 2', 'Segoe UI', system-ui, sans-serif;
    --font-body: 'Manrope', 'Segoe UI', system-ui, sans-serif;
    /* Gedeelde breedte van chatkolom (messages) en de invoerbalk (search),
       zodat deze op elk schermformaat exact gelijk zijn.
       Op PC breed (900px), op kleinere schermen maximaal 80vw. */
    --chat-width: min(900px, 80vw);
}

* {
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    margin: 0;
    height: 100dvh;
    display: grid;
    grid-template-rows: 5% 90% 5%;
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse 900px 600px at 18% 12%, rgba(242,96,62,0.16), transparent 60%), radial-gradient(ellipse 700px 500px at 88% 90%, rgba(242,96,62,0.12), transparent 55%), linear-gradient(165deg, var(--navy) 0%, var(--navy-3) 55%, var(--navy-2) 100%);
    color: var(--cream);
    font-family: var(--font-body);
}

header {
    position: relative;
    z-index: 1000;
}

.hamburger {
    position: fixed;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 51;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}
/* Transform into X when the 'open' class is active */
.hamburger.open span:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
}


.sidenav {
    position: fixed;
    z-index: 50;
    top: 0;
    left: 0;
    width: 320px;
    max-width: 85vw;
    height: 100dvh;
    padding: 6rem 1.5rem 2rem;
    background: radial-gradient( ellipse 300px 400px at 0% 20%, rgba(242, 96, 62, 0.12), transparent 70% ), rgba(10, 24, 54, 0.96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 12px 0 40px rgba(0, 0, 0, 0.25);
    transform: translateX(-100%);
    /* visibility houdt de dichte sidenav buiten de tabvolgorde en voor
       schermlezers; bij sluiten klapt dit pas om ná het uit-schuiven. */
    visibility: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0.4s;
    overflow-y: auto;
}

.sidenav.open {
    transform: translateX(0);
    visibility: visible;
    /* Bij openen direct zichtbaar, zodat focus meteen verplaatst kan worden */
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s;
}
/* Navigation links */

.sidenav a,
.sidenav .sidenav-link {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 13px 16px;
    margin-bottom: 6px;
    border-radius: 12px;
    text-align: left;
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    color: var(--cream-dim);
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

/* Actie-knoppen in de sidenav krijgen dezelfde uitstraling als de ankers
   (zonder de achtergrond van bv. .history-item aan te tasten) */
.sidenav .sidenav-link {
    border: none;
    background: transparent;
    appearance: none;
}

.sidenav a:hover,
.sidenav .sidenav-link:hover {
    color: var(--cream);
    background: rgba(242, 96, 62, 0.10);
    transform: translateX(4px);
}

#about-us:hover {
    cursor: pointer;
}
/* Coral indicator */
.sidenav a::before,
.sidenav .sidenav-link::before {
    content: "";
    width: 4px;
    height: 0;
    margin-right: 12px;
    border-radius: 999px;
    background: var(--coral);
    transition: height 0.2s ease;
}

.sidenav a:hover::before,
.sidenav .sidenav-link:hover::before {
    height: 18px;
}


img {
    width: 600px;
}

body.started .wrap img:first-of-type {
    width: 300px;
    position: fixed;
    right: 2rem;
    top: 1rem;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
}

.wrap {
    width: 80vw;
    text-align: center;
}

.accent {
    color: var(--coral);
}

.search {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    width: var(--chat-width);
    background: hsl(0, 0%, 83%, 8%);
    border: 1px solid hsla(0, 0%, 100%, 0.9);
    border-radius: 30px;
    padding: 6px;
}

.suggestion {
    margin-top: 15px;
    color: white;
    background: hsl(0, 0%, 83%, 8%);
    border: 1px solid hsla(0, 0%, 100%, 0.9);
    opacity: 60%;
    border-radius: 30px;
    padding: 6px;
    cursor: pointer;
}

.suggestion:hover {
    opacity: 100%;
}

body.started .suggestion {
    display: none;
}

#ai-input {
    color: var(--font-color);
    display: block;
    flex: 1;
    min-width: 0;
    height: auto;
    /* ongeveer 6 regels, daarna scrolt het veld intern */
    max-height: calc(6 * 1.4em + 24px);
    overflow-y: hidden;
    resize: none;
    border: none;
    outline: none;
    background: none;
    /* rechts ruimte voor de verzendknop */
    padding: 12px 56px 12px 16px;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.4;
    border-radius: 16px;
    /* Dunne scrollbalk; verschijnt alleen als het veld écht scrollt
       (overflow-y wordt door de JS op auto gezet zodra dat nodig is) */
    scrollbar-width: thin;
    scrollbar-color: rgba(242, 96, 62, 0.6) transparent;
}

#ai-input::-webkit-scrollbar {
    width: 6px;
}

#ai-input::-webkit-scrollbar-thumb {
    background: rgba(242, 96, 62, 0.6);
    border-radius: 3px;
}

#ai-input::-webkit-scrollbar-track {
    background: transparent;
}

/* A11y: zichtbare focus op de hele invoerbalk zodra het veld actief is
   (vervangt de verwijderde outline van #ai-input) */
.search:focus-within {
    border-color: var(--coral);
    box-shadow: 0 0 0 3px rgba(242, 96, 62, 0.35);
}

#ai-input::placeholder {
    color: white; 
    opacity: 1; 
    transition: color 0.2s ease;
}

/* Uitgeschakeld tijdens het genereren: duidelijk anders dan de actieve staat */
#ai-input:disabled {
    color: var(--cream-faint);
    background: rgba(255, 255, 255, 0.06);
    opacity: 0.75;
    cursor: not-allowed;
}

#ai-input:disabled::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

#ai-input:focus::placeholder {
    color: var(--font-color-hover);
}

/* Knop gecentreerd rechts in de balk; de tekst heeft 56px rechterpadding,
   dus die loopt er nooit onder door */
.search button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: var(--coral);
    color: var(--cream);
    cursor: pointer;
}

/* Zodra het veld gaat scrollen: een strook onder het veld, met de knop
   rechtsonder daarin. Zo eindigt de scrollbalk (zoals bij ChatGPT)
   net boven de verzendknop */
.search.is-scrolling #ai-input {
    margin-bottom: 44px;
}


.search button:disabled {
    background: rgba(242, 96, 62, 0.30);
    color: rgba(253, 250, 246, 0.55);
    cursor: not-allowed;
}

.search.is-scrolling button {
    top: auto;
    bottom: 6px;
    transform: none;
}

footer {
    width: 100%;
    text-align: right;
    padding-right: 1rem;
}

.garnish {
    position: absolute;
    z-index: 0;
    border-radius: 50%;
    background: var(--coral);
    pointer-events: none;
}

.garnish::after {
    content: "";
    position: absolute;
    top: 22%;
    left: 22%;
    width: 26%;
    height: 26%;
    border-radius: 50%;
    background: rgba(255,255,255,0.55);
}

.g1 {
    width: 16px;
    height: 16px;
    top: 14%;
    left: 11%;
    opacity: 0.55;
    animation: drift 9s ease-in-out infinite;
}

.g2 {
    width: 9px;
    height: 9px;
    top: 24%;
    left: 86%;
    opacity: 0.4;
    animation: drift 11s ease-in-out infinite 1s;
}

.g3 {
    width: 22px;
    height: 22px;
    top: 76%;
    left: 90%;
    opacity: 0.35;
    animation: drift 13s ease-in-out infinite 0.5s;
}

.g4 {
    width: 11px;
    height: 11px;
    top: 82%;
    left: 8%;
    opacity: 0.45;
    animation: drift 10s ease-in-out infinite 2s;
}

.g5 {
    width: 7px;
    height: 7px;
    top: 50%;
    left: 94%;
    opacity: 0.3;
    animation: drift 8s ease-in-out infinite 1.5s;
}

.g6 {
    width: 13px;
    height: 13px;
    top: 58%;
    left: 4%;
    opacity: 0.3;
    animation: drift 12s ease-in-out infinite 0.8s;
}

body.started .welcome {
    display: none;
}

body.started .search {
    position: fixed;
    z-index: 2;
    left: 50%;
    bottom: 2rem;
    top: auto;
    transform: translateX(-50%);
}

.messages {
    display: none;
    scrollbar-width: thin;
    scrollbar-color: rgba(242, 96, 62, 0.35) transparent;
}

body.started .messages {
    position: fixed;
    z-index: 1;
    top: 10vh;
    left: 50%;
    transform: translateX(-50%);
    width: var(--chat-width);
    height: 80vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/*
    //////////////////////////////////////////////////////
    //                 Chat
    //////////////////////////////////////////////////////

*/
.message {
    padding: 12px 16px;
    margin: 5px 0;
    max-width: 40vw;
    border-radius: 10px;
}

.user-message {
    z-index: 10;
    margin-right: 5px;
    align-self: flex-end;
    background: var(--coral);
    color: white;
    /* regelafbrekingen uit het invoerveld behouden */
    white-space: pre-line;
}

.ai-message {
    display: flex;
    flex-direction: column;
    align-self: stretch;
    margin-left: 5px;
    background-color: #1D2E52;
    color: white;
    max-width: calc(100% - 10px);
}

.ai-message h2 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.ai-message h3 {
    margin-top: 18px;
    margin-bottom: 8px;
    font-size: 1rem;
}

.ai-message p {
    margin: 8px 0;
    line-height: 1.5;
}

.ai-message ul,
.ai-message ol {
    margin: 8px 0;
    padding-left: 22px;
}

.ai-message li {
    margin-bottom: 5px;
}

.ai-message strong {
    color: #d99a3d;
}

.ai-message {
    line-height: 1.5;
}

.message-group {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.message-group .user-message {
    position: sticky;
    top: 0;
    z-index: 10;
    align-self: flex-end;
    background: var(--coral);
    color: white;
}

.message-group .ai-message {
    position: relative;
    z-index: 1;
}


/* ============================================================
   STATUSBOX — vriendelijke statusmeldingen (productie)
   ============================================================ */

.status-box {
    margin-bottom: 12px;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.status-step {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 5px 0;
    font-size: 0.83rem;
    line-height: 1.4;
    color: #aaaaaa;
}

.status-icon {
    width: 16px;
    min-width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #7bd88f;
}

/* Actieve regel: ronddraaiende ring zolang de AI bezig is */
.status-step.status-active {
    color: #d9a441;
}

.status-step.status-active .status-icon {
    border: 2px solid rgba(217, 164, 65, 0.3);
    border-top-color: #d9a441;
    border-radius: 50%;
    color: transparent;
    animation: statusSpin 0.8s linear infinite;
}

@keyframes statusSpin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .status-step.status-active .status-icon {
        animation: none;
        border-top-color: #d9a441;
        border-right-color: #d9a441;
    }
}


/* ============================================================
   THINKING (alleen debug-modus)
   ============================================================ */

.thinking-box {
    margin-bottom: 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.10);
    overflow: hidden;
}


    /* Header */

.thinking-box summary {
    cursor: pointer;
    padding: 10px 12px;
    color: #999;
    font-size: 0.88rem;
    user-select: none;
    list-style: none;
}


.thinking-box summary::-webkit-details-marker {
    display: none;
}


.thinking-box summary:hover {
    color: #ffffff;
}


.thinking-title {
    display: flex;
    align-items: center;
    gap: 7px;
}


.thinking-content {
    padding: 8px 12px 12px;
    border-top: 1px solid rgba( 255, 255, 255, 0.08 );
}


.thinking-step {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 7px 0;
    font-size: 0.83rem;
}


.thinking-icon {
    width: 20px;
    min-width: 20px;
    text-align: center;
}


.thinking-text {
    min-width: 0;
}


.thinking-message {
    color: #aaaaaa;
    line-height: 1.4;
}


.thinking-details {
    margin-top: 2px;
    color: #666666;
    font-size: 0.75rem;
    word-break: break-word;
}


.thinking-success
.thinking-message {
    color: #7bd88f;
}


.thinking-thinking
.thinking-message {
    color: #d9a441;
}


.thinking-tool
.thinking-message {
    color: #a78bfa;
}


.thinking-error
.thinking-message {
    color: #ff6b6b;
}


.thinking-info
.thinking-message {
    color: #999999;
}

.ai-answer {
    line-height: 1.6;
}


.ai-answer h1,
.ai-answer h2,
.ai-answer h3 {
    margin-top: 12px;
    margin-bottom: 8px;
}


.ai-answer ul,
.ai-answer ol {
    padding-left: 20px;
}


.ai-answer strong {
    color: #ffffff;
}


.cocktail-image {
    width: 100%;
    max-width: 260px;
    margin-top: 10px;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}


/* ============================================================
   STOP / RETRY / FOUTEN
   ============================================================ */

/* Verzendknop wordt Stop-knop tijdens het genereren */
.search button.is-generating {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: auto;
    min-width: 40px;
    padding: 0 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    background: var(--coral);
}

.search button.is-generating:hover {
    background: var(--coral-light);
}

/* Foutmelding in de AI-bubble */
.ai-message.ai-error {
    color: #ffb4a3;
}

/* Geannuleerde generatie: neutrale melding, geen fout */
.ai-message.ai-stopped {
    color: var(--cream-dim);
    font-style: italic;
}

/* Alleen zichtbaar in debugmodus */
.error-details {
    margin-top: 10px;
}

.error-details summary {
    cursor: pointer;
    font-size: 13px;
    color: var(--cream-faint);
    user-select: none;
}

.error-details pre {
    margin: 8px 0 0;
    padding: 8px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.3);
    color: #c9c9c9;
    font-size: 12px;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-x: auto;
}

.retry-button {
    align-self: flex-start;
    margin-top: 12px;
    padding: 8px 18px;
    border: 1px solid var(--coral);
    border-radius: 30px;
    background: var(--coral);
    color: var(--cream);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.retry-button:hover {
    background: var(--coral-light);
    border-color: var(--coral-light);
}
 

/*
    /////////////////////////////////////////////////////////
    //                 END CHAT
    /////////////////////////////////////////////////////////

*/
@keyframes drift {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }

    50% {
        transform: translateY(-14px) translateX(6px);
    }
}

.rise {
    animation: rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Vertragingen als classes: de CSP staat geen style-attributen op de pagina
   toe (style-src met nonce), dus animation-delay hoort in de stylesheet.
   Moet NA .rise staan: evenveel specificiteit, dus de volgorde beslist. */
.rise-1 {
    animation-delay: 0.05s;
}

.rise-2 {
    animation-delay: 0.22s;
}

.rise-3 {
    animation-delay: 0.3s;
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .garnish {
        animation: none !important;
    }

    .rise {
        animation: none !important;
    }
}


/* ============================================================
   HISTORY
   ============================================================ */

.history-list {
    display: none;
    margin-top: 10px;
}

.history-list.open {
    display: block;
}


/*
    Individual History prompt
*/

.history-item {
    width: 100%;
    display: block;
    padding: 10px 12px;
    margin-bottom: 5px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--cream-dim);
    font-family: var(--font-body);
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}


    .history-item:hover {
        background: rgba(242, 96, 62, 0.12);
        color: var(--cream);
        transform: translateX(3px);
    }


/*
    No history yet
*/

.history-empty {
    padding: 10px 12px;
    color: var(--cream-faint);
    font-size: 13px;
}

/*
    Verwijderen: 🗑 voor "alles wissen" en een ✕ achter elk item (op hover)
*/

.history-clear {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    margin-bottom: 12px;
    padding: 11px 16px;
    border: 1px solid rgba(242, 96, 62, 0.4);
    border-radius: 12px;
    background: rgba(242, 96, 62, 0.16);
    color: var(--cream);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.history-clear svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.history-clear:hover {
    background: rgba(242, 96, 62, 0.32);
    border-color: rgba(242, 96, 62, 0.8);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(242, 96, 62, 0.22);
}

.history-clear:active {
    transform: translateY(0);
    box-shadow: none;
}

.history-clear:focus-visible {
    outline: 2px solid var(--coral-light);
    outline-offset: 2px;
}

.history-item-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 5px;
}

.history-item-row .history-item {
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
    margin-bottom: 0;
}

.history-item-delete {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--cream-dim);
    font-family: var(--font-body);
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s ease, background 0.2s ease, color 0.2s ease;
}

.history-item-row:hover .history-item-delete,
.history-item-delete:focus-visible {
    opacity: 1;
}

.history-item-delete:hover {
    background: rgba(242, 96, 62, 0.3);
    color: #fff;
}

/* Touchscreens hebben geen hover: dan blijft de ✕ staan */
@media (hover: none) {
    .history-item-delete {
        opacity: 1;
    }
}

/*
    ============================================================
    SELECTED HISTORY MESSAGE
    ============================================================
*/

.history-highlight {
    animation: historyHighlight 1.2s ease;
}


@keyframes historyHighlight {

    0% {
        box-shadow: 0 0 0 3px var(--coral);
    }

    100% {
        box-shadow: 0 0 0 3px transparent;
    }
}

.language-list {
    display: none;
}

.language-list.open {
    display: flex;
    flex-direction: column;
}


.copy-answer-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-top: 10px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.07);
    color: var(--cream-dim);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.copy-answer-button svg {
    width: 17px;
    height: 17px;
}

.copy-answer-button:hover {
    background: rgba(242, 96, 62, 0.28);
    border-color: rgba(242, 96, 62, 0.75);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}

.copy-answer-button:active {
    transform: translateY(0);
    box-shadow: none;
}

.copy-answer-button:focus-visible {
    outline: 2px solid var(--coral-light);
    outline-offset: 2px;
}

.copy-answer-button.copied {
    background: rgba(123, 216, 143, 0.16);
    border-color: rgba(123, 216, 143, 0.75);
    color: #7bd88f;
    transform: none;
    box-shadow: none;
}

/* ============================================================
   PAGE LOADER (cocktail) — intro vóór de leeftijdscontrole
   ============================================================ */

.page-loader {
    position: fixed;
    z-index: 2100; /* ligt boven de leeftijdscontrole (2000) */
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    /* Zelfde achtergrond als body, zodat de loader opgaat in het thema */
    background: radial-gradient(ellipse 900px 600px at 18% 12%, rgba(242, 96, 62, 0.16), transparent 60%), radial-gradient(ellipse 700px 500px at 88% 90%, rgba(242, 96, 62, 0.12), transparent 55%), linear-gradient(165deg, var(--navy) 0%, var(--navy-3) 55%, var(--navy-2) 100%);
    transition: opacity 0.45s ease, visibility 0.45s ease;
}

.page-loader--hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.page-loader[hidden] {
    display: none;
}

.cocktail-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.cocktail-loader__svg {
    width: 150px;
    height: auto;
    overflow: visible;
}

.cocktail-loader__glass {
    fill: none;
    stroke: var(--cream);
    stroke-width: 3;
    stroke-linejoin: round;
    stroke-linecap: round;
    opacity: 0.92;
}

.cocktail-loader__glow {
    fill: var(--coral);
    opacity: 0.25;
    filter: blur(9px);
    transform-origin: 80px 176px;
    animation: cocktail-glow 2.8s ease-in-out infinite;
}

.cocktail-loader__level {
    animation: cocktail-level 3.6s ease-in-out infinite;
}

.cocktail-loader__wave {
    fill: url(#cocktailLiquidGradient);
    animation: cocktail-shimmer 2.4s linear infinite;
}

/* Vloeistofkleuren komen uit de themavariabelen */
.cocktail-loader__gradient stop:first-child {
    stop-color: var(--coral-light);
}

.cocktail-loader__gradient stop:last-child {
    stop-color: var(--coral);
}

.cocktail-loader__bubble {
    fill: var(--cream);
    opacity: 0;
}

.cocktail-loader__bubble.b1 {
    animation: cocktail-bubble 2.6s ease-in infinite;
    animation-delay: 0s;
}

.cocktail-loader__bubble.b2 {
    animation: cocktail-bubble 2.6s ease-in infinite;
    animation-delay: 0.6s;
}

.cocktail-loader__bubble.b3 {
    animation: cocktail-bubble 2.6s ease-in infinite;
    animation-delay: 1.2s;
}

.cocktail-loader__bubble.b4 {
    animation: cocktail-bubble 2.6s ease-in infinite;
    animation-delay: 1.8s;
}

.cocktail-loader__garnish {
    transform-origin: 118px 26px;
    animation: cocktail-swing 2.2s ease-in-out infinite;
}

.cocktail-loader__pick {
    stroke: var(--cream);
    stroke-width: 2;
    stroke-linecap: round;
    opacity: 0.9;
}

.cocktail-loader__olive {
    fill: var(--coral-light);
    stroke: var(--coral);
    stroke-width: 1.5;
}

.cocktail-loader__label {
    margin: 0;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    color: var(--cream);
    opacity: 0.85;
}

.cocktail-loader__dots span {
    display: inline-block;
    opacity: 0;
    animation: cocktail-dot 1.4s infinite;
}

.cocktail-loader__dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.cocktail-loader__dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes cocktail-level {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes cocktail-shimmer {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-45px);
    }
}

@keyframes cocktail-glow {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.22;
    }

    50% {
        transform: scale(1.15);
        opacity: 0.32;
    }
}

@keyframes cocktail-bubble {
    0% {
        transform: translateY(0);
        opacity: 0;
    }

    15% {
        opacity: 0.9;
    }

    90% {
        opacity: 0;
    }

    100% {
        transform: translateY(-38px);
        opacity: 0;
    }
}

@keyframes cocktail-swing {

    0%,
    100% {
        transform: rotate(-6deg);
    }

    50% {
        transform: rotate(6deg);
    }
}

@keyframes cocktail-dot {

    0%,
    80%,
    100% {
        opacity: 0;
    }

    40% {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {

    .cocktail-loader__level,
    .cocktail-loader__wave,
    .cocktail-loader__glow,
    .cocktail-loader__garnish {
        animation: none;
    }

    .cocktail-loader__dots span {
        animation-duration: 2.4s;
    }

    .page-loader {
        transition: none;
    }
}

/* ============================================================
   AGE VERIFICATION
   ============================================================ */

.age-verification {
    position: fixed;
    z-index: 2000;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(6, 14, 34, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.age-verification[hidden] {
    display: none;
}

.age-verification__box {
    width: min(440px, 100%);
    padding: 2.2rem 2rem;
    text-align: center;
    background: radial-gradient(ellipse 300px 200px at 20% 0%, rgba(242, 96, 62, 0.14), transparent 70%), rgba(10, 24, 54, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    animation: rise 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.age-verification__text {
    margin: 0 0 1.6rem;
    color: var(--cream);
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.4;
}

.age-verification__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.age-verification__button {
    min-width: 130px;
    padding: 11px 26px;
    border-radius: 30px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.age-verification__button:hover {
    transform: translateY(-2px);
}

.age-verification__button--yes {
    background: var(--coral);
    border: 1px solid var(--coral);
    color: var(--cream);
}

.age-verification__button--yes:hover {
    background: var(--coral-light);
    border-color: var(--coral-light);
}

.age-verification__button--no {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: var(--cream-dim);
}

.age-verification__button--no:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.7);
    color: var(--cream);
}

@media screen and (max-width: 480px) {
    .age-verification__actions {
        flex-direction: column;
    }

    .age-verification__button {
        width: 100%;
    }
}

@media screen and (max-width: 1200px) {

    body.started .wrap img:first-of-type {
        display: none;
    }    body .wrap img:first-of-type {
        width: 300px;
    }

    .sidenav {
        width: 50vw;
        background-color: #0a1836;
    }

    footer p {
        font-size: 8px;
        text-align: center;
        position: absolute;
        bottom: 5px;
        left: 50%;
        transform: translateX(-50%);
    }
    body.started .messages {
        top: 10vh;
        bottom: 6rem;
        height: auto;
    }
}

/* Mobile */
@media screen and (max-width: 480px) {

    .sidenav {
        width: 100vw;
        max-width: none;
    }

    /* Stop-knop: alleen het icoon in een rondje, zonder "Stop"-tekst */
    .search button.is-generating {
        width: 40px;
        min-width: 40px;
        height: 40px;
        padding: 0;
        gap: 0;
        border-radius: 50%;
        font-size: 16px;
    }

    .search button.is-generating .stop-label {
        display: none;
    }
}

/* ============================================================
   A11Y - zichtbare focus voor toetsenbordgebruikers
   ============================================================ */

:where(a[href], button, input, select, textarea, summary, [tabindex]):focus-visible {
    outline: 2px solid var(--coral);
    outline-offset: 2px;
}