/*
Theme Name:  Manhwa Mood
Theme URI:   https://manwhamood.online
Author:      Manhwa Mood
Author URI:  https://manwhamood.online
Description: A clean, cozy, AdSense-friendly manhwa recommendation and review WordPress theme. Focuses on original reviews, curated lists, spoiler-light guides, and legal reading resources. No pirated content.
Version:     1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License:     GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: manhwa-mood
Tags:        blog, custom-post-types, responsive-layout, accessibility-ready
*/

/* =============================================================================
   TABLE OF CONTENTS
   1.  CSS Custom Properties (Edit colors, fonts, spacing here)
   2.  Reset & Base
   3.  Typography
   4.  Layout Utilities
   5.  Header & Navigation
   6.  Hero Sections
   7.  Homepage Sections
   8.  Mood Browsing Cards
   9.  Manhwa Profile (single-manhwa.php)
  10.  Blog Post & Archive
  11.  Manhwa Directory (archive-manhwa.php)
  12.  Manhwa Card (card-manhwa.php)
  13.  Post Card (card-post.php)
  14.  Sidebar & Widgets
  15.  Footer
  16.  Forms & Filters
  17.  Ratings Display
  18.  Buttons
  19.  Badges & Tags
  20.  Pagination
  21.  Utility Classes
  22.  Responsive (Tablet & Mobile)
   ============================================================================= */


/* =============================================================================
   1. CSS CUSTOM PROPERTIES
   ★ Edit these variables to change the entire site's color scheme and fonts.
   ============================================================================= */
:root {
    /* --- Brand Colors --- */
    --color-bg:           #FAF7F2;   /* Main page background (cream/off-white) */
    --color-bg-alt:       #F5F0E8;   /* Slightly darker cream for section contrast */
    --color-white:        #FFFFFF;
    --color-pink:         #E8B4B8;   /* Soft pink accent */
    --color-pink-dark:    #D4949A;   /* Darker pink for hover states */
    --color-pink-light:   #F5D9DB;   /* Lighter pink for backgrounds */
    --color-lavender:     #C8B4D8;   /* Lavender accent */
    --color-lavender-light: #E8DDEF; /* Light lavender background */
    --color-brown:        #B8A898;   /* Muted warm brown */
    --color-brown-light:  #E2D8CE;   /* Light brown for borders */
    --color-text:         #2D2D2D;   /* Main body text (dark gray) */
    --color-text-muted:   #6B6B6B;   /* Secondary/muted text */
    --color-text-light:   #9B9B9B;   /* Light text for metadata */
    --color-border:       #E8E0D8;   /* Soft border color */
    --color-shadow:       rgba(45, 45, 45, 0.08); /* Card shadow */
    --color-shadow-hover: rgba(45, 45, 45, 0.15); /* Card shadow on hover */

    /* --- Typography --- */
    --font-heading: 'Playfair Display', 'Georgia', serif;
    --font-body:    'Lato', 'Helvetica Neue', Arial, sans-serif;
    --font-size-xs:   0.75rem;   /* 12px */
    --font-size-sm:   0.875rem;  /* 14px */
    --font-size-base: 1rem;      /* 16px */
    --font-size-md:   1.125rem;  /* 18px */
    --font-size-lg:   1.25rem;   /* 20px */
    --font-size-xl:   1.5rem;    /* 24px */
    --font-size-2xl:  2rem;      /* 32px */
    --font-size-3xl:  2.5rem;    /* 40px */
    --font-size-4xl:  3rem;      /* 48px */

    /* --- Spacing --- */
    --space-xs:  0.25rem;   /* 4px */
    --space-sm:  0.5rem;    /* 8px */
    --space-md:  1rem;      /* 16px */
    --space-lg:  1.5rem;    /* 24px */
    --space-xl:  2rem;      /* 32px */
    --space-2xl: 3rem;      /* 48px */
    --space-3xl: 4rem;      /* 64px */
    --space-4xl: 5rem;      /* 80px */

    /* --- Layout --- */
    --container-width: 1200px;
    --container-padding: 1.5rem;
    --radius-sm:  0.375rem;  /* Small border radius */
    --radius-md:  0.75rem;   /* Card border radius */
    --radius-lg:  1rem;      /* Large border radius */
    --radius-xl:  1.5rem;    /* Hero/section radius */
    --radius-full: 9999px;   /* Pill/badge radius */

    /* --- Transitions --- */
    --transition: 0.25s ease;
    --transition-slow: 0.4s ease;
}


/* =============================================================================
   2. RESET & BASE
   ============================================================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

ul, ol {
    list-style: none;
}

button, input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* Skip to content link for accessibility */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: var(--color-text);
    color: var(--color-white);
    padding: 0.5rem 1rem;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    z-index: 1000;
    font-size: var(--font-size-sm);
}
.skip-link:focus {
    top: 0;
}

