@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --bg: #08080f;
    --surface: #10101c;
    --surface2: #18182a;
    --border: #2a2a40;
    --primary: #8b5cf6;
    --primary-dark: #6d28d9;
    --primary-glow: rgba(139, 92, 246, 0.35);
    --accent: #a78bfa;
    --text: #f0f0ff;
    --muted: #7070a0;
    --font: 'Inter', sans-serif;
}

/* Light Mode */
body.light-mode {
    --bg: #f4f4f8;
    --surface: #ffffff;
    --surface2: #eeeef5;
    --border: #d0d0e8;
    --primary: #7c3aed;
    --primary-dark: #5b21b6;
    --primary-glow: rgba(124, 58, 237, 0.2);
    --accent: #6d28d9;
    --text: #1a1a2e;
    --muted: #6b7280;
}

/* ── Light mode component overrides ── */
body.light-mode header {
    background: #fff;
    border-bottom-color: var(--primary);
}

body.light-mode .header-search input {
    background: #f0f0f8;
    border-color: var(--border);
    color: var(--text);
}

body.light-mode footer {
    background: #fff;
}

/* Section titles */
body.light-mode .section-title {
    background: linear-gradient(135deg, #ede9fe, #f5f3ff);
    color: var(--text);
}

/* Hero slider */
body.light-mode .hero-slider-wrap {
    background: #e8e8f5;
}

body.light-mode .hero-top-grid {
    background: #e8e8f5;
}

body.light-mode .hero-slide-overlay {
    background: linear-gradient(to right, rgba(244, 244, 248, 0.97) 0%, rgba(244, 244, 248, 0.7) 55%, transparent 100%);
}

body.light-mode .hero-slide-title {
    color: var(--text);
}

body.light-mode .hero-slide-desc {
    color: #555;
}

body.light-mode .hero-slide-stats {
    color: #666;
}

body.light-mode .hero-slide-tag {
    background: rgba(124, 58, 237, 0.08);
    border-color: rgba(124, 58, 237, 0.2);
    color: #555;
}

/* Editor choice */
body.light-mode .editor-choice-card {
    background: #fff;
    border-color: var(--border);
}

body.light-mode .editor-choice-header {
    background: #ede9fe;
    color: var(--text);
    border-bottom-color: var(--primary);
}

body.light-mode .editor-choice-overlay {
    background: linear-gradient(to top, rgba(244, 244, 248, 0.98) 0%, rgba(244, 244, 248, 0.75) 60%, transparent 100%);
}

body.light-mode .editor-choice-title {
    color: var(--text);
}

body.light-mode .badge-status {
    border-color: #999;
    color: #555;
}

body.light-mode .genre-label {
    background: #ede9fe;
    border-color: #d8b4fe;
    color: #5b21b6;
}

/* Pop cards */
body.light-mode .pop-card {
    background: #fff;
    border-color: var(--border);
}

body.light-mode .pop-card-title {
    color: var(--text);
}

body.light-mode .pop-card-chapter,
body.light-mode .pop-card-views {
    color: var(--muted);
}

/* Recent cards */
body.light-mode .recent-card {
    background: #fff;
    border-color: var(--border);
}

body.light-mode .recent-card-title {
    color: var(--text);
}

body.light-mode .chapter-entry {
    background: #f0f0f8;
    color: #444;
}

body.light-mode .chapter-entry:hover {
    background: #ede9fe;
    color: var(--primary);
}

body.light-mode .ch-time {
    color: var(--muted);
}

/* Sidebar */
body.light-mode .sidebar-categories {
    background: #fff;
    border-color: var(--border);
}

body.light-mode .sidebar-categories a {
    color: var(--muted);
}

body.light-mode .sidebar-categories a:hover {
    color: var(--primary);
}

body.light-mode .pop-sidebar-box {
    background: #fff;
    border-color: var(--border);
}

body.light-mode .pop-sidebar-header {
    background: #ede9fe;
    color: var(--text);
    border-bottom-color: var(--primary);
}

body.light-mode .pop-sidebar-tabs {
    background: #f5f3ff;
}

body.light-mode .pop-sidebar-tab {
    background: #e5e7eb;
    color: #555;
}

body.light-mode .pop-sidebar-tab.active {
    background: var(--primary);
    color: #fff;
}

body.light-mode .pop-sidebar-item {
    border-bottom-color: var(--border);
}

body.light-mode .pop-sidebar-title {
    color: var(--text);
}

body.light-mode .pop-sidebar-cats {
    color: var(--muted);
}

body.light-mode .pop-rank {
    background: #e5e7eb;
    color: #555;
}

body.light-mode .pop-rank.top1 {
    background: var(--primary);
    color: #fff;
}

/* Auth forms */
body.light-mode .auth-card {
    background: #fff;
    border-color: var(--border);
}

body.light-mode .form-control {
    background: #f5f3ff;
    border-color: var(--border);
    color: var(--text);
}

/* Admin */
body.light-mode .admin-panel {
    background: #fff;
    border-color: var(--border);
}

body.light-mode .admin-tab {
    background: #fff;
    border-color: var(--border);
    color: #555;
}

body.light-mode tr:hover {
    background: rgba(124, 58, 237, 0.04);
}

body.light-mode th {
    color: var(--muted);
}

body.light-mode td {
    color: var(--text);
}

body.light-mode .btn-login {
    color: var(--text);
    border-color: var(--border);
}

/* Smooth transitions when switching themes */
*,
*::before,
*::after {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

/* Disable transitions on images and ensure crisp rendering */
img {
    transition: none !important;
    image-rendering: -webkit-optimize-contrast;
    /* Safari/Webkit */
    image-rendering: crisp-edges;
    /* Others */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===================== HEADER ===================== */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(5, 5, 14, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    padding: 0.6rem 2rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

header:hover {
    background: rgba(5, 5, 14, 0.95);
    border-bottom-color: var(--primary);
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #fff 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.desktop-nav ul {
    display: flex;
    gap: 1rem;
    list-style: none;
}

.desktop-nav a {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--muted);
    padding: 8px 12px;
    border-radius: 10px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.desktop-nav a i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.desktop-nav a:hover {
    color: #fff;
    background: rgba(139, 92, 246, 0.1);
}

.desktop-nav a:hover i {
    transform: translateY(-2px);
    color: var(--primary);
}

.header-right-group {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
}

/* Visibility Controls */
.mobile-menu-btn,
.mobile-only,
.mobile-search-only,
.mobile-nav-drawer {
    display: none !important;
}

@media(max-width: 768px) {

    /* Hide Desktop Elements */
    .desktop-nav,
    .desktop-search,
    .desktop-auth-btns {
        display: none !important;
    }

    /* Show Mobile Elements */
    .mobile-menu-btn {
        display: flex !important;
        background: none;
        border: none;
        color: #fff;
        cursor: pointer;
        font-size: 1.2rem;
    }

    .mobile-only {
        display: block !important;
    }

    .mobile-search-only {
        display: flex !important;
    }

    header {
        padding: 0.7rem 1rem;
        justify-content: space-between;
        gap: 0.5rem;
    }

    .logo {
        font-size: 1.2rem;
        margin: 0 auto 0 10px;
    }

    .mobile-nav-drawer {
        display: block !important;
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        overflow-y: auto;
        background: rgba(16, 16, 28, 0.95);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border-right: 1px solid rgba(139, 92, 246, 0.2);
        z-index: 2000;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 2.5rem 1.5rem 4rem 1.5rem;
        box-shadow: 20px 0 50px rgba(0, 0, 0, 0.5);
    }

    .mobile-nav-drawer.active {
        left: 0;
    }

    .mobile-nav-drawer ul {
        display: flex;
        flex-direction: column;
        gap: 10px;
        list-style: none;
    }

    .mobile-nav-drawer a {
        font-size: 1rem;
        font-weight: 600;
        color: var(--text);
        padding: 14px 18px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        gap: 15px;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid transparent;
        transition: all 0.3s ease;
    }

    .mobile-nav-drawer a:hover,
    .mobile-nav-drawer a.active {
        background: rgba(139, 92, 246, 0.1);
        border-color: rgba(139, 92, 246, 0.2);
        color: var(--primary);
        transform: translateX(5px);
    }

    .mobile-nav-drawer a i {
        font-size: 1.1rem;
        width: 20px;
        text-align: center;
    }

    /* Canlı Mobil Butonlar */
    .btn-mobile-login {
        background: linear-gradient(135deg, var(--primary), var(--accent)) !important;
        color: #fff !important;
        margin-top: 15px;
        display: flex !important;
        justify-content: center;
        box-shadow: 0 4px 15px var(--primary-glow);
        text-transform: uppercase;
        letter-spacing: 1px;
        border: none !important;
    }

    .btn-mobile-register {
        background: rgba(139, 92, 246, 0.1) !important;
        border: 2px solid var(--primary) !important;
        color: var(--primary) !important;
        margin-top: 10px;
        display: flex !important;
        justify-content: center;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .btn-mobile-logout {
        color: #f87171 !important;
        background: rgba(239, 68, 68, 0.05) !important;
        border: 1px solid rgba(239, 68, 68, 0.2) !important;
        margin-top: 20px;
        justify-content: center;
    }

    .mobile-nav-drawer a i {
        margin-right: 10px;
    }
}

/* More Menu (Three Dots) */
.more-menu-container {
    position: relative;
}

.more-btn {
    background: none;
    border: none;
    color: #aaa;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s;
    display: flex;
    align-items: center;
}

.more-btn:hover {
    color: var(--primary);
}

.more-dropdown {
    position: absolute;
    top: 120%;
    right: 0;
    width: 200px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    gap: 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    z-index: 1001;
}

.more-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.more-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #ccc;
    transition: all 0.2s;
}

.more-dropdown a:hover {
    background: var(--primary);
    color: #fff;
}

/* Expandable Search Styles */
.header-search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-toggle-btn {
    background: none;
    border: none;
    color: #aaa;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 10px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.search-toggle-btn:hover {
    color: var(--primary);
    background: rgba(139, 92, 246, 0.1);
    transform: scale(1.1);
}

.header-search {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%) scaleX(0);
    transform-origin: right;
    width: 320px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    visibility: hidden;
    z-index: 1002;
}

.header-search-container.active .header-search {
    transform: translateY(-50%) scaleX(1);
    opacity: 1;
    visibility: visible;
}

.header-search input {
    width: 100%;
    background: var(--surface2);
    border: 2px solid var(--border);
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    color: var(--text);
    font-size: 0.9rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.header-search input:focus {
    outline: none;
    border-color: var(--primary);
}

.liveSearchResults {
    display: none;
    position: absolute;
    top: 110%;
    left: 0;
    right: 0;
    background: var(--surface);
    border: 1px solid var(--primary);
    border-radius: 12px;
    z-index: 9999;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    animation: slideInUp 0.3s ease;
}

/* Premium Search Items */
.live-search-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    border-bottom: 1px solid var(--border);
    transition: all 0.2s;
    background: var(--surface);
}

.live-search-item:hover {
    background: rgba(139, 92, 246, 0.1);
    transform: translateX(5px);
}

.ls-img {
    width: 45px;
    height: 65px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.ls-info {
    flex: 1;
}

.ls-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.ls-meta {
    font-size: 0.7rem;
    color: var(--primary);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ls-all {
    display: block;
    padding: 12px;
    text-align: center;
    font-size: 0.78rem;
    color: #fff;
    font-weight: 800;
    background: linear-gradient(to right, var(--primary), var(--accent));
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: opacity 0.3s;
}

.ls-all:hover {
    opacity: 0.9;
}

@keyframes slideInUp {
    from {
        transform: translateY(10px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media(max-width: 768px) {
    .header-search {
        width: calc(100vw - 30px);
        position: fixed;
        top: 70px;
        right: 15px;
        left: 15px;
        transform: translateY(-20px) scaleY(0);
        transform-origin: top;
    }

    .header-search-container.active .header-search {
        transform: translateY(0) scaleY(1);
    }

    .header-search input {
        border-width: 1px;
        background: rgba(16, 16, 28, 0.95);
        backdrop-filter: blur(10px);
    }
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    /* Masaüstünde gizli */
    background: var(--surface2);
    border: 1px solid var(--border);
    color: var(--text);
    width: 38px;
    height: 38px;
    border-radius: 8px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: 0.3s;
}

@media(max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
        order: 1;
        margin-right: 15px;
    }

    .logo {
        order: 2;
        font-size: 1.2rem;
        margin-right: auto;
    }

    .header-search-container.mobile-search-only {
        order: 3;
        margin-right: 10px;
    }

    .header-right-group {
        order: 4;
        gap: 8px;
    }

    .auth-btns {
        order: 3;
    }

    .header-search {
        order: 4;
        width: 100%;
        flex: none;
        margin-top: 10px;
    }

    header {
        flex-wrap: wrap;
        padding: 0.7rem 1rem;
        gap: 0.5rem;
        justify-content: space-between;
    }

    #mainNav {
        position: fixed;
        top: 110px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 110px);
        background: var(--bg);
        border-right: 1px solid var(--border);
        z-index: 999;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 2rem;
        display: block !important;
        /* Mobilde görünür yap */
    }

    #mainNav.active {
        left: 0;
    }

    #mainNav ul {
        flex-direction: column;
        gap: 2rem;
    }

    #mainNav a {
        font-size: 1.2rem;
        color: #fff;
    }

    .auth-btns span {
        display: none;
    }
}

.auth-btns {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.btn-login {
    font-size: 0.8rem;
    color: #fff;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(5px);
}

.btn-login:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn-register {
    font-size: 0.8rem;
    color: #fff;
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: none;
    border-radius: 8px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px var(--primary-glow);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-register:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px var(--primary-glow);
    filter: brightness(1.1);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
    filter: brightness(1.1);
}

.btn-admin {
    font-size: 0.8rem;
    color: #fff;
    padding: 6px 16px;
    background: #4c1d95;
    border-radius: 6px;
    font-weight: 700;
}

/* Theme Toggle Button */
.theme-toggle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--surface2);
    border: 1px solid var(--border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: background 0.3s, transform 0.3s;
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: rotate(20deg);
}


/* ===================== LAYOUT ===================== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.page-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 2rem;
    padding: 1.5rem 0;
}

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

/* ===================== SECTION TITLE ===================== */
.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding: 8px 14px;
    background: linear-gradient(135deg, #1a0a3a, #0d0d1f);
    border-left: 4px solid var(--primary);
    border-radius: 4px;
}

.section-title .icon {
    color: var(--accent);
}

/* ===================== HERO SLIDER ===================== */
.hero-slider-wrap {
    width: 100%;
    background: #000;
    margin-bottom: 2rem;
}

.hero-top-grid {
    display: grid;
    grid-template-columns: 1fr 260px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    gap: 1rem;
    align-items: stretch;
}

@media(max-width:900px) {
    .hero-top-grid {
        grid-template-columns: 1fr !important;
        padding: 0.5rem 1rem !important;
    }

    .editor-choice-card {
        display: none !important;
    }

    .hero-swiper {
        width: 100% !important;
    }
}

.hero-swiper {
    width: 100%;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    background: #050014; /* Dark placeholder */
}

.hero-swiper .swiper-slide {
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    background-color: #050014; /* Dark placeholder */
}

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(5, 0, 20, 0.95) 0%, rgba(5, 0, 20, 0.55) 55%, transparent 100%);
    z-index: 1;
}

