/**
 * Voice Header - Frontend Block Styles
 * Professional news website header styling
 */

/* ==========================================================================
   CSS Variables
   ========================================================================== */

:root {
    --vh-bg: #ffffff;
    --vh-bg-secondary: #f8fafc;
    --vh-bg-dark: #000000;
    --vh-bg-navy: #1a1a1a;
    --vh-border: #e5e7eb;
    --vh-border-dark: #d1d5db;
    --vh-text: #000000;
    --vh-text-secondary: #000000;
    --vh-text-muted: #6b7280;
    --vh-accent: #3b82f6;
    --vh-accent-light: #60a5fa;
    --vh-accent-dark: #2563eb;
    --vh-gold: #c9a962;
}

/* ==========================================================================
   Alert Bar
   ========================================================================== */

.voice-header__alert {
    background-color: #dc2626;
    color: #ffffff;
    padding: 10px 20px;
    text-align: center;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    width: 100%;
}

.voice-header__alert a {
    color: #ffffff;
    text-decoration: underline;
}

.voice-header__alert a:hover {
    text-decoration: none;
}

/* ==========================================================================
   Main Header Container
   ========================================================================== */

.voice-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--vh-bg);
    border-bottom: 1px solid var(--vh-border);
    transition: box-shadow 0.3s ease, backdrop-filter 0.3s ease, transform 0.3s ease;
}

/* Admin bar adjustment for sticky header */
body.admin-bar .voice-header {
    top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar .voice-header {
        top: 46px;
    }
}

.voice-header.scrolled {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
    background-color: rgba(255, 255, 255, 0.95);
}

.voice-header__container {
    max-width: var(--vh-container-width, 1600px);
    margin: 0 auto;
    padding: 0 48px;
}

/* ==========================================================================
   Top Bar
   ========================================================================== */

.voice-header__top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--vh-container-width, 1600px);
    margin: 0 auto;
    padding: 10px 48px;
    border-bottom: 1px solid var(--vh-border);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Desktop: Style the top bar with subtle background */
@media (min-width: 769px) {
    .voice-header__top-bar {
        display: flex;
        background-color: var(--vh-bg-secondary);
        border-bottom: 1px solid var(--vh-border);
        padding: 8px 48px;
    }

    .voice-header__date {
        font-size: 13px;
        font-weight: 500;
        color: var(--vh-text-secondary);
    }

    .voice-header__time {
        font-size: 12px;
        background-color: var(--vh-bg);
        color: var(--vh-text-secondary);
        padding: 4px 10px;
        border-radius: 4px;
        border: 1px solid var(--vh-border);
    }

    .voice-header__social-link {
        width: 32px;
        height: 32px;
        color: var(--vh-text-muted);
        border-radius: 6px;
    }

    .voice-header__social-link:hover {
        color: var(--vh-accent);
        background-color: var(--vh-bg);
    }
}

.voice-header__top-bar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.voice-header__top-bar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.voice-header__date {
    font-size: 13px;
    color: var(--vh-text-secondary);
    font-weight: 400;
}

.voice-header__time {
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 12px;
    color: var(--vh-text-muted);
    background-color: var(--vh-bg-secondary);
    padding: 4px 8px;
    border-radius: 4px;
}

.voice-header__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: var(--vh-text-secondary);
    background-color: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease;
    text-decoration: none;
}

.voice-header__social-link:hover {
    color: var(--vh-text);
    background-color: var(--vh-bg-secondary);
}

.voice-header__social-link:focus {
    outline: 2px solid var(--vh-accent);
    outline-offset: 2px;
}

.voice-header__social-link svg {
    width: 16px;
    height: 16px;
}

/* ==========================================================================
   Masthead
   ========================================================================== */

.voice-header__masthead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--vh-container-width, 1600px);
    margin: 0 auto;
    padding: 28px 48px;
    position: relative;
}

/* Desktop masthead - clean without heavy accent line */
@media (min-width: 769px) {
    .voice-header__masthead {
        padding: 20px 48px 18px;
    }
}

@media (min-width: 1200px) {
    .voice-header__masthead {
        padding: 24px 48px 20px;
    }
}

.voice-header__masthead-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.voice-header__masthead-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 2;
}

