/**
 * Rozen.nl Mega Menu Styles
 * Responsive design for desktop and mobile
 */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=Nunito:wght@400;500;600;700&display=swap');

/* ============================================
   CSS Variables
   ============================================ */
:root {
    --rmm-primary: #1a1a1a;
    --rmm-accent: #8B0000;
    --rmm-gold: #b3824b;
    --rmm-cream: #F5E3CF;
    --rmm-bg: #ffffff;
    --rmm-bg-hover: #faf7f5;
    --rmm-border: #e8e8e8;
    --rmm-text: #1a1a1a;
    --rmm-text-light: #666666;
    --rmm-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    --rmm-radius: 12px;
    --rmm-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --rmm-font-main: 'Nunito', sans-serif;
    --rmm-font-heading: 'Cormorant Garamond', serif;
}

/* ============================================
   Base Menu Styles
   ============================================ */
.rozen-mega-menu {
    font-family: var(--rmm-font-main);
    position: relative;
    z-index: 9999;
}

.rozen-mega-menu * {
    box-sizing: border-box;
}

/* ============================================
   Desktop Menu
   ============================================ */
@media (min-width: 992px) {
    .rozen-menu-toggle {
        display: none;
    }

    .rozen-menu-mobile-header {
        display: none;
    }

    .rozen-menu-overlay {
        display: none;
    }

    .rozen-menu-container {
        display: block;
    }

    .rozen-menu-main {
        display: flex;
        align-items: center;
        gap: 8px;
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .rozen-menu-item {
        position: relative;
    }

    .rozen-menu-item > a,
    .rozen-menu-trigger {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 12px 18px;
        font-size: 15px;
        font-weight: 600;
        color: var(--rmm-text);
        text-decoration: none;
        border-radius: 8px;
        transition: var(--rmm-transition);
        cursor: pointer;
        background: none;
        border: none;
        font-family: inherit;
    }

    .rozen-menu-item > a:hover,
    .rozen-menu-trigger:hover,
    .rozen-menu-item.active > a,
    .rozen-menu-item.active .rozen-menu-trigger {
        background: var(--rmm-cream);
        color: var(--rmm-primary);
    }

    /* Valentijn highlight */
    .rozen-menu-item.rozen-menu-highlight > a {
        background: linear-gradient(135deg, #e74c3c, #c0392b);
        color: #fff !important;
        border-radius: 8px;
        animation: valentijnPulse 2s ease-in-out infinite;
    }

    .rozen-menu-item.rozen-menu-highlight > a::before {
        content: '♥';
        margin-right: 6px;
        font-size: 14px;
        color: #fff;
        transition: color 0.2s ease;
    }

    .rozen-menu-item.rozen-menu-highlight > a:hover {
        background: #fff;
        color: #e74c3c !important;
        box-shadow: 0 0 0 2px #e74c3c;
        animation: none;
    }

    .rozen-menu-item.rozen-menu-highlight > a:hover::before {
        color: #e74c3c;
    }

    @keyframes valentijnPulse {
        0%, 100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.4); }
        50% { box-shadow: 0 0 0 8px rgba(231, 76, 60, 0); }
    }

    .rozen-menu-arrow {
        transition: transform 0.2s ease;
    }

    .rozen-menu-item.active .rozen-menu-arrow {
        transform: rotate(180deg);
    }

    /* Mega Panel */
    .rozen-mega-panel {
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 280px;
        background: var(--rmm-bg);
        border-radius: var(--rmm-radius);
        box-shadow: var(--rmm-shadow);
        opacity: 0;
        visibility: hidden;
        transition: var(--rmm-transition);
        padding: 8px;
        margin-top: 8px;
        z-index: 9999;
    }

    /* Wide panel for Rozen - fixed position, full width met 50px marge */
    .rozen-mega-panel-wide {
        position: fixed;
        top: auto;
        left: 50px;
        right: 50px;
        width: auto;
        transform: none;
    }

    .rozen-menu-item.active .rozen-mega-panel {
        opacity: 1;
        visibility: visible;
    }

    .rozen-mega-panel-inner {
        padding: 32px;
    }

    /* Rozen Panel Layout - Featured links, kleuren rechts */
    .rozen-panel-rozen {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 40px;
        align-items: start;
    }

    /* Hide the divider on desktop */
    .rozen-panel-divider {
        display: none;
    }

    /* Featured Items (Rood, Wit, Blauw) - GROOT links */
    .rozen-panel-featured {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .rozen-card-featured {
        display: flex;
        flex-direction: column;
        text-decoration: none;
        color: var(--rmm-text);
        border-radius: var(--rmm-radius);
        overflow: hidden;
        transition: var(--rmm-transition);
        background: var(--rmm-bg-hover);
        border: 2px solid transparent;
    }

    .rozen-card-featured:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
        border-color: var(--rmm-gold);
    }

    .rozen-card-featured .rozen-card-image {
        width: 100%;
        height: 200px;
        background-size: cover;
        background-position: center top;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .rozen-card-featured .rozen-card-label {
        padding: 18px;
        font-weight: 700;
        font-size: 18px;
        text-align: center;
        font-family: var(--rmm-font-heading);
        letter-spacing: 0.5px;
    }

    .rozen-card-placeholder {
        font-size: 56px;
        opacity: 0.6;
    }

    /* Color Items rechts - 4 kolommen, 2 rijen */
    .rozen-panel-colors {
        display: grid;
        grid-template-columns: repeat(4, 100px);
        grid-template-rows: repeat(2, auto);
        gap: 12px;
    }

    .rozen-color-item {
        display: flex;
        flex-direction: column;
        text-decoration: none;
        color: var(--rmm-text);
        border-radius: 10px;
        overflow: hidden;
        transition: var(--rmm-transition);
        background: var(--rmm-bg-hover);
        border: 2px solid transparent;
    }

    .rozen-color-item:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
        border-color: var(--rmm-gold);
    }

    .rozen-color-dot {
        width: 100%;
        height: 80px;
        background-size: cover;
        background-position: center top;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .rozen-color-dot-placeholder {
        font-size: 28px;
        opacity: 0.5;
    }

    .rozen-color-label {
        padding: 10px 8px;
        font-weight: 600;
        font-size: 12px;
        text-align: center;
    }

    .rozen-color-desc {
        display: none;
    }

    /* Original panel grid styles - keep for backwards compatibility */
    .rozen-panel-images {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
        min-width: 480px;
    }

    .rozen-panel-card {
        display: flex;
        flex-direction: column;
        text-decoration: none;
        color: var(--rmm-text);
        border-radius: var(--rmm-radius);
        overflow: hidden;
        transition: var(--rmm-transition);
        background: var(--rmm-bg-hover);
    }

    .rozen-panel-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    }

    .rozen-card-image {
        width: 100%;
        height: 100px;
        background-size: cover;
        background-position: center top;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }

    .rozen-card-label {
        padding: 12px;
        font-weight: 600;
        font-size: 14px;
        text-align: center;
    }

    .rozen-card-desc {
        padding: 0 12px 12px;
        font-size: 11px;
        color: var(--rmm-text-light);
        text-align: center;
        margin-top: -8px;
    }

    /* Simple List */
    .rozen-panel-list {
        display: flex;
        flex-direction: column;
        gap: 4px;
        min-width: 200px;
    }

    .rozen-panel-link {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 16px;
        text-decoration: none;
        color: var(--rmm-text);
        border-radius: 8px;
        transition: var(--rmm-transition);
    }

    .rozen-panel-link:hover {
        background: var(--rmm-cream);
    }

    .rozen-link-icon {
        font-size: 20px;
        width: 28px;
        text-align: center;
    }

    .rozen-link-label {
        font-weight: 500;
        font-size: 14px;
    }
}