/* Screen reader text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* =============================================================================
   3. TYPOGRAPHY
   ============================================================================= */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-text);
    line-height: 1.25;
    font-weight: 700;
}

h1 { font-size: clamp(1.75rem, 4vw, var(--font-size-4xl)); }
h2 { font-size: clamp(1.375rem, 3vw, var(--font-size-3xl)); }
h3 { font-size: clamp(1.125rem, 2.5vw, var(--font-size-2xl)); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-md); }

p {
    margin-bottom: var(--space-md);
    max-width: 70ch;
}

p:last-child {
    margin-bottom: 0;
}

strong { font-weight: 700; }
em     { font-style: italic; }

blockquote {
    border-left: 4px solid var(--color-pink);
    padding: var(--space-md) var(--space-lg);
    margin: var(--space-xl) 0;
    background: var(--color-pink-light);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    color: var(--color-text-muted);
}

/* Section heading style with decorative underline */
.section-heading {
    font-family: var(--font-heading);
    font-size: clamp(1.375rem, 3vw, var(--font-size-2xl));
    color: var(--color-text);
    margin-bottom: var(--space-sm);
}

.section-heading::after {
    content: '';
    display: block;
    width: 3rem;
    height: 3px;
    background: linear-gradient(90deg, var(--color-pink), var(--color-lavender));
    border-radius: var(--radius-full);
    margin-top: var(--space-xs);
}

.section-subheading {
    color: var(--color-text-muted);
    font-size: var(--font-size-md);
    margin-top: var(--space-xs);
    margin-bottom: var(--space-xl);
}

/* Entry content (WordPress WYSIWYG output) */
.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-md);
}

.entry-content p {
    margin-bottom: var(--space-lg);
}

.entry-content ul,
.entry-content ol {
    list-style: disc;
    padding-left: var(--space-xl);
    margin-bottom: var(--space-lg);
}

.entry-content ol {
    list-style: decimal;
}

.entry-content li {
    margin-bottom: var(--space-sm);
}

.entry-content a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.entry-content img {
    border-radius: var(--radius-md);
    margin: var(--space-lg) 0;
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-lg) 0;
    font-size: var(--font-size-sm);
}

.entry-content th,
.entry-content td {
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--color-border);
    text-align: left;
}

.entry-content th {
    background: var(--color-bg-alt);
    font-weight: 700;
}


/* =============================================================================
   4. LAYOUT UTILITIES
   ============================================================================= */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin-inline: auto;
    padding-inline: var(--container-padding);
}

.container--narrow {
    max-width: 800px;
}

.container--wide {
    max-width: 1400px;
}

.section {
    padding-block: var(--space-3xl);
}

.section--alt {
    background-color: var(--color-bg-alt);
}

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

/* Grid systems */
.grid {
    display: grid;
    gap: var(--space-lg);
}

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

/* Auto-fit responsive grid */
.grid--auto-manhwa {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--space-lg);
}

.grid--auto-post {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-lg);
}

/* Flex utilities */
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

/* Content + sidebar layout */
.content-sidebar-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: var(--space-2xl);
    align-items: start;
}


/* =============================================================================
   5. HEADER & NAVIGATION
   ============================================================================= */
.site-header {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px var(--color-shadow);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: var(--space-md);
    gap: var(--space-lg);
}

/* Logo / Site Title */
.site-branding {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-shrink: 0;
}

.site-branding a {
    color: var(--color-text);
    text-decoration: none;
}

.site-title {
    font-family: var(--font-heading);
    font-size: var(--font-size-xl);
    font-weight: 700;
    line-height: 1;
    color: var(--color-text);
}

/* ★ Edit this gradient to change the logo text color */
.site-title span {
    background: linear-gradient(135deg, var(--color-pink-dark), var(--color-lavender));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.site-tagline {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    font-style: italic;
    display: block;
    margin-top: 2px;
}

/* Primary Navigation */
.main-nav {
    display: flex;
    align-items: center;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.main-nav a {
    display: block;
    padding: var(--space-sm) var(--space-md);
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    white-space: nowrap;
}

.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current-page-ancestor > a {
    color: var(--color-pink-dark);
    background: var(--color-pink-light);
}

/* Hamburger button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
    color: var(--color-text);
    flex-direction: column;
    gap: 5px;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}

.menu-toggle:hover {
    background: var(--color-bg-alt);
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: all var(--transition);
}

/* Mobile nav open state */
.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* =============================================================================
   6. HERO SECTIONS
   ============================================================================= */

/* Homepage hero */
.hero {
    background: linear-gradient(135deg, var(--color-lavender-light) 0%, var(--color-pink-light) 60%, var(--color-bg) 100%);
    padding-block: var(--space-4xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(200,180,216,0.15) 0%, transparent 60%),
                      radial-gradient(circle at 80% 20%, rgba(232,180,184,0.15) 0%, transparent 60%);
}

.hero__inner {
    position: relative;
    z-index: 1;
}

.hero__eyebrow {
    display: inline-block;
    background: var(--color-pink-light);
    color: var(--color-pink-dark);
    font-size: var(--font-size-xs);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-lg);
}

.hero__title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: var(--space-lg);
    color: var(--color-text);
}

