/* Artricenter Header Pro - Radix Style v3.1 */

/* ============================================
   VARIABLES
   ============================================ */
:root {
    --nav-bg: #ffffff;
    --nav-text: #1e293b;
    --nav-text-hover: #0369a1;
    --nav-accent: #0369a1;
    --nav-accent-light: #f0f9ff;
    --nav-border: #e2e8f0;
    --nav-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --nav-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --nav-radius: 8px;
    --nav-transition: 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   HEADER CONTAINER
   ============================================ */
.artricenter-header-pro {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: var(--nav-bg);
    transition: var(--nav-transition);
}

/* ============================================
   LOGO SECTION
   ============================================ */
.artricenter-logo-wrapper {
    background: var(--nav-bg);
    padding: 24px 0;
    text-align: center;
    border-bottom: 1px solid var(--nav-border);
    transition: all 0.25s ease;
}

.artricenter-logo-wrapper.hidden {
    padding: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    border-bottom: none;
}

.artricenter-logo-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.artricenter-logo {
    max-width: 320px;
    width: 100%;
    height: auto;
}

/* ============================================
   NAVIGATION - RADIX STYLE
   ============================================ */
.artricenter-nav-wrapper {
    background: var(--nav-bg);
    border-bottom: 1px solid var(--nav-border);
    box-shadow: var(--nav-shadow);
}

.artricenter-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.artricenter-nav-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

/* ============================================
   MENU ITEMS - RADIX STYLE
   ============================================ */
.nav-item {
    position: relative;
}

.nav-item > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 16px;
    color: var(--nav-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1;
    border-radius: var(--nav-radius);
    transition: var(--nav-transition);
    white-space: nowrap;
    outline: none;
}

.nav-item > a:hover {
    background: var(--nav-accent-light);
    color: var(--nav-accent);
}

.nav-item > a:focus-visible {
    box-shadow: 0 0 0 2px var(--nav-accent);
}

/* ============================================
   SEPARATOR
   ============================================ */
.nav-separator {
    color: #cbd5e1;
    font-size: 14px;
    padding: 0 8px;
    user-select: none;
}

/* ============================================
   DROPDOWN - RADIX STYLE
   ============================================ */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--nav-bg);
    min-width: 200px;
    list-style: none;
    margin: 0;
    padding: 8px;
    border-radius: 12px;
    box-shadow: var(--nav-shadow-lg);
    border: 1px solid var(--nav-border);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-4px);
    transition: all 0.15s ease;
    z-index: 1000;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: var(--nav-bg);
    border-left: 1px solid var(--nav-border);
    border-top: 1px solid var(--nav-border);
    transform: translateX(-50%) rotate(45deg);
    border-radius: 2px 0 0 0;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu li a {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    color: var(--nav-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    border-radius: 8px;
    transition: var(--nav-transition);
}

.dropdown-menu li a:hover {
    background: var(--nav-accent-light);
    color: var(--nav-accent);
}

/* Show dropdown on hover */
.nav-item.has-dropdown:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ============================================
   HEADER SHRUNK STATE
   ============================================ */
.artricenter-header-pro.shrunk {
    box-shadow: var(--nav-shadow-lg);
}

.artricenter-header-pro.shrunk .nav-item > a {
    padding: 12px 14px;
}

/* ============================================
   SPACER
   ============================================ */
.artricenter-header-spacer {
    height: 0;
    transition: height 0.25s ease;
}

.artricenter-header-spacer.active {
    height: 130px;
}

.artricenter-header-spacer.shrunk {
    height: 52px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
    .artricenter-nav-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .artricenter-nav-container::-webkit-scrollbar {
        display: none;
    }
    
    .artricenter-nav-menu {
        flex-wrap: nowrap;
        justify-content: flex-start;
        min-width: max-content;
    }
}

@media (max-width: 768px) {
    .artricenter-logo {
        max-width: 240px;
    }
    
    .artricenter-logo-wrapper {
        padding: 16px 0;
    }
    
    .nav-item > a {
        padding: 12px 12px;
        font-size: 13px;
    }
    
    .nav-separator {
        padding: 0 4px;
    }
    
    .artricenter-header-spacer.active {
        height: 110px;
    }
    
    .artricenter-header-spacer.shrunk {
        height: 48px;
    }
}

@media (max-width: 480px) {
    .artricenter-logo {
        max-width: 180px;
    }
    
    .artricenter-logo-wrapper {
        padding: 12px 0;
    }
    
    .nav-item > a {
        padding: 10px 8px;
        font-size: 12px;
    }
    
    .nav-separator {
        padding: 0 2px;
        font-size: 12px;
    }
    
    .artricenter-header-spacer.active {
        height: 95px;
    }
}
