/* ===== Premium SellerCalc Header Styles ===== */

/* Top Notification Bar */
.header-top-bar {
    background: #0B1120;
    color: #f8fafc;
    text-align: center;
    padding: 10px 15px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    z-index: 1000;
    position: relative;
    border-bottom: 1px solid rgba(0, 171, 228, 0.1);
}

@media (max-width: 1024px) {
    .header-top-bar {
        display: none;
    }
}

.top-bar-text a {
    color: #00ABE4;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
    margin-left: 8px;
    transition: color 0.2s;
}

.top-bar-text a:hover {
    color: #008BB9;
}

/* Main Header Container */
.site-header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 171, 228, 0.08);
    position: sticky;
    top: 0;
    z-index: 999;
}

.site-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: padding 0.3s ease;
}

.site-header.scrolled .site-header-inner {
    padding: 10px 24px;
}

.site-header.scrolled {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    background: rgba(255, 255, 255, 0.98);
}

/* Logo Area */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #111827;
    transition: transform 0.2s ease;
}

.brand-logo:hover {
    transform: scale(1.02);
}

.brand-icon-wrapper {
    width: 38px;
    height: 38px;
    background: #ffffff;
    border-radius: 10px;
    display: grid;
    place-items: center;
    box-shadow: 0 4px 12px rgba(0, 171, 228, 0.15), inset 0 0 0 1px rgba(0, 171, 228, 0.1);
    padding: 6px;
}

.brand-icon-wrapper svg {
    width: 100%;
    height: 100%;
}

.brand-text {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #111827;
}

.brand-highlight {
    background: linear-gradient(135deg, #00ABE4, #008BB9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mobile-nav-header {
    display: none;
}

/* Center Navigation: Mega Menu */
.site-nav {
    display: flex;
    align-items: center;
}

.desktop-nav-items {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-item {
    position: relative;
    padding: 12px 0;
}

.nav-link {
    text-decoration: none;
    color: #4B5563;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}

.nav-link svg {
    width: 16px;
    height: 16px;
    color: #9CA3AF;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item:hover .nav-link {
    color: #00ABE4;
}

.nav-item:hover .nav-link svg {
    transform: rotate(180deg);
    color: #00ABE4;
}

/* Mega Dropdown Styles */
.mega-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px) scale(0.98);
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    padding: 32px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    min-width: 650px;
    display: flex;
    gap: 40px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.tools-dropdown {
    min-width: 400px;
}

.nav-item:hover .mega-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
}

.mega-column {
    flex: 1;
}

.mega-column h3 {
    font-size: 0.7rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    font-weight: 700;
    padding-left: 12px;
}

.mega-column a {
    display: flex;
    align-items: center;
    color: #374151;
    text-decoration: none;
    padding: 12px 16px;
    margin-bottom: 4px;
    border-radius: 12px;
    transition: all 0.25s ease;
}

.mega-column a:hover {
    background: #f8fafc;
    transform: translateX(4px);
}

.dropdown-item-content {
    display: flex;
    flex-direction: column;
}

.dropdown-item-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 2px;
    transition: color 0.2s;
}

.dropdown-item-desc {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 400;
    line-height: 1.4;
}

.mega-column a:hover .dropdown-item-title {
    color: #00ABE4;
}