/* ★ Edit the highlight span color here */
.hero__title .highlight {
    color: var(--color-pink-dark);
}

.hero__subtitle {
    font-size: clamp(1rem, 2vw, var(--font-size-md));
    color: var(--color-text-muted);
    max-width: 600px;
    margin-inline: auto;
    margin-bottom: var(--space-2xl);
    line-height: 1.8;
}

.hero__actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* Page hero (interior pages) */
.page-hero {
    background: linear-gradient(135deg, var(--color-lavender-light), var(--color-pink-light));
    padding-block: var(--space-2xl);
    border-bottom: 1px solid var(--color-border);
}

.page-hero__title {
    font-size: clamp(1.5rem, 4vw, var(--font-size-3xl));
    margin-bottom: var(--space-sm);
}

.page-hero__breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

.page-hero__breadcrumb a {
    color: var(--color-pink-dark);
}

.page-hero__breadcrumb .separator {
    color: var(--color-border);
}


/* =============================================================================
   7. HOMEPAGE SECTIONS
   ============================================================================= */

/* Browse by Mood */
.mood-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: var(--space-md);
}

/* ★ Edit mood card background gradients in the inline styles on front-page.php */
.mood-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-lg) var(--space-md);
    border-radius: var(--radius-lg);
    text-align: center;
    font-weight: 600;
    font-size: var(--font-size-sm);
    color: var(--color-text);
    text-decoration: none;
    transition: transform var(--transition), box-shadow var(--transition);
    box-shadow: 0 2px 8px var(--color-shadow);
    min-height: 110px;
    cursor: pointer;
}

.mood-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px var(--color-shadow-hover);
    color: var(--color-text);
}

.mood-card__icon {
    font-size: 1.75rem;
    line-height: 1;
}

.mood-card__label {
    line-height: 1.3;
}

/* Featured Manhwa section (homepage) */
.featured-manhwa-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-lg);
}

/* Latest posts section (homepage) */
.latest-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-lg);
}

/* Manhwa Like section */
.manhwa-like-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-lg);
}

/* Beginner Guides section */
.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--space-lg);
}

.guide-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: 0 2px 8px var(--color-shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    text-decoration: none;
    color: var(--color-text);
}

.guide-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px var(--color-shadow-hover);
    color: var(--color-text);
}

.guide-card__icon {
    font-size: 2rem;
    margin-bottom: var(--space-md);
}

.guide-card__title {
    font-family: var(--font-heading);
    font-size: var(--font-size-md);
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.guide-card__desc {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin: 0;
    max-width: none;
}

/* Newsletter section */
.newsletter-section {
    background: linear-gradient(135deg, var(--color-lavender-light), var(--color-pink-light));
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    text-align: center;
    margin-block: var(--space-3xl);
}

.newsletter-section__title {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-sm);
}

.newsletter-section__desc {
    color: var(--color-text-muted);
    margin-bottom: var(--space-xl);
    margin-inline: auto;
}

.newsletter-form {
    display: flex;
    gap: var(--space-sm);
    max-width: 460px;
    margin-inline: auto;
    flex-wrap: wrap;
}

.newsletter-form__input {
    flex: 1;
    min-width: 200px;
    padding: 0.75rem var(--space-md);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-full);
    background: var(--color-white);
    color: var(--color-text);
    outline: none;
    transition: border-color var(--transition);
}

.newsletter-form__input:focus {
    border-color: var(--color-pink);
}

.newsletter-form__input::placeholder {
    color: var(--color-text-light);
}


/* =============================================================================
   8. MOOD BROWSING CARDS — Color Presets
   ★ These are the default gradient colors for mood cards.
   ============================================================================= */
