﻿/* SEO Dahili Link Stili (Internal Links) */
.seo-internal-link {
    color: #e50914 !important;
    text-decoration: underline dotted rgba(229, 9, 20, 0.5) !important;
    text-underline-offset: 3px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: 3px;
    padding: 0 2px;
}
.seo-internal-link:hover {
    color: #ffffff !important;
    background: rgba(229, 9, 20, 0.15);
    text-decoration: underline solid #e50914 !important;
    text-shadow: 0 0 10px rgba(229, 9, 20, 0.4);
}

.custom-dropdown-menu {
    background-color: #25282c;
    border: 1px solid #3d4248;
    margin-top: 10px;
}
.custom-dropdown-menu .dropdown-item {
    color: #eee;
    transition: background 0.2s, color 0.2s;
}
.custom-dropdown-menu .dropdown-item:hover {
    background-color: #3d4248;
    color: #fff;
}
.custom-dropdown-menu .dropdown-item.text-danger:hover {
    background-color: rgba(229, 9, 20, 0.1);
    color: #e50914 !important;
}
.header-avatar-dropdown-toggle {
    cursor: pointer;
    line-height: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    outline: none !important;
    padding: 2px;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.header-avatar-dropdown-toggle:hover {
    transform: scale(1.06);
}
.header-avatar-dropdown-toggle .hex-progress-avatar-wrap {
    cursor: pointer;
}
.nav-menu-link {
    color: #ccc;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}
.nav-menu-link:hover, .nav-menu-link.active {
    color: #fff;
}
.nav-menu-link::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #e50914;
    transition: width 0.3s ease;
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(229,9,20,0.6);
}
.nav-menu-link:hover::after, .nav-menu-link.active::after {
    width: 100%;
}
/* ===== Modern Navbar, Zengin Mega-Menü & Açılır Paneller ===== */
.custom-navbar { 
    backdrop-filter: blur(16px); 
    -webkit-backdrop-filter: blur(16px); 
    background: rgba(13, 16, 21, 0.88) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 1040;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}
.custom-navbar .navbar-side { flex: 0 0 auto; }
.custom-navbar .navbar-middle { flex: 1 1 auto; justify-content: center; align-items: center; }
@media (min-width:992px) { .custom-navbar .navbar-middle { display: flex !important; } }

.nav-links { 
    display: flex; 
    align-items: center; 
    gap: 4px; 
    list-style: none; 
    padding: 4px 6px; 
    margin: 0;
    background: rgba(255, 255, 255, 0.04); 
    border: 1px solid rgba(255, 255, 255, 0.08); 
    border-radius: 999px;
    backdrop-filter: blur(14px); 
    -webkit-backdrop-filter: blur(14px); 
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35); 
}
.nav-links > li { 
    list-style: none; 
    position: relative; 
}
.nav-links > li > a { 
    position: relative; 
    display: inline-flex; 
    align-items: center; 
    gap: 6px; 
    padding: 8px 18px; 
    border-radius: 999px; 
    color: #cbd5e1;
    font-size: 14px; 
    font-weight: 500; 
    letter-spacing: .2px; 
    text-decoration: none; 
    transition: all .25s cubic-bezier(0.16, 1, 0.3, 1); 
}
.nav-links > li > a:hover,
.nav-links > li > a:hover span,
.nav-links > li > a:hover i { 
    color: #ffffff !important; 
    background: rgba(255, 255, 255, 0.08); 
    transform: translateY(-1px); 
}
.nav-links > li > a.active,
.nav-links > li > a.active:hover,
.nav-links > li > a.active:focus,
.nav-links > li > a.active span,
.nav-links > li > a.active:hover span,
.nav-links > li > a.active i,
.nav-links > li > a.active:hover i { 
    color: #ffffff !important; 
    background: linear-gradient(135deg, #e50914, #ff3b30) !important;
    box-shadow: 0 4px 14px rgba(229, 9, 20, 0.45) !important; 
    font-weight: 600 !important;
}

.nav-chevron {
    font-size: 11px;
    transition: transform .25s ease, color .2s ease;
    opacity: 0.7;
}
.nav-links > li:hover .nav-chevron {
    transform: rotate(180deg);
    opacity: 1;
    color: #e50914;
}

/* ===== Mega-Menu & Açılır Dropdown Kartları ===== */
.mega-menu-wrapper {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    padding-top: 12px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s cubic-bezier(0.16, 1, 0.3, 1), transform .25s cubic-bezier(0.16, 1, 0.3, 1), visibility .25s;
    z-index: 1050;
    pointer-events: none;
}
.nav-links > li:hover .mega-menu-wrapper,
.mega-menu-wrapper:hover {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.mega-menu-card {
    background: #0f131a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.05);
    padding: 22px;
    display: flex;
    gap: 22px;
    width: 630px;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.mega-col-features {
    flex: 1.1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    padding-right: 20px;
}
.mega-col-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.9px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mega-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border-radius: 10px;
    text-decoration: none;
    transition: all .2s ease;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
}
.mega-feature-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.09);
    transform: translateX(3px);
}
.mega-feature-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    transition: transform .2s ease;
}
.mega-feature-item:hover .mega-feature-icon {
    transform: scale(1.08);
}
.icon-film { background: rgba(229, 9, 20, 0.15); color: #f87171; }
.icon-robot { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }
.icon-dna { background: rgba(168, 85, 247, 0.15); color: #c084fc; }
.icon-series { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }

.mega-feature-text { flex: 1; min-width: 0; }
.mega-feature-name {
    font-size: 13.5px;
    font-weight: 600;
    color: #f1f5f9;
    display: flex;
    align-items: center;
    gap: 6px;
}
.mega-feature-desc {
    font-size: 11.5px;
    color: #94a3b8;
    margin-top: 1px;
    line-height: 1.35;
}
.mega-feature-badge {
    font-size: 9.5px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 6px;
    letter-spacing: 0.3px;
}
.badge-ai { background: rgba(168, 85, 247, 0.2); color: #d8b4fe; border: 1px solid rgba(168, 85, 247, 0.3); }
.badge-smart { background: rgba(56, 189, 248, 0.2); color: #7dd3fc; border: 1px solid rgba(56, 189, 248, 0.3); }

.mega-col-genres {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.genre-pills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}
.genre-pill-link {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: all .18s ease;
}
.genre-pill-link:hover {
    background: rgba(229, 9, 20, 0.15);
    border-color: rgba(229, 9, 20, 0.35);
    color: #fff;
    transform: translateY(-1px);
}
.genre-pill-link i { font-size: 10px; color: #e50914; }
.genre-all-link {
    margin-top: auto;
    padding-top: 10px;
    text-align: right;
    font-size: 12px;
    font-weight: 600;
    color: #e50914;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    transition: color .2s ease;
}
.genre-all-link:hover { color: #ff4d58; }

/* Keşfet Dropdown Kartı */
.explore-dropdown-card {
    background: #0f131a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    padding: 12px;
    width: 300px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Ne İzlesem? & Akıllı Araçlar Dropdown Kartı */
.tools-dropdown-card {
    background: #0f131a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    padding: 12px;
    width: 320px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Arama Çubuğu & Ctrl+K Rozeti */
.search-wrapper {
    position: relative;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 4px 12px 4px 12px;
    transition: all .25s ease;
}
.search-wrapper:focus-within {
    background: rgba(255, 255, 255, 0.08);
    border-color: #e50914;
    box-shadow: 0 0 0 2px rgba(229, 9, 20, 0.35), 0 4px 20px rgba(229, 9, 20, 0.2);
}
.search-kbd-badge {
    font-size: 10px;
    font-family: inherit;
    font-weight: 700;
    color: #64748b;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    padding: 1.5px 5.5px;
    margin-left: 6px;
    user-select: none;
    pointer-events: none;
    letter-spacing: 0.5px;
}
.search-wrapper:focus-within .search-kbd-badge {
    color: #e50914;
    border-color: rgba(229, 9, 20, 0.4);
}

/* ===== Canlı Arama (Instant Live Search) Dropdown Stilleri ===== */
.search-wrapper {
    position: relative;
}
.live-search-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 410px;
    max-width: min(410px, calc(100vw - 24px));
    max-height: min(540px, calc(100vh - 85px));
    background: rgba(18, 22, 28, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(229, 9, 20, 0.15);
    z-index: 1060;
    overflow: hidden;
    display: none;
    flex-direction: column;
    animation: liveSearchSlideDown 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.live-search-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(229, 9, 20, 0.45) rgba(255, 255, 255, 0.04);
}
.live-search-body::-webkit-scrollbar {
    width: 5px;
}
.live-search-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
}
.live-search-body::-webkit-scrollbar-thumb {
    background: rgba(229, 9, 20, 0.4);
    border-radius: 4px;
}
.live-search-body::-webkit-scrollbar-thumb:hover {
    background: rgba(229, 9, 20, 0.75);
}
@keyframes liveSearchSlideDown {
    from { opacity: 0; transform: translateY(-8px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.live-search-loading {
    padding: 22px 16px;
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.live-search-empty {
    padding: 24px 16px;
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
}
.live-search-section-header {
    padding: 8px 14px 4px 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #e50914;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
}
.live-search-list {
    list-style: none;
    padding: 4px 0;
    margin: 0;
}
.live-search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px;
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.18s ease;
    cursor: pointer;
    border-left: 2px solid transparent;
}
.live-search-item:hover,
.live-search-item.selected {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    border-left-color: #e50914;
    transform: translateX(2px);
}
.live-search-poster {
    width: 40px;
    height: 56px;
    border-radius: 6px;
    object-fit: cover;
    background: #1e2227;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.live-search-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: #1e2227;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.live-search-avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e242d, #2d3440);
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    user-select: none;
}
.live-search-poster-placeholder {
    width: 40px;
    height: 56px;
    border-radius: 6px;
    background: #181d24;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
.live-search-info {
    flex: 1;
    min-width: 0;
}
.live-search-title {
    font-size: 13.5px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}
.live-search-sub {
    font-size: 11.5px;
    color: #8b95a5;
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.live-search-badge-score {
    font-size: 11px;
    font-weight: 700;
    color: #f5c518;
    background: rgba(245, 197, 24, 0.12);
    border: 1px solid rgba(245, 197, 24, 0.25);
    border-radius: 4px;
    padding: 1px 5px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.live-search-footer {
    flex-shrink: 0;
    padding: 10px 14px;
    background: rgba(13, 16, 21, 0.98);
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 10;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.45);
}
.live-search-footer-link {
    color: #fff;
    background: rgba(229, 9, 20, 0.18);
    border: 1px solid rgba(229, 9, 20, 0.4);
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}
.live-search-footer-link:hover {
    background: #e50914;
    border-color: #e50914;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(229, 9, 20, 0.4);
}
.live-search-footer-hint {
    font-size: 10.5px;
    color: #94a3b8;
}
.live-search-highlight {
    color: #ff3b30;
    font-weight: 700;
}
@media (max-width: 767.98px) {
    .live-search-dropdown {
        width: 100% !important;
        max-width: 100% !important;
        max-height: min(440px, calc(100vh - 140px)) !important;
        left: 0 !important;
        right: 0 !important;
    }
}

/* Mobil Akordeon Menü Stilleri */
.mobile-accordion-btn {
    width: 100%;
    background: transparent;
    border: none;
    color: #fff;
    padding: 10px 14px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 600;
    transition: all .2s;
}
.mobile-accordion-btn:hover { background: rgba(229, 9, 20, 0.1); }
.mobile-sub-list {
    list-style: none;
    padding: 4px 0 6px 16px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.mobile-sub-item a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all .2s;
}
.mobile-sub-item a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    padding-left: 16px;
}