.voice-header__masthead-right {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex: 1;
}


/* ==========================================================================
   Weather Widget
   ========================================================================== */

.voice-header__weather {
    display: flex;
    align-items: center;
    gap: 15px;
}

.voice-header__weather-item {
    display: flex;
    align-items: baseline;
}

.voice-header__weather-icon {
    font-size: 18px;
    color: #999;
    margin-right: 2px;
    align-self: center;
}

.voice-header__weather-temp {
    font-size: 11px;
    font-weight: 600;
    color: #999;
}

.voice-header__weather-unit {
    font-size: 8px;
    font-weight: 300;
    color: #999;
    position: relative;
    top: -6px;
    margin-right: 6px;
}

.voice-header__weather-city {
    font-size: 11px;
    font-weight: 500;
    color: #999;
}

/* ==========================================================================
   Masthead Date - Greek format
   ========================================================================== */

.voice-header__masthead-date {
    font-size: 13px;
    color: #000;
    margin-top: 4px;
}

/* ==========================================================================
   Contact Link
   ========================================================================== */

.voice-header__contact-link {
    font-size: 13px;
    font-weight: 600;
    color: #000;
    text-transform: uppercase;
    text-decoration: none;
    margin-right: 20px;
}

.voice-header__contact-link:hover {
    color: var(--vh-accent, #0066cc);
}

/* ==========================================================================
   Logo
   ========================================================================== */

.voice-header__logo {
    font-family: 'Noto Serif', 'Georgia', 'Times New Roman', serif;
    font-size: 38px;
    font-weight: 700;
    color: var(--vh-text);
    text-decoration: none;
    text-align: center;
    line-height: 1.1;
    letter-spacing: -1px;
    transition: color 0.2s ease;
}

/* Enhanced logo for desktop - STATEMENT SIZE */
@media (min-width: 769px) {
    .voice-header__logo {
        font-size: 56px;
        letter-spacing: -2px;
        font-weight: 700;
    }
}

@media (min-width: 1200px) {
    .voice-header__logo {
        font-size: 80px;
        letter-spacing: -3px;
    }
}

.voice-header__logo:hover {
    color: var(--vh-text);
}

.voice-header__logo:focus {
    outline: 2px solid var(--vh-accent);
    outline-offset: 4px;
}

.voice-header__logo-dot {
    color: var(--vh-accent);
}

/* Desktop: Enhanced logo styling - navy blue for professional look */
@media (min-width: 769px) {
    .voice-header__logo {
        color: var(--vh-bg-dark);
    }

    .voice-header__logo-dot {
        color: var(--vh-accent);
    }
}

/* Logo Image Styles */
.voice-header__logo-image {
    display: block;
    max-height: 50px;
    width: auto;
    height: auto;
}

@media (min-width: 769px) {
    .voice-header__logo-image {
        max-height: 70px;
    }
}

@media (min-width: 1200px) {
    .voice-header__logo-image {
        max-height: 90px;
    }
}

/* Desktop (1024px+): Larger logo with minimum dimensions */
@media (min-width: 1024px) {
    .voice-header__logo-image {
        min-width: 670px;
        min-height: 140px;
        height: 140px;
        max-height: none;
        width: auto;
        object-fit: contain;
    }
}

/* Mobile logo image in mobile menu */
.voice-header__mobile-logo-image {
    display: block;
    max-height: 30px;
    width: auto;
    height: auto;
}

.voice-header__logo-tagline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--vh-text-muted);
}

.voice-header__logo-tagline::before,
.voice-header__logo-tagline::after {
    content: '';
    display: block;
    width: 50px;
    height: 1px;
    background-color: var(--vh-border-dark);
}

/* Enhanced tagline decorations for desktop */
@media (min-width: 769px) {
    .voice-header__logo-tagline {
        color: var(--vh-accent);
        letter-spacing: 4px;
    }

    .voice-header__logo-tagline::before,
    .voice-header__logo-tagline::after {
        width: 70px;
        background: linear-gradient(90deg, transparent, var(--vh-accent) 50%, transparent);
        height: 1px;
    }
}

.voice-header__logo-decoration {
    display: flex;
    align-items: center;
    gap: 4px;
}

