/* ==========================================================================
   Olympiacos site chrome: the striped header, the nav bar, the language
   switcher and the mobile drawer. Olympiacos is the only brand with chrome;
   this file is linked only when its header partial renders.
   ========================================================================== */

/* ── Header top: red + CSS vertical stripes + centered logo ─────────────── */
.olympiacos-header-top {
    height: 107px;
    box-sizing: border-box;
    padding-top: 8px;
    background-color: #DC0D15;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.olympiacos-header-stripes {
    flex: 1;
    display: flex;
    align-self: stretch;
    overflow: hidden;
}

.olympiacos-header-stripes--left {
    flex-direction: row-reverse;
}

.olympiacos-header-stripes--right {
    flex-direction: row;
}

.olympiacos-header-stripes span {
    display: block;
    flex-shrink: 0;
    width: 50px;
    height: 100%;
}

.olympiacos-header-stripes--left span:nth-child(odd),
.olympiacos-header-stripes--right span:nth-child(odd) {
    background-color: rgba(255, 255, 255, 0.9);
}

.olympiacos-header-logo-link {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 0 64px;
}

.olympiacos-header-logo {
    height: 72px;
    width: auto;
    display: block;
}

.olympiacos-nav-logo-mobile {
    display: none;
}

/* ── Nav bar ────────────────────────────────────────────────────────────── */
.olympiacos-main-nav {
    background-color: transparent;
    --olympiacos-nav-left-gutter: max(30px, calc(50vw - 620px));
    --olympiacos-nav-right-edge: max(30px, calc(50vw - 613px));
}

.olympiacos-main-nav__inner {
    position: relative;
    height: 44px;
    background-color: #DC0D15;
    padding-bottom: 0;
    border-bottom: 3px solid #AD0006;
    overflow: visible !important;
    display: flex;
    align-items: center;
}

.olympiacos-main-nav__inner a,
.olympiacos-main-nav__inner a:hover,
.olympiacos-main-nav__inner a:active,
.olympiacos-main-nav__inner a:visited {
    font-family: 'AvertaPE', Arial, sans-serif;
}

/* Empty logo anchor kept for layout compatibility */
.olympiacos-main-nav__logo {
    padding-left: 16px;
    padding-right: 0;
    display: flex;
    align-items: center;
    height: 44px;
    width: 0 !important;
    min-width: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

/* ── Social icons in nav bar ────────────────────────────────────────────── */
.olympiacos-nav-social {
    display: flex;
    align-items: center;
    gap: 3px;
    padding-left: var(--olympiacos-nav-left-gutter);
}

.olympiacos-nav-social__item {
    display: flex;
    flex-shrink: 0;
    text-decoration: none;
}

.olympiacos-nav-social__item:hover {
    opacity: 0.85;
}

/* ── Nav links: Tickets / Log in ────────────────────────────────────────── */
.olympiacos-nav-links {
    display: flex;
    align-items: center;
    margin-left: auto;
    gap: 20px;
    height: 44px;
}

.olympiacos-nav-link,
.olympiacos-nav-link:visited,
.olympiacos-nav-link:active {
    color: #FFFFFF;
    text-decoration: none;
    font-family: 'AvertaPE', Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.01em;
    white-space: nowrap;
    padding: 0 4px;
    height: 44px;
    display: flex;
    align-items: center;
    border-bottom: 2px solid transparent;
}

.olympiacos-nav-link:hover {
    color: #FFFFFF;
    text-decoration: none;
    border-bottom-color: #FFFFFF;
}

.olympiacos-nav-link--active {
    border-bottom: 2px solid #FFFFFF !important;
    text-decoration: none !important;
}

/* ── Powered by more.com ────────────────────────────────────────────────── */
.olympiacos-powered-by-anchor {
    margin-left: 40px;
    margin-right: 20px;
    display: flex;
    align-items: center;
    height: 44px;
}

.olympiacos-powered-by-logo {
    display: block;
    height: 22px;
    width: auto;
}

/* ── Language switcher: flag-only button + EL/EN dropdown ───────────────── */
.olympiacos-lang-settings {
    display: flex;
    align-items: center;
    height: 44px;
    padding-right: var(--olympiacos-nav-right-edge);
    flex-shrink: 0;
    position: relative;
}

.olympiacos-lang-switcher {
    position: relative;
}

.olympiacos-lang-switcher__btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.2);
    border: none;
    border-radius: 100px;
    cursor: pointer;
    padding: 4px 10px 4px 6px;
    outline: none;
    height: 32px;
    color: #FFFFFF;
    line-height: 1;
}

.olympiacos-lang-switcher__btn:hover {
    background: rgba(0, 0, 0, 0.3);
}

.olympiacos-lang-switcher__btn:focus,
.olympiacos-lang-switcher__btn:focus-visible {
    outline: none;
    box-shadow: none;
    border: none;
}

.olympiacos-lang-flag {
    display: block;
    width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
    background-size: cover !important;
    background-position: center !important;
    flex-shrink: 0;
}

.olympiacos-lang-chevron {
    display: block;
    transition: transform 0.15s ease;
    flex-shrink: 0;
}

.olympiacos-lang-switcher__btn[aria-expanded="true"] .olympiacos-lang-chevron {
    transform: rotate(180deg);
}

.olympiacos-lang-switcher__menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: #b00a11;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    min-width: 50px;
    z-index: 9000;
    overflow: hidden;
}

.olympiacos-lang-switcher__menu--open {
    display: block;
}

.olympiacos-lang-option {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px 14px;
    color: #222222;
    text-decoration: none;
    font-family: 'AvertaPE', Arial, sans-serif;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    outline: none;
}

