/*
Theme Name:        Wonder Vanilla
Theme URI:         https://nexiamath.com/product/themes/wonder-vanilla
Author:            Nexiamath
Author URI:        https://nexiamath.com
Description:       Wonder Vanilla is a clean, elegant WordPress news and lifestyle magazine theme for bloggers, content creators, and digital publishers who want beautiful typography with a reader-first experience. Built around a soft cream-and-rose editorial aesthetic with Playfair Display headings and Nunito body text for maximum readability. Features off-canvas hamburger navigation, expandable header search panel, reading progress bar, estimated reading time, inline and floating social share buttons (X/Twitter, Facebook, WhatsApp, copy link), font size toggle (A−/A+), breadcrumb navigation, and Schema.org NewsArticle microdata. Includes 6 configurable ad slots (728×90 header, 970×250 billboard, 336×280 in-article, 300×250 and 300×600 sidebar, 728×90 footer) for instant monetization. Built-in dark mode via prefers-color-scheme with zero JavaScript, reduced-motion support, skip link, and full ARIA labeling for WCAG 2.1 accessibility. Gutenberg-ready with wp-block-styles, wide alignment, and responsive embeds. Works seamlessly with the Nexiamath-SEO plugin — Open Graph, Twitter Card, canonical, and Schema JSON-LD output handed off automatically when active. Custom logo with SVG fallback. Three widget-ready footer columns and a right-hand sidebar. Requires WordPress 6.0+, PHP 8.0+. Translation-ready. GPL v2 licensed.
Version:           1.0.1
Requires at least: 6.0
Tested up to:      6.7
Requires PHP:      8.0
License:           GPL v2 or later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:       wonder-vanilla
Tags:              news-portal, blog, magazine, editorial, lifestyle, right-sidebar, grid-layout, multi-column, footer-columns, full-width-layout, custom-logo, custom-menu, featured-images, footer-widgets, sticky-post, threaded-comments, translation-ready, dark-mode, ad-ready, schema-ready, seo-ready, reading-focused, social-sharing, gutenberg-ready, responsive-design, mobile-first, accessibility-friendly, fast-loading, lightweight, navigation-ready
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
    --wv-cream:        #fdf6ef;
    --wv-rose:         #e8a0ad;
    --wv-rose-dark:    #c97b8a;
    --wv-mauve:        #9b8ec4;
    --wv-mauve-dark:   #7b6ea4;
    --wv-text:         #3d2c35;
    --wv-text-muted:   #7a6070;
    --wv-text-light:   #a08898;
    --wv-card-bg:      #ffffff;
    --wv-border:       #f0dfe6;
    --wv-shadow:       0 2px 16px rgba(155,110,130,.10);
    --wv-shadow-hover: 0 6px 28px rgba(155,110,130,.18);
    --wv-radius:       14px;
    --wv-radius-sm:    8px;
    --wv-max:          1200px;
    --wv-font-body:    'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --wv-font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --wv-transition:   .25s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--wv-font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--wv-text);
    background: var(--wv-cream);
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--wv-rose-dark); text-decoration: none; transition: color var(--wv-transition); }
a:hover { color: var(--wv-mauve-dark); }

ul, ol { list-style: none; }

/* ============================================================
   SKIP LINK
   ============================================================ */
.wv-skip-link {
    position: absolute;
    left: -9999px;
    top: 8px;
    z-index: 99999;
    background: var(--wv-rose-dark);
    color: #fff;
    padding: 8px 20px;
    border-radius: 0 0 var(--wv-radius-sm) var(--wv-radius-sm);
    font-weight: 700;
    font-size: .9rem;
}
.wv-skip-link:focus { left: 8px; }

/* ============================================================
   READING PROGRESS BAR
   ============================================================ */
#wv-progress {
    position: fixed;
    top: 0; left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--wv-rose), var(--wv-mauve));
    z-index: 9999;
    transition: width .1s linear;
}

/* ============================================================
   FOCUS
   ============================================================ */
:focus-visible { outline: 2px solid var(--wv-rose-dark); outline-offset: 3px; }

/* ============================================================
   CONTAINER & LAYOUT
   ============================================================ */
.wv-container {
    max-width: var(--wv-max);
    margin-inline: auto;
    padding-inline: 20px;
}

.wv-grid-main {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 32px;
    align-items: start;
}

/* ============================================================
   HEADER
   ============================================================ */
.wv-header {
    background: var(--wv-card-bg);
    border-bottom: 2px solid var(--wv-border);
    position: sticky;
    top: 0;
    z-index: 900;
    box-shadow: var(--wv-shadow);
}

.wv-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-block: 14px;
}