.voice-header__logo-decoration-line {
    width: 60px;
    height: 2px;
    background-color: var(--vh-border);
}

.voice-header__logo-decoration-line--accent {
    background-color: var(--vh-accent);
}

/* ==========================================================================
   Search Backdrop
   ========================================================================== */

.voice-header-search-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 99;
}

.voice-header-search-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   Search Button & Dropdown
   ========================================================================== */

.voice-header__search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: var(--vh-bg);
    border: 1px solid var(--vh-border);
    border-radius: 8px;
    cursor: pointer;
    color: var(--vh-text-secondary);
    transition: all 0.2s ease;
}

.voice-header__search-btn:hover {
    border-color: var(--vh-border-dark);
    color: var(--vh-text);
    background-color: var(--vh-bg-secondary);
}

.voice-header__search-btn:focus {
    outline: 2px solid var(--vh-accent);
    outline-offset: 2px;
}

.voice-header__search-btn svg {
    width: 20px;
    height: 20px;
}

.voice-header__search-btn[aria-expanded="true"] {
    border-color: var(--vh-accent);
    color: var(--vh-accent);
}

.voice-header__search-wrapper {
    position: relative;
    padding: 5px 0px;
}

.voice-header__search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 360px;
    background-color: var(--vh-bg);
    border: 1px solid var(--vh-border);
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 100;
}

.voice-header__search-dropdown.is-open,
.voice-header__search-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.voice-header__search-form {
    display: flex;
    gap: 8px;
}

.voice-header__search-input {
    flex: 1;
    width: 100%;
    padding: 12px 16px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    color: var(--vh-text);
    background-color: var(--vh-bg-secondary);
    border: 1px solid var(--vh-border);
    border-radius: 8px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.voice-header__search-input::placeholder {
    color: var(--vh-text-muted);
}

.voice-header__search-input:focus {
    outline: none;
    border-color: var(--vh-accent);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.voice-header__search-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    background-color: var(--vh-accent);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.voice-header__search-submit:hover {
    background-color: #b91c1c;
}

.voice-header__search-submit:focus {
    outline: 2px solid var(--vh-accent);
    outline-offset: 2px;
}

/* ==========================================================================
   Mobile Menu Button
   ========================================================================== */

.voice-header__mobile-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: transparent;
    border: 1px solid var(--vh-border);
    border-radius: 8px;
    cursor: pointer;
    color: var(--vh-text);
    transition: all 0.2s ease;
}

.voice-header__mobile-menu-btn:hover {
    background-color: var(--vh-bg-secondary);
    border-color: var(--vh-border-dark);
}

.voice-header__mobile-menu-btn:focus {
    outline: 2px solid var(--vh-accent);
    outline-offset: 2px;
}

.voice-header__mobile-menu-btn svg {
    width: 24px;
    height: 24px;
}

.voice-header__mobile-menu-btn[aria-expanded="true"] .voice-header__hamburger-icon {
    display: none;
}

.voice-header__mobile-menu-btn[aria-expanded="true"] .voice-header__close-icon {
    display: block;
}

.voice-header__mobile-menu-btn .voice-header__close-icon {
    display: none;
}

/* ==========================================================================
   Navigation Columns Container - Flex No-Wrap
   ========================================================================== */

/* Navigation Wrapper - Full viewport width with borders */
.voice-header__nav-wrapper {
    position: relative;
    width: 100%;
    border-top: 1px solid #000;
    border-bottom: 3px solid #000;
    background-color: var(--vh-bg);
}

.voice-header__nav-columns {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
    background-color: var(--vh-bg);
}

/* ==========================================================================
   Navigation Menu Wrapper - Flex with Wrap
   ========================================================================== */

.voice-header__nav-menu-wrapper {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
}

/* Row break between primary and secondary menu */
.voice-header__nav-row-break {
    flex-basis: 100%;
    height: 0;
    margin: 0;
    padding: 0;
    border: none;
}

/* All nav items inline in the flex container */
/* Exact values from voicenews.gr at 929px viewport */
.voice-header__nav-menu-wrapper > a.voice-header__nav-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 5px 19px 0 0;
    padding: 0 6px;
    font-family: Roboto, sans-serif;
    font-size: 19px;
    font-weight: 800;
    color: #000000;
    text-decoration: none;
    text-transform: uppercase;
    line-height: 40px;
    transition: color 0.2s ease;
}

