/* ==========================================================================
   OriginRealm Chinese Classics Library Stylesheet
   Route Scope: /classics, /classics/*
   Architecture: Zero monolithic dependency, colocated dark/light theming.
   ========================================================================== */

.classics-page-container {
    max-width: 1280px;
    margin: 2rem auto 5rem;
    padding: 0 1.5rem;
}

/* ─── Hero Section ──────────────────────────────────────────────────────── */
.classics-hero {
    text-align: center;
    padding: 3.5rem 2rem 3rem;
    margin-bottom: 3.5rem;
    background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.12) 0%, rgba(15, 23, 42, 0.5) 75%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

[data-theme="light"] .classics-hero,
html[data-theme="light"] .classics-hero {
    background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.08) 0%, rgba(255, 255, 255, 0.95) 70%);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.05);
}

.classics-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1.1rem;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.14);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #fbbf24;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1.25rem;
}

[data-theme="light"] .classics-hero-badge,
html[data-theme="light"] .classics-hero-badge {
    background: #fef3c7;
    border-color: #fde68a;
    color: #b45309;
}

.classics-hero-title {
    font-size: clamp(2.2rem, 5vw, 3.75rem);
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -1px;
    margin: 0 0 1rem;
    line-height: 1.15;
}

[data-theme="light"] .classics-hero-title,
html[data-theme="light"] .classics-hero-title {
    color: #0f172a;
}

.classics-hero-title span {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #ea580c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-theme="light"] .classics-hero-title span,
html[data-theme="light"] .classics-hero-title span {
    background: linear-gradient(135deg, #b45309 0%, #d97706 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.classics-hero-sub {
    max-width: 760px;
    margin: 0 auto 2rem;
    color: #94a3b8;
    font-size: 1.1rem;
    line-height: 1.65;
}

[data-theme="light"] .classics-hero-sub,
html[data-theme="light"] .classics-hero-sub {
    color: #475569;
}

.classics-pills-row {
    display: flex;
    justify-content: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.classics-feature-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    font-size: 0.82rem;
    font-weight: 600;
}

[data-theme="light"] .classics-feature-pill,
html[data-theme="light"] .classics-feature-pill {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #334155;
}

/* ─── Grid of Classics Cards ────────────────────────────────────────────── */
.classics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

@media (max-width: 900px) {
    .classics-grid {
        grid-template-columns: 1fr;
    }
}

.classics-card {
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

[data-theme="light"] .classics-card,
html[data-theme="light"] .classics-card {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.06);
}

.classics-card:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 25px 50px -12px rgba(245, 158, 11, 0.15);
}

[data-theme="light"] .classics-card:hover,
html[data-theme="light"] .classics-card:hover {
    border-color: #f59e0b;
    box-shadow: 0 20px 40px -10px rgba(217, 119, 6, 0.12);
}

.classics-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.classics-native-seal {
    font-size: 1.85rem;
    font-weight: 800;
    color: #f59e0b;
    font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
    opacity: 0.95;
    letter-spacing: 2px;
}

[data-theme="light"] .classics-native-seal,
html[data-theme="light"] .classics-native-seal {
    color: #d97706;
}

.classics-type-tag {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

[data-theme="light"] .classics-type-tag,
html[data-theme="light"] .classics-type-tag {
    background: #e0e7ff;
    color: #4338ca;
    border-color: #c7d2fe;
}

.classics-card-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #f8fafc;
    margin: 0 0 0.4rem;
    line-height: 1.3;
}

[data-theme="light"] .classics-card-title,
html[data-theme="light"] .classics-card-title {
    color: #0f172a;
}

.classics-card-subtitle {
    color: #f59e0b;
    font-size: 0.92rem;
    font-weight: 600;
    margin: 0 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

[data-theme="light"] .classics-card-subtitle,
html[data-theme="light"] .classics-card-subtitle {
    color: #b45309;
}

.classics-card-desc {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.75rem;
    flex: 1;
}

[data-theme="light"] .classics-card-desc,
html[data-theme="light"] .classics-card-desc {
    color: #475569;
}

.classics-card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .classics-card-actions,
html[data-theme="light"] .classics-card-actions {
    border-top-color: #f1f5f9;
}

.btn-read-classic {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: #ffffff !important;
    padding: 0.65rem 1.4rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 6px 15px -3px rgba(79, 70, 229, 0.35);
    transition: all 0.2s;
}

.btn-read-classic:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -3px rgba(79, 70, 229, 0.5);
}

.classics-pending-tag {
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 600;
    font-style: italic;
}

/* ─── Lore / Highlights Section ─────────────────────────────────────────── */
.classics-lore-section {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    backdrop-filter: blur(12px);
}

[data-theme="light"] .classics-lore-section,
html[data-theme="light"] .classics-lore-section {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.04);
}

.classics-lore-heading {
    text-align: center;
    margin-bottom: 2.5rem;
}

.classics-lore-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: #f8fafc;
    margin: 0 0 0.5rem;
}

[data-theme="light"] .classics-lore-title,
html[data-theme="light"] .classics-lore-title {
    color: #0f172a;
}

.classics-lore-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.classics-lore-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fbbf24;
    margin: 0 0 0.6rem;
}

[data-theme="light"] .classics-lore-card h3,
html[data-theme="light"] .classics-lore-card h3 {
    color: #b45309;
}

.classics-lore-card p {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

[data-theme="light"] .classics-lore-card p,
html[data-theme="light"] .classics-lore-card p {
    color: #475569;
}
