/* ============================================
   THE OPEN ALBAYAN TIMES - HEADER
   ============================================
   Cream header with:
   - MOEHE logo
   - Newspaper title + subtitle
   - Login button
   - Hamburger toggle (mobile only)
   ============================================ */

/* ==========================================
   1. HEADER WRAPPER
   ========================================== */

.site-header {
    background-color: var(--color-cream);
    border-bottom: 1px solid var(--color-gray-light);
    padding: 18px 0;
    position: relative;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

/* ==========================================
   2. BRAND (Logo + Title)
   ========================================== */

.header-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    flex-shrink: 0;
}

/* MOEHE logo beside the title */
.header-logo {
    height: 60px;
    width: auto;
    flex-shrink: 0;
    display: block;
    border-radius: 0;
}

.header-title {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.header-title-main {
    font-family: var(--font-heading);
    font-size: 30px;
    color: var(--color-navy);
    line-height: 1;
    letter-spacing: -0.5px;
}

.header-title-sub {
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 800;
    color: var(--color-orange);
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

/* ==========================================
   3. HEADER ACTIONS (Login + Hamburger)
   ========================================== */

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.btn-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 26px;
    background-color: var(--color-orange);
    color: var(--color-navy);
    border: 1px solid var(--color-orange);
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 100px;
    text-decoration: none;
}

.btn-login:hover {
    background-color: var(--color-yellow);
    border-color: var(--color-yellow);
    transform: translateY(-1px);
}

/* ==========================================
   4. HAMBURGER TOGGLE (mobile only)
   ========================================== */

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background-color: var(--color-navy);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background-color: var(--color-white);
    border-radius: var(--radius-full);
    transition: all 0.25s ease;
    transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-toggle:hover {
    background-color: var(--color-orange);
}

/* ==========================================
   5. RESPONSIVE
   ========================================== */

@media (max-width: 1100px) {
    .nav-toggle {
        display: flex;
    }
}

@media (max-width: 900px) {
    .site-header {
        padding: 14px 0;
    }

    .header-logo {
        height: 50px;
    }

    .header-title-main {
        font-size: 24px;
    }

    .header-title-sub {
        font-size: 9px;
        letter-spacing: 2px;
    }
}

@media (max-width: 640px) {
    .site-header {
        padding: 12px 0;
    }

    .site-header .container {
        gap: 12px;
    }

    .header-brand {
        gap: 10px;
    }

    .header-logo {
        height: 42px;
    }

    .header-title-main {
        font-size: 19px;
    }

    .header-title-sub {
        font-size: 8px;
        letter-spacing: 1.8px;
    }

    .header-actions {
        gap: 8px;
    }

    .btn-login {
        padding: 10px 18px;
        min-width: auto;
        font-size: 12px;
    }

    .nav-toggle {
        width: 40px;
        height: 40px;
    }

    .nav-toggle span {
        width: 18px;
    }
}

@media (max-width: 400px) {
    .header-title-main {
        font-size: 16px;
    }

    .header-title-sub {
        font-size: 7px;
        letter-spacing: 1.5px;
    }

    .header-logo {
        height: 36px;
    }

    .btn-login {
        padding: 9px 14px;
        font-size: 11px;
    }
}
/* ==========================================
   BREAKING NEWS STRIP
   ========================================== */

#breaking-strip {
    display: block;
}

.breaking-strip-inner {
    background: linear-gradient(90deg, #C74040 0%, #E85555 100%);
    color: var(--color-white);
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

/* Animated shimmer background */
.breaking-strip-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    animation: breaking-shimmer 3s infinite;
}

@keyframes breaking-shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.breaking-dot {
    width: 10px;
    height: 10px;
    background-color: var(--color-white);
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
    z-index: 1;
}

.breaking-dot::before {
    content: '';
    position: absolute;
    inset: -4px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    animation: breaking-pulse 1.5s ease-in-out infinite;
}

@keyframes breaking-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.8); opacity: 0; }
}

.breaking-label {
    display: inline-block;
    padding: 3px 10px;
    background-color: var(--color-navy);
    color: var(--color-white);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: var(--radius-full);
    flex-shrink: 0;
    z-index: 1;
}

.breaking-message {
    color: var(--color-white);
    font-weight: 700;
    z-index: 1;
}

.breaking-link {
    color: var(--color-white);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.8px;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 0.2s ease;
    z-index: 1;
    white-space: nowrap;
}

.breaking-link:hover {
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 640px) {
    .breaking-strip-inner {
        font-size: 12px;
        padding: 10px 16px;
        gap: 8px;
    }

    .breaking-label {
        font-size: 9px;
        padding: 2px 8px;
    }

    .breaking-link {
        font-size: 11px;
    }
}
/* ==========================================
   WIDE HEADER: Albayan logo first, ministry logo on the right
   ========================================== */

.site-header .container,
.main-navigation .nav-links-desktop {
    max-width: 1440px;
}

.site-header .container {
    flex-wrap: nowrap;
}

.header-title-main {
    font-size: 38px;
}

.header-title-sub {
    font-size: 11px;
}

.header-ministry-logo {
    height: 54px;
    width: auto;
    display: block;
}

@media (max-width: 1024px) {
    .header-title-main { font-size: 30px; }
    .header-ministry-logo { height: 44px; }
}

@media (max-width: 640px) {
    .header-ministry-logo { display: none; }
    .header-title-main { font-size: 24px; }
    .header-title-sub { font-size: 8px; letter-spacing: 1.5px; }
}