/* ============================================
   Mobile Menu
   ============================================ */
@media (max-width: 991px) {
    /* Hamburger Button */
    .rozen-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 0;
        background: var(--rmm-cream);
        border: none;
        border-radius: 8px;
        cursor: pointer;
        transition: var(--rmm-transition);
    }

    .rozen-menu-toggle:hover {
        background: var(--rmm-gold);
        color: white;
    }

    .menu-text {
        display: none;
    }

    .hamburger-box {
        width: 20px;
        height: 14px;
        position: relative;
        display: flex;
        align-items: center;
    }

    .hamburger-inner,
    .hamburger-inner::before,
    .hamburger-inner::after {
        width: 20px;
        height: 2px;
        background: currentColor;
        border-radius: 2px;
        position: absolute;
        transition: var(--rmm-transition);
    }

    .hamburger-inner::before {
        content: '';
        top: -6px;
    }

    .hamburger-inner::after {
        content: '';
        top: 6px;
    }

    .rozen-menu-toggle.active .hamburger-inner {
        background: transparent;
    }

    .rozen-menu-toggle.active .hamburger-inner::before {
        top: 0;
        transform: rotate(45deg);
    }

    .rozen-menu-toggle.active .hamburger-inner::after {
        top: 0;
        transform: rotate(-45deg);
    }

    /* Menu Container */
    .rozen-menu-container {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        max-width: 360px;
        height: 100vh;
        background: var(--rmm-bg);
        z-index: 10000;
        transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        display: flex;
        flex-direction: column;
    }

    .rozen-menu-container.active {
        transform: translateX(0);
    }

    /* Mobile Header */
    .rozen-menu-mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 20px 24px;
        border-bottom: 1px solid var(--rmm-border);
        flex-shrink: 0;
    }

    .rozen-menu-title {
        font-family: var(--rmm-font-heading);
        font-size: 24px;
        font-weight: 500;
        color: var(--rmm-primary);
    }

    .rozen-menu-close {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--rmm-bg-hover);
        border: none;
        border-radius: 50%;
        font-size: 24px;
        color: var(--rmm-text);
        cursor: pointer;
        transition: var(--rmm-transition);
    }

    .rozen-menu-close:hover {
        background: var(--rmm-cream);
    }

    /* Menu List */
    .rozen-menu-main {
        list-style: none;
        margin: 0;
        padding: 16px;
        flex: 1;
    }

    .rozen-menu-item {
        border-bottom: 1px solid var(--rmm-border);
    }

    .rozen-menu-item:last-child {
        border-bottom: none;
    }

    .rozen-menu-item > a,
    .rozen-menu-trigger {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 16px 8px;
        font-size: 16px;
        font-weight: 600;
        color: var(--rmm-text);
        text-decoration: none;
        background: none;
        border: none;
        cursor: pointer;
        font-family: inherit;
    }

    .rozen-menu-arrow {
        transition: transform 0.3s ease;
    }

    .rozen-menu-item.active .rozen-menu-arrow {
        transform: rotate(180deg);
    }

    /* Mobile Mega Panel */
    .rozen-mega-panel {
        display: none;
        background: var(--rmm-bg-hover);
        margin: 0 -8px 8px;
        border-radius: var(--rmm-radius);
        overflow: hidden;
    }

    .rozen-menu-item.active .rozen-mega-panel {
        display: block;
    }

    .rozen-mega-panel-inner {
        padding: 8px;
    }

    /* Mobile Grid */
    .rozen-panel-images {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    /* Mobile Rozen Panel - verticale layout */
    .rozen-panel-rozen {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .rozen-panel-featured {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .rozen-card-featured {
        display: flex;
        flex-direction: column;
        text-decoration: none;
        color: var(--rmm-text);
        border-radius: 8px;
        overflow: hidden;
        background: var(--rmm-bg);
    }

    .rozen-card-featured .rozen-card-image {
        width: 100%;
        height: 70px;
        background-size: cover;
        background-position: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .rozen-card-featured .rozen-card-label {
        padding: 10px;
        font-weight: 600;
        font-size: 12px;
        text-align: center;
    }

    .rozen-card-placeholder {
        font-size: 24px;
        opacity: 0.6;
    }

    .rozen-panel-divider {
        display: flex;
        align-items: center;
        gap: 12px;
        color: var(--rmm-text-light);
        font-size: 10px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        padding: 4px 0;
    }

    .rozen-panel-divider::before,
    .rozen-panel-divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: var(--rmm-border);
    }

    .rozen-panel-colors {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .rozen-color-item {
        display: flex;
        flex-direction: column;
        text-decoration: none;
        color: var(--rmm-text);
        background: var(--rmm-bg);
        border-radius: 8px;
        overflow: hidden;
    }

    .rozen-color-dot {
        width: 100%;
        height: 60px;
        background-size: cover;
        background-position: center top;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .rozen-color-dot-placeholder {
        font-size: 20px;
        opacity: 0.5;
    }

    .rozen-color-label {
        padding: 10px;
        font-weight: 600;
        font-size: 12px;
        text-align: center;
    }

    .rozen-color-desc {
        display: none;
    }

    .rozen-panel-card {
        display: flex;
        flex-direction: column;
        text-decoration: none;
        color: var(--rmm-text);
        border-radius: 8px;
        overflow: hidden;
        background: var(--rmm-bg);
    }

    .rozen-card-image {
        width: 100%;
        height: 70px;
        background-size: cover;
        background-position: center top;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .rozen-card-label {
        padding: 10px 8px;
        font-weight: 600;
        font-size: 13px;
        text-align: center;
    }

    .rozen-card-desc {
        display: none;
    }

    /* Mobile List */
    .rozen-panel-list {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .rozen-panel-link {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 16px;
        text-decoration: none;
        color: var(--rmm-text);
        background: var(--rmm-bg);
        border-radius: 8px;
    }

    .rozen-link-icon {
        font-size: 20px;
        width: 28px;
        text-align: center;
    }

    .rozen-link-label {
        font-weight: 500;
        font-size: 14px;
    }

    /* Overlay */
    .rozen-menu-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9999;
        opacity: 0;
        visibility: hidden;
        transition: var(--rmm-transition);
    }

    .rozen-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

/* ============================================
   Special Styling for Rozen Categories
   ============================================ */

/* Color indicators for rose colors */
.rozen-panel-card[href*="rode-rozen"] .rozen-card-image,
.rozen-panel-card[href*="rood"] .rozen-card-image {
    background: linear-gradient(135deg, #8B0000 0%, #B22222 100%);
}

.rozen-panel-card[href*="witte-rozen"] .rozen-card-image,
.rozen-panel-card[href*="wit"] .rozen-card-image {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}

.rozen-panel-card[href*="roze"] .rozen-card-image {
    background: linear-gradient(135deg, #FFB6C1 0%, #FF69B4 100%);
}

.rozen-panel-card[href*="geel"] .rozen-card-image {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
}

.rozen-panel-card[href*="specials"] .rozen-card-image {
    background: linear-gradient(135deg, #4B0082 0%, #9400D3 50%, #00CED1 100%);
}

/* ============================================
   Animation Effects
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rozen-menu-item.active .rozen-panel-card,
.rozen-menu-item.active .rozen-panel-link {
    animation: fadeInUp 0.3s ease forwards;
}

.rozen-menu-item.active .rozen-panel-card:nth-child(1) { animation-delay: 0.05s; }
.rozen-menu-item.active .rozen-panel-card:nth-child(2) { animation-delay: 0.1s; }
.rozen-menu-item.active .rozen-panel-card:nth-child(3) { animation-delay: 0.15s; }
.rozen-menu-item.active .rozen-panel-card:nth-child(4) { animation-delay: 0.2s; }
.rozen-menu-item.active .rozen-panel-card:nth-child(5) { animation-delay: 0.25s; }

.rozen-menu-item.active .rozen-panel-link:nth-child(1) { animation-delay: 0.05s; }
.rozen-menu-item.active .rozen-panel-link:nth-child(2) { animation-delay: 0.1s; }
.rozen-menu-item.active .rozen-panel-link:nth-child(3) { animation-delay: 0.15s; }
.rozen-menu-item.active .rozen-panel-link:nth-child(4) { animation-delay: 0.2s; }
