/* =========================================================
   Header and top navigation
   Dev banner, logo, search, nav, logout
   ========================================================= */

.dev-banner {
    position: sticky;
    top: 0;
    z-index: 9999;

    background: #fbbf24;
    color: #111827;

    padding: 10px 16px;

    text-align: center;

    font-weight: 600;
    font-size: 14px;
}

.dev-banner a {
    color: #111827;
    text-decoration: underline;
    font-weight: 700;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    display: flex;
    justify-content: space-between;
    align-items: center;

    width: 100%;
    max-width: 100%;

    padding: 18px 42px;

    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(18px);

    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    overflow-x: hidden;
}

.site-logo a {
    color: white;

    text-decoration: none;

    font-size: 30px;
    font-weight: 800;
    letter-spacing: -1px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.header-search input {
    width: 240px;

    background: #0f172a;
    border: 1px solid #334155;

    color: white;

    padding: 10px 14px;
    border-radius: 10px;
}

.header-search input::placeholder {
    color: #94a3b8;
}

.site-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.site-nav a {
    color: #38bdf8;

    text-decoration: none;

    font-size: 17px;
    font-weight: bold;

    transition: 0.3s;
}

.site-nav a:hover {
    color: white;
}

.user-name {
    color: #cbd5e1;
    font-weight: 600;
}

.header-premium-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 10px 18px;

    border-radius: 999px;

    background: linear-gradient(135deg, #facc15, #eab308);

    color: #111827 !important;

    font-size: 15px;
    font-weight: 900;

    text-decoration: none;

    box-shadow:
        0 10px 24px rgba(250, 204, 21, 0.22);

    transition: 0.3s;
}

.header-premium-btn:hover {
    transform: translateY(-2px);

    box-shadow:
        0 16px 30px rgba(250, 204, 21, 0.34);

    color: #111827 !important;
}

.logout-form {
    display: inline;
    margin: 0;
}

.logout-link {
    background: none;
    border: none;

    color: #38bdf8;

    font: inherit;
    font-weight: 700;

    cursor: pointer;

    padding: 0;

    box-shadow: none;
}

.logout-link:hover {
    color: #7dd3fc;
    transform: none;
    box-shadow: none;
}

.header-pro-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 40px;
    padding: 10px 18px;

    border-radius: 999px;

    background:
        linear-gradient(135deg, #0ea5e9 0%, #38bdf8 48%, #67e8f9 100%);

    color: #02131f !important;

    font-size: 15px;
    font-weight: 900;

    text-decoration: none;
    letter-spacing: 0.02em;
    white-space: nowrap;

    border: 1px solid rgba(186, 230, 253, 0.75);

    box-shadow:
        0 0 22px rgba(56, 189, 248, 0.32),
        0 10px 28px rgba(14, 165, 233, 0.18);

    transition: 0.3s;
}

.header-pro-badge::before {
    content: "✦";
    margin-right: 7px;
    font-size: 13px;
}

.header-pro-badge:hover {
    transform: translateY(-2px);

    color: #02131f !important;

    box-shadow:
        0 0 30px rgba(56, 189, 248, 0.46),
        0 16px 34px rgba(14, 165, 233, 0.25);
}

/* ---------- Header responsive ---------- */

@media (max-width: 768px) {
    .site-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;

        padding: 22px 16px;
    }

    .site-logo a {
        font-size: 28px;
    }

    .header-right {
        width: 100%;

        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .header-search,
    .header-search input {
        width: 100%;
        max-width: 100%;
    }

    .site-nav {
        gap: 18px;
        flex-wrap: wrap;
    }

    .site-nav a {
        font-size: 18px;
    }
}