.olympiacos-lang-option:hover {
    background-color: rgba(255, 255, 255, 0.15);
    text-decoration: none;
}

.olympiacos-lang-option--active {
    outline-offset: -2px;
    border-radius: 3px;
}

/* ── Mobile hamburger ───────────────────────────────────────────────────── */
.olympiacos-main-nav__drawer {
    display: none;
    margin-left: auto;
}

.olympiacos-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    height: 44px;
    text-decoration: none;
    color: white;
}

.olympiacos-menu-btn:visited,
.olympiacos-menu-btn:active,
.olympiacos-menu-btn:hover {
    color: white;
}

.olympiacos-drawer-icon {
    display: block;
    width: 24px;
    height: 24px;
}

.olympiacos-drawer-icon--close {
    display: none !important;
}

.olympiacos-drawer--active .olympiacos-drawer-icon--open {
    display: block !important;
}

.olympiacos-drawer--active .olympiacos-drawer-icon--close {
    display: none !important;
}

/* ── Custom mobile drawer panel ─────────────────────────────────────────── */
.olympiacos-drawer-panel {
    display: none;
}

.olympiacos-drawer-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99; /* intentionally below the drawer and header/burger — they must remain clickable */
}

.olympiacos-drawer-backdrop--open {
    display: block;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 991px) {
    .olympiacos-powered-by-anchor {
        display: none !important;
    }

    .olympiacos-nav-social {
        display: none !important;
    }

    .olympiacos-nav-links {
        display: none !important;
    }

    /* Thin gradient stripe bar — matches Ticketing.Web mobile header */
    .olympiacos-header-top {
        height: 28px;
        box-sizing: content-box;
        padding-top: 0;
        background-color: #DC0D15;
        background-image: linear-gradient(90deg,
            rgba(255,255,255,0.9)  0%,    rgba(255,255,255,0.9)  6%,
            transparent            6%,    transparent           13.43%,
            rgba(255,255,255,0.9) 13.43%, rgba(255,255,255,0.9) 19.43%,
            transparent           19.43%, transparent           26.86%,
            rgba(255,255,255,0.9) 26.86%, rgba(255,255,255,0.9) 32.86%,
            transparent           32.86%, transparent           40.29%,
            rgba(255,255,255,0.9) 40.29%, rgba(255,255,255,0.9) 46.29%,
            transparent           46.29%, transparent           53.71%,
            rgba(255,255,255,0.9) 53.71%, rgba(255,255,255,0.9) 59.71%,
            transparent           59.71%, transparent           67.14%,
            rgba(255,255,255,0.9) 67.14%, rgba(255,255,255,0.9) 73.14%,
            transparent           73.14%, transparent           80.57%,
            rgba(255,255,255,0.9) 80.57%, rgba(255,255,255,0.9) 86.57%,
            transparent           86.57%, transparent           94%,
            rgba(255,255,255,0.9) 94%,    rgba(255,255,255,0.9) 100%
        );
        background-size: 100% 23px;
        background-position: 0 5px;
        background-repeat: no-repeat;
        align-items: center;
        justify-content: flex-start;
        position: static;
    }

    /* Hide span-based stripes and desktop logo */
    .olympiacos-header-stripes {
        display: none;
    }

    .olympiacos-header-logo-link {
        display: none;
    }

    /* Nav bar: 70px, flex row */
    .olympiacos-main-nav__inner {
        height: 70px;
        display: flex;
        align-items: center;
        position: relative;
        padding-right: 0;
    }

    /* Burger: order 1 (leftmost) */
    .olympiacos-main-nav__drawer {
        display: block;
        order: 1;
        flex: 0 0 auto;
        margin-left: 0;
    }

    /* Mobile logo: order 2 (center) */
    .olympiacos-main-nav__logo {
        order: 2;
        flex: 1 1 0;
        display: flex !important;
        align-items: center;
        justify-content: center;
        height: 70px;
        width: auto !important;
        min-width: 0 !important;
        overflow: visible !important;
        padding: 0 !important;
        text-decoration: none;
    }

    .olympiacos-nav-logo-mobile {
        display: block;
        height: 46px;
        width: auto;
        max-width: 180px;
        object-fit: contain;
        flex-shrink: 0;
        transform: translateY(-8px);
    }

    /* Language selector: order 3 (rightmost) */
    .olympiacos-lang-settings {
        order: 3;
        flex: 0 0 auto;
        margin-left: auto;
    }

    .olympiacos-drawer-panel--open {
        display: block;
        position: fixed;
        top: 98px; /* 28px stripe + 70px nav bar */
        left: 0;
        width: 260px;
        bottom: 0;
        z-index: 9999;
        background-color: #DC0D15;
        overflow-y: auto;
        box-shadow: 4px 0 12px rgba(0, 0, 0, 0.25);
    }

    .olympiacos-drawer-panel__link,
    .olympiacos-drawer-panel__link:visited {
        display: block;
        color: #FFFFFF;
        font-family: 'AvertaPE', Arial, sans-serif;
        font-size: 16px;
        font-weight: 600;
        padding: 16px 20px;
        text-decoration: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        width: 100%;
        box-sizing: border-box;
    }

    .olympiacos-drawer-panel__link:active {
        color: #FFFFFF;
        text-decoration: underline;
    }

    .olympiacos-drawer-panel__link--active {
        border-left: 3px solid #FFFFFF;
        padding-left: 17px;
    }

    .olympiacos-drawer-panel__social {
        display: flex;
        flex-wrap: nowrap;
        justify-content: space-between;
        padding: 16px 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }
}
