/*
Theme Name: Flavor Starter
Theme URI: http://localhost/wordpres
Description: A premium dark-themed manga/comic reading WordPress theme inspired by mangoasis.com
Author: FlavorDev
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.7
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: flavor-starter
*/

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

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a2e;
    --bg-card-hover: #22223a;
    --bg-header: rgba(10, 10, 15, 0.95);
    --accent: #e94560;
    --accent-hover: #ff6b81;
    --accent-glow: rgba(233, 69, 96, 0.3);
    --text-primary: #e8e8f0;
    --text-secondary: #9898b0;
    --text-muted: #606080;
    --border: rgba(255, 255, 255, 0.06);
    --border-accent: rgba(233, 69, 96, 0.3);
    --gradient-hero: linear-gradient(135deg, #0a0a0f 0%, #16213e 50%, #0a0a0f 100%);
    --gradient-card: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 30px rgba(233, 69, 96, 0.15);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =========================================
   HEADER / NAVIGATION
   ========================================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 0 2rem;
    height: 64px;
    display: flex;
    align-items: center;
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.site-logo .logo-icon {
    width: 36px;
    height: 36px;
    background: var(--accent);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.site-logo:hover {
    color: var(--accent);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.main-nav a {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.header-search {
    position: relative;
    flex: 0 0 280px;
}

.header-search input {
    width: 100%;
    padding: 0.6rem 1rem 0.6rem 2.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-family: var(--font);
    outline: none;
    transition: var(--transition);
}

.header-search input::placeholder {
    color: var(--text-muted);
}

.header-search input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
    background: rgba(255, 255, 255, 0.08);
}

.header-search .search-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* =========================================
   MAIN CONTENT WRAPPER
   ========================================= */
.site-main {
    margin-top: 0;
    min-height: calc(100vh - 200px);
}

.site-main.is-reader {
    margin-top: 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* =========================================
   MANGAOSIS HERO SECTION
   ========================================= */
.manga-hero-section {
    position: relative;
    min-height: 540px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #0a0a0f;
}

.manga-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.manga-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 15, 0.7);
    z-index: 2;
}

.manga-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 6rem 1rem 5rem;
    max-width: 900px;
    margin: 0 auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-main-title {
    font-family: 'Bangers', cursive, 'Arial Black', sans-serif;
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 400;
    color: #fff; /* White by default */
    text-transform: uppercase;
    text-shadow: 3px 3px 0px rgba(0, 0, 0, 1), 5px 5px 15px rgba(0, 0, 0, 0.8);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
    transform: skewX(-5deg);
    transition: color 0.2s ease-in-out;
}

.hero-main-title:hover,
.hero-main-title:active {
    color: #ff7b00; /* Orange on hover/click */
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #e8e8f0;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.9);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-search-wrapper {
    max-width: 700px;
    margin: 0 auto;
    width: 100%;
}

.hero-search-form {
    display: flex;
    height: 60px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero-search-form input[type="search"] {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0 1.5rem;
    color: #fff;
    font-size: 1.1rem;
    outline: none;
    width: 100%;
}

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

.hero-search-form .btn-hero-search {
    background: #6b21a8;
    /* Mangoasis purple */
    color: #fff;
    border: none;
    padding: 0 2.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.hero-search-form .btn-hero-search:hover {
    background: #581c87;
}

.hero-bottom-bar {
    position: relative;
    z-index: 3;
    background: #6b21a8;
    padding: 1.25rem 0;
    margin-top: auto;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
}

.hero-links-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.hero-quick-link {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.hero-quick-link:hover {
    color: #d8b4fe;
    transform: translateY(-2px);
}

/* =========================================
   ALL SERIES GRID
   ========================================= */
.series-section {
    padding: 0.5rem 0 3rem;
}

.manga-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
}

.manga-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-card);
    transition: var(--transition);
    cursor: pointer;
}

.manga-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
    background: var(--bg-card-hover);
}

.manga-card .manga-cover {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    transition: var(--transition);
}

.manga-card:hover .manga-cover {
    transform: scale(1.03);
}

.manga-card .manga-cover-wrap {
    position: relative;
    overflow: hidden;
}

.manga-card .chapter-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 0.25rem 0.6rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent);
}

