/* ============================================================
   E-BIYAHEro — SHARED HEADER STYLES
   Used by index.html and registration.html
   ============================================================ */

:root {
    --primary-yellow: #ffcc00;
    --nav-blue: #101f3b;
}

/* ---------- HEADER (FIXED / STICKY ON SCROLL) ---------- */
.main-header {
    background-color: var(--nav-blue);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;          /* Fixed to viewport */
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;            /* Stays above all content */
    width: 100%;
    font-family: 'Inter', sans-serif;
    transition: box-shadow 0.3s ease;
}

.main-header .logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

.main-header .logo-img {
    height: 42px;
    width: auto;
    border-radius: 6px;
    object-fit: contain;
    background-color: white;
    padding: 2px 4px;
}

/* ---------- LOGO TEXT (stacked, right side of logo) ---------- */
.main-header .logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.15;
}

.main-header .logo-text .logo-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.2px;
}

.main-header .logo-text .logo-subtitle {
    color: var(--primary-yellow);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ---------- NAV ACTION BUTTONS (uniform across pages) ---------- */
.main-header .nav-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.main-header .btn {
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid transparent;
    min-width: 110px;
    justify-content: center;
    font-family: 'Inter', sans-serif;
}

.main-header .btn-login {
    background-color: transparent;
    color: white;
    border: 1px solid white;
}

/* Hover: yellow outline + subtle yellow glow (works on the inactive button) */
.main-header .btn-login:hover {
    border-color: var(--primary-yellow);
    color: var(--primary-yellow);
    background-color: rgba(255, 204, 0, 0.08);
    box-shadow: 0 0 0 1px var(--primary-yellow);
}

.main-header .btn-register {
    background-color: transparent;
    color: white;
    border: 1px solid white;
}

/* Hover: yellow outline + subtle yellow glow (works on the inactive button) */
.main-header .btn-register:hover {
    border-color: var(--primary-yellow);
    color: var(--primary-yellow);
    background-color: rgba(255, 204, 0, 0.08);
    box-shadow: 0 0 0 1px var(--primary-yellow);
}

/* Active yellow state — solid yellow fill */
.main-header .btn-login.active,
.main-header .btn-register.active {
    background-color: var(--primary-yellow) !important;
    color: var(--nav-blue) !important;
    border-color: var(--primary-yellow) !important;
    box-shadow: none;
}

/* On the active button, hover keeps the solid yellow state (no change) */
.main-header .btn-login.active:hover,
.main-header .btn-register.active:hover {
    background-color: var(--primary-yellow) !important;
    color: var(--nav-blue) !important;
    border-color: var(--primary-yellow) !important;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 600px) {
    .main-header {
        padding: 15px 20px;
    }
    .main-header .btn-register {
        display: none;
    }
    .main-header .logo-img {
        height: 34px;
    }
    .main-header .logo-text .logo-title {
        font-size: 15px;
    }
    .main-header .logo-text .logo-subtitle {
        font-size: 9px;
    }
}