/* Underline hover effect using ::after pseudo-element */
.voice-header__nav-menu-wrapper > a.voice-header__nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 0;
    height: 3px;
    background-color: var(--vh-accent);
    transition: width 0.2s ease;
}

.voice-header__nav-menu-wrapper > a.voice-header__nav-item:hover::after,
.voice-header__nav-menu-wrapper > a.voice-header__nav-item--active::after,
.voice-header__nav-menu-wrapper > a.voice-header__nav-item[aria-current="page"]::after {
    width: 100%;
}

.voice-header__nav-menu-wrapper > a.voice-header__nav-item:hover {
    color: var(--vh-accent);
}

.voice-header__nav-menu-wrapper > a.voice-header__nav-item--active,
.voice-header__nav-menu-wrapper > a.voice-header__nav-item[aria-current="page"] {
    color: var(--vh-accent);
}

/* Search column - fixed right, outside menu-wrapper */

/* Mobile: Hide nav columns, show mobile menu instead */
@media (max-width: 768px) {
    .voice-header__nav-wrapper {
        display: none;
    }

    .voice-header__nav-columns {
        display: none;
    }
}

/* Tablet: Nav items use same voicenews.gr values */
@media (max-width: 1024px) and (min-width: 769px) {
    .voice-header__nav-menu-wrapper > a.voice-header__nav-item {
        margin: 0 6px 0 0;
        padding: 0 6px;
        font-size: 15px;
        font-weight: 800;
        line-height: 40px;
        text-transform: uppercase;
    }
}

/* Laptop: Nav items use same voicenews.gr values */
@media (min-width: 1025px) and (max-width: 1199px) {
    .voice-header__nav-menu-wrapper > a.voice-header__nav-item {
        margin: 0 6px 0 0;
        padding: 0 6px;
        font-size: 15px;
        font-weight: 800;
        line-height: 40px;
        text-transform: uppercase;
    }
}

/* ==========================================================================
   Nav Item Base Styles (for mobile menu compatibility)
   ========================================================================== */

a.voice-header__nav-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 14px 18px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--vh-text-secondary);
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease;
    border-radius: 4px;
}

a.voice-header__nav-item:hover {
    color: var(--vh-text);
    background-color: var(--vh-bg-secondary);
}

a.voice-header__nav-item:focus {
    outline: 2px solid var(--vh-accent);
    outline-offset: -2px;
}

a.voice-header__nav-item--active,
a.voice-header__nav-item[aria-current="page"] {
    color: var(--vh-accent);
    font-weight: 600;
}

/* Tablet: Logo sizing */
@media (min-width: 768px) and (max-width: 1024px) {
    .voice-header__logo {
        font-size: 65px;
        letter-spacing: -2.5px;
    }
}

.voice-header__nav-dropdown-toggle {
    gap: 4px;
}

.voice-header__nav-dropdown-toggle svg {
    width: 12px;
    height: 12px;
    transition: transform 0.2s ease;
}

.voice-header__nav-item:hover .voice-header__nav-dropdown-toggle svg {
    transform: rotate(180deg);
}

.voice-header__nav-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 200px;
    background-color: var(--vh-bg);
    border: 1px solid var(--vh-border);
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 50;
}

.voice-header__nav-item:hover .voice-header__nav-dropdown {
    opacity: 1;
    visibility: visible;
}