.mood-card--romance     { background: linear-gradient(135deg, #FDE8EA, #FBD0D3); }
.mood-card--revenge     { background: linear-gradient(135deg, #E8E0F0, #D4C8E8); }
.mood-card--emotional   { background: linear-gradient(135deg, #E8F0E0, #D0E4C8); }
.mood-card--fantasy     { background: linear-gradient(135deg, #E0E8F8, #C8D8F4); }
.mood-card--sfl         { background: linear-gradient(135deg, #FFF0E0, #FFE0C0); }
.mood-card--completed   { background: linear-gradient(135deg, #E8F8F0, #C8ECD8); }
.mood-card--comfort     { background: linear-gradient(135deg, #FFF8E0, #FFF0C0); }
.mood-card--action      { background: linear-gradient(135deg, #F8E8E0, #F0D0C0); }


/* =============================================================================
   9. MANHWA PROFILE PAGE (single-manhwa.php)
   ============================================================================= */

/* Profile hero */
.manhwa-hero {
    background: var(--color-bg-alt);
    border-bottom: 1px solid var(--color-border);
    padding-block: var(--space-2xl) var(--space-3xl);
}

.manhwa-hero__inner {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: var(--space-2xl);
    align-items: start;
}

/* Cover image */
.manhwa-cover {
    flex-shrink: 0;
}

.manhwa-cover__img {
    width: 220px;
    height: 310px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.manhwa-cover__placeholder {
    width: 220px;
    height: 310px;
    background: linear-gradient(135deg, var(--color-lavender-light), var(--color-pink-light));
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
    gap: var(--space-sm);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.manhwa-cover__credit {
    font-size: var(--font-size-xs);
    color: var(--color-text-light);
    text-align: center;
    margin-top: var(--space-sm);
}

/* Profile meta */
.manhwa-meta {
    padding-top: var(--space-sm);
}

.manhwa-meta__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: var(--space-xs);
    line-height: 1.2;
}

.manhwa-meta__alt-title {
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-md);
    font-style: italic;
}

.manhwa-meta__genre-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    align-items: center;
    margin-bottom: var(--space-md);
}

.manhwa-meta__overall-rating {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.overall-score {
    background: linear-gradient(135deg, var(--color-pink), var(--color-lavender));
    color: var(--color-white);
    font-size: var(--font-size-2xl);
    font-weight: 700;
    font-family: var(--font-heading);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-md);
    line-height: 1;
    min-width: 70px;
    text-align: center;
}

.overall-score__label {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 2px;
}

.manhwa-meta__mood-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

/* Quick Details table */
.details-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: 0 2px 8px var(--color-shadow);
    margin-bottom: var(--space-xl);
}

.details-card__title {
    font-family: var(--font-heading);
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--color-border);
}

.details-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--font-size-sm);
}

.details-table tr:not(:last-child) td {
    border-bottom: 1px solid var(--color-border);
}

.details-table td {
    padding: 0.625rem 0;
    vertical-align: top;
}

.details-table td:first-child {
    font-weight: 700;
    color: var(--color-text-muted);
    white-space: nowrap;
    padding-right: var(--space-lg);
    width: 40%;
}

/* Profile sections */
.manhwa-section {
    padding: var(--space-2xl) 0;
    border-bottom: 1px solid var(--color-border);
}

.manhwa-section:last-child {
    border-bottom: none;
}

.manhwa-section__title {
    font-family: var(--font-heading);
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-lg);
    color: var(--color-text);
}

.manhwa-section__title::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 1em;
    background: linear-gradient(180deg, var(--color-pink), var(--color-lavender));
    border-radius: var(--radius-full);
    margin-right: var(--space-sm);
    vertical-align: middle;
}

/* Why like / why not boxes */
.pros-cons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.pros-box, .cons-box {
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
}

.pros-box {
    background: #F0F8F0;
    border-left: 4px solid #88C888;
}

.cons-box {
    background: var(--color-pink-light);
    border-left: 4px solid var(--color-pink);
}

.pros-box__title, .cons-box__title {
    font-weight: 700;
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-md);
}

.pros-box__title { color: #4A8A4A; }
.cons-box__title { color: var(--color-pink-dark); }

/* Ratings section */
.ratings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: var(--space-md);
}

.rating-item {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: center;
    box-shadow: 0 2px 6px var(--color-shadow);
}

.rating-item__label {
    font-size: var(--font-size-xs);
    font-weight: 700;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-sm);
}

.rating-item__score {
    font-family: var(--font-heading);
    font-size: var(--font-size-2xl);
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(135deg, var(--color-pink-dark), var(--color-lavender));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rating-item__out-of {
    font-size: var(--font-size-xs);
    color: var(--color-text-light);
    margin-top: 2px;
}

/* Similar manhwa section */
.similar-manhwa-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: var(--space-md);
}

/* Official/legal reading link box */
.reading-link-box {
    background: linear-gradient(135deg, var(--color-lavender-light), var(--color-pink-light));
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    border: 1px solid var(--color-border);
}

.reading-link-box__icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
}

.reading-link-box__title {
    font-family: var(--font-heading);
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-sm);
}

.reading-link-box__platform {
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
}

/* Disclaimer box */
.disclaimer-box {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin-top: var(--space-xl);
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
}

.disclaimer-box__icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.disclaimer-box p {
    margin: 0;
    max-width: none;
}


/* =============================================================================
   10. BLOG POST & ARCHIVE
   ============================================================================= */

/* Single post */
.post-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: var(--space-2xl);
    align-items: start;
    padding-block: var(--space-2xl);
}

.post-header {
    margin-bottom: var(--space-xl);
}

.post-header__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

.post-header__title {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    margin-bottom: var(--space-lg);
    line-height: 1.3;
}

.post-header__featured-img {
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-xl);
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.post-footer {
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--color-border);
}

.post-footer__tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

/* Author box */
.author-box {
    background: var(--color-bg-alt);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    display: flex;
    gap: var(--space-lg);
    align-items: flex-start;
    margin-top: var(--space-xl);
}

.author-box__avatar img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
}

.author-box__name {
    font-weight: 700;
    font-size: var(--font-size-md);
    margin-bottom: var(--space-xs);
}

/* Post navigation */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.post-navigation a {
    display: block;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    color: var(--color-text);
    transition: all var(--transition);
}

.post-navigation a:hover {
    border-color: var(--color-pink);
    box-shadow: 0 2px 8px var(--color-shadow-hover);
    color: var(--color-text);
}

.post-navigation__label {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-xs);
}

.post-navigation__title {
    font-weight: 700;
    font-size: var(--font-size-sm);
    line-height: 1.4;
}

/* Archive page */
.archive-header {
    margin-bottom: var(--space-2xl);
}

.archive-header__title {
    font-size: clamp(1.5rem, 3vw, var(--font-size-2xl));
    margin-bottom: var(--space-sm);
}

.archive-header__description {
    color: var(--color-text-muted);
}

/* Comments (WordPress default, lightly styled) */
.comments-area {
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 2px solid var(--color-border);
}

.comments-title {
    font-family: var(--font-heading);
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-xl);
}