/* Mega Menu Icons */
.dropdown-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-size: 0.75rem;
    font-weight: 800;
    margin-right: 16px;
    flex-shrink: 0;
    color: #fff;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mega-column a:hover .dropdown-icon {
    transform: scale(1.15) rotate(-5deg);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.fk-icon { background: linear-gradient(135deg, #2874f0, #1a5dc8); }
.az-icon { background: linear-gradient(135deg, #ff9900, #e68a00); }
.ms-icon { background: linear-gradient(135deg, #f43397, #d42080); }
.my-icon { background: linear-gradient(135deg, #ff3f6c, #e62e5c); }
.aj-icon { background: linear-gradient(135deg, #3d1d6e, #6b3fa0); }
.jm-icon { background: linear-gradient(135deg, #0078ad, #005f8a); }

/* Hide mobile actions on desktop */
.mobile-nav-actions-wrapper {
    display: none;
}

/* Right Actions Area */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Buttons */
.btn-ghost, .btn-primary {
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 12px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-ghost {
    color: #4B5563;
    background: transparent;
}

.btn-ghost:hover {
    color: #111827;
    background: #f3f4f6;
}

.btn-primary {
    background: linear-gradient(135deg, #00ABE4, #008BB9);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 171, 228, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #008BB9, #0077A3);
    box-shadow: 0 6px 16px rgba(0, 171, 228, 0.3);
    transform: translateY(-1px);
}

/* Responsive */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #111827;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s;
}

.mobile-menu-btn:hover {
    background: #f3f4f6;
}

/* Ultra-Clean Mobile Redesign */
@media (max-width: 1024px) {
    .header-top-bar {
        display: none !important;
    }

    .desktop-nav-items {
        display: none !important;
    }

    .site-nav {
        position: fixed;
        top: 0;
        right: -110%;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        display: flex;
        flex-direction: column;
        padding: 0;
        z-index: 2000;
        transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        overflow-y: auto;
    }

    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(15, 23, 42, 0.3);
        backdrop-filter: blur(6px);
        z-index: 1999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
    }

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

    .site-nav.active {
        right: 0;
    }

    .mobile-nav-header {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding: 16px 24px;
        background: #ffffff;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        position: sticky;
        top: 0;
        z-index: 10;
        width: 100%;
        box-sizing: border-box;
    }

    .mobile-nav-content {
        padding: 16px;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .mobile-nav-collapsible {
        border: 1px solid rgba(0, 0, 0, 0.05);
        border-radius: 16px;
        overflow: hidden;
        background: #ffffff;
        transition: all 0.3s ease;
    }

    .mobile-collapse-trigger {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 18px 20px;
        background: #ffffff;
        border: none;
        cursor: pointer;
        font-size: 0.8rem;
        font-weight: 800;
        color: #94a3b8;
        letter-spacing: 1px;
        text-align: left;
    }

    .mobile-collapse-trigger .chevron {
        width: 20px;
        height: 20px;
        transition: transform 0.3s ease;
        color: #94a3b8;
    }

    .mobile-nav-collapsible.active {
        border-color: rgba(0, 171, 228, 0.2);
        box-shadow: 0 10px 30px rgba(0, 171, 228, 0.05);
    }

    .mobile-nav-collapsible.active .mobile-collapse-trigger {
        color: #00ABE4;
    }

    .mobile-nav-collapsible.active .chevron {
        transform: rotate(180deg);
        color: #00ABE4;
    }

    .mobile-collapse-content {
        display: none;
        padding: 4px 12px 16px;
    }

    .mobile-nav-collapsible.active .mobile-collapse-content {
        display: block;
        animation: fadeInDown 0.3s ease-out;
    }

    @keyframes fadeInDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .mobile-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .mobile-item {
        display: flex;
        align-items: center;
        gap: 16px;
        padding: 14px 16px;
        background: #f8fafc;
        border-radius: 14px;
        text-decoration: none;
        transition: all 0.2s ease;
        border: 1px solid rgba(0, 0, 0, 0.02);
    }

    .mobile-item:active {
        background: #f1f5f9;
        transform: scale(0.98);
    }

    .mobile-item-name {
        font-size: 1rem;
        font-weight: 600;
        color: #1e293b;
    }

    .dropdown-icon {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        font-size: 0.8rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        margin: 0;
    }

    .mobile-nav-footer {
        margin-top: 20px;
        padding: 24px 0;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }

    .mobile-footer-link {
        display: block;
        text-align: center;
        padding: 16px;
        background: linear-gradient(135deg, #00ABE4, #008BB9);
        color: #ffffff;
        text-decoration: none;
        border-radius: 14px;
        font-weight: 700;
        font-size: 1rem;
        box-shadow: 0 10px 25px rgba(0, 171, 228, 0.2);
    }

    .mobile-close-btn {
        width: 44px;
        height: 44px;
        background: #f1f5f9;
        border-radius: 50%;
        display: grid;
        place-items: center;
        border: none;
        color: #475569;
    }

    .mobile-menu-btn {
        display: flex; /* Show the button on mobile */
        padding: 10px;
        background: #f1f5f9;
        border-radius: 12px;
        color: #00ABE4;
        border: 1px solid rgba(0, 171, 228, 0.1);
    }

    body.nav-open {
        overflow: hidden;
    }
}

@media (min-width: 1025px) {
    .mobile-nav-content {
        display: none !important;
    }
}