.manga-card .manga-info {
    padding: 0.75rem;
}

.manga-card .manga-title {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.manga-card .manga-genre {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
}

/* =========================================
   SINGLE MANGA PAGE
   ========================================= */
.manga-hero {
    position: relative;
    padding: 1rem 0 3rem;
    background: var(--gradient-hero);
}

.manga-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, var(--bg-primary), transparent);
}

.manga-detail {
    display: flex;
    gap: 2.5rem;
    position: relative;
    z-index: 1;
}

.manga-detail .cover-wrapper {
    flex: 0 0 250px;
}

.manga-detail .cover-image {
    width: 250px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    border: 2px solid var(--border);
}

.manga-detail .manga-content {
    flex: 1;
    min-width: 0;
}

.manga-detail .manga-main-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.manga-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.meta-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.meta-tag.status-ongoing {
    border-color: var(--accent);
    color: var(--accent);
}

.meta-tag.status-completed {
    border-color: #4ade80;
    color: #4ade80;
}

.manga-description {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    max-height: 120px;
    overflow: hidden;
    position: relative;
}

.manga-description.expanded {
    max-height: none;
}

.manga-description::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to top, var(--bg-primary), transparent);
}

.manga-description.expanded::after {
    display: none;
}

.btn-expand {
    background: none;
    border: none;
    color: var(--accent);
    font-family: var(--font);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0;
    font-weight: 600;
}

.manga-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background: var(--accent-hover);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
    color: white;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--accent);
    color: var(--accent);
}

/* =========================================
   CHAPTER LIST
   ========================================= */
.chapters-section {
    padding: 0.5rem 0 4rem;
}

.chapters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.chapters-header .chapter-count {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.chapter-sort-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-family: var(--font);
    cursor: pointer;
    transition: var(--transition);
}

.chapter-sort-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.chapter-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.chapter-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.25rem;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.chapter-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-accent);
    transform: translateX(4px);
}

.chapter-item .chapter-name {
    font-size: 0.9rem;
    font-weight: 500;
}

.chapter-item .chapter-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* =========================================
   CHAPTER READER
   ========================================= */
.reader-header {
    background: var(--bg-secondary);
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 64px;
    z-index: 100;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.reader-header.is-hidden {
    transform: translateY(-100%);
}

/* Base top when site header is hidden */
.is-reader .reader-header {
    top: 0;
}

/* Fix for WordPress Admin bar overlapping sticky elements */
.admin-bar .site-header {
    top: 32px;
}

.admin-bar .is-reader .reader-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }

    .admin-bar .is-reader .reader-header {
        top: 46px;
    }
}

.reader-title {
    font-size: 0.95rem;
    font-weight: 600;
}

.reader-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.reader-nav .btn-nav {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-family: var(--font);
    cursor: pointer;
    transition: var(--transition);
}

.reader-nav .btn-nav:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.reader-nav select {
    padding: 0.5rem 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.8rem;
    font-family: var(--font);
    outline: none;
    cursor: pointer;
}

.reader-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem 0;
    background: #000;
}

