/* =====================================================================
   SITE HEADER (new UI) — classes prefixed "sh-" to avoid clashing with
   Bootstrap / style.css.
   ===================================================================== */

.sh-header {
    position: sticky;
    top: 0;
    z-index: 1050;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 40px;
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    border-bottom: 3px solid #e94560;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    font-family: "Poppins", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* ---------- Logo ---------- */
.sh-logo {
    flex-shrink: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.sh-logo:hover { transform: scale(1.04); }

.sh-logo img {
    height: 64px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.sh-logo span {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 1px;
    white-space: nowrap;
    background: linear-gradient(90deg, #e94560, #f5a623);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ---------- Navigation ---------- */
.sh-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sh-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 30px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.3px;
    white-space: nowrap;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sh-nav a::after {
    content: "";
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 3px;
    transform: translateX(-50%);
    border-radius: 10px;
    background: #e94560;
    transition: width 0.3s ease;
}

.sh-nav a:hover,
.sh-nav a.active {
    color: #fff;
    background: rgba(233, 69, 96, 0.18);
}

.sh-nav a:hover::after,
.sh-nav a.active::after { width: 60%; }

/* ---------- Right side: auth + hamburger ---------- */
.sh-right {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 16px;
}

.sh-auth {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sh-btn-login,
.sh-btn-register {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 28px;
    border-radius: 30px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sh-btn-login {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.25);
}

.sh-btn-login:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    transform: translateY(-2px);
}

.sh-btn-register {
    border: none;
    background: linear-gradient(135deg, #e94560, #c23152);
    box-shadow: 0 4px 18px rgba(233, 69, 96, 0.35);
}

.sh-btn-register:hover {
    color: #fff;
    background: linear-gradient(135deg, #f05470, #d63a5a);
    box-shadow: 0 8px 30px rgba(233, 69, 96, 0.5);
    transform: translateY(-2px) scale(1.03);
}

/* "My Account" dropdown for logged-in users (Bootstrap dropdown) */
.sh-auth .dropdown-menu {
    margin-top: 10px !important;
    border: none;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.sh-auth .dropdown-item.active,
.sh-auth .dropdown-item:active { background: #e94560; }

/* ---------- Hamburger ---------- */
.sh-hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    border: none;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
}

.sh-hamburger:hover { background: rgba(255, 255, 255, 0.05); }

.sh-hamburger span {
    display: block;
    width: 30px;
    height: 3px;
    border-radius: 10px;
    background: #fff;
    transform-origin: center;
    transition: all 0.3s ease;
}

.sh-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.sh-hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.sh-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
    .sh-header { padding: 0 24px; }
    .sh-nav a { font-size: 14px; padding: 8px 14px; }
    .sh-btn-login,
    .sh-btn-register { padding: 8px 20px; font-size: 14px; }
}

@media (max-width: 991px) {
    .sh-hamburger { display: flex; }

    .sh-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        gap: 6px;
        padding: 20px 30px 30px;
        background: #1a1a2e;
        border-top: 2px solid rgba(233, 69, 96, 0.3);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
        opacity: 0;
        transform: translateY(-10px);
        pointer-events: none;
        visibility: hidden;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .sh-nav.open {
        opacity: 1;
        transform: translateY(0);
        pointer-events: all;
        visibility: visible;
    }

    .sh-nav a {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 16px;
        border-radius: 12px;
    }

    .sh-nav a::after { display: none; }
}

@media (max-width: 576px) {
    .sh-header { height: 68px; padding: 0 14px; }
    .sh-logo img { height: 50px; }
    .sh-logo span { font-size: 18px; }
    .sh-right { gap: 8px; }
    .sh-auth { gap: 6px; }
    .sh-btn-login,
    .sh-btn-register { padding: 6px 12px; font-size: 12px; gap: 4px; }
    .sh-hamburger span { width: 24px; height: 2.5px; }
    .sh-hamburger { gap: 5px; padding: 6px; }
}

@media (max-width: 380px) {
    /* Icons only on very small phones so everything fits on one row */
    .sh-btn-login .sh-label,
    .sh-btn-register .sh-label { display: none; }
    .sh-btn-login,
    .sh-btn-register { padding: 8px 10px; }
}
