/* RankwellPress bundle: theme-context */

/* --- templates/_homepage.css --- */
/* ==========================================================================
 * RankwellPress — HOMEPAGE LAYOUT (CSS Grid)
 * File: assets/css/templates/_homepage.css
 * FLAT — no card borders, no backgrounds, no shadows.
 *
 * CUSTOMIZER WIRING — this revision
 * ─────────────────────────────────────────────────────────
 * Widget title TEXT colours now read --rw-widget-title-color
 * for every style that renders its text directly on the page
 * surface. Previously only the ACCENT (underline, border,
 * tint) was wired; the text fell through to the generic
 * heading colour and did not follow presets or the
 * "Widget Header Text" Customizer setting.
 *
 * Styles that render text on a coloured or tinted surface
 * keep their own contrast-safe colour:
 *   · .rwp-title-slant    → white text on the accent pill
 *   · .rwp-title-bg-fill  → heading colour on the light tint
 * ========================================================================== */

.rankwellpress-homepage-layout * {
    box-sizing: border-box;
}

/* Mobile-first: single column */
.rankwellpress-homepage-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--rw-space-5, 1.5rem);
    margin: var(--rw-space-5, 1.5rem) 0;
}

/* Desktop: 2-column grid */
@media (min-width: 769px) {
    .rankwellpress-homepage-layout {
        display: grid;
        grid-template-columns: minmax(0, 1fr) var(--rw-sidebar-width, 320px);
        grid-template-areas: "content sidebar";
        align-items: start;
        gap: var(--rw-space-5, 1.5rem);
    }

    .rankwellpress-homepage-layout .site-main {
        grid-area: content;
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
    }

    .rankwellpress-homepage-layout .site-sidebar {
        grid-area: sidebar;
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
        position: sticky;
        top: 90px;
        align-self: start;
    }
}

/* Mobile: single column stack */
@media (max-width: 768px) {
    .rankwellpress-homepage-layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            "content"
            "sidebar";
        gap: var(--rw-space-5, 1.5rem);
    }

    .rankwellpress-homepage-layout .site-main {
        grid-area: content;
        min-width: 0;
    }

    .rankwellpress-homepage-layout .site-sidebar {
        grid-area: sidebar;
        width: 100%;
        position: static;
    }
}

/* Overflow protection */
.rankwellpress-homepage-layout .site-main {
    overflow-wrap: break-word;
}

.rankwellpress-homepage-layout .site-main img,
.rankwellpress-homepage-layout .site-main iframe,
.rankwellpress-homepage-layout .site-main video,
.rankwellpress-homepage-layout .site-main table,
.rankwellpress-homepage-layout .site-main pre {
    max-width: 100%;
    height: auto;
}

.rankwellpress-homepage-layout .site-main table {
    display: block;
    width: 100%;
    overflow-x: auto;
}

/* Widgets */
.rankwellpress-main-widgets,
.rankwellpress-sidebar-widgets {
    width: 100%;
}

/* Latest Posts Grid */
.latest-posts-grid .post-thumbnail {
    overflow: hidden;
    aspect-ratio: 16/9;
    border-radius: 4px;
}

.latest-posts-grid .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--rw-widget-item-gap, var(--rw-space-5, 1.5rem));
}

