/* ========== NAVIGATION COMPONENT ========== */
/* Unified navigation styles - included on all pages */

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }

/* ========== HEADER / NAV ========== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 8px;
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.03em;
    text-decoration: none;
    flex-shrink: 0;
}
.logo span { color: var(--primary-light); }

/* Desktop nav */
.nav-main {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
    justify-content: center;
}

/* Dropdown trigger */
.nav-dropdown {
    position: relative;
}
.nav-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.875rem;
    color: var(--text-mid);
    background: none;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    font-family: 'DM Sans', sans-serif;
    white-space: nowrap;
}
.nav-dropdown-btn:hover,
.nav-dropdown:hover .nav-dropdown-btn {
    color: var(--text);
    background: var(--surface-hover);
}
.nav-dropdown-btn svg {
    width: 14px;
    height: 14px;
    transition: transform 0.2s;
    flex-shrink: 0;
}
.nav-dropdown:hover .nav-dropdown-btn svg {
    transform: rotate(180deg);
}

/* Dropdown panel */
.nav-dropdown-panel {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 8px;
    min-width: 220px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.5);
    z-index: 100;
}
.nav-dropdown:hover .nav-dropdown-panel {
    display: block;
}
.nav-dropdown-panel a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-mid);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.15s;
}
.nav-dropdown-panel a:hover {
    color: var(--text);
    background: var(--surface-hover);
}
.nav-dropdown-panel a.active {
    color: var(--primary-bright);
    background: rgba(124, 58, 237, 0.1);
}
.nav-dropdown-panel a .ddicon {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

/* Simple nav links */
.nav-link {
    font-size: 0.875rem;
    color: var(--text-mid);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s;
    font-weight: 500;
    white-space: nowrap;
}
.nav-link:hover { color: var(--text); background: var(--surface-hover); }
.nav-link.active { color: var(--primary-bright); background: rgba(124, 58, 237, 0.1); }

.nav-sep { width: 1px; height: 18px; background: var(--border); margin: 0 4px; flex-shrink: 0; }

/* Hamburger button */
.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 12px 13px;
    border-radius: 8px;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
.nav-toggle:hover { border-color: var(--border-light); background: var(--surface-hover); }
.nav-toggle-icon { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.25s; position: relative; }
.nav-toggle-icon::before,
.nav-toggle-icon::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.25s;
    left: 0;
}
.nav-toggle-icon::before { top: -6px; }
.nav-toggle-icon::after { top: 6px; }
/* Open state */
.nav-toggle.is-open .nav-toggle-icon { background: transparent; }
.nav-toggle.is-open .nav-toggle-icon::before { transform: rotate(45deg); top: 0; }
.nav-toggle.is-open .nav-toggle-icon::after { transform: rotate(-45deg); top: 0; }

/* ========== MOBILE MENU ========== */
.mobile-menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    z-index: 999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-top: 1px solid var(--border);
}
.mobile-menu.is-open { display: block; }

.mobile-menu-inner { padding: 16px 20px 40px; }

.mobile-section {
    margin-bottom: 8px;
}
.mobile-section-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
    padding: 12px 12px 8px;
}
.mobile-section-links { display: flex; flex-direction: column; gap: 2px; }
.mobile-section-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-mid);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.15s;
}
.mobile-section-links a:hover,
.mobile-section-links a:active {
    color: var(--text);
    background: var(--surface-hover);
}
.mobile-section-links a.active {
    color: var(--primary-bright);
    background: rgba(124, 58, 237, 0.1);
}
.mobile-section-links a .micon {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}
.mobile-divider {
    height: 1px;
    background: var(--border);
    margin: 8px 12px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
    .nav-main { display: none; }
    .nav-toggle { display: flex; }
}

/* Body lock when menu is open */
body.menu-open {
    overflow: hidden;
}

/* ========== COMPLIANCE NOTICE (DGCCRF) ========== */
/* Displayed before results on each comparator page */
.compliance-notice {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    align-items: flex-start;
}
.compliance-notice-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
    flex: 1 1 220px;
}
.compliance-notice-icon {
    font-size: 0.85rem;
    flex-shrink: 0;
    margin-top: 2px;
    opacity: 0.7;
}
.compliance-notice-text {
    font-size: 0.78rem;
    color: var(--text-dim, #8888a0);
    line-height: 1.5;
}
.compliance-notice-text strong {
    color: var(--text-mid, #b0b0c5);
    font-weight: 600;
}
.compliance-notice-text a {
    color: var(--text-dim, #8888a0);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.compliance-notice-text a:hover {
    color: var(--text-mid, #b0b0c5);
}
@media (max-width: 600px) {
    .compliance-notice {
        padding: 12px 14px;
        gap: 8px;
    }
    .compliance-notice-item {
        flex: 1 1 100%;
    }
}