.hero-slide-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    gap: 1.5rem;
    padding: 1.5rem;
    width: 100%;
}

.hero-slide-cover {
    width: 160px;
    height: 240px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.9);
    flex-shrink: 0;
    border: 3px solid rgba(139, 92, 246, 0.7);
    margin-bottom: 5px;
}

.hero-slide-info {
    flex: 1;
}

.hero-slide-badge {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 3px;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.hero-slide-title {
    font-size: 1.4rem;
    font-weight: 900;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-slide-desc {
    font-size: 0.78rem;
    color: #aaa;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-slide-tags {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.hero-slide-tag {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 2px 8px;
    border-radius: 30px;
    font-size: 0.65rem;
    color: #ccc;
    transition: all 0.2s;
}

.hero-slide-tag:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: scale(1.05);
}

.hero-slide-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 12px;
    font-size: 0.75rem;
    color: #aaa;
}

.hero-slide-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary);
    color: #fff;
    padding: 7px 18px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 4px 16px var(--primary-glow);
    transition: all 0.2s;
}

.hero-slide-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.hero-swiper .swiper-pagination {
    bottom: 10px;
}

.hero-swiper .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.3);
    width: 6px;
    height: 6px;
    opacity: 1;
}

.hero-swiper .swiper-pagination-bullet-active {
    background: var(--primary);
    width: 18px;
    border-radius: 4px;
}