@media (min-width: 600px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==========================================================================
 * POST CARD — FLAT (no border, background, or shadow)
 * ========================================================================== */

.post-card {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    transition: none;
}

.post-card:hover {
    transform: none;
    box-shadow: none;
}

.post-card .post-thumbnail {
    overflow: hidden;
    aspect-ratio: 16/9;
    border-radius: 4px;
    margin-bottom: 12px;
}

.post-card .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.post-card .post-content {
    padding: 0;
}

.post-card .post-title {
    font-size: var(--rw-widget-post-title-size, 1.1rem);
    font-weight: var(--rw-widget-post-title-weight, 700);
    line-height: 1.3;
    margin: 0 0 8px 0;
}

.post-card .post-title a {
    color: var(--rw-widget-post-title-color, var(--rw-grid-title, #111827));
    text-decoration: none;
    transition: color 0.2s ease;
}

.post-card .post-title a:hover {
    color: var(--rw-widget-post-title-hover, var(--rw-grid-title-hover, #0d7c3e));
}

.post-card .post-excerpt {
    font-size: 0.9rem;
    color: var(--rw-text-body, #4b5563);
    line-height: 1.5;
    margin-bottom: 12px;
}

.post-card .read-more {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--rw-color-primary, #0d7c3e);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.post-card .read-more:hover {
    opacity: 0.75;
    color: var(--rw-color-primary, #0d7c3e);
}

/* ==========================================================================
 * SECTION HEADER
 * ========================================================================== */

.section-header {
    margin-bottom: var(--rw-space-4, 1rem);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--rw-text-heading, #111827);
    margin: 0;
}

/* =========================================================
 * WIDGET COLOR CONTROL
 * ─────────────────────────────────────────────────────────
 * Every widget title style that renders its text directly
 * on the page surface reads --rw-widget-title-color.
 *
 * Two styles keep their own text colour because their text
 * sits on a coloured or tinted surface:
 *   · .rwp-title-slant    → white on the accent pill
 *   · .rwp-title-bg-fill  → heading colour on the light tint
 * ========================================================= */

/* ── Text colours ─────────────────────────────────────────
 * Five styles render their text on the page background.
 * All five follow the widget title colour token.
 * ───────────────────────────────────────────────────────── */

.rankwellpress-homepage-layout .rwp-title-underline,
.rankwellpress-homepage-layout .rwp-title-border,
.rankwellpress-homepage-layout .rwp-title-top-border,
.rankwellpress-homepage-layout .rwp-title-minimal,
.rankwellpress-homepage-layout .rwp-title-between-lines {
    color: var(--rw-widget-title-color, #0d7c3e);
}

/* Slant: white text on the coloured pill.
   Reading --rw-widget-title-color here would place the brand
   colour on top of a surface of the same colour — unreadable.
   Text stays inverse; the pill background carries the brand. */
.rankwellpress-homepage-layout .rwp-title-slant {
    color: var(--rw-text-inverse, #ffffff);
}

/* Bg-fill: dark text on the light accent-tinted background.
   The background carries the brand tint; the text needs to
   stay readable against a pale wash, so it uses the heading
   colour rather than the brand colour. */
.rankwellpress-homepage-layout .rwp-title-bg-fill {
    color: var(--rw-text-heading, #111827);
}

/* ── Accents (underlines, borders, tinted backgrounds) ────
 * All seven styles route their decorative elements through
 * --rw-widget-title-color as before. No change here.
 * ───────────────────────────────────────────────────────── */

.rankwellpress-homepage-layout .rwp-title-underline::after {
    background-color: color-mix(in srgb, var(--rw-widget-title-color, #0d7c3e) 40%, transparent);
    box-shadow: none;
}

.rankwellpress-homepage-layout .rwp-title-border {
    border-left-color: var(--rw-widget-title-color, #0d7c3e);
}

.rankwellpress-homepage-layout .rwp-title-slant::before {
    background-color: var(--rw-widget-title-color, #0d7c3e);
}

.rankwellpress-homepage-layout .rwp-title-top-border {
    border-top-color: var(--rw-widget-title-color, #0d7c3e);
}

.rankwellpress-homepage-layout .rwp-title-bg-fill {
    background-color: color-mix(in srgb, var(--rw-widget-title-color, #0d7c3e) 10%, transparent);
}

.rankwellpress-homepage-layout .rwp-title-bg-fill span::before {
    background-color: var(--rw-widget-title-color, #0d7c3e);
}

.rankwellpress-homepage-layout .rwp-title-between-lines::before,
.rankwellpress-homepage-layout .rwp-title-between-lines::after {
    background: linear-gradient(90deg, transparent 0%, var(--rw-widget-title-color, #0d7c3e) 50%, transparent 100%);
}

/* List Item Titles */
.rankwellpress-homepage-layout .rwp-card-title a,
.rankwellpress-homepage-layout .rwp-card-full-title a,
.rankwellpress-homepage-layout .rwp-grid-card .rwp-card-title a {
    color: var(--rw-widget-post-title-color, #111827);
}

.rankwellpress-homepage-layout .rwp-card-title a:hover,
.rankwellpress-homepage-layout .rwp-card-full-title a:hover,
.rankwellpress-homepage-layout .rwp-grid-card .rwp-card-title a:hover {
    color: var(--rw-widget-post-title-hover, #0d7c3e);
}

/* Category Badges — flat text only */
.rankwellpress-homepage-layout .rwp-card-badge,
.rankwellpress-homepage-layout .rwp-grid-card .rwp-card-badge,
.rankwellpress-homepage-layout .rwp-card-full-badge a {
    background-color: transparent;
    color: var(--rw-widget-category-text, #0d7c3e);
}

/* Hero Badges — flat text only */
.rankwellpress-homepage-layout .featured-badge,
.rankwellpress-homepage-layout .rankwellpress-headlines-category {
    background-color: transparent;
    color: var(--rw-widget-category-text, #ffffff);
}

/* Hero Title */
.rankwellpress-homepage-layout .rankwellpress-headlines-featured-title a {
    color: var(--rw-text-inverse, #ffffff);
}

.rankwellpress-homepage-layout .rankwellpress-headlines-featured-title a:hover {
    color: var(--rw-border-light, #e5e7eb);
}

/* Featured Title */
.rankwellpress-homepage-layout .featured-title a {
    color: var(--rw-text-inverse, #ffffff);
}

.rankwellpress-homepage-layout .featured-title a:hover {
    color: var(--rw-border-light, #e5e7eb);
}

/* Typography Variables */
.rankwellpress-homepage-layout .rwp-card-title,
.rankwellpress-homepage-layout .rwp-grid-card .rwp-card-title {
    font-size: var(--rw-widget-post-title-size, 14px);
    font-weight: var(--rw-widget-post-title-weight, 600);
}

.rankwellpress-homepage-layout .rwp-card-full-title {
    font-size: var(--rw-widget-post-title-size, 14px);
    font-weight: var(--rw-widget-post-title-weight, 600);
}

.rankwellpress-homepage-layout .rwp-card-full--compact .rwp-card-full-title {
    font-size: var(--rw-herogrid-compact-size, 14px);
    font-weight: var(--rw-herogrid-compact-weight, 600);
}

.rankwellpress-homepage-layout .rwp-card-full--minimal .rwp-card-full-title {
    font-size: var(--rw-herogrid-minimal-size, 13px);
    font-weight: var(--rw-herogrid-minimal-weight, 600);
}

/* Title typography */
.rankwellpress-homepage-layout .rwp-title-underline,
.rankwellpress-homepage-layout .rwp-title-border,
.rankwellpress-homepage-layout .rwp-title-slant,
.rankwellpress-homepage-layout .rwp-title-top-border,
.rankwellpress-homepage-layout .rwp-title-bg-fill,
.rankwellpress-homepage-layout .rwp-title-minimal,
.rankwellpress-homepage-layout .rwp-title-between-lines {
    font-size: var(--rw-widget-title-size, 20px);
    font-weight: var(--rw-widget-title-weight, 700);
}

/* Line clamp */
.rankwellpress-homepage-layout .rwp-card-title a,
.rankwellpress-homepage-layout .rwp-card-full-title,
.rankwellpress-homepage-layout .rwp-grid-card .rwp-card-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    -webkit-line-clamp: var(--rw-line-clamp, 2);
}

/* Widget spacing */
.rankwellpress-homepage-layout .rankwellpress-headlines-list,
.rankwellpress-homepage-layout .flexnews-list,
.rankwellpress-homepage-layout .news-grid,
.rankwellpress-homepage-layout .rankwellpress-hero-grid {
    gap: var(--rw-widget-item-gap, 12px);
}

/* Admin Warning — kept with border because it's a placeholder notice */
.rankwellpress-homepage-layout .admin-warning {
    padding: 30px;
    border: 2px dashed var(--rw-widget-border, var(--rw-border-light, #e5e7eb));
    border-radius: 8px;
    text-align: center;
    background: var(--rw-widget-bg, var(--rw-bg-body, #f7f8fa));
}

/* ==========================================================================
 * DARK MODE OVERRIDES — flat
 * ========================================================================== */

html[data-theme="dark"] .rankwellpress-homepage-layout .rwp-title-slant::before {
    background-color: #ffffff !important;
}

html[data-theme="dark"] .rankwellpress-homepage-layout .rwp-title-slant {
    color: #000000 !important;
}

html[data-theme="dark"] .rankwellpress-homepage-layout .rwp-card-title a,
html[data-theme="dark"] .rankwellpress-homepage-layout .rwp-card-full-title a,
html[data-theme="dark"] .rankwellpress-homepage-layout .rwp-grid-card .rwp-card-title a,
html[data-theme="dark"] .rankwellpress-homepage-layout .rankwellpress-headlines-featured-title a,
html[data-theme="dark"] .rankwellpress-homepage-layout .featured-title a,
html[data-theme="dark"] .rankwellpress-homepage-layout .rwp-title-underline,
html[data-theme="dark"] .rankwellpress-homepage-layout .rwp-title-border,
html[data-theme="dark"] .rankwellpress-homepage-layout .rwp-title-top-border,
html[data-theme="dark"] .rankwellpress-homepage-layout .rwp-title-minimal {
    color: #ffffff !important;
}

html[data-theme="dark"] .rankwellpress-homepage-layout .rwp-card-title a:hover,
html[data-theme="dark"] .rankwellpress-homepage-layout .rwp-card-full-title a:hover,
html[data-theme="dark"] .rankwellpress-homepage-layout .rwp-grid-card .rwp-card-title a:hover {
    color: var(--rw-color-primary, #0d7c3e) !important;
}

/* Dark mode badges — flat text only, no border, no background */
html[data-theme="dark"] .rankwellpress-homepage-layout .rwp-card-badge,
html[data-theme="dark"] .rankwellpress-homepage-layout .rwp-grid-card .rwp-card-badge {
    background-color: transparent !important;
    color: #e5e7eb !important;
    border: none !important;
}

html[data-theme="dark"] .rankwellpress-homepage-layout .rankwellpress-headlines-category,
html[data-theme="dark"] .rankwellpress-homepage-layout .featured-badge {
    background-color: transparent !important;
    color: #ffffff !important;
}

/* Dark mode post card — stay flat */
html[data-theme="dark"] .post-card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .post-card .post-title a {
    color: #f8fafc !important;
}

html[data-theme="dark"] .post-card .post-title a:hover {
    color: var(--rw-color-primary, #0d7c3e) !important;
}

html[data-theme="dark"] .post-card .post-excerpt {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .post-card .read-more {
    color: var(--rw-color-primary, #0d7c3e) !important;
}

html[data-theme="dark"] .rankwellpress-homepage-layout .admin-warning {
    background: #111111 !important;
    border-color: #333333 !important;
    color: #ffffff !important;
}

/* --- templates/_archive.css --- */
/* ==========================================================================
 * RankwellPress — ARCHIVE LAYOUT (CSS Grid)
 * FLAT — no card borders, no backgrounds, no shadows.
 * ========================================================================== */

.archive-grid * { box-sizing: border-box; }

/* ==========================================================================
 * ARCHIVE HEADER — flat, no card
 * ========================================================================== */

.archive-header {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    margin-bottom: var(--rw-space-5, 1.5rem);
    border: none;
    box-shadow: none;
}

.archive-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: var(--rw-text-heading, #111827);
    text-transform: capitalize;
}

.archive-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 22px;
    background-color: var(--rw-color-primary, #0d7c3e);
    border-radius: 2px;
    margin-right: var(--rw-space-2, 0.5rem);
    vertical-align: middle;
}

.archive-description {
    font-size: 0.9rem;
    color: var(--rw-text-muted, #6b7280);
    margin: var(--rw-space-1, 0.25rem) 0 0;
}

/* ==========================================================================
 * ARCHIVE GRID LAYOUT
 * ========================================================================== */

.archive-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin: 30px 0;
}

@media (min-width: 769px) {
    .archive-grid {
        grid-template-columns: minmax(0, 1fr) var(--rw-sidebar-width, 320px);
        grid-template-areas: "content sidebar";
        align-items: start;
    }
    .archive-main { grid-area: content; min-width: 0; }
    .archive-sidebar {
        grid-area: sidebar;
        min-width: 0;
        position: sticky;
        top: 90px;
        align-self: start;
    }
}

@media (max-width: 768px) {
    .archive-grid {
        grid-template-columns: 1fr;
        grid-template-areas: "content" "sidebar";
    }
    .archive-main { grid-area: content; min-width: 0; }
    .archive-sidebar { grid-area: sidebar; width: 100%; position: static; }
}

/* ==========================================================================
 * ARCHIVE POSTS — flat list
 * ========================================================================== */

.archive-posts {
    display: flex;
    flex-direction: column;
    gap: var(--rw-space-6, 2rem);
}

.archive-post-item {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    transition: none;
}

.archive-post-item:hover {
    transform: none;
    box-shadow: none;
}

.archive-post-item .post-thumbnail {
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 16/9;
    margin-bottom: 12px;
}

.archive-post-item .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--rw-transition-standard, 0.3s ease);
    display: block;
}

.archive-post-item .post-thumbnail:hover img {
    transform: scale(1.04);
}

.archive-post-item .post-content {
    padding: 0;
}

.archive-post-item .post-title {
    font-size: 1.25rem;
    line-height: 1.3;
    font-weight: 700;
    margin: 0 0 var(--rw-space-2, 0.5rem) 0;
}

.archive-post-item .post-title a {
    color: var(--rw-grid-title, var(--rw-text-heading, #111827));
    text-decoration: none;
    transition: color 0.2s ease;
}

.archive-post-item .post-title a:hover {
    color: var(--rw-grid-title-hover, var(--rw-color-primary, #0d7c3e));
}

.archive-post-item .post-excerpt {
    color: var(--rw-text-body, #4b5563);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.archive-post-item .read-more {
    display: inline-block;
    margin-top: 8px;
    font-weight: 600;
    color: var(--rw-color-primary, #0d7c3e);
    text-decoration: none;
    font-size: 0.9rem;
    transition: opacity 0.2s ease;
}

.archive-post-item .read-more:hover {
    opacity: 0.75;
    color: var(--rw-color-primary, #0d7c3e);
}

/* ==========================================================================
 * OVERFLOW PROTECTION
 * ========================================================================== */

.archive-main {
    overflow-wrap: break-word;
}

.archive-main img,
.archive-main iframe,
.archive-main video {
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
 * PAGINATION
 * ========================================================================== */

.archive-pagination {
    margin-top: var(--rw-space-5, 1.5rem);
    text-align: center;
}

/* ==========================================================================
 * DARK MODE — stays flat
 * ========================================================================== */

html[data-theme="dark"] .archive-header {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .archive-title {
    color: #f8fafc !important;
}

html[data-theme="dark"] .archive-description {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .archive-post-item {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .archive-post-item .post-title a {
    color: #f8fafc !important;
}

html[data-theme="dark"] .archive-post-item .post-title a:hover {
    color: var(--rw-color-primary, #0d7c3e) !important;
}

html[data-theme="dark"] .archive-post-item .post-excerpt {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .archive-post-item .read-more {
    color: var(--rw-color-primary, #0d7c3e) !important;
}

/* --- templates/_no-results.css --- */
/* assets/css/templates/_no-results.css */

.no-results {
    text-align: center;
    padding: var(--rw-space-8) var(--rw-space-4);
    background: var(--rw-bg-body, #f9fafb);
    border: 1px solid var(--rw-border-light);
    border-radius: var(--rw-radius-lg);
    margin: var(--rw-space-5) 0;
}

.no-results-icon {
    margin-bottom: var(--rw-space-4);
    color: var(--rw-text-muted);
}

.no-results-icon svg {
    width: 80px;
    height: 80px;
    margin: 0 auto;
}

.no-results-title {
    font-size: 2rem;
    margin-bottom: var(--rw-space-3);
    color: var(--rw-text-heading);
}

.no-results-message p {
    font-size: 1.125rem;
    color: var(--rw-text-body);
    margin-bottom: var(--rw-space-5);
}

.search-again {
    max-width: 400px;
    margin: 0 auto var(--rw-space-6);
}

.suggestions,
.recent-posts-suggestion {
    margin-top: var(--rw-space-6);
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.suggestions h3,
.recent-posts-suggestion h3 {
    font-size: 1.25rem;
    margin-bottom: var(--rw-space-3);
    color: var(--rw-text-heading);
}

.popular-categories {
    display: flex;
    flex-wrap: wrap;
    gap: var(--rw-space-2);
}

.category-suggestion {
    display: inline-block;
    padding: 8px 16px;
    background: var(--rw-bg-content, #ffffff);
    border: 1px solid var(--rw-border-light);
    border-radius: var(--rw-radius-pill);
    text-decoration: none;
    color: var(--rw-color-primary);
    font-weight: 500;
    transition: all var(--rw-transition-fast);
}

.category-suggestion:hover {
    background: var(--rw-color-primary);
    color: var(--rw-text-inverse, #ffffff);
    border-color: var(--rw-color-primary);
    box-shadow: var(--rw-shadow-sm);
}

.recent-posts-list {
    list-style: none;
    padding: 0;
}

.recent-posts-list li {
    padding: var(--rw-space-3) 0;
    border-bottom: 1px solid var(--rw-border-light);
}

.recent-posts-list li:last-child {
    border-bottom: none;
}

.recent-posts-list a {
    text-decoration: none;
    color: var(--rw-text-heading);
    font-weight: 500;
}

.recent-posts-list a:hover {
    color: var(--rw-color-primary);
}

/* --- templates/_404.css --- */
/* =========================================================
 * RankwellPress — No Results
 * ========================================================= */

.no-results {
    text-align: center;
    padding: var(--rw-space-8, 3rem) var(--rw-space-4, 1rem);
    background: var(--rw-bg-body, #f7f8fa);
    border: 1px solid var(--rw-border-light, #e5e7eb);
    border-radius: var(--rw-radius-lg, 12px);
    margin: var(--rw-space-5, 1.5rem) 0;
}

.no-results-icon {
    margin-bottom: var(--rw-space-4, 1rem);
    color: var(--rw-text-muted, #6b7280);
}

.no-results-icon svg {
    width: 80px;
    height: 80px;
    margin: 0 auto;
}

.no-results-title {
    font-size: 2rem;
    margin-bottom: var(--rw-space-3, 0.75rem);
    color: var(--rw-text-heading, #111827);
}

.no-results-message p {
    font-size: 1.125rem;
    color: var(--rw-text-body, #4b5563);
    margin-bottom: var(--rw-space-5, 1.5rem);
}

.search-again {
    max-width: 400px;
    margin: 0 auto var(--rw-space-6, 2rem);
}

.suggestions,
.recent-posts-suggestion {
    margin-top: var(--rw-space-6, 2rem);
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.suggestions h3,
.recent-posts-suggestion h3 {
    font-size: 1.25rem;
    margin-bottom: var(--rw-space-3, 0.75rem);
    color: var(--rw-text-heading, #111827);
}

.popular-categories {
    display: flex;
    flex-wrap: wrap;
    gap: var(--rw-space-2, 0.5rem);
}

.category-suggestion {
    display: inline-block;
    padding: 8px 16px;
    background: var(--rw-bg-content, #ffffff);
    border: 2px solid var(--rw-border-light, #e5e7eb);
    border-radius: var(--rw-radius-pill, 500px);
    text-decoration: none;
    color: var(--rw-color-primary, #0d7c3e);
    font-weight: 500;
    transition: all var(--rw-transition-fast, 0.2s ease);
}

.category-suggestion:hover {
    background: var(--rw-color-primary, #0d7c3e);
    color: var(--rw-text-inverse, #ffffff);
    border-color: var(--rw-color-primary, #0d7c3e);
    box-shadow: var(--rw-shadow-sm, 0 1px 3px rgba(0,0,0,0.06));
}

.recent-posts-list { list-style: none; padding: 0; }

.recent-posts-list li {
    padding: var(--rw-space-3, 0.75rem) 0;
    border-bottom: 1px solid var(--rw-border-light, #e5e7eb);
}

.recent-posts-list li:last-child { border-bottom: none; }

.recent-posts-list a {
    text-decoration: none;
    color: var(--rw-text-heading, #111827);
    font-weight: 500;
}

.recent-posts-list a:hover { color: var(--rw-color-primary, #0d7c3e); }

/* --- components/_pagination.css --- */
/* =========================================================
 * RankwellPress — Pagination (VIP Quality)
 * Accessible, responsive, wired to theme design tokens.
 * ========================================================= */

.rankwellpress-pagination {
    margin: var(--rw-space-6, 2rem) 0;
    text-align: center;
}

.pagination-list {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--rw-space-2, 0.5rem);
    list-style: none;
    padding: 0;
    margin: 0 0 var(--rw-space-3, 0.75rem) 0;
}

.pagination-item a,
.pagination-item span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0 var(--rw-space-3, 0.75rem);
    background-color: var(--rw-bg-content, #ffffff);
    border: 2px solid var(--rw-border-light, #e5e7eb);
    border-radius: var(--rw-radius-md, 8px);
    color: var(--rw-text-heading, #111827);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    line-height: 1;
    transition: all var(--rw-transition-fast, 0.2s ease);
    cursor: pointer;
    user-select: none;
}

.pagination-item a:hover {
    border-color: var(--rw-color-primary, #0d7c3e);
    color: var(--rw-color-primary, #0d7c3e);
    box-shadow: var(--rw-shadow-sm, 0 1px 3px rgba(0,0,0,0.06));
    transform: translateY(-2px);
}

.pagination-item a:focus-visible {
    outline: 2px solid var(--rw-color-primary, #0d7c3e);
    outline-offset: 2px;
}

.pagination-item .current {
    background-color: var(--rw-color-primary, #0d7c3e);
    color: var(--rw-text-inverse, #ffffff);
    border-color: var(--rw-color-primary, #0d7c3e);
    box-shadow: var(--rw-shadow-sm, 0 1px 3px rgba(0,0,0,0.06));
    cursor: default;
}

.pagination-item .dots {
    border-color: transparent;
    background-color: transparent;
    box-shadow: none;
    padding: 0 var(--rw-space-2, 0.5rem);
    color: var(--rw-text-muted, #6b7280);
    cursor: default;
    min-width: auto;
}

.pagination-item .disabled {
    opacity: 0.4;
    pointer-events: none;
    cursor: not-allowed;
}

.pagination-info {
    font-size: 0.875rem;
    color: var(--rw-text-muted, #6b7280);
    margin-top: var(--rw-space-2, 0.5rem);
}

/* Simple Previous/Next Pagination */
.pure-php-pagination {
    display: flex;
    justify-content: center;
    gap: var(--rw-space-3, 0.75rem);
    margin: var(--rw-space-6, 2rem) 0;
}

.pure-php-pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0 var(--rw-space-4, 1rem);
    background-color: var(--rw-bg-content, #ffffff);
    border: 2px solid var(--rw-border-light, #e5e7eb);
    border-radius: var(--rw-radius-md, 8px);
    color: var(--rw-color-primary, #0d7c3e);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    line-height: 1;
    transition: all var(--rw-transition-fast, 0.2s ease);
}

.pure-php-pagination a:hover {
    background-color: var(--rw-color-primary, #0d7c3e);
    color: var(--rw-text-inverse, #ffffff);
    border-color: var(--rw-color-primary, #0d7c3e);
    box-shadow: 0 4px 14px rgba(13, 124, 62, 0.3);
    transform: translateY(-2px);
}

.pure-php-pagination a:focus-visible {
    outline: 2px solid var(--rw-color-primary, #0d7c3e);
    outline-offset: 2px;
}

@media (max-width: 480px) {
    .pagination-item a,
    .pagination-item span,
    .pure-php-pagination a {
        min-width: 38px;
        min-height: 38px;
        padding: 0 var(--rw-space-2, 0.5rem);
        font-size: 0.85rem;
    }
    .pagination-list { gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
    .pagination-item a,
    .pagination-item span,
    .pure-php-pagination a {
        transition: none !important;
    }
    .pagination-item a:hover,
    .pure-php-pagination a:hover {
        transform: none;
    }
}