.voice-header__nav-dropdown-item {
    display: block;
    padding: 10px 16px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    color: var(--vh-text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.voice-header__nav-dropdown-item:hover {
    color: var(--vh-text);
    background-color: var(--vh-bg-secondary);
}

/* ==========================================================================
   Search Button in Nav
   ========================================================================== */

/* Search button in nav - fixed right column, aligned with first row */
.voice-header__search-wrapper--nav {
    margin: auto;
}

.voice-header__search-wrapper--nav .voice-header__search-btn {
    width: 36px;
    height: 36px;
    background-color: transparent;
    border: 1px solid var(--vh-border);
    border-radius: 6px;
}

.voice-header__search-wrapper--nav .voice-header__search-btn svg {
    width: 24px;
    height: 24px;
}

.voice-header__search-wrapper--nav .voice-header__search-btn:hover {
    background-color: var(--vh-bg-secondary);
    border-color: var(--vh-border-dark);
}

/* Tablet: Smaller search button */
@media (min-width: 769px) and (max-width: 1024px) {
    .voice-header__search-wrapper--nav .voice-header__search-btn {
        width: 32px;
        height: 32px;
    }

    .voice-header__search-wrapper--nav .voice-header__search-btn svg {
        width: 20px;
        height: 20px;
    }
}

/* ==========================================================================
   Mobile Overlay & Menu - voicenews.gr style
   ========================================================================== */

.voice-header__mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    transform: translate3d(-100%, 0, 0);
    transition: transform 0.5s cubic-bezier(0.79, 0.14, 0.15, 0.86);
    z-index: 1001;
    overflow-y: auto;
}

/* Gradient background via pseudo-element */
.voice-header__mobile-overlay::before {
    content: "";
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    opacity: 0.98;
    background: linear-gradient(to bottom, #313b45 0%, #3393b8 100%);
    z-index: -1;
}

.voice-header__mobile-overlay.is-open,
.voice-header__mobile-overlay.active,
.voice-header__mobile-overlay--open {
    transform: translate3d(0, 0, 0);
}

/* Admin bar adjustment for mobile overlay */
body.admin-bar .voice-header__mobile-overlay {
    top: 32px;
    height: calc(100% - 32px);
}


.voice-header__mobile-menu {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 100%;
    background-color: transparent;
    overflow-y: auto;
    z-index: 1002;
}

.voice-header__mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: none;
    position: relative;
}

.voice-header__mobile-menu-title {
    font-family: 'Noto Serif', 'Georgia', serif;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
}

/* Close button - voicenews.gr style (70x70px, positioned top-right) */
.voice-header__mobile-menu-close {
    position: absolute;
    right: 1px;
    top: 0;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border: none;
    border-radius: 0;
    cursor: pointer;
    color: #ffffff;
    transition: color 0.2s ease;
}

.voice-header__mobile-menu-close svg {
    width: 21px;
    height: 21px;
}

.voice-header__mobile-menu-close:hover {
    background-color: transparent;
    color: #73c7e3;
}

.voice-header__mobile-menu-close:focus {
    outline: 2px solid #73c7e3;
    outline-offset: 2px;
}

.voice-header__mobile-search {
    padding: 16px 20px;
    border-bottom: none;
}

.voice-header__mobile-search-input {
    width: 100%;
    padding: 12px 16px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    color: var(--vh-text);
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
}

.voice-header__mobile-search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.voice-header__mobile-search-input:focus {
    outline: none;
    border-color: #73c7e3;
    background-color: rgba(255, 255, 255, 0.15);
}

/* Mobile nav content area - voicenews.gr style */
.voice-header__mobile-nav {
    padding: 20px;
}

.voice-header__mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.voice-header__mobile-nav-item {
    border-bottom: none;
}

.voice-header__mobile-nav-item:last-child {
    border-bottom: none;
}

/* Mobile nav link - voicenews.gr style (21px bold white) */
.voice-header__mobile-nav-link {
    display: block;
    line-height: 21px;
    font-size: 21px;
    color: #ffffff;
    padding: 12px 30px 12px 12px;
    font-weight: bold;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    text-decoration: none;
    transition: color 0.2s ease;
}

.voice-header__mobile-nav-link:hover {
    color: #73c7e3;
    background-color: transparent;
}

.voice-header__mobile-nav-link:focus {
    outline: 2px solid #73c7e3;
    outline-offset: 2px;
}

.voice-header__mobile-nav-link--active {
    color: #73c7e3;
}

.voice-header__mobile-nav-link svg {
    width: 16px;
    height: 16px;
    color: #ffffff;
}

/* Secondary nav list - same styling as primary (unified menu appearance) */
.voice-header__mobile-nav-list--secondary {
    /* No visual separation - appears as one continuous list */
}

.voice-header__mobile-submenu {
    background-color: rgba(0, 0, 0, 0.1);
    padding: 8px 0;
    display: none;
}

.voice-header__mobile-nav-item.is-expanded .voice-header__mobile-submenu {
    display: block;
}

.voice-header__mobile-submenu-item {
    display: block;
    padding: 10px 20px 10px 36px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s ease;
}

.voice-header__mobile-submenu-item:hover {
    color: #73c7e3;
}

.voice-header__mobile-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: auto;
}

