/* ============================================================
   STANDALONE HEADER CSS
   Prefix: hst- (Header STandalone)
   Purpose: Modern responsive header with ZERO conflicts
   
   ALL classes use hst- prefix to prevent conflicts with other CSS
   ============================================================ */

/* ===== HEADER CONTAINER ===== */
.hst-header {
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

/* Header inner wrapper */
.hst-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

/* ===== LOGO SECTION ===== */
.hst-logo {
    font-size: 28px;
    font-weight: 800;
    color: #3b82f6;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

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

.hst-logo a:hover {
    color: #2563eb;
    transform: scale(1.05);
}

.hst-logo-image {
    max-width: 60px;
    height: auto;
    display: block;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.hst-logo-image:hover {
    transform: scale(1.1);
}

/* ===== DESKTOP NAVIGATION ===== */
.hst-nav {
    display: none; /* Hidden by default, shown on desktop */
    gap: 8px;
    align-items: center;
}

.hst-nav a {
    position: relative;
    padding: 10px 18px;
    color: #1f2937;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.hst-nav a:hover {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.08);
}

.hst-nav a span {
    color: #3b82f6;
    font-weight: 700;
}

.hst-nav form {
    margin: 0;
    display: inline-block;
}

.hst-nav form a {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 8px;
}

.hst-nav form a:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

/* ===== MOBILE MENU BUTTON ===== */
.hst-menu-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    padding: 12px;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.hst-menu-button:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.hst-menu-button svg {
    stroke: #ffffff;
    width: 26px;
    height: 26px;
}

/* ===== MOBILE MENU DRAWER ===== */
.hst-mobile-menu {
    display: none !important; /* Force hidden by default - prevents flash on load */
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    z-index: 999;
    border-bottom: 3px solid #3b82f6;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* When mobile menu is shown via JavaScript */
.hst-mobile-menu.hst-show {
    display: block !important;
    opacity: 1;
    visibility: visible;
}

.hst-mobile-menu a {
    display: flex;
    align-items: center;
    padding: 18px 24px;
    color: #1f2937;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hst-mobile-menu a:hover {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.1) 0%, transparent 100%);
    color: #3b82f6;
    padding-left: 32px;
}

.hst-mobile-menu a span {
    color: #3b82f6;
    font-weight: 700;
}

.hst-mobile-menu form {
    margin: 0;
}

.hst-mobile-menu form a {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff !important;
    margin: 12px 24px;
    border-radius: 10px;
    text-align: center;
}

.hst-mobile-menu form a:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    padding-left: 24px; /* Reset hover padding */
}

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* Desktop (1024px+) */
@media (min-width: 1024px) {
    .hst-nav {
        display: flex; /* Show desktop nav */
    }
    
    .hst-menu-button {
        display: none; /* Hide mobile button */
    }
    
    .hst-mobile-menu {
        display: none !important; /* Force hide on desktop */
        opacity: 0 !important;
        visibility: hidden !important;
    }
}

/* Tablet (768-1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .hst-container {
        padding: 0 20px;
    }
    
    .hst-logo {
        font-size: 24px;
    }
    
    .hst-logo-image {
        max-width: 50px;
    }
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
    .hst-container {
        height: 70px;
        padding: 0 16px;
    }
    
    .hst-logo {
        font-size: 20px;
    }
    
    .hst-logo-image {
        max-width: 45px;
    }
    
    .hst-menu-button {
        padding: 10px;
    }
    
    .hst-menu-button svg {
        width: 24px;
        height: 24px;
    }
    
    .hst-mobile-menu {
        top: 70px;
    }
    
    .hst-mobile-menu.hst-show {
        max-height: calc(100vh - 70px);
    }
    
    .hst-mobile-menu a {
        padding: 16px 20px;
        font-size: 14px;
    }
}

/* Extra small (< 480px) */
@media (max-width: 480px) {
    .hst-container {
        padding: 0 12px;
    }
    
    .hst-logo {
        font-size: 18px;
    }
    
    .hst-logo-image {
        max-width: 40px;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .hst-header {
        position: static;
        box-shadow: none;
        border-bottom: 2px solid #e5e7eb;
    }
    
    .hst-menu-button,
    .hst-mobile-menu,
    .hst-nav form {
        display: none !important;
    }
}

/* ============================================================
   END STANDALONE HEADER CSS
   All classes prefixed with hst- for zero conflicts
   ============================================================ */
