﻿:root {
    /* Orange Theme Accents */
    --primary: #F97316;
    /* Clean distinct Orange */
    --primary-hover: #EA580C;
    --primary-light: rgba(249, 115, 22, 0.15);

    /* Dark Theme backgrounds */
    --bg-main: #141414;
    /* Netflix dark grey */
    --bg-secondary: #000000;
    --nav-bg: rgba(20, 20, 20, 0.95);

    /* Typography */
    --text-main: #FFFFFF;
    /* High contrast on dark */
    --text-muted: #A3A3A3;
    --text-light: #6B7280;
    --text-white: #FFFFFF;

    /* UI Elements */
    --card-bg: #1F1F1F;
    --border-color: #333333;
    --radius-md: 8px;
    --radius-lg: 12px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.8);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.6), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.9), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- NAVBAR (Netflix Style Transparent to Solid) --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 25px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: background-color 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 100%);
    color: var(--text-white);
}

nav.scrolled {
    background-color: var(--nav-bg);
    color: var(--text-main);
    padding: 20px 5%;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 38px;
    width: auto;
    transition: filter 0.4s ease;
}

nav.scrolled .logo img {
    filter: none;
    /* Dark theme assumes logo is white and bg is dark, no invert needed */
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: inherit;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    opacity: 1;
    font-weight: 600;
}

nav.scrolled .nav-links a:hover,
nav.scrolled .nav-links a.active {
    color: var(--primary);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 8px 18px;
    transition: all 0.3s ease;
}

nav.scrolled .search-box {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

.search-box i.fa-search {
    color: inherit;
    font-size: 1rem;
}

nav.scrolled .search-box i.fa-search {
    color: var(--text-muted);
}

.search-box input {
    background: transparent;
    border: none;
    color: inherit;
    padding-left: 10px;
    outline: none;
    font-family: inherit;
    width: 1000px;
    font-size: 0.95rem;
    transition: width 0.3s;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

nav.scrolled .search-box input {
    color: var(--text-main);
}

nav.scrolled .search-box input::placeholder {
    color: var(--text-muted);
}

/* Removed empty rule */

/* --- SEARCH DROPDOWN --- */
.search-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    width: 1100px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 2000;
    max-height: 480px;
    overflow-y: auto;
    display: none;
}

.search-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 32px;
    width: 12px;
    height: 12px;
    background: var(--bg-secondary);
    transform: rotate(45deg);
    border-top: 1px solid var(--border-color);
    border-left: 1px solid var(--border-color);
}

.search-dropdown-header {
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-result-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-main);
    transition: background-color 0.2s;
    cursor: pointer;
}

.search-result-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(249, 115, 22, 0.1);
    color: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.search-result-info h4 {
    font-size: 1.05rem;
    margin-bottom: 5px;
    color: var(--text-main);
    font-weight: 600;
}

.search-result-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.icon-link {
    color: inherit;
    font-size: 1.2rem;
}

.avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border 0.3s;
}

.yt-avatar-initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #F97316;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
    user-select: none;
    flex-shrink: 0;
    line-height: 1;
}

.avatar:hover {
    border-color: var(--primary);
}

/* --- PROFILE DROPDOWN MENU --- */
.profile-menu {
    position: relative;
    padding-bottom: 20px;
    /* expands hover area downwards */
    margin-bottom: -20px;
    /* offset the padding to maintain layout */
}

.profile-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    width: 280px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 2000;
}

.profile-menu:hover .profile-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 12px;
    width: 12px;
    height: 12px;
    background: var(--bg-secondary);
    transform: rotate(45deg);
    border-top: 1px solid var(--border-color);
    border-left: 1px solid var(--border-color);
}

.profile-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
}

.profile-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.profile-id {
    font-size: 0.8rem;
    color: var(--primary);
    margin-top: 5px;
    cursor: pointer;
    display: inline-block;
}

.profile-id:hover {
    text-decoration: underline;
}

.profile-links {
    list-style: none;
    padding: 10px 0;
}

.profile-links li a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.profile-links li a:hover {
    color: var(--text-main);
    background-color: rgba(255, 255, 255, 0.05);
}

.profile-links li a i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

.profile-links hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 10px 0;
}

/* --- HERO SECTION --- */
.hero {
    height: 80vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 50px;
    color: var(--text-white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0) 100%);
}

/* A gradient at the bottom to transition smoothly to white background */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, var(--bg-main) 0%, transparent 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 600px;
    margin-top: 50px;
}

.badge {
    background-color: var(--primary);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    display: inline-block;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.hero-desc {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 94, 14, 0.4);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover {
    background-color: white;
    color: var(--text-main);
    transform: translateY(-2px);
}

/* --- MAIN CONTENT & ROWS (Netflix/Udemy Mix) --- */
.content-wrapper {
    padding: 0 50px;
    margin-top: -40px;
    /* Pull up to overlap with hero gradient */
    position: relative;
    z-index: 20;
    padding-bottom: 60px;
}

.slider-container {
    margin-bottom: 50px;
    position: relative;
}

.slider-container:hover .slider-buttons {
    opacity: 1;
}

.slider-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-main);
    position: relative;
    display: inline-block;
}

.slider-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 2px;
}

.slider-buttons {
    position: absolute;
    top: 50%;
    left: -20px;
    right: -20px;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 50;
    opacity: 0;
    transition: opacity 0.3s;
}

.slider-btn {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    color: var(--text-main);
    font-size: 1.2rem;
    transition: all 0.2s;
}

.slider-btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
    border-color: var(--primary);
}

.row {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 0;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.row::-webkit-scrollbar {
    display: none;
}

/* --- CARDS --- */
.card {
    background-color: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    /* Improved transition for scaling UX */
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.35s ease, z-index 0s;
    flex-shrink: 0;
    cursor: pointer;
    position: relative;
    z-index: 1;
    transform-origin: center center;
}

.card:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: var(--shadow-hover);
    z-index: 999;
}

.card-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.card:hover .card-img-wrapper img {
    transform: scale(1.05);
}

.bestseller-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #FEF08A;
    color: #854D0E;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
}

.new-badge {
    background-color: var(--primary);
    color: white;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.play-overlay i {
    font-size: 3rem;
    color: white;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
    transform: scale(0.8);
    transition: transform 0.3s;
}

.card:hover .play-overlay {
    opacity: 1;
}

.card:hover .play-overlay i {
    transform: scale(1);
}

/* Continue Watching Card */
.continue-card {
    width: 350px;
}

.continue-card .card-info {
    padding: 15px;
}

.continue-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.progress-bar-container {
    width: 100%;
    height: 4px;
    background-color: #E5E7EB;
    border-radius: 2px;
    margin-bottom: 8px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: var(--primary);
    border-radius: 2px;
}

.progress-text {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Course Card (Udemy style info) */
.course-card {
    width: 280px;
}

.course-card .card-info {
    padding: 15px;
}

.course-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 5px;
    line-height: 1.3;
    color: var(--text-main);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.6em;
    /* Ensure uniform height */
}

.instructor {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
}

.rating .score {
    font-weight: 700;
    color: #B4690E;
    /* Udemy classic bronze/yellow */
    font-size: 0.9rem;
}

.rating .stars {
    color: #EAB308;
    font-size: 0.8rem;
}

.rating .reviews {
    font-size: 0.75rem;
    color: var(--text-light);
}

.price-container {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.price {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text-main);
}

.old-price {
    font-size: 0.85rem;
    color: var(--text-light);
    text-decoration: line-through;
}

/* --- FOOTER --- */
.footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 40px 50px;
    text-align: center;
    color: var(--text-muted);
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 10px;
}

.footer-logo span {
    color: var(--primary);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    nav {
        padding: 15px 20px;
    }

    nav.scrolled {
        padding: 10px 20px;
    }

    .nav-links {
        display: none;
    }

    .hero {
        padding: 0 20px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .content-wrapper {
        padding: 0 20px;
    }

    .slider-buttons {
        display: none;
    }
}

/* --- İKİNCİL NAVİGASYON (SUBNAV) --- */
.subnav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    height: 44px;
    background: rgba(10, 10, 10, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    z-index: 998;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.subnav-inner {
    display: flex;
    align-items: center;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    overflow-x: auto;
    scrollbar-width: none;
}

.subnav-inner::-webkit-scrollbar {
    display: none;
}

.subnav-inner>a,
.subnav-dropdown-wrap>a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0 13px;
    height: 44px;
    font-size: 0.83rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.58);
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.subnav-inner>a:hover,
.subnav-dropdown-wrap>a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
    border-bottom-color: var(--primary);
}

.subnav-inner>a.active,
.subnav-dropdown-wrap>a.active {
    color: #fff;
    border-bottom-color: var(--primary);
}

.subnav-abone {
    color: var(--primary) !important;
    font-weight: 700 !important;
}

.subnav-abone:hover {
    background: rgba(249, 115, 22, 0.1) !important;
    border-bottom-color: var(--primary) !important;
}

/* Dropdown */
.subnav-dropdown-wrap {
    position: relative;
    display: flex;
    align-items: center;
    height: 44px;
}

.subnav-drop-menu {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    min-width: 210px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.85);
    list-style: none;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: all 0.22s ease;
    z-index: 9999;
}

.subnav-dropdown-wrap:hover .subnav-drop-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.subnav-drop-menu li a {
    display: block;
    padding: 10px 18px;
    font-size: 0.86rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.18s;
}

.subnav-drop-menu li a:hover {
    background: rgba(249, 115, 22, 0.09);
    color: var(--primary);
    padding-left: 24px;
}

@media (max-width: 768px) {
    .subnav {
        top: 60px;
    }
}

/* --- ANA SİTE BUTONU --- */
.nav-home-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 16px;
    border-radius: 20px;
    border: 1px solid rgba(249, 115, 22, 0.35);
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(249, 115, 22, 0.08);
    transition: all 0.25s ease;
    white-space: nowrap;
    letter-spacing: 0.2px;
}

.nav-home-btn i {
    color: var(--primary);
    font-size: 0.82rem;
    transition: transform 0.25s ease;
}

.nav-home-btn:hover {
    background: rgba(249, 115, 22, 0.18);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.2);
}

.nav-home-btn:hover i {
    transform: scale(1.15);
}

