/* ============================================================
   ROOT VARIABLES
   ============================================================ */
:root {
    --navy-deep:       #060d19;
    --navy-mid:        #0d2044;
    --navy-bright:     #162c4e;
    --accent-yellow:   #ffcc00;
    --accent-orange:   #ff9900;
    --accent-red:      #E8002D;
    --text-cream:      #FFF8DC;
    --text-muted:      rgba(255, 248, 220, 0.55);
    --z-header:        1000;
    --header-height:   72px;
    --container-width: 1280px;
    --radius-md:       8px;
    --space-sm:        12px;
    --space-md:        20px;
    --space-xl:        32px;
    --font-size-sm:    0.8rem;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
    background: linear-gradient(135deg, #060d19 0%, #0d2044 50%, #060d19 100%);
    border-bottom: 1.5px solid rgba(255, 204, 0, 0.25);
    border-radius: 0; /* lurus */
    margin: 0;        /* tidak melayang */
    position: sticky;
    top: 0;
    z-index: var(--z-header);
    overflow: hidden; /* hidden agar globe tidak keluar */
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.55),
        0 2px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* Hapus pointer segitiga */
.header::before {
    display: none;
}

/* Efek Globe / Network Map di kanan */
.header::after {
    content: '';
    position: absolute;
    right: -60px;
    top: 50%;
    transform: translateY(-50%);
    width: 320px;
    height: 320px;
    background:
        /* Lingkaran garis globe */
        radial-gradient(circle at center, transparent 38%, rgba(100,160,255,0.07) 39%, transparent 40%),
        radial-gradient(circle at center, transparent 55%, rgba(100,160,255,0.06) 56%, transparent 57%),
        radial-gradient(circle at center, transparent 70%, rgba(100,160,255,0.05) 71%, transparent 72%),
        radial-gradient(circle at center, transparent 85%, rgba(100,160,255,0.04) 86%, transparent 87%),
        /* Cahaya ambient tengah */
        radial-gradient(circle at center, rgba(30,80,200,0.12) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

/* ============================================================
   HEADER INNER
   ============================================================ */
.header-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
    height: var(--header-height);
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    position: relative;
    z-index: 1;
}

/* ============================================================
   LOGO
   ============================================================ */
.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-img {
    height: 52px;
    width: auto;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 6px rgba(255, 204, 0, 0.2));
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-brand {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.1;
    font-style: italic;
    letter-spacing: -0.5px;
}

.logo-jejak {
    background: linear-gradient(to right, #ffffff 0%, #ffcc00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    font-style: italic;
}

.logo-aktual {
    color: var(--accent-red);
    font-style: italic;
    font-weight: 800;
    -webkit-text-fill-color: var(--accent-red);
}

.logo-tagline {
    display: block;
    font-size: 0.48rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    background: linear-gradient(to right, #ffcc00 0%, #ffffff 60%, rgba(255,255,255,0.5) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    margin-top: 3px;
}

/* ============================================================
   NAVIGASI
   ============================================================ */
.header-nav {
    display: flex;
    flex-wrap: nowrap; /* JANGAN wrap */
    align-items: center;
    gap: 0;
    flex: 1;
    overflow: hidden;
}

.header-nav .nav-link {
    font-size: 0.72rem; /* Lebih kecil */
    font-weight: 600;
    color: var(--text-muted);
    padding: 5px 6px; /* Kurangi padding kiri-kanan */
    border-radius: var(--radius-md);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.3px; /* Kurangi letter-spacing */
    transition: color 0.25s ease, transform 0.2s ease;
    position: relative;
    white-space: nowrap;
}

.header-nav .nav-link:hover {
    color: var(--accent-yellow);
    transform: translateY(-1px);
}

.header-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-yellow);
    border-radius: 2px;
    transition: width 0.3s ease;
    transform: translateX(-50%);
}

.header-nav .nav-link:hover::after {
    width: 65%;
}

.header-nav .nav-link.active {
    background: linear-gradient(45deg, #ffcc00, #ff8800);
    color: #0a0a0a !important;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(255, 204, 0, 0.35);
}

.header-nav .nav-link.active::after {
    display: none;
}

/* ============================================================
   SEARCH
   ============================================================ */
.header-search {
    flex-shrink: 0;
    margin-left: auto;
}

.header-search form {
    display: flex;
    align-items: center;
    border: 1px solid rgba(255, 204, 0, 0.25);
    border-radius: 50px;
    background: rgba(13, 32, 68, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: border-color 0.3s, box-shadow 0.3s;
    overflow: hidden;
}

.header-search form:focus-within {
    border-color: rgba(255, 204, 0, 0.6);
    box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.1);
}

.header-search input {
    width: 0;
    padding: 0;
    font-size: var(--font-size-sm);
    background: transparent;
    color: var(--text-cream);
    border: none;
    outline: none;
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

.header-search form:focus-within input {
    width: 160px;
    padding: 0 12px;
}

.header-search input::placeholder {
    color: rgba(255, 248, 220, 0.35);
}

.search-btn {
    background: linear-gradient(45deg, #ffcc00, #ff9900);
    color: #0a0a0a;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin: 3px;
    cursor: pointer;
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.search-btn:hover {
    transform: scale(1.1) rotate(8deg);
    box-shadow: 0 4px 12px rgba(255, 204, 0, 0.4);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .header {
        margin: 0;
        border-radius: 0;
    }

    .header-nav,
    .header-search {
        display: none;
    }

    .header-inner {
        justify-content: space-between;
        padding: 0 var(--space-sm);
        gap: 0;
    }

    .logo-img {
        height: 46px;
    }

    .logo-brand {
        font-size: 1rem;
    }

    .logo-tagline {
        font-size: 0.42rem;
    }

    .header-logo .logo-text {
        transform: scale(1.6);
        transform-origin: left center;
    }
}