.comment-list {
    list-style: none;
    margin-bottom: var(--space-xl);
}

.comment {
    padding: var(--space-lg);
    border-bottom: 1px solid var(--color-border);
}

.comment-author {
    font-weight: 700;
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-xs);
}

.comment-meta {
    font-size: var(--font-size-xs);
    color: var(--color-text-light);
    margin-bottom: var(--space-sm);
}

.comment-reply-link {
    font-size: var(--font-size-xs);
    color: var(--color-pink-dark);
    font-weight: 600;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 0.75rem var(--space-md);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-white);
    margin-bottom: var(--space-md);
    transition: border-color var(--transition);
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--color-pink);
    outline: none;
}

.comment-form textarea {
    min-height: 120px;
    resize: vertical;
}


/* =============================================================================
   11. MANHWA DIRECTORY (archive-manhwa.php)
   ============================================================================= */

.directory-header {
    margin-bottom: var(--space-2xl);
}

.directory-filters {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-2xl);
    box-shadow: 0 2px 8px var(--color-shadow);
}

.filters-title {
    font-weight: 700;
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--space-md);
    align-items: end;
}

.filter-group label {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-text-muted);
    margin-bottom: var(--space-xs);
}

.filter-group select,
.filter-group input[type="text"],
.filter-group input[type="search"] {
    width: 100%;
    padding: 0.625rem var(--space-md);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg);
    color: var(--color-text);
    font-size: var(--font-size-sm);
    cursor: pointer;
    transition: border-color var(--transition);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B6B6B' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px;
    padding-right: 2.5rem;
}

.filter-group input[type="text"],
.filter-group input[type="search"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B6B6B' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='M21 21l-4.35-4.35'/%3E%3C/svg%3E");
    background-size: 16px;
}

.filter-group select:focus,
.filter-group input:focus {
    border-color: var(--color-pink);
    outline: none;
}

.filters-actions {
    display: flex;
    gap: var(--space-sm);
    align-items: flex-end;
    padding-top: 0.5rem;
}

/* Results info */
.directory-results-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

.directory-count {
    font-weight: 600;
    color: var(--color-text);
}


/* =============================================================================
   12. MANHWA CARD (template-parts/card-manhwa.php)
   ============================================================================= */
.manhwa-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 2px 8px var(--color-shadow);
    border: 1px solid var(--color-border);
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}

.manhwa-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px var(--color-shadow-hover);
}

.manhwa-card__cover-link {
    display: block;
    overflow: hidden;
    aspect-ratio: 2/3;
    background: linear-gradient(135deg, var(--color-lavender-light), var(--color-pink-light));
    position: relative;
}

.manhwa-card__cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.manhwa-card:hover .manhwa-card__cover-img {
    transform: scale(1.04);
}

.manhwa-card__cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
    font-size: var(--font-size-sm);
    text-align: center;
    padding: var(--space-md);
}