/* --- MY LEARNING PAGE --- */
.learning-header {
    background-color: transparent;
    /* Use custom inline or background variables instead of pure white */
    color: var(--text-main);
    padding-top: 10px;
    padding-bottom: 0;
}

.learning-header h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    padding-left: 50px;
}

/* --- MULTI-ROW LEARNING PAGE --- */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-right: 20px;
}

.section-header-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    flex-wrap: wrap;
}

.section-count {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.section-header .slider-title {
    margin-bottom: 0;
}

.section-header .slider-title::after {
    display: none;
    /* Hide the underline for rows since view-all is there, or keep it */
}

.view-all {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}

.view-all:hover {
    color: var(--primary-hover);
}

.yt-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 24px 16px 24px;
}

/* Search bar in panel sections — aligned with .yt-grid (padding: 0 24px) */
.panel-inline-search {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 0 24px;
    margin-bottom: 12px;
}

.panel-inline-search input {
    flex: 1;
    max-width: 480px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

.panel-inline-search input:focus {
    border-color: var(--primary);
}

.panel-inline-search button {
    padding: 10px 18px;
    border-radius: 10px;
    border: none;
    background: var(--primary);
    color: #fff;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background 0.2s;
}

.panel-inline-search button:hover {
    background: var(--primary-hover);
}

.yt-section-heading .yt-section-title {
    margin: 0;
}

.learning-section {
    margin-bottom: 60px;
}

.learning-tabs {
    display: none;
    /* Removed from UI, keep logic if needed */
    overflow-x: auto;
    scrollbar-width: none;
}

.learning-tabs::-webkit-scrollbar {
    display: none;
}

/* --- BOOK FORMAT CARDS --- */
.card.book-card {
    width: 220px;
}

.book-card .card-img-wrapper {
    aspect-ratio: 2/3;
    border-bottom: 1px solid var(--border-color);
}

.book-card .card-info {
    padding: 12px;
}

.book-card h3 {
    font-size: 0.95rem;
    line-height: 1.3;
}

.book-card .instructor {
    font-size: 0.8rem;
}

.book-card .progress-detail {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.book-card .start-text {
    background: var(--primary-light);
    padding: 5px 10px;
    border-radius: 4px;
    width: 100%;
    text-align: center;
}

.book-card.grid-item {
    width: 100%;
}

.book-card.grid-item .card-img-wrapper {
    aspect-ratio: 3/4;
}

.learning-tabs .tab {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    padding-bottom: 15px;
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
    white-space: nowrap;
}

.learning-tabs .tab:hover {
    color: white;
}

.learning-tabs .tab.active {
    color: white;
    font-weight: 600;
}

.learning-tabs .tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary);
}

.my-learning-page .content-wrapper {
    margin-top: 40px;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.grid-card {
    width: 100%;
}

.grid-card .card-info {
    padding: 15px;
}

.grid-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-main);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8em;
}

