/* ===================================================
   HEADER STYLES - Berita Modern Pro
   =================================================== */

/* ===== TOP BAR ===== */
.top-bar {
    background: #0f172a;
    color: #cbd5e1;
    font-size: 12px;
    padding: 6px 0;
    letter-spacing: 0.02em;
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.top-bar-left { display: flex; align-items: center; gap: 16px; }
.top-bar-left span { display: flex; align-items: center; gap: 4px; }
.top-bar-right { display: flex; align-items: center; gap: 12px; }
.top-bar-right a { color: #94a3b8; transition: color 0.2s; }
.top-bar-right a:hover { color: #fff; }

/* ===== HEADER ===== */
.header {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s;
}
.header.scrolled { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05); }
.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    gap: 20px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.logo img {
    height: 42px;
    width: auto;
}
.logo-icon {
    width: 42px; height: 42px;
    background: #DC2626;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 900;
    font-size: 20px;
    letter-spacing: -0.5px;
}
.logo-text {
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.5px;
    line-height: 1;
    font-family: 'Inter', sans-serif;
}
.logo-text span { color: #DC2626; }
.logo-tagline {
    font-size: 10px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 500;
    margin-top: 1px;
}

/* Header Search */
.header-search {
    flex: 1;
    max-width: 420px;
    position: relative;
}
.header-search input {
    width: 100%;
    padding: 10px 16px 10px 42px;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    font-size: 14px;
    font-family: inherit;
    background: #F8F9FA;
    color: #1e293b;
    transition: all 0.3s;
    outline: none;
}
.header-search input:focus {
    border-color: #DC2626;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(220,38,38,0.08);
}
.header-search .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 18px;
    pointer-events: none;
}

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 6px; }
.header-btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all 0.2s;
    position: relative;
    font-size: 20px;
}
.header-btn:hover { background: #F8F9FA; color: #DC2626; }
.header-btn .badge {
    position: absolute;
    top: 4px; right: 4px;
    width: 8px; height: 8px;
    background: #DC2626;
    border-radius: 50%;
    border: 2px solid #ffffff;
}
.mobile-menu-btn { display: none; }

/* ===== NAVIGATION ===== */
.nav-bar {
    background: #ffffff;
    border-bottom: 3px solid #DC2626;
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
}
.nav-menu {
    display: flex;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.nav-menu::-webkit-scrollbar { display: none; }
.nav-menu > li > a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 12px 16px;
    font-size: 13.5px;
    font-weight: 600;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    position: relative;
    transition: color 0.2s;
}
.nav-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 16px; right: 16px;
    height: 3px;
    background: #DC2626;
    transform: scaleX(0);
    transition: transform 0.25s ease;
}
.nav-menu > li > a:hover { color: #DC2626; }
.nav-menu > li > a:hover::after,
.nav-menu > li > a.current-menu-item::after { transform: scaleX(1); }
.nav-menu > li > a.current-menu-item { color: #DC2626; }
.nav-menu > li > a .iconify { font-size: 14px; }

/* ===== BREAKING NEWS TICKER ===== */
.breaking-news {
    background: #DC2626;
    color: white;
    padding: 8px 0;
    overflow: hidden;
}
.breaking-inner { display: flex; align-items: center; gap: 16px; }
.breaking-label {
    flex-shrink: 0;
    background: white;
    color: #DC2626;
    padding: 3px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 5px;
    animation: pulse-label 2s infinite;
}
@keyframes pulse-label { 0%,100%{opacity:1;} 50%{opacity:0.7;} }
.breaking-ticker { overflow: hidden; flex: 1; position: relative; }
.breaking-ticker::before, .breaking-ticker::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 40px;
    z-index: 2;
    pointer-events: none;
}
.breaking-ticker::before { left: 0; background: linear-gradient(to right, #DC2626, transparent); }
.breaking-ticker::after { right: 0; background: linear-gradient(to left, #DC2626, transparent); }
.ticker-track {
    display: flex;
    animation: ticker-scroll 40s linear infinite;
    gap: 60px;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-item { white-space: nowrap; font-size: 13.5px; font-weight: 500; flex-shrink: 0; }
.ticker-item a { color: white; }
.ticker-item a:hover { text-decoration: underline; }
.ticker-sep { color: rgba(255,255,255,0.4); flex-shrink: 0; }
@keyframes ticker-scroll { 0%{transform:translateX(0);} 100%{transform:translateX(-50%);} }

/* ===== HERO CARD ===== */
.hero-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #0f172a;
    cursor: pointer;
}
.hero-card-img {
    width: 100%;
    aspect-ratio: 16/8;
    object-fit: cover;
    opacity: 0.7;
    transition: opacity 0.5s, transform 0.5s;
}
.hero-card:hover .hero-card-img { opacity: 0.5; transform: scale(1.03); }
.hero-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 32px;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #DC2626;
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
    width: fit-content;
}
.hero-card h2 {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 28px;
    font-weight: 900;
    color: white;
    line-height: 1.3;
    margin-bottom: 10px;
    transition: color 0.2s;
}
.hero-card:hover h2 { color: #fca5a5; }
.hero-card p {
    color: rgba(255,255,255,0.7);
    font-size: 14.5px;
    line-height: 1.6;
    max-width: 600px;
    margin-bottom: 14px;
}
.hero-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12.5px;
    color: rgba(255,255,255,0.5);
}
.hero-meta span { display: flex; align-items: center; gap: 4px; }
.hero-meta .author-name { color: rgba(255,255,255,0.8); font-weight: 600; }

/* ===== RESPONSIVE HEADER ===== */
@media (max-width: 768px) {
    .top-bar { display: none; }
    .header-search { display: none; }
    .nav-bar { display: none; }
    .mobile-menu-btn { display: flex; }
    .hero-card-overlay { padding: 20px; }
    .hero-card h2 { font-size: 20px; }
    .hero-card p { font-size: 13px; display: none; }
    .hero-card-img { aspect-ratio: 16/10; }
}