.manhwa-card__rating-badge {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    background: rgba(45, 45, 45, 0.75);
    color: #fff;
    font-weight: 700;
    font-size: var(--font-size-xs);
    padding: 3px 8px;
    border-radius: var(--radius-full);
    backdrop-filter: blur(4px);
}

.manhwa-card__body {
    padding: var(--space-md);
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.manhwa-card__title {
    font-family: var(--font-heading);
    font-size: var(--font-size-sm);
    font-weight: 700;
    line-height: 1.35;
    color: var(--color-text);
    text-decoration: none;
    transition: color var(--transition);
}

.manhwa-card__title:hover {
    color: var(--color-pink-dark);
}

.manhwa-card__genre {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
}

.manhwa-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: auto;
}

.manhwa-card__cta {
    display: block;
    text-align: center;
    margin: var(--space-md);
    margin-top: 0;
}


/* =============================================================================
   13. POST CARD (template-parts/card-post.php)
   ============================================================================= */
.post-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 2px 8px var(--color-shadow);
    border: 1px solid var(--color-border);
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--color-text);
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px var(--color-shadow-hover);
    color: var(--color-text);
}

.post-card__thumbnail {
    overflow: hidden;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--color-lavender-light), var(--color-pink-light));
}

.post-card__thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.post-card:hover .post-card__thumbnail img {
    transform: scale(1.04);
}

.post-card__body {
    padding: var(--space-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-card__meta {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--font-size-xs);
    color: var(--color-text-light);
    margin-bottom: var(--space-sm);
}

.post-card__category {
    background: var(--color-pink-light);
    color: var(--color-pink-dark);
    padding: 2px var(--space-sm);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: var(--font-size-xs);
}

.post-card__title {
    font-family: var(--font-heading);
    font-size: var(--font-size-md);
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: var(--space-sm);
    transition: color var(--transition);
}

.post-card:hover .post-card__title {
    color: var(--color-pink-dark);
}

.post-card__excerpt {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 0;
    max-width: none;
    flex: 1;

    /* Limit to 3 lines */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card__footer {
    padding: var(--space-md) var(--space-lg);
    border-top: 1px solid var(--color-border);
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.post-card__read-more {
    color: var(--color-pink-dark);
    font-weight: 600;
    white-space: nowrap;
}


/* =============================================================================
   14. SIDEBAR & WIDGETS
   ============================================================================= */
.sidebar {
    position: sticky;
    top: calc(70px + var(--space-lg));
}

.widget {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-lg);
    box-shadow: 0 2px 6px var(--color-shadow);
}

.widget-title {
    font-family: var(--font-heading);
    font-size: var(--font-size-md);
    font-weight: 700;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--color-border);
    color: var(--color-text);
}

.widget ul {
    list-style: none;
}

.widget ul li {
    padding: var(--space-xs) 0;
    border-bottom: 1px solid var(--color-border);
    font-size: var(--font-size-sm);
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: var(--color-text-muted);
    display: flex;
    justify-content: space-between;
    transition: color var(--transition);
}

.widget ul li a:hover {
    color: var(--color-pink-dark);
}

.widget-search input {
    width: 100%;
    padding: 0.625rem var(--space-md);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-full);
    background: var(--color-bg);
    font-size: var(--font-size-sm);
    outline: none;
    transition: border-color var(--transition);
}

.widget-search input:focus {
    border-color: var(--color-pink);
}


/* =============================================================================
   15. FOOTER
   ============================================================================= */
.site-footer {
    background: var(--color-text);
    color: rgba(255,255,255,0.75);
    padding-top: var(--space-3xl);
}

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

.footer-brand .site-title {
    color: var(--color-white);
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-sm);
}

.footer-brand .site-title span {
    background: linear-gradient(135deg, var(--color-pink), var(--color-lavender));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-description {
    font-size: var(--font-size-sm);
    color: rgba(255,255,255,0.6);
    line-height: 1.8;
    margin-bottom: var(--space-lg);
    max-width: 280px;
}

.footer-disclaimer {
    font-size: var(--font-size-xs);
    color: rgba(255,255,255,0.5);
    line-height: 1.7;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    max-width: 280px;
}

.footer-col__title {
    color: var(--color-white);
    font-size: var(--font-size-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-lg);
}

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

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

.footer-col ul li a {
    color: rgba(255,255,255,0.6);
    font-size: var(--font-size-sm);
    transition: color var(--transition);
}

.footer-col ul li a:hover {
    color: var(--color-pink);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-block: var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-md);
    font-size: var(--font-size-xs);
    color: rgba(255,255,255,0.45);
}

.footer-bottom a {
    color: rgba(255,255,255,0.6);
}

.footer-bottom a:hover {
    color: var(--color-pink);
}


