/* 
   Premium-Style Design System for De Rode Leeuw 
   Focus: Cinematic, High-Contrast, Massive Typography
*/

:root {
    --premium-black: #000000;
    --premium-white: #ffffff;
    --premium-gray: #86868b;
    --premium-bg: #000000;
    --accent-red: #d32f2f;
    --section-padding: 120px;
    --premium-font: -premium-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--premium-bg);
    color: var(--premium-white);
    font-family: var(--premium-font);
    margin: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background-color: var(--accent-red);
    color: #fff;
}

::-moz-selection {
    background-color: var(--accent-red);
    color: #fff;
}

/* Typography */
.premium-title-massive {
    font-size: clamp(34px, 8vw, 100px);
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.05;
    margin-bottom: 0.2em;
    text-align: center;
}

.premium-subtitle {
    font-size: clamp(16px, 2.5vw, 22px);
    font-weight: 500;
    color: var(--premium-gray);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
}

/* Cinematic Sections */
.premium-sec {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: var(--section-padding) 5%;
    box-sizing: border-box;
}

.premium-sec-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.premium-sec-media img,
.premium-sec-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 1;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #000;
}

/* Autoplay videos should be visible immediately */
.premium-sec-media video[autoplay] {
    opacity: 1;
    filter: blur(0.5px);
    /* Very subtle blur to soften pixelation */
}

.premium-sec-content {
    position: relative;
    z-index: 2;
    padding: 0 5%;
    width: 100%;
    margin-top: 15vh;
    /* Clean, centered look */
    pointer-events: none;
    /* Let clicks pass through to video/bg */
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    transition: all 1s cubic-bezier(0.2, 0, 0.2, 1);
}

/* Fallback Backgrounds for Mobile (when video is removed) */
#home .premium-sec-media {
    background-image: url('https://images.unsplash.com/photo-1588516903720-8ceb67f9ef84?w=1920&h=1080&fit=crop&q=85');
    background-size: cover;
    background-position: center;
}

#products .premium-sec-media {
    background-image: url('https://images.unsplash.com/photo-1604827572734-b5a56c696d1f?w=800&q=80');
    background-size: cover;
    background-position: center;
}

.premium-sec.in-view .premium-sec-content {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Definitive Glow Removal */
body, footer, .footer, .container, .premium-sec, .premium-sec-media, .premium-sec-media img, .premium-sec-media video, .premium-sec-overlay {
    box-shadow: none !important;
    mask-image: none !important;
    -webkit-mask-image: none !important;
    filter: none !important;
}

/* Background Overlay for text readability - Neutral Dark */
.premium-sec-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1.5;
}

/* Sticky Navigation */
.premium-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    height: 100px;
    display: flex;
    align-items: center;
    padding: 0 5%;
    justify-content: center;
    transition: all 0.3s ease;
}

body.admin-mode .premium-nav {
    top: 48px; /* Height of the admin indicator */
}

.premium-nav-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    z-index: 10;
}

.premium-nav-logo img {
    height: 90px !important;
    width: auto;
    transition: height 0.3s ease;
}

.premium-nav-links {
    display: flex;
    gap: 32px;
    flex: 1;
}

.premium-nav-links.left {
    justify-content: flex-end;
    padding-right: 100px;
}

.premium-nav-links.right {
    justify-content: flex-start;
    padding-left: 100px;
}

.premium-nav-links a {
    color: #1d1d1f;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.premium-nav-links a:hover {
    color: var(--accent-red);
}



/* Buttons */
.premium-btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--premium-white);
    color: var(--premium-black);
    border-radius: 980px;
    font-weight: 600;
    text-decoration: none;
    font-size: 17px;
    transition: all 0.3s;
    pointer-events: auto;
    /* Ensure clickable even if container is not */
}

.premium-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.02);
}

.premium-btn-secondary {
    background: transparent;
    border: 1px solid var(--premium-white);
    color: var(--premium-white);
}

.btn-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 2rem;
}

/* Admin Styles */
.editable-container {
    position: relative !important;
}

.edit-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(211, 47, 47, 0.9);
    color: white;
    border: none;
    cursor: pointer;
    z-index: 1000;
    font-size: 20px;
    display: none;
    align-items: center;
    pointer-events: auto;
    /* Required because parent has pointer-events: none */
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s;
}

body.admin-mode .edit-btn {
    display: flex;
}

.edit-btn:hover {
    transform: scale(1.1);
    background: #d32f2f;
}

/* Modal Enhancements */
.editor-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: none;
}

.editor-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 500px;
    background: #1c1c1e;
    padding: 30px;
    border-radius: 20px;
    z-index: 2001;
    display: none;
    color: white;
}

.editor-backdrop.active,
.editor-modal.active {
    display: block;
}

.editor-form-group {
    margin-bottom: 20px;
}

.editor-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #86868b;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.editor-form-group input,
.editor-form-group textarea {
    width: 100%;
    background: #2c2c2e;
    border: 1px solid #3a3a3c;
    border-radius: 8px;
    padding: 12px;
    color: white;
    font-family: inherit;
    font-size: 16px;
}

.editor-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 30px;
}

.btn-save {
    background: #d32f2f;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 980px;
    cursor: pointer;
    font-weight: 600;
}

.btn-cancel {
    background: transparent;
    color: #86868b;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
}

/* Shop Status Badge */
.shop-status-badge {
    position: absolute;
    left: 5%;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 980px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.4s ease;
    cursor: default;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.shop-status-badge .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

.shop-status-badge.open {
    color: #006600;
    background: rgba(52, 199, 89, 0.15);
    border: 1px solid rgba(52, 199, 89, 0.3);
}

.shop-status-badge.open .status-dot {
    background: #34c759;
    box-shadow: 0 0 10px #34c759;
}

.shop-status-badge.closed {
    color: #ff3b30;
    background: rgba(255, 59, 48, 0.1);
    border: 1px solid rgba(255, 59, 48, 0.2);
}

.shop-status-badge.closed .status-dot {
    background: #ff3b30;
}



/* Mobile Navigation */
.hamburger {
    display: none;
    z-index: 1001;
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }

    .premium-nav {
        height: 70px;
        padding: 0 5%;
    }

    .premium-nav-logo img {
        height: 50px !important;
    }

    .premium-nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--premium-white);
        flex-direction: column;
        justify-content: center !important;
        align-items: center;
        gap: 40px;
        padding: 0 !important;
        opacity: 0;
        pointer-events: none;
        transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
    }

    .premium-nav.mobile-active .premium-nav-links {
        opacity: 1;
        pointer-events: auto;
    }

    /* Hide one side on mobile to avoid duplication if links are mirrored */
    .premium-nav-links.left {
        display: none;
    }

    .premium-nav-links a {
        font-size: 24px;
        color: #1d1d1f;
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        width: 30px;
        height: 30px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
    }

    .hamburger span {
        display: block;
        width: 100%;
        height: 2px;
        background: #1d1d1f;
        transition: all 0.3s ease;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .shop-status-badge {
        left: 5%;
        padding: 4px 10px;
        font-size: 9px;
    }

    .shop-status-badge .status-text {
        display: none;
        /* Icon only on very small screens or keep it minimal */
    }

    @media (min-width: 480px) {
        .shop-status-badge .status-text {
            display: inline;
        }
    }
}