.hero-swiper .swiper-button-next,
.hero-swiper .swiper-button-prev {
    color: #fff;
    background: rgba(139, 92, 246, 0.3);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(139, 92, 246, 0.4);
}

.hero-swiper .swiper-button-next::after,
.hero-swiper .swiper-button-prev::after {
    font-size: 12px;
    font-weight: 900;
}

/* ── Editor's Choice Card ── */
.editor-choice-card {
    background: var(--surface);
    border-radius: 8px;
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 300px;
}

.editor-choice-header {
    padding: 8px 12px;
    font-size: 0.82rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    background: #0d0d20;
    border-bottom: 2px solid var(--primary);
}

.editor-choice-body {
    position: relative;
    flex: 1;
    overflow: hidden;
}

.editor-choice-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.editor-choice-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(5, 0, 20, 0.97) 0%, rgba(5, 0, 20, 0.6) 60%, transparent 100%);
    padding: 14px 12px 12px;
}

.editor-choice-title {
    font-size: 0.9rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.editor-choice-badges {
    display: flex;
    gap: 5px;
    margin-bottom: 6px;
}

.badge-webtoon {
    background: var(--primary);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 3px;
}

.badge-status {
    background: transparent;
    color: #ccc;
    font-size: 0.6rem;
    padding: 2px 7px;
    border-radius: 3px;
    border: 1px solid #444;
}

.editor-choice-genres {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 6px;
}

.genre-label {
    font-size: 0.58rem;
    color: #bbb;
    background: #1a1a2e;
    border: 1px solid #333;
    padding: 2px 7px;
    border-radius: 3px;
    transition: all 0.2s;
}

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

.genre-more {
    font-size: 0.58rem;
    color: #fff;
    background: var(--primary);
    padding: 2px 7px;
    border-radius: 3px;
    font-weight: 700;
}

.editor-choice-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: #aaa;
}

