/*
 * Header CSS
 * 
 * Contains styles for:
 * 1. Top Bar
 * 2. Main Branding Area
 * 3. Navigation Menu
 * 4. Breaking News Ticker
 * 5. Animations (Live Pulse)
 */

/* =========================================
   1. TOP BAR
   ========================================= */
.hnp-topbar {
    border-bottom: 1px solid #444;
    font-size: 0.85rem;
}

.hnp-top-menu li {
    display: inline-block;
    margin-left: 15px;
}

.hnp-top-menu a {
    color: #ccc;
    text-decoration: none;
}

.hnp-top-menu a:hover {
    color: var(--hnp-white);
}

/* =========================================
   2. BRANDING HEAD (Logo & Ad)
   ========================================= */
.hnp-branding {
    border-bottom: 1px solid var(--hnp-light-gray);
}

.site-title a {
    color: var(--hnp-red);
    font-family: var(--font-heading);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 2.5rem;
    line-height: 1;
}

/* Fallback Ad Styling */
.header-ad-widget {
    min-height: 90px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* =========================================
   3. NAVIGATION BAR
   ========================================= */
.hnp-navbar {
    background-color: var(--hnp-red);
    /* News Red Background */
    padding: 0;
    /* Remove default padding for tight fit */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.hnp-navbar .navbar-nav .nav-link {
    color: var(--hnp-white) !important;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    padding: 16px 18px !important;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.2s ease;
}

.hnp-navbar .navbar-nav .nav-link:first-child {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.hnp-navbar .navbar-nav .nav-link:hover,
.hnp-navbar .navbar-nav .nav-link:focus,
.hnp-navbar .navbar-nav .current-menu-item .nav-link {
    background-color: var(--hnp-red-dark);
    color: #ffffff;
}

/* Dropdown specific */
.hnp-navbar .dropdown-menu {
    background-color: var(--hnp-black);
    border: none;
    border-top: 3px solid var(--hnp-red-dark);
    border-radius: 0;
    margin-top: 0;
}

.hnp-navbar .dropdown-item {
    color: #e0e0e0;
    padding: 8px 15px;
    font-size: 0.9rem;
}

.hnp-navbar .dropdown-item:hover {
    background-color: #222;
    color: var(--hnp-white);
}

/* =========================================
   4. LIVE BUTTON
   ========================================= */
.hnp-live-btn {
    text-decoration: none;
    background-color: rgba(255, 255, 255, 0.15);
    padding: 8px 15px;
    border-radius: 4px;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
}

/* The Pulsating Dot Animation Logic
   Scale up and fade out to create a 'radar' effect */
.live-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #fff;
    border-radius: 50%;
    animation: hnp-pulse 1.5s infinite;
}

@keyframes hnp-pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.pulsate {
    animation: hnp-btn-pulse 2s infinite;
}

@keyframes hnp-btn-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

/* =========================================
   5. BREAKING NEWS TICKER
   ========================================= */
.hnp-ticker {
    font-size: 0.9rem;
    position: relative;
    z-index: 900;
}

.hnp-ticker-title {
    position: relative;
    min-width: 140px;
    text-align: center;
    background: var(--hnp-yellow) !important;
    /* Urgent Yellow */
    color: var(--hnp-black) !important;
}

/* CSS Triangle for Style */
.triangle-right {
    position: absolute;
    right: -20px;
    top: 0;
    width: 0;
    height: 0;
    border-top: 38px solid var(--hnp-yellow);
    /* Matches height */
    border-right: 20px solid transparent;
}

/* Marquee Text Styling */
.hnp-ticker-content marquee {
    margin-bottom: -5px;
    /* Fix vertical align issue with marquee */
    font-weight: 500;
    letter-spacing: 0.5px;
}