@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Nunito:wght@400;600;700&display=swap');

/* ── Global: prevent horizontal scroll ── */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* ── Mobile-first base ── */
* {
    box-sizing: border-box;
}

/* ── Hero ── */
.hero-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '🍬';
    position: absolute;
    font-size: 60px;
    top: 10%;
    right: 5%;
    opacity: 0.15;
    animation: float 6s ease-in-out infinite;
}

.hero-section::after {
    content: '🍭';
    position: absolute;
    font-size: 40px;
    bottom: 15%;
    left: 8%;
    opacity: 0.1;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

/* ── Cards ── */
.drop-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.drop-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* ── Badges ── */
.badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-nieuw { background: #c0392b; color: #fff; }
.badge-populair { background: #e8a838; color: #1a1a2e; }
.badge-klassiek { background: #6c5b3e; color: #fff; }

/* ── Sections ── */
.cta-section {
    background: linear-gradient(135deg, #e8a838 0%, #f0c050 100%);
}

.footer-section {
    background: #1a1a2e;
    color: #ccc;
}

.footer-section a {
    color: #e8a838;
    text-decoration: none;
}

.footer-section a:hover {
    text-decoration: underline;
}

.price-tag {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #c0392b;
}

.rating {
    color: #e8a838;
    font-size: 1.1rem;
}

/* ── Navigation: hamburger overlay styling ── */
.wp-block-navigation__responsive-container.is-menu-open {
    background: #1a1a2e !important;
    padding: 2rem 1.5rem !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item a {
    color: #fff !important;
    font-size: 1.2rem !important;
    padding: 0.8rem 0 !important;
    display: block;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:last-child a {
    border-bottom: none;
}

.wp-block-navigation__responsive-container-open {
    color: #e8a838 !important;
}

.wp-block-navigation__responsive-container-close {
    color: #e8a838 !important;
}

/* Hamburger button: large touch target */
.wp-block-navigation__responsive-container-open svg,
.wp-block-navigation__responsive-container-close svg {
    width: 32px !important;
    height: 32px !important;
}

button.wp-block-navigation__responsive-container-open,
button.wp-block-navigation__responsive-container-close {
    padding: 8px !important;
    min-width: 48px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Mobile (< 768px) ── */
@media (max-width: 767px) {
    /* Hero: smaller text, more padding for thumb reach */
    .hero-section .wp-block-heading {
        font-size: 1.8rem !important;
        line-height: 1.2;
    }

    .hero-section p {
        font-size: 1rem !important;
        padding: 0 0.5rem;
    }

    /* Stack columns vertically */
    .wp-block-columns {
        flex-direction: column !important;
    }

    .wp-block-column {
        flex-basis: 100% !important;
        margin-bottom: 1rem;
    }

    /* Cards: full width with touch-friendly padding */
    .drop-card {
        padding: 1.5rem !important;
        margin-bottom: 1rem;
    }

    /* Buttons: full width, large touch target */
    .wp-block-button__link {
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        font-size: 1rem !important;
    }

    .wp-block-buttons {
        width: 100%;
    }

    .wp-block-button {
        width: 100%;
    }

    /* Section padding: tighter on mobile */
    .wp-block-group.alignfull {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    /* Footer: stack columns */
    .footer-section .wp-block-columns {
        gap: 1.5rem;
    }

    /* Font sizes: readable on small screens */
    .wp-block-heading {
        word-break: break-word;
    }

    h2.wp-block-heading {
        font-size: 1.5rem !important;
    }

    h3.wp-block-heading {
        font-size: 1.1rem !important;
    }

    /* Price tags: still prominent */
    .price-tag {
        font-size: 1.3rem;
    }

    /* No floating decorative emojis on mobile — they overlap content */
    .hero-section::before,
    .hero-section::after {
        display: none;
    }
}

/* ── Tablet (768px – 1024px) ── */
@media (min-width: 768px) and (max-width: 1024px) {
    .hero-section .wp-block-heading {
        font-size: 2.5rem !important;
    }

    .wp-block-columns {
        flex-wrap: wrap !important;
    }

    .drop-card {
        padding: 1.5rem !important;
    }
}

/* ── Desktop (> 1024px) ── */
@media (min-width: 1025px) {
    .hero-section::before {
        font-size: 120px;
    }

    .hero-section::after {
        font-size: 80px;
    }
}