.editor-choice-footer .star {
    color: gold;
}

.editor-choice-footer .chap {
    color: var(--accent);
}

/* ===================== POPULAR CARDS ROW ===================== */
.popular-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-bottom: 2rem;
}

@media(max-width: 900px) {
    .popular-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width: 600px) {
    .popular-row .pop-card:nth-child(n+5) {
        display: none;
    }
}

.pop-card {
    background: var(--surface);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform 0.2s, border-color 0.2s;
    cursor: pointer;
    display: block;
}

.pop-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
}

.pop-card-img-wrap {
    position: relative;
    height: 200px;
}

.pop-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pop-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    z-index: 30;
    /* Blur üzerinde kalsın */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.pop-card-badge.kr {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: auto;
    top: auto;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
    padding: 1px 4px;
    border-radius: 4px;
    z-index: 30;
    /* Blur üzerinde kalsın */
}

.pop-card-info {
    padding: 8px;
}

.pop-card-title {
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

.pop-card-chapter {
    font-size: 0.68rem;
    color: var(--muted);
    margin-bottom: 3px;
}

.pop-card-views {
    font-size: 0.65rem;
    color: var(--muted);
}

/* ===================== RECENT GRID ===================== */
.recent-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.btn-see-all {
    font-size: 0.75rem;
    font-weight: 800;
    color: #fff;
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--primary), #a855f7);
    /* Degrade geçiş */
    border: none;
    border-radius: 30px;
    /* Oval tasarım */
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-see-all:hover {
    transform: scale(1.05) translateX(5px);
    /* Hafif sağa kayma ve büyüme */
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
    filter: brightness(1.1);
}

.recent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    /* Genişlik artırıldı */
    gap: 20px;
}

