/* =========================================
   HEADER STYLES: Nav bar, Hero Graphic
   ========================================= */

/* Top Navigation Bar (The thin top strip) */
.top-nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to right, #242c33, #384552);
    height: 40px;
    padding: 0 30px;
    border-bottom: 1px solid #111;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #90a4ae;
}

.top-left-links {
    display: flex;
    gap: 12px;
    align-items: center;
}

.top-social-link {
    color: #64748b;
    display: flex;
    align-items: center;
    transition: color 0.1s;
    text-decoration: none;
}

.top-social-link:hover {
    color: #fff;
}

.top-profile-wrap {
    display: flex;
    align-items: center;
}

.top-profile-btn {
    background: var(--accent-orange);
    border: 1px solid #303b46;
    border-radius: 4px;
    color: #fff;
    width: 28px;
    height: 28px;
    /* Reduced from 32px for more buffer in the 40px top bar */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.top-profile-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    filter: brightness(1.1);
}

.top-profile-btn svg {
    display: block;
}

/* Banner Area Replica */
.mezzoblue-header {
    position: relative;
    width: 100%;
    height: 108px;
    background: #cbdcf0;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* The big orange-red gradient slab */
.mezzoblue-header::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 108px;
    background: linear-gradient(135deg, #ff8c4f 0%, #fc5a25 40%, #ea3b10 100%);
    z-index: 1;
}

/* Abstract Circle Geometry */
.mezzoblue-header .geo-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 108px;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

/* Thin white/light line below orange */
.mezzoblue-header .divider-line {
    position: absolute;
    left: 0;
    top: 108px;
    width: 100%;
    height: 3px;
    background: #ffffff;
    z-index: 2;
}

.mezzoblue-header .logo-block {
    position: absolute;
    right: 45.5px;
    top: 15px;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1;
}

.mezzoblue-header .logo-text {
    font-family: 'Arial', sans-serif;
    font-size: 70.5px;
    color: #ffffff;
    letter-spacing: -5.25px;
    /* Subtly scale it horizontally if needed to match the slightly wider look */
    transform: scaleX(1.05);
    transform-origin: right;
}

.logo-kern {
    margin-right: 4px;
}

.logo-kern-ts {
    margin-right: 2px;
}

.mezzoblue-header .issn-text {
    font-family: 'Verdana', sans-serif;
    font-size: 13.5px;
    color: #ffffff;
    letter-spacing: 1.5px;
    margin-top: -6px;
    margin-right: 0;
}

.mezzoblue-header .header-social-links {
    position: absolute;
    left: 36.5px;
    bottom: 15px;
    /* Aligns with the bottom of the issn-text on the right */
    z-index: 4;
    display: flex;
    gap: 16px;
    align-items: center;
}

.header-social-link {
    color: #ffffff;
    opacity: 0.8;
    display: flex;
    align-items: center;
    transition: opacity 0.2s, transform 0.2s;
    text-decoration: none;
}

.header-social-link:hover {
    opacity: 1;
    transform: translateY(-1px);
}

/* Grid lines in the background */
.mezzoblue-header .grid-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 108px;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.15) 1.5px, transparent 1.5px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.15) 1.5px, transparent 1.5px);
    background-size: 30px 30px;
    background-position: center bottom;
    z-index: 1;
    mix-blend-mode: overlay;
}

/* vertical subtle red lines overlapping */
.mezzoblue-header .vertical-bars {
    position: absolute;
    top: 0;
    right: 375px;
    width: 375px;
    height: 108px;
    background: linear-gradient(90deg, transparent 60px, rgba(255, 0, 0, 0.1) 60px, rgba(255, 0, 0, 0.1) 90px, transparent 90px, transparent 180px, rgba(255, 0, 0, 0.1) 180px, rgba(255, 0, 0, 0.1) 225px);
    z-index: 1;
    mix-blend-mode: multiply;
}

/* Classic Navigation Tabs */
.banner-navigation {
    display: flex;
    gap: 4px;
    padding-left: 30px;
    margin-top: 15px;
}

.nav-tab {
    padding: 10px 18px 8px 18px;
    background: #e9f0f6;
    color: #557799;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    border: none;
    margin-bottom: -15px;
    /* Pull it down to overlap the controls section */
    position: relative;
    z-index: 5;
    transition: all 0.2s;
    font-family: var(--font-sys);
}

.nav-tab:hover {
    background: #ffffff;
    color: #ff5722;
}

.nav-tab.active {
    background: #ffffff;
    color: #333333;
    padding-top: 8px;
    border-top: 3px solid #ff5722;
}