.voice-header__mobile-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.voice-header__mobile-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.voice-header__mobile-social-link:hover {
    color: #73c7e3;
    background-color: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   Responsive - 1200px
   ========================================================================== */

@media (max-width: 1200px) and (min-width: 769px) {
    .voice-header__container {
        padding: 0 32px;
    }

    .voice-header__top-bar {
        padding: 8px 32px;
    }

    .voice-header__masthead {
        padding: 16px 32px 14px;
    }

    .voice-header__nav-primary,
    .voice-header__nav-secondary {
        padding: 0 32px;
    }

    /* Keep logo prominent on tablet-desktop */
    .voice-header__logo {
        font-size: 48px;
        letter-spacing: -1.5px;
    }

    a.voice-header__nav-item {
        padding: 14px 14px;
        font-size: 13px;
    }

    .voice-header__logo-tagline::before,
    .voice-header__logo-tagline::after {
        width: 40px;
    }
}

/* ==========================================================================
   Responsive - 1024px
   ========================================================================== */

@media (max-width: 1024px) and (min-width: 769px) {
    .voice-header__top-bar {
        padding: 8px 24px;
    }

    .voice-header__masthead {
        padding: 14px 24px 12px;
    }

    .voice-header__nav-primary,
    .voice-header__nav-secondary {
        padding: 0 24px;
    }

    .voice-header__nav-primary-list {
        overflow-x: auto;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .voice-header__nav-primary-list::-webkit-scrollbar {
        display: none;
    }

    .voice-header__nav-secondary-list {
        overflow-x: auto;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .voice-header__nav-secondary-list::-webkit-scrollbar {
        display: none;
    }

    a.voice-header__nav-item {
        white-space: nowrap;
    }

    .voice-header__masthead-left,
    .voice-header__masthead-right {
        flex: 0 0 auto;
    }

    /* Keep logo prominent even at 1024px */
    .voice-header__logo {
        font-size: 42px;
        letter-spacing: -1px;
    }

    .voice-header__logo-tagline {
        font-size: 10px;
        gap: 8px;
    }

    .voice-header__logo-tagline::before,
    .voice-header__logo-tagline::after {
        width: 30px;
    }
}

/* ==========================================================================
   Responsive - 768px
   ========================================================================== */

@media (max-width: 768px) {
    .voice-header__mobile-menu-btn {
        display: inline-flex;
    }

    .voice-header__nav-primary,
    .voice-header__nav-secondary {
        display: none;
    }

    .voice-header__top-bar {
        padding: 6px 16px;
    }

    .voice-header__top-bar-left {
        gap: 8px;
    }

    .voice-header__date {
        font-size: 12px;
    }

    .voice-header__time {
        font-size: 11px;
        padding: 3px 6px;
    }

    .voice-header__social-link {
        width: 24px;
        height: 24px;
    }

    .voice-header__social-link svg {
        width: 14px;
        height: 14px;
    }

    .voice-header__masthead {
        padding: 12px 16px;
    }

    .voice-header__masthead-left {
        display: none;
    }

    .voice-header__contact-link {
        display: none;
    }

    .voice-header__masthead-center {
        flex: 1;
        align-items: flex-start;
    }

    .voice-header__masthead-right {
        gap: 8px;
    }

    .voice-header__logo {
        font-size: 26px;
        text-align: left;
    }

    .voice-header__logo-tagline {
        display: none;
    }

    .voice-header__search-btn {
        width: 40px;
        height: 40px;
    }

    .voice-header__search-dropdown {
        position: fixed;
        top: auto;
        right: 16px;
        left: 16px;
        width: auto;
        transform: none;
    }

    .voice-header__search-dropdown.is-open {
        transform: none;
    }
}

/* ==========================================================================
   Responsive - 480px
   ========================================================================== */

@media (max-width: 480px) {
    .voice-header__container {
        padding: 0 12px;
    }

    .voice-header__top-bar {
        padding: 6px 12px;
    }

    .voice-header__top-bar-right {
        gap: 4px;
    }

    .voice-header__social-link {
        width: 28px;
        height: 28px;
    }

    .voice-header__masthead {
        padding: 10px 12px;
    }

    .voice-header__logo {
        font-size: 22px;
    }

    .voice-header__search-btn,
    .voice-header__mobile-menu-btn {
        width: 36px;
        height: 36px;
    }

    .voice-header__search-btn svg,
    .voice-header__mobile-menu-btn svg {
        width: 18px;
        height: 18px;
    }

    .voice-header__mobile-menu {
        max-width: 100%;
    }

    .voice-header__mobile-menu-header {
        padding: 12px 16px;
    }

    .voice-header__mobile-search {
        padding: 12px 16px;
    }

    /* Smaller mobile: adjust link size but keep voicenews.gr style */
    .voice-header__mobile-nav-link {
        padding: 10px 24px 10px 12px;
        font-size: 18px;
        line-height: 18px;
    }

    .voice-header__mobile-submenu-item {
        padding: 8px 16px 8px 32px;
        font-size: 14px;
    }

    .voice-header__mobile-footer {
        padding: 16px;
    }

    /* Smaller close button on small screens */
    .voice-header__mobile-menu-close {
        width: 56px;
        height: 56px;
    }

    .voice-header__mobile-menu-close svg {
        width: 18px;
        height: 18px;
    }

    .voice-header__search-dropdown {
        right: 12px;
        left: 12px;
        padding: 12px;
    }

    .voice-header__search-input {
        padding: 10px 12px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .voice-header__search-submit {
        padding: 10px 12px;
    }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.voice-header--hidden {
    transform: translateY(-100%);
}

.voice-header--no-scroll {
    overflow: hidden;
}

/* Body class when mobile menu is open */
body.voice-header-menu-open {
    overflow: hidden;
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .voice-header,
    .voice-header__search-dropdown,
    .voice-header__mobile-overlay,
    .voice-header__mobile-menu,
    .voice-header__nav-dropdown,
    .voice-header__nav-item > a,
    .voice-header__social-link,
    .voice-header__search-btn,
    .voice-header__mobile-menu-btn {
        transition: none;
    }
}

/* ==========================================================================
   Sticky Header States
   ========================================================================== */

/* Fade-down animation for sticky header appearance */
@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Desktop: Condensed sticky state - only show primary nav */
/* Applies to desktop + laptop (1024px+) */
@media (min-width: 1024px) {
    .voice-header--sticky-condensed {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        animation: fadeDown 0.3s ease forwards;
    }

    body.admin-bar .voice-header--sticky-condensed {
        top: 32px;
    }

    .voice-header--sticky-condensed .voice-header__top-bar,
    .voice-header--sticky-condensed .voice-header__masthead {
        display: none;
    }

    /* Sticky header inner wrapper max-width 1440px centered */
    .voice-header--sticky-condensed .voice-header__nav-wrapper {
        max-width: 100%;
        padding: 0;
        border-top: 1px solid #000;
        border-bottom: 3px solid #000;
    }

    .voice-header--sticky-condensed .voice-header__nav-columns {
        max-width: 1440px;
        margin: 0 auto;
    }

    /* Logo in condensed state - dynamic from site name + blue dot + gr */
    .voice-header__condensed-logo {
        display: none;
        font-family: 'Noto Serif', 'Georgia', 'Times New Roman', serif;
        font-size: 32px;
        font-weight: 700;
        color: var(--vh-bg-dark);
        letter-spacing: -1.5px;
        flex-shrink: 0;
        white-space: nowrap;
    }

    .voice-header--sticky-condensed .voice-header__condensed-logo {
        display: block;
    }

    /* Blue dot in condensed logo */
    .voice-header__condensed-logo .voice-header__logo-dot {
        color: var(--vh-accent);
    }

    /* Condensed logo as image (when logo image is set) */
    /* IMPORTANT: Keep small to match text logo size - NOT the large masthead dimensions */
    .voice-header__condensed-logo-image {
        display: none;
        height: 40px;
        max-height: 40px;
        width: auto;
        max-width: 200px;
        flex-shrink: 0;
        object-fit: contain;
    }

    .voice-header--sticky-condensed .voice-header__condensed-logo-image {
        display: block;
    }

    /* Hide text logo when image is present */
    .voice-header__condensed-logo--has-image .voice-header__condensed-logo-text {
        display: none;
    }

    /* Nav items in condensed state - exact voicenews.gr values */
    .voice-header--sticky-condensed .voice-header__nav-menu-wrapper > a.voice-header__nav-item {
        margin: 0 6px 0 0;
        padding: 0 6px;
        font-size: 18px;
        font-weight: 800;
        color: #000000;
        text-transform: uppercase;
        line-height: 40px;
    }

    /* Expand button for secondary nav */
    .voice-header__nav-expand-btn {
        display: none;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        background-color: transparent;
        border: 1px solid var(--vh-border);
        border-radius: 6px;
        cursor: pointer;
        color: var(--vh-text-secondary);
        flex-shrink: 0;
        transition: all 0.2s ease, opacity 0.3s ease;
        opacity: 1;
    }

    .voice-header__nav-expand-btn:hover {
        background-color: var(--vh-bg-secondary);
        border-color: var(--vh-border-dark);
        color: var(--vh-text);
    }

    .voice-header__nav-expand-btn:focus {
        outline: 2px solid var(--vh-accent);
        outline-offset: 2px;
    }

    .voice-header__nav-expand-btn svg {
        width: 18px;
        height: 18px;
        transition: transform 0.3s ease;
    }

    /* Show expand button only in condensed state */
    .voice-header--sticky-condensed .voice-header__nav-expand-btn {
        display: inline-flex;
    }

    /* Fade toggle animation for expand button */
    .voice-header--secondary-expanded .voice-header__nav-expand-btn {
        opacity: 0.7;
    }

    .voice-header--secondary-expanded .voice-header__nav-expand-btn:hover {
        opacity: 1;
    }

    /* Rotate chevron when expanded */
    .voice-header--secondary-expanded .voice-header__nav-expand-btn svg {
        transform: rotate(180deg);
    }
}

/* Placeholder to prevent content jump when header becomes fixed */
.voice-header-placeholder {
    display: none;
}

.voice-header-placeholder--active {
    display: block;
}

/* Mobile & Tablet: Show/hide based on scroll direction */
/* Applies to devices below 1024px (mobile + tablet) */
@media (max-width: 1023px) {
    .voice-header {
        transition: transform 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease, opacity 0.3s ease;
    }

    /* Hidden state when scrolling down */
    .voice-header--sticky-hidden {
        transform: translateY(-100%);
        opacity: 0;
    }

    /* Visible sticky state when scrolling up - with fade-down animation */
    /* IMPORTANT: top: 0 !important to fix gap issue - override any inherited sticky positioning */
    .voice-header--sticky-visible {
        position: fixed !important;
        top: 0 !important;
        left: 0;
        right: 0;
        transform: translateY(0);
        opacity: 1;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
        animation: fadeDown 0.3s ease forwards;
    }

    /* Hide navigation rows when sticky on tablet/mobile - show only masthead (logo + hamburger) */
    .voice-header--sticky-visible .voice-header__nav-wrapper {
        display: none !important;
    }

    /* Show hamburger menu button when sticky on tablet (since nav is hidden) */
    .voice-header--sticky-visible .voice-header__mobile-menu-btn {
        display: inline-flex !important;
    }

    /* Admin bar adjustment for tablet sticky */
    body.admin-bar .voice-header--sticky-visible {
        top: 32px !important;
    }
}

/* Mobile-specific admin bar adjustment (smaller admin bar on mobile) */
@media (max-width: 782px) {
    body.admin-bar .voice-header--sticky-visible {
        top: 46px !important;
    }
}

/* Print styles */
@media print {
    .voice-header {
        position: relative;
        box-shadow: none;
        border-bottom: 1px solid #000;
    }

    .voice-header__top-bar,
    .voice-header__search-wrapper,
    .voice-header__mobile-menu-btn,
    .voice-header__nav-secondary {
        display: none;
    }

    .voice-header__logo {
        color: #000;
    }

    .voice-header__logo-dot {
        color: #000;
    }
}
