/* ===== 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);
}

.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;
}

/* 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;
}

/* Center Navigation: Mega Menu */
.site-nav {
    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;
}

.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;
}

@media (max-width: 1024px) {
    .site-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #ffffff;
        padding: 30px 24px;
        box-shadow: 0 20px 40px rgba(0,0,0,0.1);
        z-index: 1000;
        border-top: 1px solid rgba(0, 171, 228, 0.05);
        gap: 15px;
        max-height: 80vh;
        overflow-y: auto;
    }
    .site-nav.active {
        display: flex;
    }
    .site-nav.active .nav-item {
        padding: 0;
        width: 100%;
    }
    .site-nav.active .nav-link {
        font-size: 1.1rem;
        justify-content: space-between;
        width: 100%;
        padding: 10px 0;
        border-bottom: 1px solid #f3f4f6;
    }
    .site-nav.active .mega-dropdown {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        border: none;
        padding: 10px 0 10px 20px;
        min-width: 0;
        display: block !important;
        background: transparent;
        flex-direction: column;
        gap: 20px;
    }
    .mega-column h3 {
        margin-bottom: 10px;
        font-size: 0.7rem;
    }
    .mega-column a {
        padding: 8px 0;
        margin: 0;
    }
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        order: 3;
    }
    .btn-ghost, .btn-primary {
        display: none;
    }
    .mobile-nav-actions-wrapper {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-top: 24px;
        padding-top: 24px;
        border-top: 1px solid #f1f5f9;
    }
    .mobile-nav-btn {
        text-align: center;
        padding: 14px;
        border-radius: 12px;
        font-weight: 700;
        text-decoration: none;
        font-size: 1rem;
        transition: all 0.2s;
    }
    .mobile-nav-btn.ghost {
        color: #4B5563;
        background: #f3f4f6;
    }
    .mobile-nav-btn.primary {
        background: linear-gradient(135deg, #00ABE4, #008BB9);
        color: #fff;
    }
    .header-actions {
        gap: 8px;
    }
}
@media (max-width: 600px) {
    .header-actions { gap: 10px; }
    .btn-primary { padding: 8px 16px; font-size: 0.85rem; }
    .top-bar-text { font-size: 0.75rem; }
}