/* Logo */
.wv-logo {
    display: flex;
    align-items: center;
    min-width: 0;
}
.wv-logo .custom-logo-link,
.wv-logo .wv-logo-link {
    display: inline-flex;
    flex-direction: column;
    line-height: 1.1;
    white-space: nowrap;
    max-width: min(220px, 56vw);
}
.wv-logo-name {
    font-family: var(--wv-font-heading);
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--wv-rose-dark);
    letter-spacing: -.5px;
}
.wv-logo-tagline {
    font-size: .72rem;
    color: var(--wv-text-light);
    letter-spacing: .08em;
    text-transform: uppercase;
}
.wv-logo .custom-logo,
.wv-logo .wv-logo-img {
    max-height: 52px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
}

/* Search toggle */
.wv-search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--wv-text-muted);
    font-size: 1.1rem;
    padding: 6px;
    transition: color var(--wv-transition);
}
.wv-search-toggle:hover { color: var(--wv-rose-dark); }

/* Search panel */
.wv-search-panel {
    display: none;
    background: var(--wv-cream);
    padding: 12px 0;
    border-top: 1px solid var(--wv-border);
}
.wv-search-panel.is-open { display: block; }
.wv-search-form {
    display: flex;
    gap: 8px;
}
.wv-search-input {
    flex: 1;
    border: 2px solid var(--wv-border);
    border-radius: 40px;
    padding: 10px 18px;
    font-family: var(--wv-font-body);
    font-size: .95rem;
    color: var(--wv-text);
    background: #fff;
    outline: none;
    transition: border-color var(--wv-transition);
}
.wv-search-input:focus { border-color: var(--wv-rose); }
.wv-search-submit {
    background: var(--wv-rose-dark);
    color: #fff;
    border: none;
    border-radius: 40px;
    padding: 10px 22px;
    cursor: pointer;
    font-family: var(--wv-font-body);
    font-weight: 700;
    font-size: .9rem;
    transition: background var(--wv-transition);
}
.wv-search-submit:hover { background: var(--wv-mauve-dark); }

/* Primary nav */
.wv-nav {
    background: var(--wv-rose);
}
.wv-nav-inner {
    display: flex;
    align-items: center;
    gap: 0;
    padding-block: 0;
    overflow: visible;
    position: relative;
}

.wv-nav-menu {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 2px;
    padding-block: 6px;
    margin: 0;
    width: 100%;
}
.wv-nav-menu > li {
    position: relative;
    flex: 0 0 auto;
}

.wv-nav-menu > li > a {
    display: block;
    padding: 7px 16px;
    border-radius: 40px;
    color: #fff;
    font-weight: 700;
    font-size: .85rem;
    letter-spacing: .02em;
    transition: background var(--wv-transition), color var(--wv-transition);
    white-space: nowrap;
}

.wv-nav-menu > li > a:hover,
.wv-nav-menu > li.current-menu-item > a,
.wv-nav-menu > li.current-cat > a {
    background: rgba(255,255,255,.22);
    color: #fff;
}

.wv-menu-more > a {
    position: relative;
    padding-right: 30px;
}

.wv-menu-more > a::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-35%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid rgba(255,255,255,.86);
}

.wv-menu-more .sub-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid var(--wv-border);
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 16px 28px rgba(61,44,53,.16);
    display: none;
    z-index: 35;
}

.wv-menu-more.is-open .sub-menu {
    display: block;
}

.wv-menu-more .sub-menu li a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--wv-text);
    font-weight: 700;
    font-size: .84rem;
    white-space: nowrap;
}

.wv-menu-more .sub-menu li a:hover,
.wv-menu-more .sub-menu li.current-menu-item > a,
.wv-menu-more .sub-menu li.current-cat > a {
    background: var(--wv-cream);
    color: var(--wv-rose-dark);
}

/* Hamburger (mobile) */
.wv-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
}
.wv-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--wv-text);
    border-radius: 2px;
    transition: var(--wv-transition);
}

/* Mobile drawer */
.wv-drawer {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9000;
}
.wv-drawer.is-open { display: block; }
.wv-drawer-overlay {
    position: absolute;
    inset: 0;
    background: rgba(61,44,53,.45);
}
.wv-drawer-panel {
    position: absolute;
    top: 0; left: 0;
    width: min(300px, 85vw);
    height: 100%;
    background: var(--wv-card-bg);
    overflow-y: auto;
    padding: 24px 20px;
    box-shadow: 4px 0 32px rgba(0,0,0,.15);
}
.wv-drawer-close {
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--wv-text-muted);
    float: right;
    line-height: 1;
    padding: 4px;
}
.wv-drawer-logo {
    font-family: var(--wv-font-heading);
    font-size: 1.4rem;
    color: var(--wv-rose-dark);
    font-weight: 700;
    margin-bottom: 20px;
    display: block;
    clear: both;
    padding-top: 4px;
}
.wv-drawer-nav { list-style: none; }
.wv-drawer-nav li { border-bottom: 1px solid var(--wv-border); }
.wv-drawer-nav li a {
    display: block;
    padding: 12px 4px;
    color: var(--wv-text);
    font-weight: 600;
    font-size: .95rem;
}
.wv-drawer-nav li a:hover { color: var(--wv-rose-dark); }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.wv-breadcrumb {
    padding: 10px 0;
    font-size: .8rem;
    color: var(--wv-text-light);
}
.wv-breadcrumb a { color: var(--wv-text-muted); }
.wv-breadcrumb a:hover { color: var(--wv-rose-dark); }
.wv-breadcrumb span { margin-inline: 5px; }

