/**
 * Glass mega menü — varsayılan (orvix-front-hero-shell) header.
 * Nexa temasına özel değil; .front-desktop-header--glass ile çalışır.
 * theme.css sonrası yüklenir.
 */

.orvix-front-hero-shell .front-desktop-header--glass .fdh-dd__panel--mega {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    top: var(--fdh-dropdown-top, 5.5rem) !important;
    width: 100% !important;
    transform: none !important;
    z-index: 1110 !important;
}

.orvix-front-hero-shell .front-desktop-header--glass .fdh-dd__panel--mega .fdh-mega-glass-panel {
    background: rgba(34, 46, 53, 0.45) !important;
    backdrop-filter: blur(12px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(12px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 1.65rem !important;
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.38) !important;
}

/* Platform + araç — 5 sütun */
.orvix-front-hero-shell .front-desktop-header--glass .fdh-dd__panel--mega .fdh-mega-glass-panel .fdh-mega-grid--platforms {
    display: grid !important;
    flex-direction: unset !important;
    flex-wrap: unset !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.45rem !important;
    width: 100% !important;
}

@media (min-width: 768px) {
    .orvix-front-hero-shell .front-desktop-header--glass .fdh-dd__panel--mega .fdh-mega-glass-panel .fdh-mega-grid--platforms {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (min-width: 992px) {
    .orvix-front-hero-shell .front-desktop-header--glass .fdh-dd__panel--mega .fdh-mega-glass-panel .fdh-mega-grid--platforms {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    }
}

.orvix-front-hero-shell .front-desktop-header--glass .fdh-dd__panel--mega .fdh-mega-glass-panel .fdh-mega-grid--platforms > .fmh-package-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    aspect-ratio: auto !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 3.45rem !important;
    height: auto !important;
    max-height: none !important;
    padding: 0.55rem 0.62rem !important;
    gap: 0.52rem !important;
    border-radius: 0.65rem !important;
    text-align: left !important;
    background: #222e35 !important;
    border: none !important;
    box-shadow: none !important;
    transition: background 0.18s ease, transform 0.18s ease !important;
}

.orvix-front-hero-shell .front-desktop-header--glass .fdh-dd__panel--mega .fdh-mega-glass-panel .fdh-mega-grid--platforms > .fmh-package-item::before {
    display: none !important;
}

.orvix-front-hero-shell .front-desktop-header--glass .fdh-dd__panel--mega .fdh-mega-glass-panel .fdh-mega-grid--platforms > .fmh-package-item:hover {
    background: var(--fmh-item-color, var(--bs-primary)) !important;
    border: none !important;
    box-shadow: none !important;
    transform: translateY(-1px) !important;
    filter: none !important;
}

.orvix-front-hero-shell .front-desktop-header--glass .fdh-dd__panel--mega .fdh-mega-glass-panel .fdh-mega-grid--platforms > .fmh-package-item:hover .fmh-package-icon {
    background: #fff !important;
    border-color: transparent !important;
    color: var(--fmh-item-color, var(--bs-primary)) !important;
}

.orvix-front-hero-shell .front-desktop-header--glass .fdh-dd__panel--mega .fdh-mega-glass-panel .fdh-mega-grid--platforms > .fmh-package-item:hover .fmh-package-icon i {
    color: var(--fmh-item-color, var(--bs-primary)) !important;
}

.orvix-front-hero-shell .front-desktop-header--glass .fdh-dd__panel--mega .fdh-mega-glass-panel .fdh-mega-grid--platforms > .fmh-package-item:hover .fmh-package-line--platform-name,
.orvix-front-hero-shell .front-desktop-header--glass .fdh-dd__panel--mega .fdh-mega-glass-panel .fdh-mega-grid--platforms > .fmh-package-item:hover .fmh-package-line--services-suffix,
.orvix-front-hero-shell .front-desktop-header--glass .fdh-dd__panel--mega .fdh-mega-glass-panel .fdh-mega-grid--platforms > .fmh-package-item:hover .fmh-package-line--platform,
.orvix-front-hero-shell .front-desktop-header--glass .fdh-dd__panel--mega .fdh-mega-glass-panel .fdh-mega-grid--platforms > .fmh-package-item:hover .fmh-package-line--tool {
    color: #fff !important;
}

.orvix-front-hero-shell .front-desktop-header--glass .fdh-dd__panel--mega .fdh-mega-glass-panel .fdh-mega-grid--platforms .fmh-package-icon {
    flex: 0 0 auto !important;
    width: 3.2rem !important;
    height: 3.2rem !important;
    min-width: 3.2rem !important;
    min-height: 3.2rem !important;
    font-size: 1.55rem !important;
    line-height: 1 !important;
    border-radius: 0.9rem !important;
    background: var(--fmh-item-color, var(--bs-primary)) !important;
    color: #fff !important;
    border: 0 !important;
    box-shadow: none !important;
}

.orvix-front-hero-shell .front-desktop-header--glass .fdh-dd__panel--mega .fdh-mega-glass-panel .fdh-mega-grid--platforms .fmh-package-icon i {
    font-size: 1.55rem !important;
    color: #fff !important;
}

.orvix-front-hero-shell .front-desktop-header--glass .fdh-dd__panel--mega .fdh-mega-glass-panel .fdh-mega-grid--platforms .fmh-package-line--platform-name {
    font-size: 0.875rem !important;
    font-weight: 700 !important;
    text-transform: none !important;
    color: #fff !important;
}

.orvix-front-hero-shell .front-desktop-header--glass .fdh-dd__panel--mega .fdh-mega-glass-panel .fdh-mega-grid--platforms .fmh-package-text-stack--free-tool {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 0.06rem !important;
    width: auto !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
}

.orvix-front-hero-shell .front-desktop-header--glass .fdh-dd__panel--mega .fdh-mega-glass-panel .fdh-mega-grid--platforms .fmh-package-text-stack--free-tool .fmh-package-line--platform {
    font-size: 0.875rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em !important;
    line-height: 1.15 !important;
    text-align: left !important;
    text-transform: none !important;
    color: #fff !important;
}

.orvix-front-hero-shell .front-desktop-header--glass .fdh-dd__panel--mega .fdh-mega-glass-panel .fdh-mega-grid--platforms .fmh-package-text-stack--free-tool .fmh-package-line--tool {
    font-size: 0.74rem !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    text-align: left !important;
    color: rgba(255, 255, 255, 0.55) !important;
}

.orvix-front-hero-shell .front-desktop-header--glass .fdh-dd__panel--mega .fdh-mega-glass-panel .fdh-mega-grid--platforms .fmh-package-line--services-suffix {
    font-size: 0.74rem !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    text-align: left !important;
    color: rgba(255, 255, 255, 0.55) !important;
}

/* Oyunlar — max 6, dikey kart */
.orvix-front-hero-shell .front-desktop-header--glass .fdh-dd__panel--mega .fdh-mega-glass-panel .fdh-mega-grid--games {
    display: grid !important;
    flex-wrap: unset !important;
    align-items: stretch !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-auto-rows: auto !important;
    gap: 0.55rem !important;
    width: 100% !important;
}

@media (min-width: 576px) {
    .orvix-front-hero-shell .front-desktop-header--glass .fdh-dd__panel--mega .fdh-mega-glass-panel .fdh-mega-grid--games {
        grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    }
}

.orvix-front-hero-shell .front-desktop-header--glass .fdh-dd__panel--mega .fdh-mega-glass-panel .fdh-mega-grid--games > .fmh-package-item--epin-cover {
    display: block !important;
    position: relative !important;
    isolation: isolate;
    flex: unset !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: 4 / 5.25 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #222e35 !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0.65rem !important;
}

.orvix-front-hero-shell .front-desktop-header--glass .fdh-dd__panel--mega .fdh-mega-glass-panel .fdh-mega-grid--games > .fmh-package-item--epin-cover::before {
    display: none !important;
}

.orvix-front-hero-shell .front-desktop-header--glass .fdh-dd__panel--mega .fdh-mega-glass-panel .fdh-mega-grid--games .fmh-package-epin-cover-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.orvix-front-hero-shell .front-desktop-header--glass .fdh-dd__panel--mega .fdh-mega-glass-panel .fdh-mega-grid--games .fmh-package-epin-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Oyun — altta buzlu şerit + isim + ok */
.orvix-front-hero-shell .front-desktop-header--glass .fdh-dd__panel--mega .fdh-mega-glass-panel .fdh-mega-grid--games .fmh-package-name--epin-overlay {
    display: none !important;
}

.orvix-front-hero-shell .front-desktop-header--glass .fdh-dd__panel--mega .fdh-mega-glass-panel .fdh-mega-grid--games .fdh-mega-game-foot {
    position: absolute;
    left: 0.38rem;
    right: 0.38rem;
    bottom: 0.38rem;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem;
    min-height: 1.85rem;
    padding: 0.38rem 0.52rem;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.06) !important;
    backdrop-filter: blur(2px) saturate(0.82) !important;
    -webkit-backdrop-filter: blur(2px) saturate(0.82) !important;
    border: none !important;
    border-radius: 999px !important;
    box-shadow: none !important;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .orvix-front-hero-shell .front-desktop-header--glass .fdh-dd__panel--mega .fdh-mega-glass-panel .fdh-mega-grid--games .fdh-mega-game-foot {
        background: rgba(16, 22, 20, 0.88) !important;
    }
}

.orvix-front-hero-shell .front-desktop-header--glass .fdh-dd__panel--mega .fdh-mega-glass-panel .fdh-mega-grid--games .fdh-mega-game-foot__name {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    height: 1.35rem;
    font-size: 0.64rem;
    font-weight: 700;
    line-height: 1.35rem;
    letter-spacing: 0.01em;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.orvix-front-hero-shell .front-desktop-header--glass .fdh-dd__panel--mega .fdh-mega-glass-panel .fdh-mega-grid--games .fdh-mega-game-foot__go {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: transparent;
    color: #fff;
    font-size: 0.78rem;
    line-height: 1;
    box-shadow: none;
}

.orvix-front-hero-shell .front-desktop-header--glass .fdh-dd__panel--mega .fdh-mega-glass-panel .fdh-mega-grid--games .fdh-mega-game-foot__go i {
    display: block;
    line-height: 1;
}


/* Kurumsal — 4 sütun */
.orvix-front-hero-shell .front-desktop-header--glass .fdh-dd__panel--mega .fdh-mega-glass-panel .fdh-mega-pages {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.45rem !important;
}

@media (min-width: 768px) {
    .orvix-front-hero-shell .front-desktop-header--glass .fdh-dd__panel--mega .fdh-mega-glass-panel .fdh-mega-pages {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

.orvix-front-hero-shell .front-desktop-header--glass .fdh-dd__panel--mega .fdh-mega-glass-panel .fdh-mega-pages .fmh-page-item {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: none !important;
    padding: 0.5rem 0.55rem !important;
    gap: 0.38rem !important;
}

.orvix-front-hero-shell .front-desktop-header--glass .fdh-dd__panel--mega .fdh-mega-glass-panel .fdh-mega-pages .fmh-page-icon {
    width: 2.35rem !important;
    height: 2.35rem !important;
    min-width: 2.35rem !important;
    min-height: 2.35rem !important;
    font-size: 1.05rem !important;
}

.orvix-front-hero-shell .front-desktop-header--glass .fdh-dd__panel--mega .fdh-mega-glass-panel .fdh-mega-pages .fmh-page-text {
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
}

.orvix-front-hero-shell .front-desktop-header--glass .fdh-dd__panel--mega .fdh-mega-glass-panel .fdh-mega-pages .fmh-page-icon {
    background: var(--bs-primary) !important;
    border: 0 !important;
    color: #fff !important;
}

.orvix-front-hero-shell .front-desktop-header--glass .fdh-dd__panel--mega .fdh-mega-glass-panel .fdh-mega-pages .fmh-page-icon i {
    color: #fff !important;
}

.orvix-front-hero-shell .front-desktop-header--glass .fdh-dd__panel--mega .fdh-mega-glass-panel .fdh-mega-pages .fmh-page-text,
.orvix-front-hero-shell .front-desktop-header--glass .fdh-dd__panel--mega .fdh-mega-glass-panel .fdh-mega-pages .fmh-page-line--platform,
.orvix-front-hero-shell .front-desktop-header--glass .fdh-dd__panel--mega .fdh-mega-glass-panel .fdh-mega-pages .fmh-page-line--tool {
    color: rgba(255, 255, 255, 0.92) !important;
}

.orvix-front-hero-shell .front-desktop-header--glass .fdh-dd__panel--mega .fdh-mega-glass-panel .fdh-mega-pages .fmh-page-item:hover {
    background: var(--bs-primary) !important;
    border-color: transparent !important;
}

.orvix-front-hero-shell .front-desktop-header--glass .fdh-dd__panel--mega .fdh-mega-glass-panel .fdh-mega-pages .fmh-page-item:hover .fmh-page-icon {
    background: #fff !important;
    color: var(--bs-primary) !important;
}

.orvix-front-hero-shell .front-desktop-header--glass .fdh-dd__panel--mega .fdh-mega-glass-panel .fdh-mega-pages .fmh-page-item:hover .fmh-page-icon i {
    color: var(--bs-primary) !important;
}

.orvix-front-hero-shell .front-desktop-header--glass .fdh-dd__panel--mega .fdh-mega-glass-panel .fdh-mega-pages .fmh-page-item:hover .fmh-page-text,
.orvix-front-hero-shell .front-desktop-header--glass .fdh-dd__panel--mega .fdh-mega-glass-panel .fdh-mega-pages .fmh-page-item:hover .fmh-page-line--platform,
.orvix-front-hero-shell .front-desktop-header--glass .fdh-dd__panel--mega .fdh-mega-glass-panel .fdh-mega-pages .fmh-page-item:hover .fmh-page-line--tool {
    color: #fff !important;
}

/* Mega alt link — beyaz metin (glass header + mega panel) */
.orvix-front-hero-shell .front-desktop-header--glass .fdh-mega-foot__link,
.orvix-front-hero-shell .front-desktop-header--glass .fdh-mega-foot__link span,
.orvix-front-hero-shell .front-desktop-header--glass .fdh-mega-foot__link:hover,
.orvix-front-hero-shell .front-desktop-header--glass .fdh-mega-foot__link:focus-visible,
.fdh-mega-glass-panel .fdh-mega-foot__link,
.fdh-mega-glass-panel .fdh-mega-foot__link span,
.fdh-mega-glass-panel .fdh-mega-foot__link:hover,
.fdh-mega-glass-panel .fdh-mega-foot__link:focus-visible {
    color: #fff !important;
}

/* Alt ok — primary */
.orvix-front-hero-shell .front-desktop-header--glass .fdh-mega-foot__go {
    width: 1.5rem !important;
    height: 1.5rem !important;
    font-size: 0.82rem !important;
    background: transparent !important;
    border: 1px solid var(--bs-primary, var(--orvix-home-bridge-primary, #25d665)) !important;
    color: var(--bs-primary, var(--orvix-home-bridge-primary, #25d665)) !important;
    box-shadow: none !important;
}
