/**
 * DiziFragman.tr - Header CSS Bundle
 * Generated: 2026-01-24
 * Extracted from header.php inline styles
 */

:root {
    --primary: #e50914;
    --primary-dark: #b8070f;
    --dark: #1a1a2e;
    --darker: #16213e;
    --text: #212529;
    --text-light: #6c757d;
    --bg: #f9f9f9;
    --white: #fff;
    --transition: 0.3s ease;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --radius: 12px;
    --color-primary: #0d6efd;
}

/* Icon fontlarda FOIT kaynaklı kaymayı azaltmak için swap kullan. */
@font-face {
    font-family: "Font Awesome 6 Free";
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/webfonts/fa-solid-900.woff2") format("woff2");
}

@font-face {
    font-family: "Font Awesome 6 Free";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/webfonts/fa-regular-400.woff2") format("woff2");
}

@font-face {
    font-family: "Font Awesome 6 Brands";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/webfonts/fa-brands-400.woff2") format("woff2");
}

body {
    background: var(--bg);
    font-family: 'Segoe UI', system-ui, sans-serif;
    margin: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

.card-img-wrap img,
.slider-img,
.featured-img,
.thumbnail-img {
    aspect-ratio: 16/9;
    width: 100%;
    height: auto;
    object-fit: cover;
    background-color: #f0f0f0;
}

iframe[src*="youtube"],
lite-youtube {
    aspect-ratio: 16/9;
    width: 100%;
    height: auto;
}

.embed-16x9 {
    aspect-ratio: 16/9;
    width: 100%;
}

.embed-16x9 iframe {
    width: 100%;
    height: 100%;
    display: block;
}

/* Üçüncü parti consent iframe'inin akışı itmesini engelle (overlay davranışı). */
iframe[src*="fundingchoicesmessages.google.com"] {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    z-index: 2147483646 !important;
}

@media (max-width: 991.98px) {
    iframe[src*="fundingchoicesmessages.google.com"] {
        top: auto !important;
        max-height: min(60vh, 320px) !important;
    }
}

.top-bar {
    background: linear-gradient(135deg, var(--dark) 0%, var(--darker) 100%);
    padding: 8px 0;
    font-size: 0.85rem;
}

.top-bar a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.top-bar a:hover {
    color: #fff;
}

.top-social a {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-left: 8px;
    transition: var(--transition);
}

.top-social a:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.main-navbar {
    background: var(--white);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1020;
    transition: var(--transition);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.main-navbar .container {
    gap: 14px;
    flex-wrap: nowrap;
}

.main-navbar .container > .d-flex {
    min-width: 0;
    flex-wrap: nowrap;
}

.main-navbar.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
}

.navbar-brand {
    flex: 0 0 auto;
    min-width: 0;
}

.navbar-brand img {
    height: 50px;
    transition: var(--transition);
    width: auto;
    max-width: 215px;
    object-fit: contain;
}

.navbar-brand .brand-logo {
    display: block;
    height: 50px;
    width: auto;
    max-width: 215px;
    flex: 0 0 auto;
}

.nav-link {
    color: var(--text) !important;
    font-weight: 500;
    padding: 10px 10px !important;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--primary) !important;
    background: rgba(229, 9, 20, 0.05);
}

.nav-link i {
    margin-right: 4px;
    opacity: 0.7;
}

.search-box {
    position: relative;
    width: 280px;
    min-width: 220px;
    flex: 0 1 280px;
    transition: var(--transition);
}

.search-box:focus-within {
    width: 320px;
}

.search-input {
    width: 100%;
    height: 44px;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    padding: 0 50px 0 20px;
    font-size: 0.9rem;
    transition: var(--transition);
    background: #f8f9fa;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(229, 9, 20, 0.1);
}

.search-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: none;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover {
    background: var(--primary-dark);
}

#aramaOnerileriKutusu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 1050;
    margin-top: 8px;
    overflow: hidden;
    display: none;
}

#aramaOnerileriKutusu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#aramaOnerileriKutusu li {
    border-bottom: 1px solid #f8f9fa;
}

#aramaOnerileriKutusu a {
    display: flex !important;
    align-items: center !important;
    padding: 10px 15px !important;
    color: #333;
}

#aramaOnerileriKutusu a:hover,
#aramaOnerileriKutusu a:focus,
#aramaOnerileriKutusu a.is-active,
#aramaOnerileriKutusu a[aria-selected="true"] {
    background-color: #f8f9fa;
    outline: none;
}

#aramaOnerileriKutusu img {
    width: 45px !important;
    height: 65px !important;
    object-fit: cover !important;
    border-radius: 6px !important;
    margin-right: 12px !important;
}

.mega-dropdown {
    position: relative;
}

.mega-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 400px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1050;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.mega-dropdown:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 10px;
    transition: var(--transition);
}

.mega-item:hover {
    background: #f8f9fa;
}