@media(max-width:1100px) {
    .recent-grid {
        grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    }
}

@media(max-width:800px) {
    .recent-grid {
        grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    }
}

.recent-card {
    background: var(--surface) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    border: 1px solid var(--border) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    /* Daha akıcı ve zıplayan geçiş */
    display: flex !important;
    flex-direction: column !important;
    text-decoration: none !important;
    position: relative;
}

.recent-card:hover {
    border-color: var(--primary) !important;
    transform: translateY(-12px) scale(1.03);
    /* Yukarı çıkma ve büyüme */
    box-shadow: 0 15px 35px rgba(139, 92, 246, 0.25);
    /* Morumsu parlayan gölge */
    z-index: 10;
}

.recent-card-img-wrap {
    position: relative;
    height: 320px;
    width: 100% !important;
}

.recent-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    z-index: 30;
    /* Blur üzerinde kalsın */
}

.recent-card-flag {
    position: absolute;
    bottom: 10px;
    left: 10px;
    top: auto;
    right: auto;
    font-size: 0.9rem;
    z-index: 30;
    /* Blur üzerinde kalsın */
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.recent-card-body {
    padding: 12px;
    width: 100% !important;
}

.recent-card-title {
    font-size: 0.9rem;
    font-weight: 800;
    margin-bottom: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text);
    text-align: center;
}