/* =============================================================================
   16. FORMS & FILTERS
   ============================================================================= */

/* General form reset */
input[type="text"],
input[type="email"],
input[type="search"],
input[type="url"],
textarea,
select {
    font-family: var(--font-body);
}

/* Search form (WordPress default)
   WP wraps <input type="search"> inside a <label>, so we use display:contents
   to make the label transparent to flex layout. WP also outputs
   <input type="submit" class="search-submit"> rather than a <button>. */
.search-form {
    display: flex;
    gap: 0; /* no gap — the two pieces join seamlessly */
}

/* Make the <label> invisible to the flex container so the <input> inside
   becomes a direct flex child and takes up the remaining space. */
.search-form label {
    flex: 1;
    display: contents;
}

.search-form input[type="search"],
.search-form .search-field {
    flex: 1;
    padding: 0.625rem var(--space-md);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-full) 0 0 var(--radius-full);
    border-right: 0;
    background: var(--color-bg);
    color: var(--color-text);
    outline: none;
    transition: border-color var(--transition);
    min-width: 0; /* prevents input overflow in narrow flex containers */
}

.search-form input[type="search"]:focus,
.search-form .search-field:focus {
    border-color: var(--color-pink);
}

/* Target both WP's <input type="submit"> and any custom <button> */
.search-form input.search-submit,
.search-form button[type="submit"] {
    padding: 0.625rem var(--space-lg);
    background: var(--color-pink-dark);
    color: white;
    border: none;
    border-radius: 0 var(--radius-full) var(--radius-full) 0;
    cursor: pointer;
    font-weight: 600;
    font-size: var(--font-size-sm);
    transition: background var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.search-form input.search-submit:hover,
.search-form button[type="submit"]:hover {
    background: var(--color-lavender);
}


/* =============================================================================
   17. RATINGS DISPLAY
   ============================================================================= */

/* Star-style rating bar */
.rating-bar {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.rating-bar__label {
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: var(--color-text-muted);
    width: 80px;
    flex-shrink: 0;
}

.rating-bar__track {
    flex: 1;
    height: 8px;
    background: var(--color-border);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.rating-bar__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-pink), var(--color-lavender));
    border-radius: var(--radius-full);
    transition: width 0.8s ease;
}

.rating-bar__value {
    font-size: var(--font-size-xs);
    font-weight: 700;
    color: var(--color-text);
    width: 30px;
    text-align: right;
    flex-shrink: 0;
}


/* =============================================================================
   18. BUTTONS
   ============================================================================= */

/* Base button */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.75rem var(--space-xl);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: var(--font-size-sm);
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1;
}

/* Primary: filled pink */
/* ★ Edit --color-pink-dark to change the primary button color */
.btn--primary {
    background: var(--color-pink-dark);
    color: var(--color-white);
    border-color: var(--color-pink-dark);
}

.btn--primary:hover {
    background: #C07A80;
    border-color: #C07A80;
    color: var(--color-white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 148, 154, 0.4);
}

/* Secondary: outline pink */
.btn--secondary {
    background: transparent;
    color: var(--color-pink-dark);
    border-color: var(--color-pink-dark);
}

.btn--secondary:hover {
    background: var(--color-pink-light);
    color: var(--color-pink-dark);
    transform: translateY(-1px);
}

/* Lavender */
.btn--lavender {
    background: var(--color-lavender);
    color: var(--color-text);
    border-color: var(--color-lavender);
}

.btn--lavender:hover {
    background: #B8A0CC;
    border-color: #B8A0CC;
    color: var(--color-text);
    transform: translateY(-1px);
}

/* Ghost: no fill, bordered */
.btn--ghost {
    background: transparent;
    color: var(--color-text-muted);
    border-color: var(--color-border);
}

.btn--ghost:hover {
    border-color: var(--color-pink);
    color: var(--color-pink-dark);
}

/* Sizes */
.btn--sm {
    padding: 0.5rem var(--space-lg);
    font-size: var(--font-size-xs);
}

.btn--lg {
    padding: 0.875rem var(--space-2xl);
    font-size: var(--font-size-base);
}

.btn--full { width: 100%; }


/* =============================================================================
   19. BADGES & TAGS
   ============================================================================= */

/* Genre/category badge */
.badge {
    display: inline-block;
    padding: 3px var(--space-sm);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.02em;
}

.badge--pink {
    background: var(--color-pink-light);
    color: var(--color-pink-dark);
}

.badge--lavender {
    background: var(--color-lavender-light);
    color: #7A5A9A;
}

.badge--brown {
    background: var(--color-brown-light);
    color: #6B5040;
}

.badge--green {
    background: #E0F0E0;
    color: #3A7A3A;
}

.badge--yellow {
    background: #FFF8D6;
    color: #7A6A00;
}