.grid-card .instructor {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.mt-10 {
    margin-top: 10px;
}

.progress-detail {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 5px;
}

.completed-bg {
    background-color: rgba(16, 185, 129, 0.08);
}

.start-text {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.start-text:hover {
    text-decoration: underline;
}

.my-learning-page nav {
    background-color: var(--nav-bg);
    color: var(--text-main);
    padding: 15px 50px;
    box-shadow: var(--shadow-sm);
}

.my-learning-page nav .logo {
    color: var(--text-main);
}

.my-learning-page nav .search-box {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

.my-learning-page nav .search-box input {
    color: var(--text-main);
}

.my-learning-page nav .search-box i,
.my-learning-page nav .search-box input::placeholder {
    color: var(--text-muted);
}

.my-learning-page nav .nav-links a:hover,
.my-learning-page nav .nav-links a.active {
    color: var(--primary);
}

/* --- GRID OVERRIDES FOR CATEGORY PAGE --- */
.category-grid .card {
    min-width: 0 !important;
    width: 100% !important;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

/* --- NAVBAR CATEGORY DROPDOWN --- */
.category-dropdown-container {
    position: relative;
    margin-top: 2px;
}

.category-btn {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background 0.3s, color 0.3s;
}

.category-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary);
}

.nav-category-menu {
    position: absolute;
    top: 130%;
    left: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9);
    width: 250px;
    padding: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 2000;
}

.category-dropdown-container:hover .nav-category-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-category-menu .quick-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-category-menu .quick-category-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s;
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-category-menu .quick-category-list a:hover {
    background: rgba(249, 115, 22, 0.1);
    color: var(--primary);
    transform: translateX(4px);
}

.nav-category-menu .quick-category-list i {
    width: 18px;
    text-align: center;
    font-size: 1.1rem;
}

/* ========================================= */
/*       GLOBAL MOBILE RESPONSIVENESS        */
/* ========================================= */

@media (max-width: 900px) {
    .nav-left {
        gap: 20px;
    }

    .nav-right {
        gap: 15px;
    }

    .search-box input {
        width: 120px;
    }

    .search-box input:focus {
        width: 160px;
    }
}

@media (max-width: 768px) {

    /* Navbar Adjustments */
    nav {
        flex-wrap: wrap;
        padding: 15px 20px !important;
        gap: 10px;
    }

    nav.scrolled {
        padding: 10px 20px !important;
    }

    .my-learning-page nav {
        padding: 15px 20px !important;
    }

    .logo img {
        height: 30px;
        /* smaller logo */
    }

    .nav-left {
        gap: 15px;
        order: 1;
    }

    .nav-right {
        gap: 15px;
        order: 2;
    }

    /* Move search box to its own row if needed, or hide input and keep icon */
    .search-box {
        padding: 6px 10px;
    }

    .search-box input {
        width: 100px;
        font-size: 0.85rem;
    }

    .search-box input:focus {
        width: 130px;
    }

    /* Profile Dropdown fix */
    .profile-dropdown {
        width: 240px;
        right: -20px;
        /* shift left so it doesn't overflow screen */
    }

    .profile-dropdown::before {
        right: 32px;
    }

    /* Category Dropdown Fix */
    .nav-category-menu {
        width: 220px;
        left: -10px;
    }

    /* Hero / Header Adjustments */
    .hero {
        padding: 0 20px;
        height: auto;
        min-height: 400px;
        padding-top: 100px;
        padding-bottom: 50px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-desc {
        font-size: 1rem;
    }

    /* My Learning Dashboard Header */
    .learning-header {
        padding-top: 100px !important;
        padding-bottom: 30px !important;
    }

    .learning-header .content-wrapper {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 20px !important;
    }

    .learning-header h1 {
        font-size: 1.8rem !important;
        padding-left: 0 !important;
    }

    .header-stats {
        justify-content: flex-start;
        width: 100%;
    }

    .stat-card {
        flex: 1 1 calc(50% - 15px) !important;
        /* 2 columns for stats on mobile */
        min-width: unset !important;
        padding: 15px !important;
    }

    /* Content Wrappers & Grids */
    .content-wrapper {
        padding: 0 20px;
        margin-top: -20px;
    }

    .my-learning-page .content-wrapper {
        margin-top: 20px;
    }

    /* Category Sidebar */
    .sidebar-filters {
        width: 100% !important;
        position: static !important;
        margin-bottom: 20px;
    }

    /* Section Headers */
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding-right: 0;
    }

    .section-header-meta,
    .yt-section-heading .section-header-meta {
        width: 100%;
        justify-content: space-between;
    }

    .yt-section-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-left: 16px;
        margin-right: 16px;
    }

    /* Layout overrides */
    .course-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }

    /* Footer */
    .footer {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {

    /* Extra Small Devices */
    .search-box {
        display: none;
        /* Hide search bar completely on very small screens to save header space */
    }

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .stat-card {
        flex: 1 1 100% !important;
        /* 1 column for stats */
    }

    .course-grid {
        grid-template-columns: 1fr;
        /* Full width cards */
    }

    .card {
        width: 100% !important;
    }

    .continue-card,
    .course-card {
        width: 85vw !important;
        /* Let horizontal slider show next partially */
        max-width: 320px;
    }

    /* Adjust row scrolling padding */
    .row {
        gap: 15px;
        padding: 10px 0;
    }
}

/* --- WHATSAPP BANNER --- */
.whatsapp-banner {
    background: linear-gradient(90deg, #ca6924 0%, #853a13 100%);
    color: white;
    padding: 15px 20px;
    text-align: center;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
    font-size: 1.1rem;
    z-index: 100;
    position: relative;
}

.whatsapp-banner:hover {
    filter: brightness(1.1);
    gap: 18px;
}

.whatsapp-banner i {
    font-size: 1.6rem;
}

@media (max-width: 768px) {
    .whatsapp-banner {
        font-size: 0.95rem;
        padding: 12px 15px;
    }

    .whatsapp-banner i {
        font-size: 1.4rem;
    }
}

/* --- WHATSAPP GROUPS PAGE --- */
.whatsapp-groups-page .content-wrapper {
    max-width: 1200px !important;
    margin: 0 auto;
    padding: 120px 20px 60px;
}

.whatsapp-top-header {
    text-align: center;
    margin-bottom: 50px;
}

.whatsapp-top-header h3 {
    font-size: 2.8rem;
    color: var(--text-white);
    margin-bottom: 15px;
    font-weight: 700;
}

.whatsapp-top-header p {
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 500;
}

.whatsapp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.live-teacher-box {
    margin-bottom: 0;
}

.live-min-teacher-box {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.live-min-teacher-box:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(249, 115, 22, 0.3);
}

.video-img {
    height: 220px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.video-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.live-min-teacher-box:hover .video-img img {
    transform: scale(1.05);
}

.video-bottom {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.video-bottom h4 {
    font-size: 1.3rem;
    color: var(--text-white);
    margin-bottom: 20px;
    font-weight: 600;
    line-height: 1.4;
}

.whatsappclass {
    width: 100%;
    height: 48px;
    border-radius: 12px;
    cursor: pointer;
    background: linear-gradient(90deg, #f5871f 0%, #e67e22 100%);
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(245, 135, 31, 0.2);
}

.whatsappclass:hover {
    background: linear-gradient(90deg, #e67e22 0%, #f5871f 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(245, 135, 31, 0.3);
}

@media (max-width: 768px) {
    .whatsapp-top-header h3 {
        font-size: 2.2rem;
    }

    .whatsapp-grid {
        grid-template-columns: 1fr;
    }
}

/* --- ALT KULLANICI (SUB-USER) PANEL --- */
.alt-kullanici-page .content-wrapper {
    margin: 0 auto;
    padding-bottom: 80px;
}

.alt-kullanici-header {
    padding: 12px 0 30px;
}

.alt-kullanici-header h2 {
    font-size: 2.2rem;
    color: var(--text-white);
    margin-bottom: 10px;
}

.alt-kullanici-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.sub-user-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 60px;
}

.sub-user-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sub-user-card.full-width {
    grid-column: 1 / -1;
}

.card-title {
    font-size: 1.3rem;
    color: var(--text-white);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-title i {
    color: var(--primary);
}

.id-link-box {
    display: flex;
    gap: 10px;
}

.id-link-box input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 15px;
    color: var(--text-main);
    outline: none;
    font-size: 1rem;
}

.id-link-box input:focus {
    border-color: var(--primary);
}

.request-item,
.linked-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: 700;
}

.user-details h5 {
    color: var(--text-white);
    font-size: 1rem;
    margin-bottom: 2px;
}

.user-details span {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.action-btns {
    display: flex;
    gap: 8px;
}

.btn-action {
    padding: 8px 15px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.btn-accept {
    background: #10B981;
    color: white;
}

.btn-accept:hover {
    background: #059669;
}

.btn-reject {
    background: #EF4444;
    color: white;
}

.btn-reject:hover {
    background: #DC2626;
}

.btn-view {
    background: rgba(249, 115, 22, 0.1);
    color: var(--primary);
    border: 1px solid rgba(249, 115, 22, 0.3);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-view:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.btn-unlink {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn-unlink:hover {
    background: #EF4444;
    color: white;
}

@media (max-width: 992px) {
    .sub-user-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .alt-kullanici-page .content-wrapper {
        width: 100%;
        max-width: 100%;
        padding-left: 16px;
        padding-right: 16px;
        overflow-x: hidden;
    }

    .alt-kullanici-page .content-wrapper > div:first-child {
        flex-wrap: wrap;
    }

    .alt-kullanici-page .content-wrapper h1 {
        font-size: 1.6rem !important;
        line-height: 1.2;
    }

    .id-link-box,
    .request-item,
    .linked-item,
    .action-btns {
        flex-direction: column;
        align-items: stretch;
    }

    .user-info {
        min-width: 0;
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .user-details {
        min-width: 0;
    }

    .user-details h5,
    .user-details span {
        overflow-wrap: anywhere;
    }

    .btn-action,
    .btn-view {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

/* --- NEW PREMIUM FOOTER (fot-ac) --- */
.fot-ac {
    background-color: #0c0c0c;
    padding: 80px 5% 40px;
    border-top: 1px solid var(--border-color);
    margin-top: 80px;
}

.fot-di {
    max-width: 1200px;
    margin: 0 auto;
}

.fot-red {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 60px;
}

.red {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.red .head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.red .head img {
    height: 45px;
}

.red .head ul {
    display: flex;
    gap: 15px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.red .head ul li a {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    transition: all 0.3s;
    font-size: 1.1rem;
    text-decoration: none;
}

.red .head ul li a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.hakkı h3,
.destek h3,
.biz h3 {
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hakkı div {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 10px;
}

.ddr {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.destek div,
.biz p {
    color: var(--text-white);
    font-weight: 500;
    margin-bottom: 15px;
}

.kvkk-bil {
    display: flex;
    gap: 30px;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 20px;
}

.kvkk-bil a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.kvkk-bil a:hover {
    color: var(--primary);
}

.ccc {
    text-align: center;
    color: #4b5563;
    font-size: 0.85rem;
    margin-top: 20px;
}

@media (max-width: 1200px) {
    .search-box input {
        width: 100%;
        max-width: 400px;
    }
    .search-dropdown {
        width: 100%;
        max-width: 600px;
        right: auto;
        left: 0;
    }
    .search-dropdown::before {
        left: 32px;
        right: auto;
    }
}

@media (max-width: 900px) {
    /* Footer Fixes */
    .fot-red {
        flex-direction: column;
        gap: 40px;
    }

    .red .head {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .ddr {
        gap: 30px;
    }

    /* Navbar Fixes */
    .nav-links {
        display: none;
    }
    nav {
        padding: 15px 3%;
    }
    nav.scrolled {
        padding: 15px 3%;
    }
    .logo img {
        height: 30px;
    }
    .search-box input {
        width: 120px;
    }
    .search-dropdown {
        width: 300px;
    }

    /* Category Layout */
    .content-wrapper {
        padding: 0 20px;
    }
    aside.sidebar-filters {
        width: 100% !important;
        position: static !important;
        margin-bottom: 20px;
        top: 0 !important;
    }
    main.content-wrapper {
        flex-direction: column !important;
        align-items: stretch !important;
        padding-top: 100px !important;
    }
    main.content-wrapper[style*="padding-top: 135px"] {
        padding-top: 20px !important;
    }
    
    /* Global fixes */
    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 600px) {
    /* Navbar Mobile Extreme */
    nav {
        flex-wrap: wrap;
        gap: 15px;
        padding: 15px 5% !important;
    }
    .nav-left {
        gap: 10px;
        width: 100%;
        justify-content: space-between;
    }
    .nav-right {
        gap: 15px;
        width: 100%;
        justify-content: space-between;
    }
    .search-box {
        flex: 1;
        margin-right: 10px;
        display: flex !important;
    }
    .search-box input {
        width: 100% !important;
    }
    .profile-menu .profile-dropdown {
        right: -10px; /* Prevent overflow */
    }

    /* Hero */
    .hero {
        padding: 0 15px;
        height: auto;
        min-height: 400px;
        margin-top: 80px;
    }
    .hero-title {
        font-size: 2rem;
    }
    .hero-desc {
        font-size: 0.95rem;
    }
    .hero-buttons {
        flex-direction: column;
    }
    .btn {
        width: 100%;
        justify-content: center;
    }

    /* Cards & Sliders */
    .slider-buttons {
        display: none; /* Rely entirely on touch drag */
    }
    .continue-card, .course-card, .book-card, .card {
        width: 240px;
    }
    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
    }

    /* My Learning Dashboard */
    .learning-header .content-wrapper {
        flex-direction: column;
        align-items: stretch !important;
    }
    .header-welcome {
        min-width: 100% !important;
    }
    .header-stats {
        flex-direction: column;
        width: 100%;
    }

    /* Video Player Mobile */
    .video-main {
        width: 100%;
        padding: 0 !important;
    }
    .video-sidebar {
        width: 100% !important;
        position: static !important;
        height: auto !important;
        margin-top: 20px;
    }
    
    /* Search Layout Full bleed */
    .filters-sidebar {
        width: 100% !important;
        position: static !important;
    }
    .main-results {
        width: 100% !important;
    }
    .search-layout {
        flex-direction: column !important;
    }
}

/* --- LIGHT THEME (Global Override) --- */
/* Applied immediately via JS (html gets class synchronously before body) */
html.light-theme,
body.light-theme {
    /* Style.css Netflix variables */
    --bg-main: #F4F6F8;
    --bg-secondary: #FFFFFF;
    --nav-bg: rgba(255, 255, 255, 0.96);
    --text-main: #111827;
    --text-muted: #6B7280;
    --text-light: #9CA3AF;
    --card-bg: #FFFFFF;
    --border-color: #E2E8F0;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.08);

    /* my-learning variables */
    --yt-bg: #F9FAFB;
    --yt-text: #111827;
    --yt-text-secondary: #4B5563;
    --yt-border: #E5E7EB;
    --yt-nav-bg: #FFFFFF;
    --yt-hover: #F3F4F6;
    --yt-icon: #374151;
    --yt-sidebar-bg: #FFFFFF;

    /* primary-light override */
    --primary-light: rgba(249, 115, 22, 0.1);
}

body {
    transition: background-color 0.4s ease, color 0.4s ease;
}

.card, .yt-card, nav, .sidebar-filters, .main-content, .fot-ac, main, aside {
    transition: background-color 0.4s ease, border-color 0.4s ease, color 0.4s ease;
}

/* Specific component light-overrides */
body.light-theme .logo img {
    filter: invert(1); /* Turns white logos black */
    opacity: 0.85;
}

body.light-theme nav.scrolled {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

body.light-theme .yt-search {
    background-color: #FFFFFF;
}

body.light-theme .yt-search input {
    color: #111827;
}

body.light-theme .yt-chip {
    color: #111827;
    background-color: #E5E7EB;
}

body.light-theme .yt-chip:hover {
    background-color: #D1D5DB;
}

body.light-theme .yt-chip.active {
    background-color: #111827;
    color: #FFFFFF;
}

body.light-theme .yt-card-img-wrap.book-cover {
    background-color: transparent;
}

/* Erroneous Colors Fixes from User Screenshot */
body.light-theme nav {
    background: var(--nav-bg);
    box-shadow: var(--shadow-sm);
}

body.light-theme .yt-navbar {
    background: var(--yt-nav-bg);
    background-image: none !important;
}

body.light-theme .yt-hero-banner {
    background-color: #FFFFFF !important;
    border: 1px solid var(--yt-border) !important;
    box-shadow: var(--shadow-sm) !important;
}

body.light-theme .yt-hero-banner h1,
body.light-theme .yt-hero-banner h1 span {
    color: var(--text-main) !important;
}

body.light-theme .yt-stat-item {
    background-color: #F9FAFB !important;
    border: 1px solid #E5E7EB !important;
}

body.light-theme .yt-stat-item:hover {
    background-color: #F3F4F6 !important;
}

body.light-theme .yt-chips {
    background-color: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 1px solid var(--yt-border) !important;
}

body.light-theme .yt-icon-btn, 
body.light-theme .yt-hamburger {
    color: var(--text-main) !important;
}

body.light-theme .yt-nav-left .hamburger,
body.light-theme .yt-nav-left .hamburger i {
    color: var(--text-main) !important;
}

body.light-theme .yt-card-badge {
    color: #FFFFFF !important;
    background-color: rgba(0, 0, 0, 0.85) !important;
}

/* Secondary nav light theme */
body.light-theme .yt-secondary-nav {
    background-color: #FFFFFF;
    border-bottom-color: #E5E7EB;
}
body.light-theme .yt-secondary-nav a {
    color: #4B5563;
}
body.light-theme .yt-secondary-nav a:hover,
body.light-theme .yt-secondary-nav a.active {
    color: #111827;
}

/* Sidebar light theme */
body.light-theme .yt-sidebar {
    background-color: #FFFFFF;
    border-right: 1px solid #E5E7EB;
}
body.light-theme .yt-menu-item {
    color: #374151;
}
body.light-theme .yt-menu-item:hover,
body.light-theme .yt-menu-item.active {
    background-color: #F3F4F6;
    color: #111827;
}

/* Card & content area light theme */
body.light-theme .yt-content {
    background-color: #F9FAFB;
}
body.light-theme .yt-card {
    background-color: #FFFFFF;
    border-color: #E5E7EB;
}
body.light-theme .yt-card-title,
body.light-theme .yt-card-meta {
    color: #111827;
}
body.light-theme .yt-card-sub {
    color: #6B7280;
}

/* Profile dropdown light theme */
body.light-theme .profile-dropdown {
    background-color: #FFFFFF;
    border: 1px solid #E5E7EB;
    color: #111827;
}
body.light-theme .profile-dropdown a,
body.light-theme .profile-links a {
    color: #374151;
}
body.light-theme .profile-dropdown a:hover,
body.light-theme .profile-links a:hover {
    background-color: #F3F4F6;
    color: #111827;
}
body.light-theme .profile-header {
    border-bottom-color: #E5E7EB;
}
body.light-theme .profile-name {
    color: #111827;
}
body.light-theme .profile-id {
    color: #6B7280;
}

/* Search bar light theme */
body.light-theme .yt-search {
    border-color: #D1D5DB;
}
body.light-theme .yt-search input::placeholder {
    color: #9CA3AF;
}

/* Notifications page light theme */
body.light-theme .notification-item {
    background-color: #FFFFFF;
    border-color: #E5E7EB;
    color: #111827;
}
body.light-theme .notification-item:hover {
    background-color: #F9FAFB;
}
body.light-theme .notification-item.unread {
    background-color: #FFF7ED;
    border-left-color: var(--primary);
}
body.light-theme .notification-text {
    color: #111827;
}
body.light-theme .notification-time {
    color: #9CA3AF;
}

/* Waiting room light theme */
body.light-theme .bg-orbs {
    opacity: 0.08;
}

/* Wallet / billing light theme cards */
body.light-theme .wallet-card,
body.light-theme .billing-card,
body.light-theme .info-card {
    background-color: #FFFFFF;
    border-color: #E5E7EB;
    color: #111827;
}

/* Search results light theme */
body.light-theme .search-tab {
    color: #4B5563;
    border-bottom-color: transparent;
}
body.light-theme .search-tab.active,
body.light-theme .search-tab:hover {
    color: #111827;
    border-bottom-color: var(--primary);
}
body.light-theme .search-result-card {
    background-color: #FFFFFF;
    border-color: #E5E7EB;
}

/* Forms / inputs light theme */
body.light-theme .form-control,
body.light-theme input,
body.light-theme textarea,
body.light-theme select {
    background-color: #FFFFFF;
    border-color: #D1D5DB;
    color: #111827;
}
body.light-theme .form-control::placeholder,
body.light-theme input::placeholder,
body.light-theme textarea::placeholder {
    color: #9CA3AF;
}
body.light-theme select option {
    background-color: #FFFFFF;
    color: #111827;
}
/* GLOBAL YOUTUBE LAYOUT CSS */


        /* YOUTUBE LAYOUT BASE CSS (Mevcut stilleri ezmeden yeni yapı) */

        :root {

            --yt-bg: #0f0f0f;

            --yt-nav-bg: #0f0f0f;

            --yt-hover: rgba(255, 255, 255, 0.1);

            --yt-text: #fff;

            --yt-text-muted: #aaaaaa;

            --yt-border: rgba(255, 255, 255, 0.1);

        }



        body.yt-layout {

            margin: 0;

            background-color: var(--yt-bg);

            color: var(--yt-text);

            font-family: 'Outfit', sans-serif;

            overflow: hidden;

            /* Prevent body scroll, handle scroll in content area */

            display: flex;

            flex-direction: column;

            height: 100vh;

        }

        /* ASP.NET Web Forms wraps content in <form id="form1" runat="server">;
           make it transparent to the flex layout so navbar/secondary-nav/main-wrapper
           keep their flex behavior and inner scrolling works.
           Only apply to forms that actually contain the layout/content so secondary
           forms (e.g. ScriptManager-only wrappers) don't claim vertical space. */
        body.yt-layout > form:has(.yt-content),
        body.yt-layout > form:has(.yt-main-wrapper),
        body.yt-layout > form:has(.yt-navbar) {

            display: flex;

            flex-direction: column;

            flex: 1 1 auto;

            min-height: 0;

            width: 100%;

        }

        /* Fallback for browsers without :has() - we also zero-out forms that
           contain only ScriptManager/hidden inputs to avoid them pushing layout. */
        body.yt-layout > form {
            flex: 0 0 auto;
        }



        /* 1. ÜST MENÜ (NAVBAR) */

        .yt-navbar {

            display: flex;

            align-items: center;

            justify-content: space-between;

            height: 60px;

            padding: 0 16px;

            background-color: var(--yt-nav-bg);

            position: sticky;

            top: 0;

            z-index: 1000;

            border-bottom: 1px solid var(--yt-border);

            flex-shrink: 0;

        }



        .yt-nav-left {

            display: flex;

            align-items: center;

            gap: 16px;

            min-width: 200px;

        }



        .yt-nav-left .logo img {

            height: 35px;

            object-fit: contain;

        }



        .yt-nav-left .hamburger {

            background: none;

            border: none;

            color: white;

            font-size: 1.4rem;

            cursor: pointer;

            padding: 8px;

            border-radius: 50%;

            display: flex;

            align-items: center;

            justify-content: center;

            width: 40px;

            height: 40px;

            transition: background 0.2s;

        }



        .yt-nav-left .hamburger:hover {

            background-color: var(--yt-hover);

        }



        .yt-nav-mid {

            display: flex;

            align-items: center;

            flex: 1;

            max-width: 600px;

            margin: 0 40px;

        }



        .yt-search {

            display: flex;

            width: 100%;

            border: 1px solid var(--yt-border);

            border-radius: 40px;

            background-color: #121212;

            position: relative;

        }



        .yt-search input {

            flex: 1;

            background: transparent;

            border: none;

            color: white;

            padding: 10px 20px;

            outline: none;

            font-family: 'Outfit', sans-serif;

            font-size: 1rem;

            border-top-left-radius: 40px;

            border-bottom-left-radius: 40px;

        }



        .yt-search button {

            background-color: var(--yt-hover);

            border: none;

            border-left: 1px solid var(--yt-border);

            color: white;

            padding: 0 20px;

            cursor: pointer;

            transition: background 0.2s;

            border-top-right-radius: 40px;

            border-bottom-right-radius: 40px;

        }



        .yt-search button:hover {

            background-color: rgba(255, 255, 255, 0.2);

        }



        .yt-nav-right {

            display: flex;

            align-items: center;

            gap: 10px;

            min-width: auto;

            justify-content: flex-end;

        }



        .yt-icon-btn {

            background: none;

            border: none;

            color: white;

            font-size: 1.2rem;

            cursor: pointer;

            width: 40px;

            height: 40px;

            border-radius: 50%;

            position: relative;

            display: flex;

            align-items: center;

            justify-content: center;

            transition: background 0.2s;

            text-decoration: none;

        }



        .yt-icon-btn:hover {

            background-color: var(--yt-hover);

            color: white;

        }



        .yt-icon-btn .badge {

            position: absolute;

            top: 8px;

            right: 8px;

            width: 8px;

            height: 8px;

            background-color: var(--primary);

            border-radius: 50%;

        }



        /* Profile Dropdown Fix for Youtube Layout */

        .yt-navbar .profile-menu {

            margin-left: 10px;

        }



        /* Secondary Nav Bar */
        .yt-secondary-nav {
            display: flex;
            align-items: center;
            background-color: var(--yt-nav-bg);
            border-bottom: 1px solid var(--yt-border);
            padding: 0 16px;
            overflow-x: auto;
            scrollbar-width: none;
            flex-shrink: 0;
            position: sticky;
            top: 60px;
            z-index: 999;
        }
        .yt-secondary-nav::-webkit-scrollbar { display: none; }
        .yt-secondary-nav a {
            color: var(--text-secondary, #aaa);
            text-decoration: none;
            font-size: 0.82rem;
            font-weight: 500;
            white-space: nowrap;
            padding: 10px 14px;
            border-bottom: 2px solid transparent;
            transition: color 0.2s, border-color 0.2s;
            display: flex;
            align-items: center;
            gap: 4px;
        }
        .yt-secondary-nav a:hover {
            color: #fff;
            border-bottom-color: var(--primary, #F97316);
        }
        .yt-secondary-nav a.active {
            color: #fff;
            border-bottom-color: var(--primary, #F97316);
        }

        /* 2. MAIN LAYOUT WRAPPER */

        .yt-main-wrapper {

            display: flex;

            flex: 1;

            min-height: 0;

            overflow: hidden;

            position: relative;

        }



        /* 3. SOL AÇILIR MENÜ (SIDEBAR) */

        .yt-sidebar {

            width: 240px;

            background-color: var(--yt-bg);

            overflow-y: auto;

            display: flex;

            flex-direction: column;

            transition: width 0.2s ease;

            flex-shrink: 0;

            border-right: 1px solid var(--yt-border);

            padding-top: 12px;

        }



        .yt-sidebar.collapsed {

            width: 72px;

        }



        .yt-sidebar.collapsed .yt-menu-text {

            display: none;

        }



        .yt-sidebar.collapsed .yt-menu-item {

            flex-direction: column;

            gap: 6px;

            padding: 16px 0;

            justify-content: center;

        }



        .yt-sidebar.collapsed .yt-menu-item i {

            font-size: 1.4rem;

        }



        .yt-menu-item {

            display: flex;

            align-items: center;

            padding: 12px 16px;

            color: var(--yt-text);

            text-decoration: none;

            gap: 16px;

            border-radius: 10px;

            margin: 4px 12px;

            transition: background 0.2s;

            font-size: 0.95rem;

            white-space: nowrap;

            overflow: hidden;

        }



        .yt-menu-item:hover {

            background-color: var(--yt-hover);

            color: white;

        }



        .yt-menu-item i {

            font-size: 1.2rem;

            width: 24px;

            text-align: center;

        }



        .yt-sidebar::-webkit-scrollbar {

            width: 8px;

        }



        .yt-sidebar::-webkit-scrollbar-thumb {

            background: rgba(255, 255, 255, 0.2);

            border-radius: 4px;

        }



        /* 4. ANA İÇERİK ALANI (CONTENT AREA) */

        .yt-content {

            flex: 1;

            min-height: 0;

            overflow-y: auto;

            background-color: var(--yt-bg);

            display: flex;

            flex-direction: column;

        }

        .yt-content > main,
        .yt-content > section,
        .yt-content > .fot-ac {

            flex-shrink: 0;

        }

        .yt-content > .video-page-container,
        .yt-content > .profile-form-container,
        .yt-content > .paid-section {

            width: 100%;

            box-sizing: border-box;

        }



        .yt-content::-webkit-scrollbar {

            width: 8px;

        }



        .yt-content::-webkit-scrollbar-thumb {

            background: rgba(255, 255, 255, 0.2);

            border-radius: 4px;

        }



        /* 5. KATEGORİ FİLTRE ÇUBUĞU (CHIPS BAR) */

        .yt-chips {

            display: flex;

            align-items: center;

            gap: 12px;

            padding: 16px 24px;

            position: sticky;

            top: 0;

            background-color: rgba(15, 15, 15, 0.95);

            backdrop-filter: blur(10px);

            z-index: 50;

            border-bottom: 1px solid var(--yt-border);

            overflow-x: auto;

            flex-shrink: 0;

            min-height: 70px;

        }



        .yt-chips::-webkit-scrollbar {

            display: none;

        }



        .yt-chip {

            background-color: var(--yt-hover);

            color: white;

            border: none;

            padding: 10px 16px;

            border-radius: 20px;

            font-size: 0.95rem;

            white-space: nowrap;

            cursor: pointer;

            transition: background 0.2s;

            font-family: inherit;

            display: inline-flex;

            align-items: center;

            justify-content: center;

            box-sizing: border-box;

            text-decoration: none;

            line-height: normal;

            flex-shrink: 0;

        }



        .yt-chip:hover {

            background-color: rgba(255, 255, 255, 0.2);

        }



        .yt-chip.active {

            background-color: white;

            color: black;

            font-weight: 500;

        }



        /* 6. İSTATİSTİKLER (HERO BANNER) */

        .yt-hero-banner {

            display: flex;

            justify-content: space-between;

            align-items: center;

            background-color: var(--card-bg);

            border: 1px solid var(--yt-border);

            border-radius: 12px;

            padding: 24px;

            margin: 24px 24px 0 24px;

            transition: background-color 0.4s ease;

        }



        .yt-hero-banner-left {

            display: flex;

            flex-direction: column;

            gap: 16px;

        }

        .yt-hero-actions {
            display: flex;
            align-items: center;
            gap: 12px;
            flex-wrap: wrap;
        }

        .btn-kesfet-hero {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            padding: 10px 20px;
            font-weight: 600;
            font-size: 0.95rem;
            border-radius: 24px;
            border: 2px solid #EA580C;
            color: #EA580C;
            background: transparent;
            text-decoration: none;
            cursor: pointer;
            transition: background 0.18s, color 0.18s;
            white-space: nowrap;
        }

        .btn-kesfet-hero:hover {
            background: #EA580C;
            color: #fff;
            text-decoration: none;
        }



        .yt-hero-banner h1 {

            margin: 0;

            font-size: 1.8rem;

            line-height: 1.2;

        }



        .yt-hero-banner h1 span {

            color: var(--primary);

        }



        .yt-stats-row {

            display: flex;

            gap: 16px;

            flex-wrap: wrap;

        }



        .yt-stat-item {

            display: flex;

            align-items: center;

            gap: 12px;

            background-color: var(--yt-hover);

            border: 1px solid var(--yt-border);

            padding: 16px 20px;

            border-radius: 8px;

            transition: background-color 0.4s ease;

        }



        .yt-stat-item i {

            font-size: 1.8rem;

        }



        .yt-stat-item .val {

            font-size: 1.6rem;

            font-weight: 700;

            line-height: 1;

            margin-bottom: 4px;

        }



        .yt-stat-item .lbl {

            font-size: 0.85rem;

            color: var(--yt-text-muted);

            font-weight: 500;

        }



        /* 7. ANA İÇERİK / VİDEO IZGARASI (CSS GRID) */

        .yt-section-title {

            margin: 0 24px 16px 24px;

            font-size: 1.25rem;

            font-weight: 600;

        }



        .yt-grid {

            display: grid;

            grid-template-columns: repeat(4, 1fr);

            gap: 40px 16px;

            padding: 0 24px 40px 24px;

        }



        @media (min-width: 1600px) {

            .yt-grid {

                grid-template-columns: repeat(5, 1fr);

            }

        }



        @media (max-width: 1200px) {

            .yt-grid {

                grid-template-columns: repeat(3, 1fr);

            }

        }



        @media (max-width: 900px) {

            .yt-grid {

                grid-template-columns: repeat(2, 1fr);

            }

        }



        /* Mobile View Restructure */

        @media (max-width: 600px) {

            .yt-grid {

                grid-template-columns: 1fr;

                padding: 0 16px 40px 16px;

            }



            .yt-sidebar {

                position: absolute;

                height: 100%;

                z-index: 100;

                transform: translateX(-100%);

                background-color: var(--yt-bg);

            }



            .yt-sidebar.mobile-open {

                transform: translateX(0);

            }



            .yt-nav-mid {

                display: none;

            }



            .yt-chips {

                padding: 10px 12px;
                top: 54px;

            }



            .yt-hero-banner {

                padding: 16px;

                margin: 16px;

                flex-direction: column;

                align-items: flex-start;

            }



            .yt-hero-banner h1 {

                font-size: 1.4rem;

            }



            .yt-stats-row {

                width: 100%;

            }



            .yt-stat-item {

                flex: 1;

                min-width: 45%;

                padding: 12px;

            }



            .yt-section-title {

                margin-left: 16px;

                margin-right: 16px;

            }

        }



        /* 8. KART YAPISI (CARD) */

        .yt-card {

            display: flex;

            flex-direction: column;

            gap: 12px;

            text-decoration: none;

            color: var(--yt-text);

            cursor: pointer;

            background: transparent;

        }



        .yt-card-img-wrap {

            position: relative;

            width: 100%;

            border-radius: 12px;

            overflow: hidden;

            background-color: var(--yt-hover);

        }



        .yt-card-img-wrap img {

            width: 100%;

            height: auto;

            max-width: 100%;

            display: block;

            vertical-align: middle;

            image-rendering: auto;

            -webkit-backface-visibility: hidden;

            backface-visibility: hidden;

            transition: transform 0.3s ease;

        }



        /* Premium 3D Book Cover Design */

        .yt-card-img-wrap.book-cover {

            aspect-ratio: auto;

            background-color: transparent;

            border-radius: 4px 12px 12px 4px;

            box-shadow: 

                inset 4px 0 10px rgba(0,0,0,0.5), 

                -1px 0 2px rgba(255,255,255,0.2),

                8px 10px 20px rgba(0,0,0,0.4); 

            position: relative;

            transform: perspective(800px) rotateY(-12deg) translateX(5px);

            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);

            margin: 15px 20px 20px 10px;

            width: calc(100% - 30px);

            overflow: visible;

        }

        

        .yt-card-img-wrap.book-cover::after {

            content: '';

            position: absolute;

            top: 2%;

            right: -4px;

            width: 6px;

            height: 96%;

            background: linear-gradient(to right, #ddd, #fff, #ddd);

            border-radius: 0 4px 4px 0;

            border-right: 1px solid #ccc;

            z-index: -1;

            box-shadow: 2px 2px 5px rgba(0,0,0,0.3);

        }



        .yt-card-img-wrap.book-cover img {

            border-radius: 4px 10px 10px 4px;

            width: 100%;

            height: auto;

            max-width: 100%;

            object-fit: initial;

            image-rendering: auto;

            padding: 0;

            border-left: 5px solid rgba(255,255,255,0.25);

        }



        .yt-card:hover .yt-card-img-wrap.book-cover {

            transform: perspective(800px) rotateY(-2deg) scale(1.05) translateY(-5px); 

            box-shadow: 

                inset 2px 0 5px rgba(0,0,0,0.3), 

                15px 15px 30px rgba(0,0,0,0.6);

            z-index: 10;

        }



        .yt-card-img-wrap.cert-cover {

            aspect-ratio: auto;

            background-color: var(--card-bg);

        }



        .yt-card:hover .yt-card-img-wrap img {

            transform: scale(1.05);

        }



        .yt-play-overlay {

            position: absolute;

            top: 0;

            left: 0;

            width: 100%;

            height: 100%;

            background: rgba(0, 0, 0, 0.3);

            display: flex;

            align-items: center;

            justify-content: center;

            opacity: 0;

            transition: opacity 0.2s;

        }



        .yt-play-overlay i {

            font-size: 2rem;

            color: white;

        }



        .yt-card:hover .yt-play-overlay {

            opacity: 1;

        }



        .yt-card-badge {

            position: absolute;

            bottom: 8px;

            right: 8px;

            background: rgba(0, 0, 0, 0.8);

            padding: 2px 6px;

            border-radius: 4px;

            font-size: 0.75rem;

            font-weight: 600;

        }



        /* Modern Progress Bar for Cards */

        .yt-progress-container {

            position: absolute;

            bottom: 0;

            left: 0;

            width: 100%;

            height: 4px;

            background: rgba(255, 255, 255, 0.2);

        }



        .yt-progress-bar {

            height: 100%;

            background: #ef4444;

            border-bottom-left-radius: 12px;

        }



        .yt-card-info-wrap {

            display: flex;

            gap: 12px;

            align-items: flex-start;

            padding-right: 12px;

        }



        .yt-card-avatar {

            width: 36px;

            height: 36px;

            border-radius: 50%;

            object-fit: cover;

            flex-shrink: 0;

            background-color: #333;

        }



        .yt-card-text {

            flex: 1;

            display: flex;

            flex-direction: column;

        }



        .yt-card-title {

            font-size: 1rem;

            font-weight: 600;

            line-height: 1.4;

            display: -webkit-box;

            -webkit-line-clamp: 2;

            -webkit-box-orient: vertical;

            overflow: hidden;

            margin-bottom: 4px;

            color: var(--yt-text);

        }



        .yt-card-subtitle {

            font-size: 0.85rem;

            color: var(--yt-text-muted);

            transition: color 0.2s;

        }



        .yt-card-subtitle:hover {

            color: white;

        }



        .yt-card-meta {

            font-size: 0.8rem;

            color: var(--yt-text-muted);

            display: flex;

            align-items: center;

            gap: 6px;

            margin-top: 2px;

        }



        .yt-card-status {

            font-size: 0.75rem;

            color: #10B981;

            font-weight: 600;

            margin-top: 4px;

        }

        html.light-theme body.yt-layout,
        body.yt-layout.light-theme {

            background-color: #F9FAFB !important;

            color: #111827;

        }

        html.light-theme body.yt-layout .yt-main-wrapper,
        html.light-theme body.yt-layout .yt-content,
        body.yt-layout.light-theme .yt-main-wrapper,
        body.yt-layout.light-theme .yt-content {

            background-color: #F9FAFB !important;

        }

        html.light-theme body.yt-layout .paid-section,
        body.yt-layout.light-theme .paid-section {

            background-color: transparent;

        }


        /* =========================================
           MOBİL UYUMLULUK (RESPONSIVE)
           ========================================= */

        /* Genel: Dokunmatik hedefler ve iOS kaydırma düzeltmeleri */
        @media (max-width: 900px) {
            html, body { -webkit-text-size-adjust: 100%; }
            body.yt-layout { -webkit-overflow-scrolling: touch; }
            .yt-icon-btn, .yt-nav-left .hamburger {
                min-width: 44px;
                min-height: 44px;
            }
        }

        /* Tablet: 768px altı */
        @media (max-width: 768px) {
            .yt-nav-mid {
                margin: 0 12px;
                max-width: none;
            }
            .yt-navbar {
                padding: 0 10px;
                height: 56px;
            }
            .yt-nav-left {
                min-width: auto;
                gap: 8px;
            }
            .yt-nav-left .logo img {
                height: 28px;
            }
            .yt-search input {
                font-size: 0.9rem;
                padding: 8px 14px;
            }
            .yt-search button {
                padding: 0 14px;
            }
            .yt-secondary-nav {
                top: 56px;
                padding: 0 8px;
            }
            .yt-secondary-nav a {
                padding: 10px 10px;
                font-size: 0.78rem;
            }
            .yt-content {
                scroll-padding-top: 60px;
            }
            /* Tıklanabilir alanlar iOS'ta teğet hissini düzeltir */
            a, button, input, select, textarea {
                -webkit-tap-highlight-color: rgba(249, 115, 22, 0.2);
            }
        }

        /* Tablet (600-900px): Sidebar daralt, arama gizle — tam mobil değil */
        @media (max-width: 900px) and (min-width: 601px) {
            /* Sidebar otomatik olarak daraltılmış (collapsed) başlasın */
            .yt-sidebar {
                width: 72px;
            }
            .yt-sidebar .yt-menu-text {
                display: none;
            }
            .yt-sidebar .yt-menu-item {
                flex-direction: column;
                font-size: 0.65rem;
                gap: 4px;
                padding: 10px 6px;
            }
            .yt-sidebar .yt-menu-item i {
                font-size: 1.4rem;
            }
            /* Arama çubuğunu gizle, mobil arama ikonu göster */
            .yt-nav-mid {
                display: none;
            }
            .yt-nav-mobile-search {
                display: inline-flex !important;
            }
        }

        /* Mobil + Tablet (≤900px): Sidebar overlay modu */
        @media (max-width: 900px) {
            /* Sidebar tam ekran overlay */
            .yt-main-wrapper {
                position: relative;
            }
            .yt-sidebar {
                position: fixed !important;
                top: 0;
                left: 0;
                height: 100dvh;
                height: 100vh;
                z-index: 1200;
                transform: translateX(-100%);
                width: 260px !important;
                transition: transform 0.25s ease;
            }
            .yt-sidebar .yt-menu-text { display: block !important; }
            .yt-sidebar .yt-menu-item { flex-direction: row !important; font-size: 0.9rem !important; gap: 10px !important; padding: 12px 16px !important; }
            .yt-sidebar .yt-menu-item i { font-size: 1.1rem !important; }
            .yt-sidebar.mobile-open {
                transform: translateX(0);
            }
            /* Sidebar arka plan karartıcı */
            .yt-sidebar-backdrop {
                position: fixed;
                inset: 0;
                background: rgba(0,0,0,0.45);
                z-index: 1199;
                opacity: 0;
                pointer-events: none;
                transition: opacity 0.2s ease;
            }
            .yt-sidebar-backdrop.visible {
                opacity: 1;
                pointer-events: auto;
            }
        }

        /* Mobil: 600px altı — Navbar sıkıştırma, chips sabit, ikonlar küçültme */
        @media (max-width: 600px) {
            .yt-icon-btn {
                width: 36px;
                height: 36px;
                font-size: 1rem;
            }
            .yt-navbar .profile-menu .avatar {
                width: 30px;
                height: 30px;
            }

            /* Secondary nav: küçük yazı, sola yakın */
            .yt-secondary-nav {
                padding: 0 6px;
            }
            .yt-secondary-nav a {
                padding: 9px 8px;
                font-size: 0.72rem;
            }

            /* Content padding */
            .yt-content {
                padding-bottom: env(safe-area-inset-bottom, 0);
            }

            /* Hero banner & stats — grid ile override ediliyor, burada sadece fallback */
            .yt-hero-banner {
                margin: 10px;
                padding: 14px;
            }
            .yt-hero-banner h1 {
                font-size: 1.15rem;
            }

            /* Section başlıkları */
            .yt-section-title {
                font-size: 1.05rem;
            }
        }

        /* Çok küçük mobil: 400px altı */
        @media (max-width: 400px) {
            .yt-nav-left .logo img {
                height: 24px;
            }
            .yt-navbar {
                padding: 0 6px;
            }
            .yt-secondary-nav a {
                padding: 8px 6px;
                font-size: 0.7rem;
            }
            .yt-sidebar {
                width: 260px !important;
            }
            .yt-stat-item {
                min-width: 100%;
            }
        }

        /* Arama butonu mobilde (varsayılanda gizli - açılınca override) */
        .yt-nav-mobile-search {
            display: none;
        }
        .yt-nav-mobile-search.active + .yt-nav-mid,
        .yt-nav-mid.mobile-visible {
            display: flex !important;
            position: absolute;
            top: 56px;
            left: 0;
            right: 0;
            margin: 0;
            padding: 10px 12px;
            background: var(--yt-nav-bg);
            border-bottom: 1px solid var(--yt-border);
            max-width: none;
            z-index: 998;
        }

        /* yt-content içinde mobilde yanlardaki padding'i azalt */
        @media (max-width: 600px) {
            .yt-content > .container,
            .yt-content main,
            .yt-content section {
                padding-left: 12px;
                padding-right: 12px;
            }
        }

/* ============================================================
   PANEL GLOBAL SEARCH DROPDOWN (yt-search dropdown)
   Not: Resimler CSS boyutu olmadan doğal boyutunda render
   olduğu için ekranı kaplıyordu. Burada kontrol altına alındı.
   ============================================================ */
.yt-search { position: relative; }

.panel-search-results {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    background: var(--yt-card-bg, #212121);
    border: 1px solid var(--yt-border, rgba(255,255,255,0.15));
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
    max-height: 420px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1100;
    padding: 6px 0;
}

.panel-search-results.is-open { display: block; }

.panel-search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-decoration: none;
    color: var(--text-main, #fff);
    transition: background 0.15s ease;
    line-height: 1.35;
}

.panel-search-item:last-child { border-bottom: none; }

.panel-search-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--primary, #F97316);
    text-decoration: none;
}

.panel-search-item--empty {
    justify-content: center;
    color: var(--text-muted, #9ca3af);
    padding: 14px 14px;
    cursor: default;
}

.panel-search-item--all {
    justify-content: center;
    background: rgba(249, 115, 22, 0.08);
    border-top: 1px solid rgba(249, 115, 22, 0.18);
    border-bottom: none !important;
    font-weight: 600;
    padding: 12px 14px;
}

.panel-search-item--all:hover { background: rgba(249, 115, 22, 0.16); }

.panel-search-item--all .panel-search-item__title {
    color: var(--primary, #F97316);
    text-align: center;
    white-space: normal;
}

.panel-search-item--all .panel-search-item__title i { margin-right: 6px; }

.panel-search-results .panel-search-item__img,
.panel-search-item__img {
    flex: 0 0 56px !important;
    width: 56px !important;
    height: 36px !important;
    max-width: 56px !important;
    max-height: 36px !important;
    min-width: 56px;
    border-radius: 6px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.06);
    display: block;
    padding: 0;
    border: none;
    box-shadow: none;
}

.panel-search-item__img--placeholder {
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: var(--text-muted, #9ca3af);
    font-size: 14px;
}

.panel-search-item__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1 1 auto;
}

.panel-search-item__title {
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: inherit;
}

.panel-search-item__type {
    font-size: 11.5px;
    color: var(--text-muted, #9ca3af);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Açık tema uyumu */
html.light-theme .panel-search-results,
body.light-theme .panel-search-results {
    background: #ffffff;
    border-color: #E5E7EB;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

html.light-theme .panel-search-item,
body.light-theme .panel-search-item {
    color: #111827;
    border-bottom-color: #F1F5F9;
}

html.light-theme .panel-search-item:hover,
body.light-theme .panel-search-item:hover {
    background: #F9FAFB;
}

html.light-theme .panel-search-item--empty,
body.light-theme .panel-search-item--empty {
    color: #6B7280;
}

html.light-theme .panel-search-item__img,
body.light-theme .panel-search-item__img {
    background: #F3F4F6;
}

html.light-theme .panel-search-item__type,
body.light-theme .panel-search-item__type {
    color: #6B7280;
}

/* Mobilde: dropdown tam genişlik ve ekran taşmasın */
@media (max-width: 768px) {
    .panel-search-results {
        max-height: 70vh;
        border-radius: 10px;
        left: 0;
        right: 0;
    }

    .panel-search-item { padding: 10px 12px; gap: 10px; }

    .panel-search-results .panel-search-item__img,
    .panel-search-item__img {
        flex: 0 0 48px !important;
        width: 48px !important;
        height: 32px !important;
        max-width: 48px !important;
        max-height: 32px !important;
        min-width: 48px;
    }
}

/* ===========================================================
   PANEL HEADER CART BADGE
   =========================================================== */
.yt-cart-btn { position: relative; }

.yt-cart-btn .cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    border: 2px solid var(--bg-main);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(249, 115, 22, 0.45);
    pointer-events: none;
}

@keyframes cartPulse {
    0%   { transform: scale(1); }
    35%  { transform: scale(1.45); box-shadow: 0 0 0 8px rgba(249, 115, 22, 0.25); }
    100% { transform: scale(1); box-shadow: 0 2px 6px rgba(249, 115, 22, 0.45); }
}

.yt-cart-btn .cart-badge.cart-pulse { animation: cartPulse .8s ease; }

body.light-theme .yt-cart-btn .cart-badge { border-color: #ffffff; }

/* ===========================================================
   KESFET PAGE
   =========================================================== */
body.kesfet-page .yt-content {
    padding-top: 24px;
    padding-bottom: 60px;
}

/* display:contents makes #kesfetMain's children direct flex children of .yt-content
   so position:sticky on .kesfet-chips works correctly inside the scroll container.
   ASP.NET's Visible=false adds inline display:none which overrides this → hiding still works. */
body.kesfet-page #kesfetMain {
    display: contents;
}

/* HERO */
.kesfet-hero {
    position: relative;
    background: linear-gradient(135deg, #fb923c 0%, #f97316 45%, #ea580c 100%);
    border-radius: 20px;
    padding: 36px 38px;
    color: #fff;
    overflow: hidden;
    box-shadow: 0 20px 50px -20px rgba(234, 88, 12, .55);
    display: flex;
    align-items: center;
    gap: 28px;
    margin-bottom: 28px;
}

.kesfet-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(800px 240px at 100% 0%, rgba(255, 255, 255, 0.18), transparent 60%),
                radial-gradient(500px 200px at 0% 100%, rgba(0, 0, 0, 0.18), transparent 60%);
    pointer-events: none;
}

.kesfet-hero-left { flex: 1 1 auto; min-width: 0; position: relative; z-index: 1; }
.kesfet-hero-right { flex: 0 0 auto; position: relative; z-index: 1; }

.kesfet-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    margin-bottom: 14px;
    backdrop-filter: blur(6px);
}

.kesfet-hero-title {
    font-size: 30px;
    font-weight: 800;
    margin: 0 0 8px;
    line-height: 1.2;
    color: #fff;
}

.kesfet-hero-subtitle {
    font-size: 15px;
    opacity: .92;
    margin: 0 0 18px;
    color: #fff;
}

.kesfet-hero-kategoriler {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.kesfet-hero-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    opacity: .95;
}

.kesfet-hero-chips {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
}

.kesfet-hero-chip {
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    backdrop-filter: blur(6px);
}

.kesfet-hero-edit {
    background: #fff;
    color: #ea580c;
    border: none;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: transform .2s ease, box-shadow .2s ease;
    box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .35);
    margin-left: 4px;
}

.kesfet-hero-edit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px -8px rgba(0, 0, 0, .4);
}

.kesfet-hero-emoji {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    border: 2px dashed rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    color: #fff;
    backdrop-filter: blur(8px);
}

/* CHIPS FILTRE BAR */
.kesfet-chips {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding: 12px 0;
    margin-bottom: 14px;
    background: linear-gradient(to bottom, var(--bg-main) 85%, transparent);
}

.kesfet-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    color: var(--text-main);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
}

.kesfet-chip:hover {
    border-color: #f97316;
    color: #f97316;
    transform: translateY(-1px);
}

.kesfet-chip.active {
    background: linear-gradient(135deg, #fb923c, #ea580c);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 20px -8px rgba(234, 88, 12, .55);
}

/* SECTIONS */
.kesfet-section { margin-bottom: 36px; }

.kesfet-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 12px;
}

.kesfet-section-title {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.kesfet-section-title h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    color: var(--text-main);
}

.kesfet-section-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .4);
}

.kesfet-section-icon.canli-bg { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.kesfet-section-icon.video-bg { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.kesfet-section-icon.kitap-bg { background: linear-gradient(135deg, #10b981, #047857); }

.kesfet-section-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #f97316;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: transform .2s ease;
}

.kesfet-section-more:hover { transform: translateX(3px); color: #ea580c; }

/* GRID & CARDS */
.kesfet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
}

.kesfet-grid-book {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

.kesfet-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.kesfet-card:hover {
    transform: translateY(-4px);
    border-color: rgba(249, 115, 22, 0.45);
    box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .55);
}

.kesfet-card-img {
    position: relative;
    aspect-ratio: auto;
    overflow: hidden;
    background: #0a0a0a;
}

.kesfet-card-img.book-img { aspect-ratio: auto; background: #0a0a0a; }

.kesfet-card-img img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: initial;
    image-rendering: auto;
    backface-visibility: hidden;
    transform: translateZ(0);
    transition: transform .4s ease;
}

.kesfet-card:hover .kesfet-card-img img { transform: scale(1.04) translateZ(0); }

.kesfet-card-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .4px;
    backdrop-filter: blur(6px);
}

.kesfet-card-tag.tag-canli { background: rgba(239, 68, 68, .92); }
.kesfet-card-tag.tag-video { background: rgba(59, 130, 246, .92); }
.kesfet-card-tag.tag-kitap { background: rgba(16, 185, 129, .92); }

.kesfet-card-body {
    padding: 14px 14px 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 6px;
}

.kesfet-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.35;
    margin: 0 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
}

.kesfet-card-meta {
    font-size: 12.5px;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.kesfet-card-meta i { color: #f97316; font-size: 11.5px; }

.kesfet-card-footer {
    margin-top: auto;
    padding-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.kesfet-card-price {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}

.kesfet-card-price .old {
    color: var(--text-muted);
    font-size: 12px;
    text-decoration: line-through;
}

.kesfet-card-price .now {
    color: #f97316;
    font-size: 16px;
    font-weight: 800;
}

.kesfet-card-price.free {
    color: #10b981;
    font-size: 14px;
    font-weight: 700;
}

.kesfet-card-price.owned {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #10b981;
    font-size: 13px;
    font-weight: 700;
}

/* ACTION BUTTONS */
.kesfet-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: all .2s ease;
}

.kesfet-action-btn.kesfet-action-buy {
    background: linear-gradient(135deg, #fb923c, #ea580c);
    color: #fff;
    box-shadow: 0 8px 16px -8px rgba(234, 88, 12, .6);
}

.kesfet-action-btn.kesfet-action-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 22px -8px rgba(234, 88, 12, .7);
}

.kesfet-action-btn.kesfet-action-watch {
    background: transparent;
    color: #f97316;
    border-color: #f97316;
}

.kesfet-action-btn.kesfet-action-watch:hover {
    background: rgba(249, 115, 22, 0.12);
    color: #ea580c;
}

.kesfet-action-btn.kesfet-action-free {
    background: linear-gradient(135deg, #34d399, #10b981);
    color: #fff;
    box-shadow: 0 8px 16px -8px rgba(16, 185, 129, .6);
}

.kesfet-action-btn.kesfet-action-free:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 22px -8px rgba(16, 185, 129, .7);
}

.kesfet-action-btn.added {
    background: rgba(16, 185, 129, .15);
    color: #10b981;
    border-color: rgba(16, 185, 129, .35);
    cursor: default;
}

.kesfet-action-btn:disabled { opacity: .85; cursor: not-allowed; }

/* EMPTY STATE */
.kesfet-empty {
    grid-column: 1 / -1;
    background: var(--card-bg);
    border: 1px dashed var(--border-color);
    border-radius: 14px;
    padding: 28px 22px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

.kesfet-empty i { color: #f97316; margin-right: 6px; }

/* CATEGORY MODAL */
.kesfet-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.kesfet-modal-card {
    width: 100%;
    max-width: 760px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8);
    animation: kesfetModalIn .3s ease both;
    position: relative;
}

.kesfet-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 10;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-muted, #9ca3af);
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .18s, color .18s, transform .15s;
    padding: 0;
    line-height: 1;
}
.kesfet-modal-close:hover {
    background: rgba(249, 115, 22, .12);
    color: #f97316;
    transform: scale(1.1);
}
body.light-theme .kesfet-modal-close {
    background: #f9fafb;
    color: #6b7280;
    border-color: #e5e7eb;
}
body.light-theme .kesfet-modal-close:hover {
    background: rgba(249, 115, 22, .1);
    color: #ea580c;
}

@keyframes kesfetModalIn {
    from { opacity: 0; transform: translateY(20px) scale(.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.kesfet-modal-head {
    padding: 26px 28px 14px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, rgba(249, 115, 22, .12), transparent);
}

.kesfet-modal-head > i {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, #fb923c, #ea580c);
    color: #fff;
    font-size: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    box-shadow: 0 16px 28px -14px rgba(234, 88, 12, .65);
}

.kesfet-modal-head h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 6px;
}

.kesfet-modal-head p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

.kesfet-modal-head p b { color: #f97316; }

.kesfet-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    padding: 22px 26px;
    max-height: 50vh;
    overflow-y: auto;
}

.kesfet-cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
    transition: all .2s ease;
    user-select: none;
    margin: 0;
}

.kesfet-cat-item input { display: none; }

.kesfet-cat-item i {
    font-size: 22px;
    color: var(--text-muted);
    transition: color .2s ease;
}

.kesfet-cat-item span {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.3;
    word-break: break-word;
}

.kesfet-cat-item:hover {
    border-color: rgba(249, 115, 22, .55);
    transform: translateY(-2px);
}

.kesfet-cat-item:hover i { color: #f97316; }

.kesfet-cat-item.selected {
    border-color: #f97316;
    background: rgba(249, 115, 22, 0.12);
    box-shadow: 0 8px 20px -10px rgba(249, 115, 22, .55);
}

.kesfet-cat-item.selected i { color: #f97316; }

.kesfet-modal-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 26px 22px;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.kesfet-modal-counter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
}

.kesfet-modal-counter i { color: #10b981; }
.kesfet-modal-counter #catModalCounter { color: #f97316; font-weight: 800; }

.kesfet-modal-btn {
    background: linear-gradient(135deg, #fb923c, #ea580c);
    color: #fff;
    border: none;
    padding: 11px 22px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
    box-shadow: 0 12px 22px -10px rgba(234, 88, 12, .65);
}

.kesfet-modal-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 18px 28px -10px rgba(234, 88, 12, .75);
}

.kesfet-modal-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
    box-shadow: none;
}

/* LIGHT THEME OVERRIDES */
body.light-theme .kesfet-chips {
    background: linear-gradient(to bottom, #ffffff 80%, transparent);
}

body.light-theme .kesfet-chip {
    background: #ffffff;
    border-color: #e5e7eb;
    color: #1f2937;
}

body.light-theme .kesfet-chip:hover {
    border-color: #f97316;
    color: #f97316;
}

body.light-theme .kesfet-card {
    background: #ffffff;
    border-color: #e5e7eb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .04);
}

body.light-theme .kesfet-card:hover {
    box-shadow: 0 18px 36px -16px rgba(0, 0, 0, .15);
}

body.light-theme .kesfet-card-title { color: #1f2937; }
body.light-theme .kesfet-card-meta { color: #6b7280; }
body.light-theme .kesfet-empty {
    background: #ffffff;
    border-color: #e5e7eb;
    color: #6b7280;
}

body.light-theme .kesfet-modal-overlay { background: rgba(31, 41, 55, .55); }

body.light-theme .kesfet-modal-card {
    background: #ffffff;
    border-color: #e5e7eb;
    box-shadow: 0 30px 80px -20px rgba(31, 41, 55, .35);
}

body.light-theme .kesfet-modal-head { border-color: #e5e7eb; }
body.light-theme .kesfet-modal-head h2 { color: #1f2937; }
body.light-theme .kesfet-modal-head p { color: #6b7280; }

body.light-theme .kesfet-cat-item {
    background: #f9fafb;
    border-color: #e5e7eb;
}

body.light-theme .kesfet-cat-item span { color: #1f2937; }
body.light-theme .kesfet-cat-item i { color: #9ca3af; }
body.light-theme .kesfet-cat-item:hover i,
body.light-theme .kesfet-cat-item.selected i { color: #f97316; }

body.light-theme .kesfet-modal-foot {
    border-color: #e5e7eb;
}

body.light-theme .kesfet-section-title h2 { color: #111827; }

body.light-theme .yt-cart-btn .cart-badge {
    border-color: #ffffff;
}

/* MOBILE RESPONSIVE */
@media (max-width: 1024px) {
    .kesfet-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
    .kesfet-grid-book { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
    .kesfet-hero-title { font-size: 26px; }
}

@media (max-width: 768px) {
    .kesfet-hero {
        flex-direction: column;
        align-items: flex-start;
        padding: 26px 22px;
        border-radius: 16px;
    }

    .kesfet-hero-right { display: none; }
    .kesfet-hero-title { font-size: 22px; }
    .kesfet-hero-subtitle { font-size: 13.5px; }

    .kesfet-hero-kategoriler { flex-direction: column; align-items: flex-start; }
    .kesfet-hero-edit { margin-left: 0; align-self: flex-start; }

    .kesfet-chips {
        position: sticky;
        top: 0;
        z-index: 20;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding: 8px 0 6px;
        scrollbar-width: none;
        background: linear-gradient(to bottom, var(--bg-main) 85%, transparent);
    }

    .kesfet-chips::-webkit-scrollbar { display: none; }
    .kesfet-chip { flex: 0 0 auto; padding: 8px 14px; font-size: 12.5px; }

    .kesfet-section-head {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .kesfet-section-title h2 { font-size: 18px; }
    .kesfet-section-icon { width: 32px; height: 32px; font-size: 14px; }

    .kesfet-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
    .kesfet-grid-book { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }

    .kesfet-card-title { font-size: 13.5px; min-height: 2.5em; }
    .kesfet-card-meta { font-size: 11.5px; }
    .kesfet-card-body { padding: 12px 12px 10px; }

    .kesfet-card-footer { gap: 6px; }
    .kesfet-action-btn { padding: 8px 11px; font-size: 12px; }
    .kesfet-card-price .now { font-size: 14px; }

    .kesfet-cat-grid {
        grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
        gap: 8px;
        padding: 16px 14px;
        max-height: 55vh;
    }

    .kesfet-cat-item { padding: 12px 6px; }
    .kesfet-cat-item span { font-size: 11.5px; }

    .kesfet-modal-head { padding: 20px 18px 12px; }
    .kesfet-modal-head h2 { font-size: 18px; }
    .kesfet-modal-head p { font-size: 13px; }
    .kesfet-modal-foot { padding: 14px 16px 18px; }
    .kesfet-modal-btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
    .kesfet-grid { grid-template-columns: repeat(2, 1fr); }
    .kesfet-grid-book { grid-template-columns: repeat(2, 1fr); }
    .kesfet-card-footer { flex-direction: column; align-items: stretch; }
    .kesfet-action-btn { width: 100%; }
    .kesfet-card-price { justify-content: flex-start; }
}

/* ── Mobile Search Overlay (JS ile oluşturulur) ── */
html.light-theme #mobileSearchOverlay,
body.light-theme #mobileSearchOverlay {
    background: rgba(0,0,0,.5);
}
html.light-theme #mobileSearchOverlay > div:first-child,
body.light-theme #mobileSearchOverlay > div:first-child {
    background: #fff !important;
    border-color: #e9ecef !important;
}
html.light-theme #mobileSearchInput,
body.light-theme #mobileSearchInput {
    color: #111827 !important;
}
html.light-theme #mobileSearchResults,
body.light-theme #mobileSearchResults {
    background: #fff !important;
    border-color: #e9ecef !important;
}
html.light-theme #mobileSearchResults a,
body.light-theme #mobileSearchResults a {
    color: #111827 !important;
    border-bottom-color: #f3f4f6 !important;
}
html.light-theme #mobileSearchResults a:hover,
body.light-theme #mobileSearchResults a:hover {
    background: #f9fafb !important;
}

/* =====================================================================
   MOBİL DÜZELTMELERİ — Navbar taşma + chips sabit + stats grid
   ===================================================================== */

@media (max-width: 600px) {

    /* 1. Navbar: nav-left min-width sıfırla, her şey bir satıra sığsın */
    .yt-navbar {
        height: 54px !important;
        padding: 0 10px !important;
        flex-wrap: nowrap;
        overflow: visible;
    }
    .yt-nav-left {
        min-width: 0 !important;
        gap: 8px;
        flex-shrink: 1;
    }
    .yt-nav-left .logo img {
        height: 26px;
        max-width: 130px;
        width: auto;
    }

    /* Tema toggle butonunun JS enjekte ettiği margin-right'ı sıfırla */
    .global-theme-toggler {
        width: 34px !important;
        height: 34px !important;
        margin-right: 0 !important;
        font-size: 1rem !important;
    }

    /* Bell gizle — cart + search + tema + avatar yeterli */
    .yt-navbar .yt-icon-btn[title="Bildirimler"] {
        display: none !important;
    }
    .yt-nav-right {
        gap: 1px;
        flex-shrink: 0;
    }
    .yt-icon-btn {
        width: 34px !important;
        height: 34px !important;
        font-size: 0.95rem;
    }
    .yt-navbar .profile-menu .avatar,
    .yt-navbar .yt-avatar {
        width: 32px !important;
        height: 32px !important;
    }

    /* 2. Chips: position FIXED — scroll ile kaymasın */
    .yt-chips {
        position: fixed !important;
        top: 54px;
        left: 0;
        right: 0;
        z-index: 990;
        padding: 8px 12px;
        min-height: 50px;
        gap: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,.15);
    }
    .yt-chip {
        padding: 6px 12px;
        font-size: 0.82rem;
    }

    /* Sabit chips yüksekliği kadar content'e boşluk ekle */
    .yt-content {
        padding-top: 50px;
    }

    /* 3. Stats: 2 kolonlu grid */
    .yt-stats-row {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        width: 100%;
    }
    .yt-stat-item {
        min-width: 0 !important;
        width: auto !important;
        flex: unset !important;
        padding: 10px 12px;
    }
    .yt-stat-item .val { font-size: 1.3rem; }
    .yt-stat-item .lbl { font-size: 0.75rem; }
    .yt-stat-item i { font-size: 1.4rem; }

    /* 4. Hero banner */
    .yt-hero-banner {
        flex-direction: column;
        align-items: stretch;
        margin: 10px;
        padding: 14px;
        gap: 14px;
    }
    .yt-hero-banner h1 {
        font-size: 1.15rem;
        line-height: 1.3;
    }
    .yt-hero-banner-left { gap: 10px; }
    .yt-hero-actions { flex-direction: column; align-items: stretch; }
    #btnUcretsizEkle { width: 100%; justify-content: center; }
    .btn-kesfet-hero { width: 100%; justify-content: center; }

    /* 5. Section & grid */
    .yt-section-heading { padding: 0 12px; }
    .yt-section-title { font-size: 1rem; margin-left: 0; }
    .yt-grid { padding: 0 10px 24px 10px !important; }
    .panel-inline-search { padding: 0 10px; margin-bottom: 12px; }
    .warning-box { margin: 10px; font-size: 0.85rem; }
}

/* Çok küçük ≤380px */
@media (max-width: 380px) {
    .yt-navbar { padding: 0 6px !important; }
    .yt-nav-left .logo img { height: 22px; max-width: 110px; }
    .global-theme-toggler { width: 30px !important; height: 30px !important; }
    .yt-icon-btn { width: 30px !important; height: 30px !important; }
    .yt-chips { gap: 6px; padding: 7px 8px; }
    .yt-chip { padding: 5px 9px; font-size: 0.76rem; }
}
