/* Mega Header Styles */
.site-header {
    background: white;
    border-bottom: 2px solid #f0f0f0;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.navbar {
    padding: 16px 0;
    width: 100%;
    background: white;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 4px;
    border-radius: 8px;
}

.nav-link:hover {
    color: #0891b2;
    background: rgba(8, 145, 178, 0.1);
}

.dropdown-arrow {
    font-size: 0.75rem;
    transition: transform 0.2s;
}

.nav-dropdown {
    position: relative;
}

/* Create invisible bridge to keep dropdown open */
.nav-dropdown::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 20px;
    display: none;
}

.nav-dropdown:hover::before {
    display: block;
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Regular Dropdown */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    padding-top: 4px;
    overflow: hidden;
}

.nav-dropdown:hover .dropdown-content {
    display: block;
}

/* Keep dropdown open when hovering over content */
.dropdown-content:hover {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #4b5563;
    text-decoration: none;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background: #f3f4f6;
    color: #1a1a1a;
}

.dropdown-icon {
    font-size: 1.25rem;
}

/* Mega Dropdown */
.mega-dropdown-content {
    display: none;
    position: fixed;
    top: 64px; /* Height of navbar */
    left: 0;
    right: 0;
    background: white;
    width: 100%;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    border-bottom: 1px solid #e5e7eb;
    padding-top: 8px;
    z-index: 999;
}

.mega-dropdown:hover .mega-dropdown-content {
    display: block;
}

/* Keep dropdown open when hovering over content */
.mega-dropdown-content:hover {
    display: block;
}

.mega-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 20px;
}

.mega-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.mega-column {
    min-width: 0;
}

.mega-title {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    margin-bottom: 16px;
}

.mega-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    color: #4b5563;
    text-decoration: none;
    transition: color 0.2s;
}

.mega-item:hover {
    color: #1a1a1a;
}

.mega-icon {
    font-size: 1.5rem;
    margin-top: 2px;
}

.mega-item-title {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 2px;
}

.mega-item-desc {
    font-size: 0.875rem;
    color: #6b7280;
}

.mega-link {
    display: block;
    padding: 8px 0;
    color: #4b5563;
    text-decoration: none;
    transition: color 0.2s;
    font-size: 0.95rem;
}

.mega-link:hover {
    color: #0891b2;
}

.mega-featured {
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
}

.mega-cta {
    margin-bottom: 24px;
}

.mega-cta h3 {
    font-size: 1.125rem;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.mega-cta p {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 16px;
}

.mega-btn {
    display: inline-block;
    background: #0891b2;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.2s;
}

.mega-btn:hover {
    background: #0e7490;
}

.mega-stats {
    display: flex;
    gap: 24px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0891b2;
}

.stat-label {
    font-size: 0.75rem;
    color: #6b7280;
    text-transform: uppercase;
}

.mega-footer {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.mega-footer-link {
    color: #0891b2;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.mega-footer-link:hover {
    color: #0e7490;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: #1a1a1a;
    transition: all 0.3s;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
    display: none;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 20px;
}

.mobile-menu.active {
    display: block;
}

.mobile-link {
    display: block;
    padding: 12px 0;
    color: #4b5563;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid #e5e7eb;
}

.mobile-dropdown {
    margin: 16px 0;
}

.mobile-dropdown-btn {
    width: 100%;
    text-align: left;
    padding: 12px 0;
    background: none;
    border: none;
    border-bottom: 1px solid #e5e7eb;
    color: #4b5563;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
}

.mobile-dropdown-content {
    padding: 8px 0;
    display: none;
}

.mobile-dropdown.active .mobile-dropdown-content {
    display: block;
}

.mobile-dropdown-content a {
    display: block;
    padding: 10px 16px;
    color: #6b7280;
    text-decoration: none;
}

.mobile-dropdown-content a:hover {
    color: #1a1a1a;
    background: #f3f4f6;
}

.saved-badge {
    background: #0891b2;
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 4px;
    display: inline-block;
    min-width: 18px;
    text-align: center;
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .mega-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}