/* ============================================================
   HERO — big card at top of homepage
   ============================================================ */
.wv-hero {
    margin-block: 28px;
}
.wv-hero-card {
    position: relative;
    border-radius: var(--wv-radius);
    overflow: hidden;
    background: var(--wv-card-bg);
    box-shadow: var(--wv-shadow);
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 380px;
    transition: box-shadow var(--wv-transition);
}
.wv-hero-card:hover { box-shadow: var(--wv-shadow-hover); }
.wv-hero-media { overflow: hidden; }
.wv-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.wv-hero-card:hover .wv-hero-media img { transform: scale(1.04); }
.wv-hero-body {
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
}
.wv-hero-cat {
    display: inline-block;
    background: var(--wv-rose);
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 40px;
    align-self: flex-start;
}
.wv-hero-title {
    font-family: var(--wv-font-heading);
    font-size: 1.9rem;
    line-height: 1.25;
    color: var(--wv-text);
    font-weight: 700;
}
.wv-hero-title a { color: inherit; }
.wv-hero-title a:hover { color: var(--wv-rose-dark); }
.wv-hero-excerpt {
    color: var(--wv-text-muted);
    font-size: .95rem;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.wv-hero-meta {
    font-size: .8rem;
    color: var(--wv-text-light);
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.wv-hero-meta a { color: var(--wv-text-light); }

/* ============================================================
   SECTION HEADING
   ============================================================ */
.wv-section-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-block: 28px 18px;
}
.wv-section-heading h2 {
    font-family: var(--wv-font-heading);
    font-size: 1.15rem;
    color: var(--wv-text);
    font-weight: 700;
}
.wv-section-heading::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--wv-border);
}
.wv-section-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--wv-rose);
    flex-shrink: 0;
}

/* ============================================================
   POST CARDS
   ============================================================ */
.wv-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.wv-card {
    background: var(--wv-card-bg);
    border-radius: var(--wv-radius);
    overflow: hidden;
    box-shadow: var(--wv-shadow);
    transition: box-shadow var(--wv-transition), transform var(--wv-transition);
    display: flex;
    flex-direction: column;
}
.wv-card:hover {
    box-shadow: var(--wv-shadow-hover);
    transform: translateY(-3px);
}
.wv-card-media { overflow: hidden; aspect-ratio: 16/9; background: var(--wv-border); }
.wv-card-media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.wv-card:hover .wv-card-media img { transform: scale(1.05); }
.wv-card-body {
    padding: 16px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.wv-card-cat {
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--wv-rose-dark);
}
.wv-card-title {
    font-family: var(--wv-font-heading);
    font-size: 1.05rem;
    line-height: 1.35;
    color: var(--wv-text);
    font-weight: 700;
}
.wv-card-title a { color: inherit; }
.wv-card-title a:hover { color: var(--wv-rose-dark); }
.wv-card-excerpt {
    font-size: .85rem;
    color: var(--wv-text-muted);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}
.wv-card-meta {
    font-size: .75rem;
    color: var(--wv-text-light);
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid var(--wv-border);
}

