﻿:root {
    --deep-blue: #1f3871;
    --gold: #cb9934;
    --text-color: #333;
    --background-light: #fdfcfa;
    --background-highlight: #fffbf2;
    --border-color: #ddd;
    --white: #ffffff;
    --error-red: #d9534f;
}

body {
    font-family: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--white);
    color: var(--text-color);
    margin: 0;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 760px;
    margin: 0 auto;
    padding: 10px;
}


header {
    text-align: center;
    padding: 10px 20px 10px 20px;
    border-bottom: 1px solid #eee;
}

header h1 {
    display: flex; 
    justify-content: center;
    align-items: center;
    gap: 20px;
}

/* De kerstboom links */
header h1::before,
/* De kerstboom rechts */
header h1::after {
    content: '🎄'; 
    color: var(--gold);
    font-size: 0.75em; 
    opacity: 0.8;
}

header h1 a {
    font-family: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.5em;
    color: var(--deep-blue);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.5px;
}

header .tagline {
    font-size: 1.1em;
    color: #777;
}
main {
    padding: 30px 0 40px 0;
}
h2, h3, h4 {
    color: var(--deep-blue);
    font-weight: 700;
}

h2 {
    font-size: 2em;
    padding-bottom: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--gold);
}

h3 {
    font-size: 1.6em;
}

hr {
    border: none;
    border-top: 1px solid #eee;
    margin: 40px 0;
}

.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
    font-size: 0.95em;
}

input[type=text], input[type=email], textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}

input[type=text]:focus, input[type=email]:focus, textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(203, 153, 52, 0.2);
}

.btn {
    display: inline-block;
    background-color: var(--gold);
    color: var(--white);
    padding: 12px 28px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.05em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
    background-color: #a87d2c;
    transform: translateY(-2px);
}

/* --- Deelnemersvelden --- */
#participants-container .participant-group {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}
#participants-container .participant-group input { flex: 1; }

.remove-participant {
    background: #e7e7e7;
    color: #555;
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    cursor: pointer;
    font-weight: bold;
    line-height: 38px;
    text-align: center;
    font-size: 1.2em;
    transition: background-color 0.3s, color 0.3s;
}
.remove-participant:hover {
    background-color: var(--error-red);
    color: var(--white);
}

/* --- Berichten --- */
.message {
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 30px;
    border: 1px solid;
}
.message.success { background-color: #e8f5e9; color: #2e7d32; border-color: #c8e6c9; }
.message.error { background-color: #ffebee; color: #c62828; border-color: #ffcdd2; }

/* --- Verlanglijstjes --- */
.highlight-box {
    background-color: var(--background-highlight);
    border-left: 4px solid var(--gold);
    padding: 20px 30px;
    margin: 30px 0;
    border-radius: 5px;
}

.wishlist-view {
    list-style-type: none;
    padding-left: 0;
}

.wishlist-view li {
    padding: 10px 0;
    border-bottom: 1px solid #f0e6d2;
}
.wishlist-view li:last-child { border-bottom: none; }

.wishlist-view a {
    margin-left: 10px;
    color: var(--gold);
    font-weight: bold;
    font-size: 0.9em;
    text-decoration: none;
}
.wishlist-view a:hover { text-decoration: underline; }

.my-wishlist {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 30px;
}
.my-wishlist li {
    background-color: #f9f9f9;
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.delete-form { display: inline; }
.delete-btn {
    background: none;
    border: none;
    color: #aaa;
    font-size: 1.5em;
    cursor: pointer;
    padding: 0 5px;
    transition: color 0.3s;
}
.delete-btn:hover { color: var(--error-red); }

/* --- Footer & Cookies --- */
footer {
    text-align: center;
    padding: 40px 20px;
    margin-top: 40px;
    border-top: 1px solid #eee;
    color: #888;
}
footer a { color: var(--deep-blue); }

#cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(31, 56, 113, 0.95);
    color: white;
    padding: 15px;
    text-align: center;
    z-index: 1000;
    display: none;
}
#cookie-consent button {
    background-color: var(--gold);
    color: var(--white);
    border: none;
    padding: 8px 18px;
    cursor: pointer;
    border-radius: 3px;
    margin-left: 15px;
    font-weight: bold;
}

/* Stijlen voor homepage intro & FAQ */
.intro-text {
    text-align: center;
    font-size: 1.1em;
    color: #555;
    max-width: 680px;
    margin: 0 auto 20px auto;
}

.faq-section h3 {
    margin-top: 30px;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

.faq-section p {
    margin-top: 0;
}

/* --- Stijlen voor de Loading Animatie --- */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: none; /* Standaard verborgen */
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

#loading-overlay.visible {
    display: flex;
    opacity: 1;
}

.loader-content {
    text-align: center;
}

.loader-content p {
    margin-top: 20px;
    font-size: 1.1em;
    color: var(--deep-blue);
    font-weight: bold;
}

.filling-tree {
    width: 100px;
    height: auto;
}

#loading-overlay.visible #tree-fill {
    /* Start de animatie alleen als de overlay zichtbaar is */
    animation: fill-tree 4s linear forwards;
}

@keyframes fill-tree {
    from {
        /* Start onzichtbaar (afgeknipt van boven) */
        clip-path: inset(100% 0 0 0);
    }
    to {
        /* Eindig volledig zichtbaar */
        clip-path: inset(0% 0 0 0);
    }
}

/* --- Media Queries voor Mobiel --- */
@media (max-width: 600px) {
    /* Vermindert de ruimte boven en onder de titel */
    header {
        padding: 5px 20px 5px 20px;
    }

    /* Verkleint de titel iets meer op mobiel */
    header h1 a {
        font-size: 1.1em;
    }

    /* Vermindert de grote witruimte direct na de header */
    main {
        padding-top: 5px;
    }

    /* Behoudt de bestaande regel voor de invoervelden */
    #participants-container .participant-group {
        flex-direction: column;
        align-items: stretch;
    }
}