.chapter-entries {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chapter-entry {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 18px;
    font-size: 0.75rem;
    /* Butonlar büyütüldü */
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.chapter-entry:hover {
    background: var(--primary);
    color: #fff;
}

.chapter-entry .ch-time {
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 400;
    margin-top: 2px;
}

/* ===================== SIDEBAR ===================== */
.sidebar-categories {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 2rem;
    padding: 18px;
    background: linear-gradient(145deg, var(--surface), #0a0a1a);
    border-radius: 16px;
    border: 1px solid rgba(139, 92, 246, 0.15);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    position: relative;
}

.sidebar-categories::before {
    content: '🏷️ TÜR LİSTESİ';
    display: block;
    grid-column: 1 / -1;
    font-size: 0.75rem;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    opacity: 0.8;
}

.sidebar-categories a {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--text);
    background: rgba(255, 255, 255, 0.03);
    padding: 12px;
    border-radius: 10px;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.sidebar-categories a:hover {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    border-color: transparent;
    transform: scale(1.05) rotate(1deg);
    box-shadow: 0 8px 20px var(--primary-glow);
    z-index: 5;
}

.sidebar-categories a::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: 0.5s;
}

.sidebar-categories a:hover::after {
    left: 100%;
}

.pop-sidebar-box {
    background: var(--surface);
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.pop-sidebar-header {
    background: linear-gradient(135deg, #12082a, #080816);
    padding: 14px 18px;
    font-size: 0.95rem;
    font-weight: 800;
    border-bottom: 2px solid var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.pop-sidebar-tabs {
    display: flex;
    background: #0a0a18;
    padding: 6px;
    gap: 6px;
}

.pop-sidebar-tab {
    flex: 1;
    background: #1a1a2e;
    color: var(--muted);
    border: none;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 10px 5px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
    font-family: var(--font);
}

.pop-sidebar-tab.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px var(--primary-glow);
}

.pop-sidebar-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 6px;
    transition: all 0.2s;
    background: rgba(255, 255, 255, 0.02);
}

.pop-sidebar-item:last-child {
    border-bottom: none;
}

.pop-sidebar-item:hover {
    background: rgba(139, 92, 246, 0.05);
    transform: translateX(5px);
}

.pop-rank {
    min-width: 28px;
    height: 28px;
    background: var(--surface2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 900;
    flex-shrink: 0;
    color: var(--muted);
    border: 1px solid var(--border);
}

.pop-sidebar-cover {
    width: 45px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.pop-sidebar-info {
    flex: 1;
    min-width: 0;
}

.pop-sidebar-title {
    font-size: 0.82rem;
    font-weight: 800;
    margin-bottom: 4px;
    color: var(--text);
    display: block; /* Changed from -webkit-box for better ellipsis support */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pop-sidebar-cats {
    font-size: 0.65rem;
    color: var(--muted);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block; /* Changed from flex to block for ellipsis */
}

.stars {
    color: gold;
    font-size: 0.6rem;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* ===================== FOOTER ===================== */
footer {
    background: #05050e;
    border-top: 1px solid var(--border);
    padding: 2rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 3rem;
}

/* ===================== FORMS ===================== */
.auth-page {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    width: 100%;
    max-width: 400px;
}

.auth-card h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 5px;
}

.form-control {
    width: 100%;
    background: #0a0a18;
    border: 1px solid var(--border);
    padding: 0.7rem 1rem;
    border-radius: 6px;
    color: var(--text);
    font-family: var(--font);
    font-size: 0.9rem;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.btn-primary {
    width: 100%;
    padding: 0.75rem;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font);
    transition: background 0.2s;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.alert {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.alert-error {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.3);
    color: #f87171;
}

.alert-success {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: var(--accent);
}

/* ===================== ADMIN ===================== */
.admin-layout {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.admin-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 1.5rem;
}

.admin-tab {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--muted);
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font);
    transition: all 0.2s;
}

.admin-tab.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.admin-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1.5rem;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 0.8rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
}

th {
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
}

tr:hover {
    background: rgba(139, 92, 246, 0.04);
}

.btn-danger {
    background: #7f1d1d;
    color: #fca5a5;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 0.75rem;
    cursor: pointer;
    font-family: var(--font);
}

/* ===================== BACK TO TOP ===================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--primary-glow);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateY(20px);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px) scale(1.1);
}

/* Adult Blur Styles */
.adult-cover-container {
    position: relative !important;
}

.adult-blur {
    filter: blur(35px) brightness(0.6) !important;
    transform: scale(1.1) !important;
    z-index: 1;
    /* En altta kalsın */
}

/* Bayrak (flag) stili +18 etiketi */
.adult-warning-badge,
.adult-badge-br {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: #ef4444;
    color: #fff;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 900;
    z-index: 20;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    pointer-events: none;
    display: block !important;
}

/* Yeni Bölüm Etiketi Animasyonu */
@keyframes pulse-new {
    0% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }

    50% {
        transform: scale(1.1);
        opacity: 0.9;
        box-shadow: 0 0 10px 4px rgba(239, 68, 68, 0.4);
    }

    100% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

.new-badge-pulse {
    position: absolute;
    top: 0px;
    left: 0px;
    background: #ef4444;
    color: #fff;
    font-size: 0.5rem;
    font-weight: 900;
    padding: 10px 15px 2px 15px;
    /* Çapraz duruş için dolgu */
    transform: translate(-30%, -30%) rotate(-45deg);
    /* Yazıyı çapraz yap */
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    animation: pulse-simple 2s infinite ease-in-out;
    pointer-events: none;
    text-transform: uppercase;
}

/* Yeni Seri Kurdelesi */
.new-series-ribbon {
    position: absolute;
    top: 15px;
    right: -35px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 900;
    padding: 5px 40px;
    transform: rotate(45deg);
    z-index: 20;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.2);
    animation: ribbon-glow 2s infinite alternate;
}

.completed-ribbon {
    position: absolute;
    top: 15px;
    right: -35px;
    background: linear-gradient(135deg, #10b981, #059669); /* Yeşil tonları bittiği için */
    color: #fff;
    font-size: 0.65rem;
    font-weight: 900;
    padding: 5px 40px;
    transform: rotate(45deg);
    z-index: 20;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.2);
}

@keyframes ribbon-glow {
    from { box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3); }
    to { box-shadow: 0 4px 20px rgba(239, 68, 68, 0.6); }
}

/* ===================== MOBILE OPTIMIZATIONS ===================== */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    /* Hero Slider Mobilde Daha Şık */
    .hero-swiper {
        height: 260px;
    }

    /* Biraz daha boy verildi */
    .hero-slide-cover {
        display: none;
    }

    .hero-slide-content {
        padding: 1.2rem;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .hero-slide-info {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-slide-title {
        font-size: 1.3rem;
        line-height: 1.2;
        margin-bottom: 8px;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    }

    .hero-slide-desc {
        display: none;
    }

    /* Mobilde açıklamayı gizle, başlık öne çıksın */
    .hero-slide-tags {
        justify-content: center;
        scale: 0.9;
        margin-bottom: 12px;
    }

    .hero-slide-stats {
        justify-content: center;
        gap: 15px;
        font-size: 0.7rem;
        opacity: 0.8;
    }

    .hero-slide-btn {
        padding: 8px 25px;
        font-size: 0.75rem;
        border-radius: 12px;
    }

    .hero-slide-overlay {
        background: linear-gradient(to top, rgba(5, 0, 20, 0.9) 0%, rgba(5, 0, 20, 0.3) 100%);
    }

    /* Popüler Seriler Grid (Şimdi 4'lü) */
    .popular-row {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }

    .pop-card-img-wrap {
        height: 120px;
    }

    .pop-card-title {
        font-size: 0.6rem;
    }

    .pop-card-chapter,
    .pop-card-views {
        display: none;
    }

    /* Mobilde çok küçük olacağı için detayları gizle */

    /* Son Yüklenenler Grid */
    .recent-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .recent-card-img-wrap {
        height: 220px;
    }

    .recent-card-title {
        font-size: 0.85rem;
    }

    /* Sidebar Mobilde En Alta */
    .page-layout {
        gap: 1rem;
    }

    .sidebar-categories {
        grid-template-columns: 1fr 1fr;
    }

    /* Manga Detay (manga.php) Mobil Ayarları */
    .manga-hero {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    .manga-cover {
        width: 160px !important;
        height: 230px !important;
        margin-right: 0 !important;
        margin-bottom: 20px !important;
    }

    .manga-cover-col {
        width: 100%;
        max-width: 200px;
    }

    .info-grid {
        grid-template-columns: 1fr !important;
    }

    .manga-meta-grid {
        grid-template-columns: 1fr 1fr !important;
    }

    .social-btns {
        justify-content: center !important;
    }

    .section-box-header {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 10px 15px !important;
    }

    #chapterSearch {
        max-width: none !important;
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .popular-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-swiper {
        height: 180px;
    }

    .logo {
        font-size: 1.1rem;
    }
}


/* ===================== NATIVE COMMENTS ===================== */
.disqus-container {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px;
    margin-top: 30px;
}

body.light-mode .comment-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
}

body.light-mode .comment-item span[style*="color:#fff"] {
    color: #333 !important;
}

body.light-mode .comment-item div[style*="color:#bbb"] {
    color: #555 !important;
}

body.light-mode .comment-list div[style*="color:var(--muted)"] {
    color: #777 !important;
}

.comment-item {
    transition: transform 0.2s ease;
}

.comment-item:hover {
    transform: translateX(5px);
}