/* List style card (latest / sidebar) */
.wv-list-card {
    display: flex;
    gap: 14px;
    background: var(--wv-card-bg);
    border-radius: var(--wv-radius-sm);
    padding: 12px;
    box-shadow: var(--wv-shadow);
    transition: box-shadow var(--wv-transition);
}
.wv-list-card:hover { box-shadow: var(--wv-shadow-hover); }
.wv-list-card-media {
    flex-shrink: 0;
    width: 90px; height: 70px;
    border-radius: var(--wv-radius-sm);
    overflow: hidden;
    background: var(--wv-border);
}
.wv-list-card-media img { width: 100%; height: 100%; object-fit: cover; }
.wv-list-card-body { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.wv-list-card-title {
    font-family: var(--wv-font-heading);
    font-size: .9rem;
    line-height: 1.35;
    font-weight: 700;
    color: var(--wv-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.wv-list-card-title a { color: inherit; }
.wv-list-card-title a:hover { color: var(--wv-rose-dark); }
.wv-list-card-meta { font-size: .72rem; color: var(--wv-text-light); margin-top: auto; }

.wv-list-stack { display: flex; flex-direction: column; gap: 12px; }

/* ============================================================
   SITE MAIN
   ============================================================ */
.wv-site-main { padding-block: 20px 48px; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.wv-sidebar { display: flex; flex-direction: column; gap: 28px; }

.wv-widget {
    background: var(--wv-card-bg);
    border-radius: var(--wv-radius);
    padding: 20px;
    box-shadow: var(--wv-shadow);
}
.wv-widget-title {
    font-family: var(--wv-font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--wv-text);
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--wv-rose);
    display: flex;
    align-items: center;
    gap: 6px;
}
.wv-widget-title::before {
    content: '';
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--wv-rose);
}

/* ============================================================
   ARTICLE (single.php)
   ============================================================ */
.wv-article {
    background: var(--wv-card-bg);
    border-radius: var(--wv-radius);
    box-shadow: var(--wv-shadow);
    overflow: hidden;
}
.wv-article-header { padding: 32px 36px 0; }
.wv-article-cat {
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--wv-rose-dark);
    margin-bottom: 10px;
    display: block;
}
.wv-article-title {
    font-family: var(--wv-font-heading);
    font-size: 2.1rem;
    line-height: 1.25;
    color: var(--wv-text);
    font-weight: 700;
    margin-bottom: 16px;
}
.wv-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: .82rem;
    color: var(--wv-text-light);
    padding-bottom: 18px;
    border-bottom: 1px solid var(--wv-border);
}
.wv-article-meta a { color: var(--wv-text-muted); }
.wv-article-meta a:hover { color: var(--wv-rose-dark); }
.wv-reading-time { font-weight: 600; color: var(--wv-mauve); }

