/* ============================================
   OmniReads — Web Novel & Light Novel Reading Platform
   Design System & Styles
   ============================================ */

/* --- Google Fonts --- */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700&family=Playfair+Display:wght@400;500;600;700&family=Cinzel:wght@400;500;600;700&display=swap");

/* --- CSS Custom Properties --- */
:root {
    /* Colors */
    --bg-primary: #0a0a12;
    --bg-secondary: #0f0f1a;
    --bg-glass: rgba(255, 255, 255, 0.04);
    --bg-glass-hover: rgba(255, 255, 255, 0.08);
    --text-primary: #f5f5f7;
    --text-secondary: #a0a0b0;
    --text-muted: #6b6b7b;
    --accent-primary: #ff6b35;
    --accent-secondary: #ff8f5a;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-accent: rgba(255, 107, 53, 0.4);

    /* Fonts */
    --font-heading: "Cinzel", "Playfair Display", "Outfit", "Noto Sans SC", sans-serif;
    --font-body: "Inter", "Noto Sans SC", sans-serif;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 5rem;
    --section-space-y: clamp(2.75rem, 5vw, 3.5rem);
    --section-space-y-tight: clamp(2rem, 4vw, 2.75rem);
    --page-hero-space-top: calc(var(--nav-height) + clamp(2.5rem, 5vw, 3.5rem));
    --page-hero-space-bottom: clamp(2rem, 4vw, 2.75rem);
    --hero-home-space-bottom: clamp(3rem, 5vw, 4rem);

    /* Layout */
    --nav-height: 72px;
    --container-max: 1280px;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

/* --- Container --- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* --- Buttons --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: white;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all var(--transition-fast);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Favorite button styles */
.btn-secondary.favorited {
    background: rgba(255, 107, 53, 0.15);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* Hero Stats - Horizontal layout */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-2xl);
    padding-top: var(--space-lg);
    margin-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stat {
    text-align: center;
}

.hero-stat .number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stat .label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 4px;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    transition: all var(--transition-normal);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(10, 10, 18, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.logo-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.nav-library-btn {
    padding: 10px 20px;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-primary);
    border-radius: 50px;
    transition: all var(--transition-fast);
}

.nav-library-btn:hover {
    background: var(--bg-glass);
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-fast);
}

/* Mobile Navigation */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 998;
}

.mobile-nav-overlay.open {
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: var(--bg-secondary);
    padding: var(--space-xl);
    transform: translateX(100%);
    transition: transform var(--transition-normal);
    z-index: 999;
}

.mobile-nav.open {
    transform: translateX(0);
}

.mobile-nav-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-nav a {
    display: block;
    padding: var(--space-md) 0;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    border-bottom: 1px solid var(--border-subtle);
}

/* --- Hero Section --- */
.hero {
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: var(--nav-height);
    padding-bottom: var(--hero-home-space-bottom);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 10, 18, 0.85) 0%, transparent 50%),
                linear-gradient(0deg, rgba(10, 10, 18, 0.95) 0%, transparent 60%),
                url("/static/images/hero-main.webp") center/cover no-repeat;
    z-index: -1;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-md);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 107, 53, 0.4);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    backdrop-filter: blur(10px);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.pulse {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: pulse-animation 2s infinite;
    box-shadow: 0 0 8px var(--accent-primary);
}

@keyframes pulse-animation {
    0% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.7);
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 0 15px rgba(255, 107, 53, 0);
    }
}

.hero-content h1 {
    font-family: "Cinzel", "Playfair Display", var(--font-heading);
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: var(--space-sm);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-content h1 .highlight {
    background: linear-gradient(135deg, var(--accent-primary), #ffb347, var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 10px rgba(255, 107, 53, 0.3));
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: var(--space-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8), 0 4px 12px rgba(0, 0, 0, 0.6);
    line-height: 1.6;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-xl);
}

/* --- Section Shells --- */
.featured-novels,
.genres,
.trending,
.about-section,
.legal-section {
    padding: var(--section-space-y) 0;
}

.about-hero,
.legal-hero {
    padding: var(--page-hero-space-top) 0 var(--page-hero-space-bottom);
    background: linear-gradient(180deg, rgba(255, 107, 53, 0.08) 0%, transparent 100%);
    text-align: center;
}

.legal-hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: var(--space-sm);
}

.legal-hero p {
    color: var(--text-secondary);
}

.legal-section {
    max-width: 800px;
    margin: 0 auto;
}

.legal-section h2 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    margin: var(--space-xl) 0 var(--space-md);
    color: var(--text-primary);
}

.legal-section h2:first-child {
    margin-top: 0;
}

.legal-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.legal-section ul {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-md);
    padding-left: var(--space-lg);
}

.legal-section li {
    margin-bottom: var(--space-xs);
}

.legal-highlight {
    background: var(--bg-glass);
    border-left: 3px solid var(--accent-primary);
    padding: var(--space-md) var(--space-lg);
    margin: var(--space-md) 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.legal-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-subtle);
}

/* --- Section Headers --- */
.section-header {
    text-align: center;
    margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-md);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Novel Cards --- */
.novels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--space-xl);
}

.novel-card {
    display: block;
    position: relative;
    transition: transform var(--transition-fast);
}

.novel-card:hover {
    transform: translateY(-4px);
}

