/**
 * ExamBlaze Header Styles - FIXED VERSION
 * Modern header with new dropdown styles
 * 
 * @package ExamBlaze
 * @version 3.0
 */

/* ========================================
   TOP CONTACT BAR
   ======================================== */

.top-contact-bar {
    background: var(--primary-blue-dark);
    color: var(--text-white);
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-contact-bar .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 30px;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-white);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.contact-link:hover {
    color: var(--accent-orange);
}

.contact-link i {
    font-size: 16px;
}

.trust-badges {
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

.badge i {
    color: var(--accent-orange);
    font-size: 14px;
}

.badge-separator {
    color: rgba(255, 255, 255, 0.3);
}

/* ========================================
   MAIN HEADER
   ======================================== */

.main-header {
    background: var(--bg-white);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.main-header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.main-nav {
    padding: 0;
}

.main-nav .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 75px;
}

/* ========================================
   LOGO
   ======================================== */

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo a:hover {
    transform: scale(1.05);
}

.logo-icon {
    font-size: 32px;
    filter: drop-shadow(0 2px 4px rgba(10, 77, 255, 0.3));
}

.logo-text {
    font-family: 'Poppins', sans-serif;
    font-size: 26px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

/* ========================================
   NAVIGATION MENU
   ======================================== */

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

.nav-menu > li {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    padding: 15px 0;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--accent-orange);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-blue);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link i {
    font-size: 10px;
    transition: transform 0.3s ease;
}

/* ========================================
   DROPDOWN MENU
   ======================================== */

.nav-item-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-white);
    min-width: 220px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 12px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    list-style: none;
    margin: 0;
    border-top: 3px solid var(--accent-orange);
}

/* Wide dropdown for Online Courses and Proctored Exams */
.dropdown-menu-wide {
    min-width: 260px;
}

.nav-item-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-item-dropdown:hover .nav-link i {
    transform: rotate(180deg);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.dropdown-menu a i {
    font-size: 12px;
    color: var(--accent-orange);
    width: 16px;
}

.dropdown-menu a:hover {
    background: var(--bg-light);
    color: var(--accent-orange);
    border-left-color: var(--accent-orange);
    padding-left: 25px;
}

/* Dropdown divider */
.dropdown-divider {
    height: 1px;
    background: #E5E7EB;
    margin: 8px 0;
}

/* ========================================
   CTA BUTTON
   ======================================== */

.nav-cta {
    margin-left: 20px;
}

.nav-cta .btn {
    box-shadow: 0 4px 15px rgba(255, 122, 0, 0.3);
}

.nav-cta .btn:hover {
    box-shadow: 0 6px 20px rgba(255, 122, 0, 0.5);
}

/* ========================================
   MOBILE MENU TOGGLE
   ======================================== */

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1010;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-blue-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

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

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

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

/* ========================================
   MOBILE MENU OVERLAY
   ======================================== */

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 990;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* ========================================
   MOBILE MENU
   ======================================== */

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    max-width: 85%;
    height: 100vh;
    background: var(--bg-white);
    z-index: 1005;
    overflow-y: auto;
    transition: right 0.3s ease;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: var(--primary-blue-dark);
    color: var(--text-white);
}

.mobile-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-logo a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-white);
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 20px;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
}

.mobile-menu-close:hover {
    color: var(--accent-orange);
}

/* Mobile Navigation Menu */
.mobile-nav-menu {
    list-style: none;
    margin: 0;
    padding: 20px 0;
}

.mobile-nav-menu > li {
    border-bottom: 1px solid #E5E7EB;
}

.mobile-nav-menu > li > a {
    display: block;
    padding: 15px 20px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.mobile-nav-menu > li > a:hover {
    background: var(--bg-light);
    color: var(--accent-orange);
}

/* Mobile Dropdown */
.mobile-dropdown {
    position: relative;
}

.mobile-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    cursor: pointer;
}

.mobile-dropdown-toggle i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.mobile-dropdown.active .mobile-dropdown-toggle i {
    transform: rotate(180deg);
}

.mobile-dropdown-menu {
    display: none;
    background: var(--bg-light);
    list-style: none;
    margin: 0;
    padding: 0;
}

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

.mobile-dropdown-menu li {
    border-bottom: 1px solid #E5E7EB;
}

.mobile-dropdown-menu li:last-child {
    border-bottom: none;
}

.mobile-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px 12px 35px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.mobile-dropdown-menu a i {
    font-size: 12px;
    color: var(--accent-orange);
    width: 16px;
}

.mobile-dropdown-menu a:hover {
    background: var(--bg-white);
    color: var(--accent-orange);
}

/* Mobile Divider */
.mobile-divider {
    height: 1px;
    background: #D1D5DB;
    margin: 8px 0;
    border: none;
}

/* Mobile Menu CTA */
.mobile-menu-cta {
    padding: 20px;
    border-top: 2px solid #E5E7EB;
    border-bottom: none;
}

/* Mobile Contact */
.mobile-contact {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    background: var(--bg-light);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.mobile-contact-btn:hover {
    background: var(--accent-orange);
    color: var(--text-white);
}

.mobile-contact-btn i {
    font-size: 18px;
}

/* ========================================
   RESPONSIVE - TABLET
   ======================================== */

@media (max-width: 1024px) {
    .nav-menu {
        gap: 20px;
    }
    
    .nav-link {
        font-size: 14px;
    }
}

/* ========================================
   RESPONSIVE - MOBILE
   ======================================== */

@media (max-width: 768px) {
    /* Hide desktop menu */
    .nav-menu,
    .nav-cta {
        display: none;
    }
    
    /* Show mobile toggle */
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Hide trust badges on mobile */
    .trust-badges {
        display: none;
    }
    
    /* Stack contact bar */
    .contact-bar-content {
        justify-content: center;
    }
    
    .contact-info {
        gap: 20px;
    }
    
    /* Smaller logo on mobile */
    .logo-text {
        font-size: 22px;
    }
    
    .logo-icon {
        font-size: 28px;
    }
    
    .nav-content {
        min-height: 65px;
    }
}

/* ========================================
   RESPONSIVE - SMALL MOBILE
   ======================================== */

@media (max-width: 480px) {
    .top-contact-bar {
        font-size: 12px;
    }
    
    .contact-link span {
        display: none;
    }
    
    .contact-link i {
        font-size: 18px;
    }
    
    .mobile-menu {
        width: 100%;
        max-width: 100%;
    }
}