/* Share bar */
.wv-share-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 14px 36px;
    border-bottom: 1px solid var(--wv-border);
}
.wv-share-label { font-size: .82rem; font-weight: 700; color: var(--wv-text-muted); }
.wv-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 40px;
    font-size: .78rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: opacity var(--wv-transition), transform var(--wv-transition);
    color: #fff;
    font-family: var(--wv-font-body);
}
.wv-share-btn:hover { opacity: .85; transform: translateY(-1px); color: #fff; }
.wv-share-btn--x  { background: #000; }
.wv-share-btn--fb { background: #1877f2; }
.wv-share-btn--wa { background: #25d366; }
.wv-share-btn--copy { background: var(--wv-mauve); }
.wv-share-btn--copy.copied { background: #16a34a; }

.wv-article-hero { margin: 0; }
.wv-article-hero img { width: 100%; max-height: 480px; object-fit: cover; }
.wv-article-hero figcaption {
    padding: 8px 36px;
    font-size: .78rem;
    color: var(--wv-text-light);
    font-style: italic;
    background: var(--wv-cream);
}

.wv-article-content {
    padding: 28px 36px 36px;
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--wv-text);
}
.wv-article-content p  { margin-bottom: 1.2em; }
.wv-article-content h2 { font-family: var(--wv-font-heading); font-size: 1.5rem; margin: 2em 0 .6em; color: var(--wv-text); }
.wv-article-content h3 { font-family: var(--wv-font-heading); font-size: 1.2rem; margin: 1.6em 0 .5em; color: var(--wv-text); }
.wv-article-content ul,
.wv-article-content ol  { padding-left: 1.5em; margin-bottom: 1.2em; }
.wv-article-content ul  { list-style: disc; }
.wv-article-content ol  { list-style: decimal; }
.wv-article-content li  { margin-bottom: .5em; }
.wv-article-content blockquote {
    margin: 1.8em 0;
    padding: 1em 1.5em;
    border-left: 4px solid var(--wv-rose);
    background: #fdf0f4;
    border-radius: 0 var(--wv-radius-sm) var(--wv-radius-sm) 0;
    font-style: italic;
    color: var(--wv-text-muted);
    font-size: 1.05rem;
}
.wv-article-content a { color: var(--wv-rose-dark); text-decoration: underline; text-underline-offset: 3px; }

.wv-article-footer { padding: 0 36px 32px; }
.wv-article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}
.wv-tag {
    display: inline-block;
    background: var(--wv-cream);
    border: 1px solid var(--wv-border);
    color: var(--wv-text-muted);
    padding: 4px 12px;
    border-radius: 40px;
    font-size: .78rem;
    font-weight: 600;
    transition: background var(--wv-transition), color var(--wv-transition);
}
.wv-tag:hover { background: var(--wv-rose); color: #fff; border-color: var(--wv-rose); }

/* Related posts */
.wv-related { margin-top: 40px; }
.wv-related-title {
    font-family: var(--wv-font-heading);
    font-size: 1.2rem;
    color: var(--wv-text);
    margin-bottom: 18px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--wv-rose);
}
.wv-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.wv-related-card {
    background: var(--wv-cream);
    border-radius: var(--wv-radius-sm);
    overflow: hidden;
    border: 1px solid var(--wv-border);
    transition: box-shadow var(--wv-transition);
}
.wv-related-card:hover { box-shadow: var(--wv-shadow); }
.wv-related-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.wv-related-card-body { padding: 12px; }
.wv-related-card-title {
    font-family: var(--wv-font-heading);
    font-size: .88rem;
    font-weight: 700;
    color: var(--wv-text);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.wv-related-card-title a { color: inherit; }
.wv-related-card-title a:hover { color: var(--wv-rose-dark); }

/* ============================================================
   ARCHIVE / SEARCH / 404
   ============================================================ */
.wv-archive-header {
    text-align: center;
    padding: 36px 20px 28px;
}
.wv-archive-header h1 {
    font-family: var(--wv-font-heading);
    font-size: 2rem;
    color: var(--wv-text);
    margin-bottom: 8px;
}
.wv-archive-header p { color: var(--wv-text-muted); }
.wv-archive-cat-badge {
    display: inline-block;
    background: var(--wv-rose);
    color: #fff;
    padding: 5px 16px;
    border-radius: 40px;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.wv-archive-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* 404 */
.wv-404-wrap {
    text-align: center;
    padding: 80px 20px;
}
.wv-404-emoji { font-size: 5rem; margin-bottom: 16px; }
.wv-404-title {
    font-family: var(--wv-font-heading);
    font-size: 2.5rem;
    color: var(--wv-text);
    margin-bottom: 12px;
}
.wv-404-wrap p { color: var(--wv-text-muted); margin-bottom: 24px; }
.wv-btn {
    display: inline-block;
    background: var(--wv-rose);
    color: #fff;
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 700;
    transition: background var(--wv-transition);
}
.wv-btn:hover { background: var(--wv-rose-dark); color: #fff; }

/* ============================================================
   PAGINATION
   ============================================================ */
.wv-pagination {
    margin-top: 36px;
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}
.wv-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 2px solid var(--wv-border);
    font-size: .88rem;
    font-weight: 700;
    color: var(--wv-text-muted);
    transition: all var(--wv-transition);
}
.wv-pagination .page-numbers:hover,
.wv-pagination .page-numbers.current {
    background: var(--wv-rose);
    border-color: var(--wv-rose);
    color: #fff;
}

/* ============================================================
   FOOTER
   ============================================================ */
.wv-footer {
    background: var(--wv-text);
    color: #c9b8be;
    margin-top: 60px;
}
.wv-footer-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 36px;
    padding: 52px 0 36px;
}
.wv-footer-brand .wv-logo-name { font-size: 1.5rem; color: var(--wv-rose); }
.wv-footer-brand .wv-logo-tagline { color: #9e8790; }
.wv-footer-desc { margin-top: 12px; font-size: .85rem; line-height: 1.7; color: #9e8790; }
.wv-footer-col h4 {
    font-family: var(--wv-font-heading);
    font-size: .92rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid #5a4048;
}
.wv-footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.wv-footer-col ul li a {
    color: #9e8790;
    font-size: .85rem;
    transition: color var(--wv-transition);
}
.wv-footer-col ul li a:hover { color: var(--wv-rose); }

.wv-footer-bottom {
    border-top: 1px solid #5a4048;
    padding: 18px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: .8rem;
    color: #7a6070;
    flex-wrap: wrap;
}
.wv-footer-social { display: flex; gap: 10px; }
.wv-footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px; height: 34px;
    border-radius: 50%;
    background: #5a4048;
    color: #c9b8be;
    font-size: .85rem;
    transition: background var(--wv-transition), color var(--wv-transition);
    text-decoration: none;
}
.wv-footer-social a:hover { background: var(--wv-rose); color: #fff; }

/* ============================================================
   MOBILE BOTTOM NAV
   ============================================================ */
.wv-mobile-nav {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--wv-card-bg);
    border-top: 1px solid var(--wv-border);
    z-index: 800;
    box-shadow: 0 -2px 12px rgba(155,110,130,.1);
}
.wv-mobile-nav-inner {
    display: flex;
    justify-content: space-around;
    align-items: stretch;
}
.wv-mobile-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 10px 8px;
    font-size: .65rem;
    font-weight: 700;
    color: var(--wv-text-light);
    text-transform: uppercase;
    letter-spacing: .04em;
    flex: 1;
    text-align: center;
    transition: color var(--wv-transition);
    text-decoration: none;
}
.wv-mobile-nav a span.icon { font-size: 1.2rem; }
.wv-mobile-nav a:hover,
.wv-mobile-nav a.active { color: var(--wv-rose-dark); }

/* ============================================================
   COMMENTS
   ============================================================ */
.wv-comments-area {
    background: var(--wv-card-bg);
    border-radius: var(--wv-radius);
    padding: 32px 36px;
    box-shadow: var(--wv-shadow);
    margin-top: 24px;
}
.wv-comments-title {
    font-family: var(--wv-font-heading);
    font-size: 1.3rem;
    color: var(--wv-text);
    margin-bottom: 24px;
}
.comment-respond .comment-reply-title {
    font-family: var(--wv-font-heading);
    font-size: 1.15rem;
    color: var(--wv-text);
    margin-bottom: 18px;
}
.comment-form input,
.comment-form textarea {
    border: 2px solid var(--wv-border);
    border-radius: var(--wv-radius-sm);
    padding: 10px 14px;
    font-family: var(--wv-font-body);
    font-size: .9rem;
    width: 100%;
    color: var(--wv-text);
    background: var(--wv-cream);
    transition: border-color var(--wv-transition);
}
.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--wv-rose);
    outline: none;
}
.comment-form .submit {
    background: var(--wv-rose);
    color: #fff;
    border: none;
    border-radius: 40px;
    padding: 11px 28px;
    font-family: var(--wv-font-body);
    font-weight: 700;
    cursor: pointer;
    font-size: .92rem;
    transition: background var(--wv-transition);
    width: auto;
}
.comment-form .submit:hover { background: var(--wv-rose-dark); }
.comment-list { list-style: none; }
.comment-body { padding: 18px 0; border-bottom: 1px solid var(--wv-border); }
.comment-author .fn { font-weight: 700; color: var(--wv-text); }
.comment-meta { font-size: .78rem; color: var(--wv-text-light); margin-bottom: 8px; }
.comment-content p { font-size: .92rem; }

/* ============================================================
   SEARCH RESULTS
   ============================================================ */
.wv-search-results-header {
    padding: 28px 0 18px;
}
.wv-search-results-header h1 {
    font-family: var(--wv-font-heading);
    font-size: 1.6rem;
    color: var(--wv-text);
}
.wv-search-results-header h1 span { color: var(--wv-rose-dark); }

/* ============================================================
   WIDGETS (WordPress)
   ============================================================ */
.widget-title { display: none; } /* hidden, wv-widget-title is used */
.wv-sidebar .widget { all: unset; }

/* ============================================================
   NEWS TICKER
   ============================================================ */
.wv-ticker {
    background: linear-gradient(120deg, var(--wv-rose-dark) 0%, var(--wv-mauve) 100%);
    color: #fff;
    padding-block: 8px;
    overflow: hidden;
    position: relative;
    z-index: 850;
}
.wv-ticker-inner {
    display: flex;
    align-items: center;
    overflow: hidden;
    gap: 0;
}
.wv-ticker-label {
    flex-shrink: 0;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    background: rgba(255,255,255,.22);
    padding: 3px 12px;
    border-radius: 40px;
    margin-right: 20px;
    white-space: nowrap;
}
.wv-ticker-track {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    mask-image: linear-gradient(90deg, transparent, black 4%, black 96%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 4%, black 96%, transparent);
}
.wv-ticker-items {
    display: inline-block;
    white-space: nowrap;
    animation: wv-ticker-scroll 55s linear infinite;
}
.wv-ticker-items:hover { animation-play-state: paused; }
.wv-ticker-item {
    color: rgba(255,255,255,.92);
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
    padding-inline: 28px;
    transition: color var(--wv-transition);
}
.wv-ticker-item:hover { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.wv-ticker-sep {
    color: rgba(255,255,255,.4);
    font-size: .7rem;
}
@keyframes wv-ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.wv-back-top {
    position: fixed;
    right: 20px;
    bottom: 88px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--wv-rose), var(--wv-mauve));
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 18px rgba(200,100,140,.38);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease, transform .3s ease;
    z-index: 799;
    line-height: 1;
}
.wv-back-top.is-visible { opacity: 1; pointer-events: auto; }
.wv-back-top:hover { transform: translateY(-4px) scale(1.07); }
@media (min-width: 641px) {
    .wv-back-top { bottom: 24px; }
}

/* ============================================================
   BADGES (BARU / HOT)
   ============================================================ */
.wv-card-media { position: relative; }
.wv-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 5;
    font-size: .64rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 40px;
    color: #fff;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.wv-badge-new { background: linear-gradient(90deg, var(--wv-rose-dark), #e05c8a); }
.wv-badge-hot { background: linear-gradient(90deg, #f97316, #e05c8a); }

/* ============================================================
   ARTICLE DROP-CAP
   ============================================================ */
.single .wv-article-content > p:first-of-type::first-letter {
    font-family: var(--wv-font-heading);
    font-size: 3.8rem;
    float: left;
    line-height: .84;
    margin: 4px 10px 0 0;
    color: var(--wv-rose-dark);
    font-weight: 700;
}

/* ============================================================
   FONT SIZE TOGGLE
   ============================================================ */
.wv-font-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}
.wv-font-btn {
    background: var(--wv-cream);
    border: 1.5px solid var(--wv-border);
    border-radius: 20px;
    padding: 2px 9px;
    font-family: var(--wv-font-body);
    font-size: .72rem;
    font-weight: 700;
    color: var(--wv-text-muted);
    cursor: pointer;
    transition: all var(--wv-transition);
    line-height: 1.6;
}
.wv-font-btn:hover,
.wv-font-btn.active {
    background: var(--wv-rose);
    color: #fff;
    border-color: var(--wv-rose);
}
.wv-article-content.font-lg { font-size: 1.15rem; }
.wv-article-content.font-sm { font-size: .92rem; }

/* ============================================================
   AUTHOR CARD
   ============================================================ */
.wv-author-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: linear-gradient(135deg, #fff5f7 0%, var(--wv-cream) 60%);
    border: 1px solid var(--wv-border);
    border-radius: var(--wv-radius);
    padding: 24px;
    margin: 28px 36px;
}
.wv-author-avatar { flex-shrink: 0; }
.wv-author-avatar-img,
.wv-author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--wv-rose);
    box-shadow: 0 3px 12px rgba(200,100,140,.22);
    display: block;
}
.wv-author-info { flex: 1; }
.wv-author-of {
    font-size: .7rem;
    color: var(--wv-text-light);
    text-transform: uppercase;
    letter-spacing: .1em;
    font-weight: 700;
    display: block;
    margin-bottom: 3px;
}
.wv-author-name {
    font-family: var(--wv-font-heading);
    font-size: 1.05rem;
    color: var(--wv-text);
    margin-bottom: 8px;
    font-weight: 700;
}
.wv-author-bio {
    font-size: .88rem;
    color: var(--wv-text-muted);
    line-height: 1.65;
    margin-bottom: 10px;
}
.wv-author-more {
    font-size: .82rem;
    color: var(--wv-rose-dark);
    font-weight: 700;
}
.wv-author-more:hover { color: var(--wv-mauve-dark); }
@media (max-width: 640px) {
    .wv-author-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-inline: 18px;
    }
}