.badge--gray {
    background: var(--color-bg-alt);
    color: var(--color-text-muted);
}

/* Status badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px var(--space-sm);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.status-badge::before {
    content: '';
    display: block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-badge--completed { background: #E0F0E0; color: #2E7D2E; }
.status-badge--completed::before { background: #2E7D2E; }
.status-badge--ongoing   { background: #E8F0FF; color: #1A56BB; }
.status-badge--ongoing::before   { background: #1A56BB; }
.status-badge--hiatus    { background: #FFF8D6; color: #7A6A00; }
.status-badge--hiatus::before    { background: #F0C000; }


/* =============================================================================
   20. PAGINATION
   ============================================================================= */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-2xl);
    flex-wrap: wrap;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-text-muted);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    transition: all var(--transition);
    text-decoration: none;
}

.pagination .page-numbers:hover {
    border-color: var(--color-pink);
    color: var(--color-pink-dark);
    background: var(--color-pink-light);
}

.pagination .page-numbers.current {
    background: var(--color-pink-dark);
    border-color: var(--color-pink-dark);
    color: var(--color-white);
}

.pagination .page-numbers.dots {
    border: none;
    background: none;
    color: var(--color-text-muted);
    pointer-events: none;
    width: auto;
}


/* =============================================================================
   21. UTILITY CLASSES
   ============================================================================= */
.text-center  { text-align: center; }
.text-left    { text-align: left; }
.text-right   { text-align: right; }
.text-muted   { color: var(--color-text-muted); }
.text-small   { font-size: var(--font-size-sm); }

.mt-sm  { margin-top: var(--space-sm); }
.mt-md  { margin-top: var(--space-md); }
.mt-lg  { margin-top: var(--space-lg); }
.mt-xl  { margin-top: var(--space-xl); }
.mb-sm  { margin-bottom: var(--space-sm); }
.mb-md  { margin-bottom: var(--space-md); }
.mb-lg  { margin-bottom: var(--space-lg); }
.mb-xl  { margin-bottom: var(--space-xl); }

.w-full  { width: 100%; }
.hidden  { display: none !important; }

/* Section view-all link */
.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--color-pink-dark);
    font-weight: 600;
    font-size: var(--font-size-sm);
    transition: gap var(--transition);
    text-decoration: none;
}

.view-all-link:hover {
    gap: var(--space-sm);
    color: var(--color-pink-dark);
}

.view-all-link::after {
    content: '→';
}

/* No results */
.no-results {
    text-align: center;
    padding: var(--space-3xl);
    color: var(--color-text-muted);
}

.no-results__icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
}

.no-results__title {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-sm);
}

/* Loading spinner */
.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--color-border);
    border-top-color: var(--color-pink-dark);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: var(--space-xl) auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}


/* =============================================================================
   22. RESPONSIVE (Tablet & Mobile)
   ============================================================================= */

/* Tablet — max 1024px */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .content-sidebar-layout,
    .post-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    .manhwa-hero__inner {
        grid-template-columns: 180px 1fr;
        gap: var(--space-lg);
    }

    .manhwa-cover__img,
    .manhwa-cover__placeholder {
        width: 180px;
        height: 252px;
    }

    .pros-cons-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile — max 768px */
@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
    }

    /* Header */
    .menu-toggle {
        display: flex;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-white);
        border-top: 1px solid var(--color-border);
        padding: var(--space-md);
        box-shadow: 0 4px 16px var(--color-shadow);
    }

    .main-nav.is-open {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 2px;
    }

    .main-nav a {
        padding: var(--space-md);
        border-radius: var(--radius-sm);
    }

    /* Layout */
    .grid--2,
    .grid--3,
    .grid--4 {
        grid-template-columns: 1fr;
    }

    .post-navigation {
        grid-template-columns: 1fr;
    }

    /* Manhwa hero */
    .manhwa-hero__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .manhwa-cover {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .manhwa-cover__img,
    .manhwa-cover__placeholder {
        width: 160px;
        height: 225px;
    }

    .manhwa-meta__genre-row,
    .manhwa-meta__mood-tags,
    .manhwa-meta__overall-rating {
        justify-content: center;
    }

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

    .footer-description,
    .footer-disclaimer {
        max-width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    /* Sections */
    .section {
        padding-block: var(--space-2xl);
    }

    .hero {
        padding-block: var(--space-2xl);
    }

    /* Filters */
    .filters-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Mood grid */
    .mood-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Ratings */
    .ratings-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Newsletter */
    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form__input {
        width: 100%;
    }
}

/* Small mobile — max 480px */
@media (max-width: 480px) {
    .filters-grid {
        grid-template-columns: 1fr;
    }

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

    .hero__actions .btn {
        width: 100%;
        max-width: 280px;
    }

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

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