.novel-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.novel-card-cover {
    position: relative;
    aspect-ratio: 3/4;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: var(--space-md);
}

.novel-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

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

.novel-card-cover .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.8) 100%);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.novel-card:hover .novel-card-cover .overlay {
    opacity: 1;
}

.novel-card-favorite,
.novel-card-static-favorite {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.62);
    border-radius: 50%;
    font-size: 1rem;
    color: white;
    opacity: 1;
    transition: all var(--transition-fast);
    z-index: 2;
}

.novel-card-favorite {
    cursor: pointer;
}

.novel-card-static-favorite {
    pointer-events: none;
}

.novel-card-favorite.active {
    background: rgba(255, 107, 53, 0.9);
}

.novel-card-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 10px;
    background: var(--accent-primary);
    color: white;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
}

.novel-card-info {
    padding: 0 var(--space-xs);
}

.novel-card-tags {
    display: flex;
    gap: var(--space-xs);
    margin-bottom: var(--space-sm);
    flex-wrap: wrap;
}

.novel-card-tags .tag {
    font-size: 0.7rem;
    padding: 3px 8px;
    background: var(--bg-glass);
    border-radius: 50px;
    color: var(--text-muted);
}

.novel-card-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: var(--space-sm);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.novel-card-meta {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.novel-card-status {
    padding: 2px 8px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
}

.novel-card-status.ongoing {
    background: rgba(76, 175, 80, 0.15);
    color: #4caf50;
}

.novel-card-status.completed {
    background: rgba(156, 156, 156, 0.15);
    color: #9e9e9e;
}

/* --- Genre Cards --- */
.genres-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-lg);
}

.genre-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-xl);
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.genre-card:hover {
    background: var(--bg-glass-hover);
    border-color: var(--border-accent);
    transform: translateY(-4px);
}

.genre-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
}

.genre-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.genre-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}

.genre-count {
    font-size: 0.8rem;
    color: var(--accent-primary);
    font-weight: 600;
}

/* --- Trending Section --- */
.trending-scroll {
    display: flex;
    gap: var(--space-lg);
    overflow-x: auto;
    padding-bottom: var(--space-md);
    scrollbar-width: thin;
    scrollbar-color: var(--accent-primary) transparent;
}

.trending-scroll::-webkit-scrollbar {
    height: 6px;
}

.trending-scroll::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 3px;
}

.trending-card {
    flex: 0 0 320px;
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.trending-card:hover {
    border-color: var(--border-accent);
}

.trending-card-cover {
    width: 100px;
    height: 140px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

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

.trending-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.trending-tag {
    font-size: 0.7rem;
    color: var(--accent-primary);
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.trending-card-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.trending-card-tags {
    display: flex;
    gap: var(--space-xs);
    margin-bottom: var(--space-sm);
}

.trending-mini-tag {
    font-size: 0.7rem;
    padding: 2px 8px;
    background: var(--bg-glass);
    border-radius: 50px;
    color: var(--text-muted);
}

.trending-card-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: var(--space-sm);
}

.trending-card-stats {
    margin-top: auto;
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    gap: var(--space-md);
}

.trending-nav {
    display: flex;
    gap: var(--space-sm);
}

.trending-nav button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.trending-nav button:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.trending-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: var(--space-xl);
}

/* --- Footer --- */
.footer {
    background: var(--bg-secondary);
    padding: var(--space-3xl) 0 var(--space-xl);
    border-top: 1px solid var(--border-subtle);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: var(--space-md);
    font-size: 0.9rem;
}

.footer-socials {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.footer-socials a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-glass);
    border-radius: 50%;
    font-size: 1.2rem;
    transition: all var(--transition-fast);
}

.footer-socials a:hover {
    background: var(--accent-primary);
    transform: translateY(-2px);
}

.footer-links h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    margin-bottom: var(--space-md);
}

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

.footer-links li {
    margin-bottom: var(--space-sm);
}

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

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-subtle);
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* --- Search Overlay (Mobile) --- */
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 18, 0.98);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    padding: var(--space-xl);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all var(--transition-normal);
}

.search-overlay.open {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.search-close {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-overlay-content {
    max-width: 600px;
    width: 100%;
    margin: auto;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: 50px;
    margin-bottom: var(--space-xl);
}

.search-icon {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.search-input-wrapper input {
    flex: 1;
    background: transparent !important;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-family: var(--font-body);
    -webkit-appearance: none;
    appearance: none;
    box-shadow: none !important;
}

/* Remove browser autofill background */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
    -webkit-text-fill-color: var(--text-primary) !important;
    transition: background-color 5000s ease-in-out 0s;
}

.search-tags-title {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.search-tag {
    padding: 8px 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.search-tag:hover {
    background: var(--bg-glass-hover);
    border-color: var(--border-accent);
    color: var(--accent-primary);
}

/* --- Scroll Indicator --- */
.hero-scroll-wrapper {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 100;
    pointer-events: none;
}

.hero-scroll {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    animation: bounce 2s infinite;
    cursor: pointer;
    pointer-events: auto;
}

.hero-scroll svg {
    width: 32px;
    height: 32px;
    stroke: var(--text-secondary);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-search-bar {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: var(--space-md);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }
}

@media (max-width: 480px) {
    .novels-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

    .genres-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .trending-card {
        flex: 0 0 280px;
    }

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