/* ============================================================
   NEWSLETTER CTA
   ============================================================ */
.wv-newsletter-cta {
    margin-block: 48px;
    border-radius: var(--wv-radius);
    overflow: hidden;
    background: linear-gradient(135deg, var(--wv-rose) 0%, var(--wv-mauve) 100%);
    position: relative;
}
.wv-newsletter-cta::before {
    content: '💌';
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 6rem;
    opacity: .12;
    pointer-events: none;
    line-height: 1;
}
.wv-newsletter-inner {
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}
.wv-newsletter-text { flex: 1; min-width: 200px; }
.wv-newsletter-text h3 {
    font-family: var(--wv-font-heading);
    font-size: 1.55rem;
    color: #fff;
    margin-bottom: 6px;
    line-height: 1.25;
}
.wv-newsletter-text p {
    color: rgba(255,255,255,.85);
    font-size: .9rem;
    line-height: 1.6;
}
.wv-newsletter-form {
    display: flex;
    gap: 10px;
    flex: 1.3;
    min-width: 260px;
}
.wv-newsletter-input {
    flex: 1;
    border: none;
    border-radius: 40px;
    padding: 12px 20px;
    font-family: var(--wv-font-body);
    font-size: .9rem;
    outline: none;
    color: var(--wv-text);
    background: rgba(255,255,255,.95);
    transition: box-shadow var(--wv-transition);
}
.wv-newsletter-input:focus { box-shadow: 0 0 0 3px rgba(255,255,255,.4); }
.wv-newsletter-btn {
    background: var(--wv-text);
    color: #fff;
    border: none;
    border-radius: 40px;
    padding: 12px 22px;
    font-family: var(--wv-font-body);
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    font-size: .88rem;
    transition: background var(--wv-transition), transform var(--wv-transition);
}
.wv-newsletter-btn:hover { background: #000; transform: translateY(-1px); }
.wv-newsletter-btn:disabled { background: #16a34a; cursor: default; transform: none; }
@media (max-width: 640px) {
    .wv-newsletter-inner { padding: 28px 20px; }
    .wv-newsletter-form { flex-direction: column; }
    .wv-newsletter-btn { align-self: flex-start; }
    .wv-newsletter-cta::before { display: none; }
}

/* ============================================================
   FLOATING SHARE BAR (desktop)
   ============================================================ */
.wv-float-share {
    position: fixed;
    left: max(12px, calc((100vw - var(--wv-max)) / 2 - 66px));
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 500;
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s ease;
}
.wv-float-share.is-visible { opacity: 1; pointer-events: auto; }
.wv-float-share-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--wv-rose);
    border: none;
    cursor: pointer;
    box-shadow: 0 3px 14px rgba(200,100,140,.3);
    font-size: .78rem;
    font-weight: 700;
    text-decoration: none;
    transition: background var(--wv-transition), transform var(--wv-transition);
    font-family: var(--wv-font-body);
    line-height: 1;
}
.wv-float-share-btn:hover { background: var(--wv-mauve); transform: scale(1.1); color: #fff; }
.wv-float-share-btn.copied { background: #16a34a; }
@media (max-width: 1260px) { .wv-float-share { display: none; } }

/* ============================================================
   CARD ENTRANCE ANIMATION
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
    .wv-card {
        animation: wv-fade-up .5s ease both;
    }
    .wv-card:nth-child(2) { animation-delay: .07s; }
    .wv-card:nth-child(3) { animation-delay: .14s; }
    .wv-card:nth-child(4) { animation-delay: .21s; }
    .wv-card:nth-child(5) { animation-delay: .28s; }
    .wv-card:nth-child(6) { animation-delay: .35s; }
}
@keyframes wv-fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .wv-footer-top { grid-template-columns: 1fr 1fr; }
    .wv-card-grid { grid-template-columns: repeat(2, 1fr); }
    .wv-related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .wv-grid-main { grid-template-columns: 1fr; }
    .wv-sidebar { display: grid; grid-template-columns: repeat(2, 1fr); }
    .wv-hero-card { grid-template-columns: 1fr; min-height: auto; }
    .wv-hero-media { aspect-ratio: 16/9; }
    .wv-hero-body { padding: 22px 20px; }
    .wv-hero-title { font-size: 1.45rem; }
    .wv-archive-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .wv-hamburger { display: flex; }
    .wv-nav { display: none; }
    .wv-mobile-nav { display: block; }
    body { padding-bottom: 62px; }
    .wv-logo .custom-logo,
    .wv-logo .wv-logo-img {
        max-height: 46px;
        max-width: 190px;
    }
    .wv-card-grid { grid-template-columns: 1fr; }
    .wv-related-grid { grid-template-columns: 1fr; }
    .wv-sidebar { display: flex; }
    .wv-footer-top { grid-template-columns: 1fr; }
    .wv-article-header,
    .wv-share-bar,
    .wv-article-content,
    .wv-article-footer { padding-inline: 18px; }
    .wv-article-title { font-size: 1.5rem; }
    .wv-article-hero figcaption { padding-inline: 18px; }
    .wv-comments-area { padding: 20px 18px; }
    .wv-footer-bottom { justify-content: center; text-align: center; }
}

/* ============================================================
   DARK MODE
   ============================================================ */
@media (prefers-color-scheme: dark) {
    :root {
        --wv-cream:      #1a1219;
        --wv-card-bg:    #251820;
        --wv-border:     #3d2c35;
        --wv-text:       #f0e8ec;
        --wv-text-muted: #c9b0bb;
        --wv-text-light: #9e7e8a;
        --wv-shadow:     0 2px 16px rgba(0,0,0,.4);
        --wv-shadow-hover: 0 6px 28px rgba(0,0,0,.55);
    }
    body { background: var(--wv-cream); }
    .wv-header { background: var(--wv-card-bg); border-color: var(--wv-border); }
    .wv-nav { background: #4a2c38; }
    .wv-menu-more .sub-menu {
        background: var(--wv-card-bg);
        border-color: var(--wv-border);
        box-shadow: 0 16px 28px rgba(0,0,0,.45);
    }
    .wv-menu-more .sub-menu li a { color: var(--wv-text); }
    .wv-menu-more .sub-menu li a:hover,
    .wv-menu-more .sub-menu li.current-menu-item > a,
    .wv-menu-more .sub-menu li.current-cat > a {
        background: rgba(255,255,255,.08);
        color: #fff;
    }
    .wv-search-panel { background: #1a1219; }
    .wv-search-input { background: var(--wv-card-bg); border-color: var(--wv-border); color: var(--wv-text); }
    .wv-article-content blockquote { background: #2d1b25; }
    .wv-article-content a { color: var(--wv-rose); }
    .wv-tag { background: #2d1b25; border-color: var(--wv-border); color: var(--wv-text-light); }
    .wv-footer { background: #110c0e; }
    .wv-drawer-panel { background: var(--wv-card-bg); }
    .wv-drawer-nav li a { color: var(--wv-text); }
    .wv-mobile-nav { background: var(--wv-card-bg); border-color: var(--wv-border); }
    .wv-comments-area { background: var(--wv-card-bg); }
    .comment-form input,
    .comment-form textarea { background: var(--wv-cream); border-color: var(--wv-border); color: var(--wv-text); }
    .wv-404-wrap { color: var(--wv-text); }
    .wv-author-card { background: linear-gradient(135deg, #2d1b25 0%, var(--wv-cream) 60%); }
    .wv-font-btn { background: var(--wv-card-bg); border-color: var(--wv-border); color: var(--wv-text-muted); }
    .wv-newsletter-input { background: rgba(255,255,255,.12); color: #fff; }
    .wv-newsletter-input::placeholder { color: rgba(255,255,255,.6); }
    .wv-back-top { box-shadow: 0 4px 18px rgba(0,0,0,.5); }
}