.mega-item i {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), #ff6b6b);
    color: var(--white);
    border-radius: 10px;
    margin-right: 12px;
    font-size: 16px;
}

.mega-item span {
    font-weight: 500;
    color: var(--text);
}

.notification-btn {
    position: relative;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border: none;
    border-radius: 50%;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.notification-wrapper {
    position: relative;
}

.notification-btn:hover {
    background: #e9ecef;
    color: var(--primary);
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    background: var(--primary);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

.notification-badge.is-empty {
    display: none !important;
}

.notification-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 360px;
    background: var(--white);
    border: 1px solid #e9ecef;
    border-radius: 14px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1250;
}

.notification-panel.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notification-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 14px 10px;
    border-bottom: 1px solid #f1f3f5;
}

.notification-panel-header strong {
    display: block;
    font-size: 14px;
    color: var(--text);
}

.notification-panel-header small {
    display: block;
    color: var(--text-light);
    font-size: 11px;
    margin-top: 1px;
}

.notification-panel-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.notification-action-btn {
    border: 1px solid #dee2e6;
    background: #fff;
    color: var(--text);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    padding: 6px 10px;
    line-height: 1;
}

.notification-action-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.notification-action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.notification-action-link {
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

.notification-panel-list {
    max-height: 410px;
    overflow-y: auto;
    padding: 8px;
}

.notification-item {
    display: flex;
    gap: 10px;
    border-radius: 10px;
    padding: 10px;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.notification-item:hover {
    background: #f8f9fa;
}

.notification-item.unread {
    background: rgba(229, 9, 20, 0.07);
}

.notification-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d0d7de;
    margin-top: 6px;
    flex-shrink: 0;
}

.notification-item.unread .notification-dot {
    background: var(--primary);
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.12);
}

.notification-item-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.notification-item-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.35;
}

.notification-item-text {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.35;
}

.notification-item-time {
    font-size: 11px;
    color: #8a94a6;
}

.notification-empty {
    text-align: center;
    color: var(--text-light);
    padding: 22px 10px;
    font-size: 13px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.notification-empty i {
    font-size: 18px;
    color: #adb5bd;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.yan-reklam {
    position: fixed;
    top: 140px;
    width: 160px;
    height: 600px;
    z-index: 100;
    contain: strict;
}

/* Reklam container'larında iframe geç yüklenirken layout kaymasını sınırlamak için izolasyon. */
.ad-container,
.ad-in-list,
[id^="ad-"] {
    contain: layout paint style;
}

.ad-slot {
    display: block;
    overflow: hidden;
}

.ad-slot--728x90 {
    min-height: 90px;
}

.ad-slot--300x600 {
    min-height: 600px;
}

.ad-slot--300x250 {
    min-height: 250px;
}

.ad-slot--320x100 {
    min-height: 100px;
}

.watch-hero-mobile-ad {
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    contain: layout paint style;
}

.watch-hero-mobile-ad .adsbygoogle {
    display: inline-block !important;
    width: min(320px, 100%) !important;
    min-height: 100px !important;
}

.sol-reklam {
    left: 50%;
    margin-left: -825px;
}

.sag-reklam {
    left: 50%;
    margin-left: 665px;
}

@media screen and (max-width:1680px) {
    .yan-reklam {
        display: none !important;
    }
}

lite-youtube {
    background-color: #000;
    position: relative;
    display: block;
    contain: content;
    background-position: center;
    background-size: cover;
    cursor: pointer;
    aspect-ratio: 16/9;
}

lite-youtube::after {
    content: "";
    display: block;
    padding-bottom: 56.25%;
}

lite-youtube>iframe {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border: 0;
}

lite-youtube>.lty-playbtn {
    display: block;
    width: 68px;
    height: 48px;
    position: absolute;
    cursor: pointer;
    transform: translate3d(-50%, -50%, 0);
    top: 50%;
    left: 50%;
    z-index: 1;
    background-color: transparent;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 68 48"><path d="M66.52 7.74c-.78-2.93-2.49-5.41-5.42-6.19C55.79.13 34 0 34 0S12.21.13 6.9 1.55c-2.93.78-4.63 3.26-5.42 6.19C.06 13.05 0 24 0 24s.06 10.95 1.48 16.26c.78 2.93 2.49 5.41 5.42 6.19C12.21 47.87 34 48 34 48s21.79-.13 27.1-1.55c2.93-.78 4.64-3.26 5.42-6.19C67.94 34.95 68 24 68 24s-.06-10.95-1.48-16.26z" fill="red"/><path d="M45 24 27 14v20" fill="white"/></svg>');
    filter: grayscale(100%);
    transition: filter .1s;
    border: 0;
}

lite-youtube:hover>.lty-playbtn {
    filter: none;
}

lite-youtube.lyt-activated {
    cursor: unset;
}

lite-youtube.lyt-activated::before,
lite-youtube.lyt-activated>.lty-playbtn {
    opacity: 0;
    pointer-events: none;
}

.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    min-height: 56px;
    background: var(--white);
    border-bottom: 1px solid #e0e0e0;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    z-index: 1030;
}