.reader-container img {
    width: 100%;
    display: block;
    margin: 0 auto;
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 3rem 2rem 1.5rem;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-about .footer-logo {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-about p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-links h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* =========================================
   PAGINATION
   ========================================= */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem 0;
}

.pagination a,
.pagination span {
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.pagination a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.pagination .current {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

/* =========================================
   SEARCH RESULTS
   ========================================= */
.search-results-section {
    padding: 2rem 0;
}

.search-query {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.search-query strong {
    color: var(--accent);
}

.no-results {
    text-align: center;
    padding: 4rem 0;
}

.no-results h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.no-results p {
    color: var(--text-muted);
}

/* =========================================
   LOADING ANIMATION
   ========================================= */
@keyframes pulse {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
    }
}

.loading-skeleton {
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
    .manga-detail {
        gap: 1.5rem;
    }

    .manga-detail .cover-wrapper {
        flex: 0 0 200px;
    }

    .manga-detail .cover-image {
        width: 200px;
    }

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

@media (max-width: 768px) {
    .site-header {
        padding: 0 1rem;
    }

    .main-nav {
        display: none;
    }

    .header-search {
        flex: 1;
    }

    .container {
        padding: 0 1rem;
    }

    .hero-section {
        padding: 2rem 0;
    }

    .featured-card {
        flex: 0 0 200px;
    }

    .manga-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 1rem;
    }

    .manga-detail {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .manga-detail .manga-main-title {
        font-size: 1.5rem;
    }

    .manga-meta {
        justify-content: center;
    }

    .manga-actions {
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .reader-header {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 480px) {
    .manga-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.6rem;
    }

    .manga-card .manga-info {
        padding: 0.5rem;
    }

    .manga-card .manga-title {
        font-size: 0.75rem;
    }

    .featured-card {
        flex: 0 0 160px;
    }
}

/* =========================================
   SCROLLBAR
   ========================================= */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-card);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* =========================================
   ARCHIVE/BROWSE PAGE
   ========================================= */
.browse-filters {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-family: var(--font);
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(233, 69, 96, 0.1);
}

/* WordPress Admin Bar Fix */
body.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}

/* =========================================
   FLOATING BUTTONS (Dark Mode + Scroll Top)
   ========================================= */
.floating-btns {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 9999;
}

.floating-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    opacity: 0.85;
}

.floating-btn:hover {
    opacity: 1;
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: 0 6px 25px rgba(233, 69, 96, 0.25);
}

#btn-scroll-top {
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    font-weight: 700;
    font-size: 1.3rem;
}

#btn-scroll-top.visible {
    opacity: 0.85;
    pointer-events: auto;
    transform: translateY(0);
}

#btn-scroll-top.visible:hover {
    opacity: 1;
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .floating-btns {
        bottom: 1.25rem;
        right: 1.25rem;
    }
    .floating-btn {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }
}

/* =========================================
   LIGHT MODE
   ========================================= */
body.light-mode,
html.light-mode {
    --bg-primary: #f5f5fa;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f0f0f8;
    --bg-header: rgba(255, 255, 255, 0.95);
    --accent: #d63050;
    --accent-hover: #e94560;
    --accent-glow: rgba(214, 48, 80, 0.15);
    --text-primary: #1a1a2e;
    --text-secondary: #555570;
    --text-muted: #8888a0;
    --border: rgba(0, 0, 0, 0.08);
    --border-accent: rgba(214, 48, 80, 0.2);
    --gradient-hero: linear-gradient(135deg, #f5f5fa 0%, #e8e8f5 50%, #f5f5fa 100%);
    --gradient-card: linear-gradient(145deg, #ffffff 0%, #f0f0f8 100%);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-glow: 0 0 30px rgba(214, 48, 80, 0.1);
}

body.light-mode .site-header {
    background: rgba(255, 255, 255, 0.95);
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .header-search input {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
    color: #1a1a2e;
}

body.light-mode .reader-container {
    background: #f0f0f5;
}

body.light-mode .manga-hero-overlay {
    background: rgba(245, 245, 250, 0.75);
}

body.light-mode .hero-main-title {
    color: #1a1a2e;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.1), 3px 3px 10px rgba(0, 0, 0, 0.05);
}

body.light-mode .hero-subtitle {
    color: #444;
    text-shadow: none;
}

body.light-mode .hero-search-form {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.12);
}

body.light-mode .hero-search-form input[type="search"] {
    color: #1a1a2e;
}

body.light-mode .hero-search-form input::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

body.light-mode .manga-description::after {
    background: linear-gradient(to top, #f5f5fa, transparent);
}

body.light-mode .manga-detail .manga-main-title {
    background: linear-gradient(135deg, #1a1a2e, #d63050);
    -webkit-background-clip: text;
    background-clip: text;
}

body.light-mode .site-footer {
    background: #ffffff;
    border-top-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .floating-btn {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

body.light-mode .reader-header {
    background: #fff;
    border-bottom-color: rgba(0,0,0,0.08);
}

body.light-mode .reader-nav select {
    background: #f5f5fa;
    border-color: rgba(0,0,0,0.1);
    color: #1a1a2e;
}

body.light-mode ::-webkit-scrollbar-track {
    background: #f0f0f5;
}

body.light-mode ::-webkit-scrollbar-thumb {
    background: #c0c0d0;
}