.mobile-header>a {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
    flex: 0 1 auto;
}

.mobile-header img {
    display: block;
    width: auto;
    height: auto;
    max-height: 40px;
    max-width: min(220px, calc(100vw - 144px));
    object-fit: contain;
}

.mobile-header .brand-logo {
    display: block;
    width: auto;
    height: 38px;
    max-width: min(220px, calc(100vw - 144px));
    flex: 0 0 auto;
}

.mobile-search-btn {
    width: 42px;
    height: 42px;
    background: #f1f3f5;
    border: none;
    border-radius: 50%;
    color: var(--text-light);
    font-size: 16px;
}

.mobile-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.mobile-notification-btn {
    position: relative;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f1f3f5;
    border: none;
    border-radius: 50%;
    color: var(--text-light);
    font-size: 16px;
}

.mobile-spacer {
    display: none;
    height: calc(66px + env(safe-area-inset-top));
}

.mobile-search-panel {
    display: none;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 12px 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1025;
}

.mobile-search-panel.show {
    display: block;
}

.mobile-notification-panel {
    display: none;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    z-index: 2051;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    flex-direction: column;
}

.mobile-notification-panel.show {
    transform: translateY(0);
}

.mobile-notification-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid #f1f3f5;
}

.mobile-notification-head strong {
    font-size: 15px;
    color: var(--text);
}

.mobile-notification-head small {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    color: var(--text-light);
}

.mobile-notification-close {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: #f1f3f5;
    color: #495057;
}

.notification-panel-actions.mobile {
    padding: 10px 12px;
    border-bottom: 1px solid #f1f3f5;
}

.notification-panel-list.mobile {
    padding: 10px;
    max-height: none;
    flex: 1;
    overflow-y: auto;
    padding-bottom: calc(80px + env(safe-area-inset-bottom));
}

.notification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 2050;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.notification-overlay.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mobile-search-panel input {
    flex: 1;
    height: 44px;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    padding: 0 18px;
    font-size: 15px;
}

.bottom-nav {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 60px;
    background: var(--white);
    border-top: 1px solid #dee2e6;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    z-index: 1050;
}

.bottom-nav a,
.bottom-nav button {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--text-light);
    font-size: 10px;
    font-weight: 500;
    transition: var(--transition);
    background: transparent;
    border: 0;
    padding: 0;
}

.bottom-nav a i,
.bottom-nav button i {
    font-size: 20px;
}

.bottom-nav a.active,
.bottom-nav button.active {
    color: var(--primary);
}

.bottom-nav a.home-btn i,
.bottom-nav button.home-btn i {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -20px;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4);
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popup-overlay.show {
    display: block;
    opacity: 1;
}

.popup-menu {
    position: fixed;
    left: 8px;
    right: 8px;
    bottom: -100%;
    z-index: 2001;
    background: #fff;
    border-radius: 20px 20px 12px 12px;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
    padding: 20px 15px;
    transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    visibility: hidden;
}

.popup-menu.show {
    bottom: calc(75px + env(safe-area-inset-bottom));
    visibility: visible;
}

.popup-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.popup-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 4px;
    border-radius: 12px;
    color: #444;
    background: #f8f9fa;
    text-decoration: none;
    transition: 0.2s;
}

.popup-item:active {
    background: #eee;
    transform: scale(0.95);
}

.popup-item i {
    font-size: 22px;
    margin-bottom: 8px;
    color: var(--primary);
}

.popup-item span {
    font-size: 10px;
    font-weight: 700;
    text-align: center;
    line-height: 1.2;
}

@media (max-width: 991px) {

    .top-bar,
    .main-navbar {
        display: none !important;
    }

    .mobile-header,
    .mobile-spacer,
    .bottom-nav {
        display: flex !important;
    }

    .mobile-notification-panel {
        display: flex;
    }

    .notification-panel {
        display: none !important;
    }

    .mobile-header {
        margin-bottom: 0 !important;
    }

    .mobile-spacer {
        height: calc(66px + env(safe-area-inset-top)) !important;
        min-height: calc(66px + env(safe-area-inset-top)) !important;
    }
}

/* Sürekli animasyonları kullanıcı tercihinde azaltarak main-thread baskısını düşür. */
@media (prefers-reduced-motion: reduce) {
    .notification-badge {
        animation: none !important;
    }

    .top-social a,
    .nav-link,
    .mega-item,
    .popup-item,
    .notification-panel,
    .notification-overlay,
    .notification-item {
        transition: none !important;
    }

    .mobile-notification-panel {
        transition: none !important;
    }

    .mobile-notification-panel:not(.show) {
        transform: translateY(100%) !important;
    }

    .mobile-notification-panel.show {
        transform: translateY(0) !important;
    }
}
