/*
Theme Name: Părinți de Fete
Theme URI: https://parintidefete.ro
Author: Părinți de Fete
Author URI: https://parintidefete.ro
Description: Temă WordPress pentru comunitatea Părinți de Fete — un spațiu cald pentru părinții care cresc fete.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: parintidefete
Tags: blog, one-column, custom-menu, featured-images, translation-ready
*/

/* ==========================================================================
   Custom Properties
   ========================================================================== */

:root {
    --blue: #3b6fb5;
    --blue-dark: #2a5490;
    --blue-muted: #7a9ec9;
    --text: #1a1a2e;
    --text-light: #5a6a7e;
    --text-muted: #8a95a5;
    --border: rgba(59, 111, 181, 0.12);
    --border-strong: rgba(59, 111, 181, 0.2);

    /* Glass */
    --glass: rgba(255, 255, 255, 0.45);
    --glass-strong: rgba(255, 255, 255, 0.62);
    --glass-border: rgba(255, 255, 255, 0.55);
    --glass-blur: blur(20px);
    --glass-shadow: 0 4px 24px rgba(29, 45, 68, 0.05);

    --bg: #eef2f9;

    /* Typography */
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'DM Serif Display', Georgia, serif;
    --font-mono: 'JetBrains Mono', monospace;

    --container: 1140px;
    --content-max: 700px;
    --sidebar-w: 280px;
    --gap: 56px;
    --radius: 14px;
    --radius-sm: 8px;
    --transition: 0.5s ease-out;
    --transition-fast: 0.25s ease;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    background-image:
        radial-gradient(ellipse at 20% 0%, rgba(59, 111, 181, 0.07) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 100%, rgba(59, 111, 181, 0.05) 0%, transparent 60%);
    background-attachment: fixed;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text);
    line-height: 1.25;
    font-weight: 400;
}

a { color: inherit; text-decoration: none; transition: color var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font); font-size: inherit; color: inherit; }

button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

input, textarea, select { font-family: var(--font); font-size: inherit; }
::selection { background: var(--blue); color: #fff; }

/* ==========================================================================
   Utility
   ========================================================================== */

.container { max-width: var(--container); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.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; }

/* ==========================================================================
   Header — frosted glass
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(238, 242, 249, 0.6);
    backdrop-filter: blur(24px) saturate(1.3);
    -webkit-backdrop-filter: blur(24px) saturate(1.3);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.site-logo {
    font-family: var(--font-heading);
    font-size: clamp(1.15rem, 2.2vw, 1.35rem);
    font-weight: 400;
    color: var(--text);
    letter-spacing: -0.02em;
}

.site-logo em { font-style: italic; font-weight: 400; color: var(--blue); }
.site-logo a { color: inherit; }
.site-logo a:hover { color: var(--blue); }

.header-right { display: flex; align-items: center; gap: 32px; }

.nav-primary { display: flex; align-items: center; gap: 24px; }
.nav-primary a { font-size: 0.85rem; font-weight: 450; color: var(--text-muted); transition: color var(--transition-fast); }
.nav-primary a:hover,
.nav-primary .current-menu-item > a,
.nav-primary .current_page_item > a { color: var(--text); }
.nav-primary li { list-style: none; position: relative; }

.nav-primary .sub-menu {
    display: none; position: absolute; top: 100%; left: -12px;
    border-radius: var(--radius-sm); padding: 8px 0; min-width: 180px; z-index: 50;
    background: var(--glass-strong); backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur); border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(29, 45, 68, 0.1);
}
.nav-primary li:hover > .sub-menu { display: block; }
.nav-primary .sub-menu a { display: block; padding: 6px 20px; font-size: 0.82rem; }

/* CTA — glass button */
.btn-cta {
    display: inline-flex; align-items: center; gap: 6px; padding: 7px 18px;
    font-size: 0.82rem; font-weight: 500; color: var(--blue);
    background: rgba(59, 111, 181, 0.07);
    border: 1px solid rgba(59, 111, 181, 0.18);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    white-space: nowrap;
    backdrop-filter: blur(8px);
}
.btn-cta:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

/* Hamburger */
.menu-toggle { display: none; width: 36px; height: 36px; align-items: center; justify-content: center; color: var(--text); }
.menu-toggle svg { width: 20px; height: 20px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle.active .icon-open { display: none; }
.menu-toggle.active .icon-close { display: block; }

/* Mobile nav — frosted overlay */
.mobile-nav {
    display: none; position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
    background: rgba(238, 242, 249, 0.92); backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px); z-index: 99;
    padding: 24px clamp(16px, 4vw, 40px); overflow-y: auto;
}
.mobile-nav.active { display: block; }
.mobile-nav a { display: block; padding: 14px 0; font-size: 1.05rem; font-weight: 500; color: var(--text); border-bottom: 1px solid var(--border); }
.mobile-nav a:hover { color: var(--blue); }
.mobile-nav .sub-menu { padding-left: 16px; }
.mobile-nav .sub-menu a { font-size: 0.95rem; font-weight: 400; color: var(--text-light); }
.mobile-nav-cta { margin-top: 20px; }
.mobile-nav-cta .btn-cta { width: 100%; justify-content: center; padding: 14px; font-size: 0.95rem; }

/* ==========================================================================
   Hero — grid BG, radial accent, gradient text, staggered animations
   Translated from React/Tailwind hero-1.tsx → plain CSS, blue palette
   ========================================================================== */

@keyframes hero-fade-in {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.pf-hero {
    position: relative;
    margin: 0 auto;
    width: 100%;
    padding: 10rem 1.5rem 4rem;
    text-align: center;
    min-height: calc(100vh - 40px);
    overflow: hidden;
    border-radius: 0 0 12px 12px;
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fc 50%, #e8eef8 88%);
}
@media (min-width: 768px) { .pf-hero { padding-left: 2rem; padding-right: 2rem; } }

/* Grid pattern */
.pf-hero-grid {
    position: absolute;
    z-index: 0;
    top: 0; right: 0; bottom: 0; left: 0;
    height: 600px;
    width: 100%;
    opacity: 0.5;
    background-image:
        linear-gradient(to right, #c8d6e8 1px, transparent 1px),
        linear-gradient(to bottom, #c8d6e8 1px, transparent 1px);
    background-size: 6rem 5rem;
    -webkit-mask-image: radial-gradient(ellipse 80% 50% at 50% 0%, #000 70%, transparent 110%);
    mask-image: radial-gradient(ellipse 80% 50% at 50% 0%, #000 70%, transparent 110%);
    pointer-events: none;
}

/* Spiral canvas — right side */
.pf-hero-spiral {
    position: absolute;
    right: 0;
    top: 0;
    width: 45%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.4) 30%, rgba(0,0,0,0.7) 100%);
    mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.4) 30%, rgba(0,0,0,0.7) 100%);
    transition: opacity 0.3s ease;
}

/* Content wrapper */
.pf-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

/* Eyebrow pill */
.pf-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font);
    font-size: 0.875rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: -0.01em;
    text-decoration: none;
    padding: 0.5rem 1.25rem;
    border: 2px solid rgba(59, 111, 181, 0.15);
    border-radius: 9999px;
    background: linear-gradient(to top right, rgba(59,111,181,0.03), rgba(59,111,181,0.02), transparent);
    margin-bottom: 1rem;
    opacity: 0;
    animation: hero-fade-in 0.8s ease forwards 0.1s;
    transition: border-color 0.3s ease, color 0.3s ease;
}
.pf-hero-eyebrow svg { width: 16px; height: 16px; transition: transform 0.3s ease; }
.pf-hero-eyebrow:hover svg { transform: translateX(4px); }
.pf-hero-eyebrow:hover { border-color: rgba(59,111,181,0.3); color: var(--blue); }

/* Title — serif + gradient */
.pf-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.05em;
    text-wrap: balance;
    padding: 1.5rem 0;
    background: linear-gradient(to bottom right, var(--text) 30%, rgba(26,26,46,0.45));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    animation: hero-fade-in 0.8s ease forwards 0.3s;
}
.pf-hero-title em {
    font-style: italic;
    background: linear-gradient(to bottom right, var(--blue) 30%, rgba(59,111,181,0.45));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Subtitle */
.pf-hero-subtitle {
    font-family: var(--font);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: -0.01em;
    text-wrap: balance;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 3rem;
    opacity: 0;
    animation: hero-fade-in 0.8s ease forwards 0.5s;
}

/* CTA */
.pf-hero-cta-wrap { display: flex; justify-content: center; }
.pf-hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: -0.03em;
    color: #ffffff;
    background: var(--text);
    padding: 0.75rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    position: relative;
    z-index: 20;
    transition: all 0.3s ease;
    opacity: 0;
    animation: hero-fade-in 0.8s ease forwards 0.7s;
}
.pf-hero-cta:hover {
    background: var(--blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(59,111,181,0.3);
    color: #ffffff;
}

/* Bottom fade */
.pf-hero-fade {
    position: relative;
    margin-top: 8rem;
}
.pf-hero-fade::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 50;
    height: 120px;
    background: linear-gradient(to top, var(--bg) 10%, transparent);
}

/* ==========================================================================
   Content Layout
   ========================================================================== */

.section-stories { padding: clamp(24px, 4vw, 48px) 0; }
.section-label { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 28px; }

.content-layout { display: flex; gap: var(--gap); align-items: flex-start; }
.content-main { flex: 1; min-width: 0; }
.content-sidebar { width: var(--sidebar-w); flex-shrink: 0; position: sticky; top: 84px; }

/* ==========================================================================
   Category Tabs
   ========================================================================== */

.category-tabs { display: flex; gap: 2px; flex-wrap: wrap; margin-bottom: 32px; border-bottom: 1px solid var(--border); }
.category-tab { padding: 8px 16px; font-size: 0.8rem; font-weight: 450; color: var(--text-muted); border: none; background: none; cursor: pointer; transition: color var(--transition-fast); margin-bottom: -1px; border-bottom: 2px solid transparent; }
.category-tab:hover { color: var(--text); }
.category-tab.active { color: var(--blue); border-bottom-color: var(--blue); }

/* ==========================================================================
   Post Cards — Rounded glass containers with glow border
   ========================================================================== */

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

.post-card {
    --glow-angle: 180;
    --glow-opacity: 0;
    position: relative;
    display: block;
    padding: 22px 28px;
    border-radius: 1.25rem;
    border: 0.75px solid var(--border);
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(29, 45, 68, 0.03);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Glowing conic gradient border — follows mouse angle */
.post-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 2px;
    background: conic-gradient(
        from calc(var(--glow-angle) * 1deg),
        transparent 0%,
        rgba(59, 111, 181, 0.5) 6%,
        var(--blue) 12%,
        rgba(122, 158, 201, 0.5) 18%,
        transparent 24%
    );
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: var(--glow-opacity);
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

/* Soft outer glow on hover */
.post-card:hover {
    border-color: rgba(59, 111, 181, 0.15);
    box-shadow: 0 4px 24px rgba(59, 111, 181, 0.08), 0 0 0 1px rgba(59, 111, 181, 0.04);
}

/* Title ··········· DATE */
.post-card-headline {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 6px;
    position: relative;
    margin-bottom: 6px;
}

.post-card-title {
    font-family: var(--font-heading);
    font-size: clamp(1rem, 2.2vw, 1.35rem);
    font-weight: 400;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color var(--transition);
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.post-card-dots {
    flex: 1;
    border-bottom: 0.5px dashed var(--text-muted);
    margin-bottom: 6px;
    min-width: 16px;
    opacity: 0.5;
    transition: border-color var(--transition), opacity var(--transition);
}

.post-card-date {
    font-family: var(--font-mono);
    font-size: clamp(0.68rem, 1.1vw, 0.78rem);
    color: var(--text-muted);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 3px;
    flex-shrink: 0;
    transition: color var(--transition);
    font-weight: 400;
    font-variant-numeric: tabular-nums;
}

.post-card-excerpt {
    font-size: clamp(0.85rem, 1.4vw, 0.95rem);
    color: var(--text-light);
    line-height: 1.6;
    transition: color var(--transition);
}

.post-card-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 10px; }

.post-tag {
    display: inline-block; padding: 2px 9px;
    font-size: 0.68rem; font-weight: 500;
    color: var(--text-muted);
    background: rgba(59, 111, 181, 0.06);
    border: 1px solid rgba(59, 111, 181, 0.1);
    border-radius: 4px;
    transition: all var(--transition);
    text-decoration: none;
}

/* HOVER: everything goes blue */
.post-card:hover .post-card-title { color: var(--blue); }
.post-card:hover .post-card-dots { border-color: var(--blue); opacity: 0.8; }
.post-card:hover .post-card-date { color: var(--blue); }
.post-card:hover .post-card-excerpt { color: var(--blue-dark); }
.post-card:hover .post-tag { background: var(--blue); color: #fff; border-color: var(--blue); }

/* Loading */
.posts-list.is-loading { opacity: 0.3; pointer-events: none; transition: opacity 0.2s ease; }

/* Load more — glass */
.load-more-wrap { padding: 32px 0 16px; text-align: center; }
.btn-load-more {
    display: inline-flex; align-items: center; gap: 8px; padding: 10px 28px;
    font-size: 0.82rem; font-weight: 500; color: var(--text-light);
    background: var(--glass); backdrop-filter: blur(12px);
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    cursor: pointer; transition: all var(--transition-fast);
}
.btn-load-more:hover { border-color: var(--blue); color: var(--blue); }
.btn-load-more.loading { opacity: 0.5; pointer-events: none; }

.spinner { display: none; width: 12px; height: 12px; border: 1.5px solid var(--border); border-top-color: var(--blue); border-radius: 50%; animation: spin 0.6s linear infinite; }
.btn-load-more.loading .spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   Sidebar — Rounded glass panels with glow border
   ========================================================================== */

.sidebar-section {
    --glow-angle: 180;
    --glow-opacity: 0;
    position: relative;
    margin-bottom: 16px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 0.75px solid var(--border);
    border-radius: 1.25rem;
    box-shadow: 0 1px 4px rgba(29, 45, 68, 0.03);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Glowing conic gradient border — follows mouse angle */
.sidebar-section::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 2px;
    background: conic-gradient(
        from calc(var(--glow-angle) * 1deg),
        transparent 0%,
        rgba(59, 111, 181, 0.5) 6%,
        var(--blue) 12%,
        rgba(122, 158, 201, 0.5) 18%,
        transparent 24%
    );
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: var(--glow-opacity);
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.sidebar-section:hover {
    border-color: rgba(59, 111, 181, 0.15);
    box-shadow: 0 4px 24px rgba(59, 111, 181, 0.08), 0 0 0 1px rgba(59, 111, 181, 0.04);
}

.sidebar-title { font-family: var(--font-heading); font-size: 0.9rem; font-weight: 400; letter-spacing: -0.01em; text-transform: none; color: var(--text); margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.sidebar-about p { font-size: 0.85rem; color: var(--text-light); line-height: 1.7; }

/* Popular posts — dotted lines */
.popular-list { list-style: none; }
.popular-item { padding: 9px 0; border-bottom: 1px solid var(--border); }
.popular-item:last-child { border-bottom: none; padding-bottom: 0; }
.popular-item a { display: flex; align-items: flex-end; gap: 5px; color: inherit; text-decoration: none; }
.popular-item a:hover .popular-title,
.popular-item a:hover .popular-num { color: var(--blue); }
.popular-item a:hover .popular-dots { border-color: var(--blue); }

.popular-title { font-size: 0.82rem; font-weight: 450; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color var(--transition); flex-shrink: 1; min-width: 0; }
.popular-dots { flex: 1; border-bottom: 0.5px dashed var(--text-muted); margin-bottom: 4px; min-width: 8px; opacity: 0.4; transition: border-color var(--transition); }
.popular-num { font-family: var(--font-mono); font-size: 0.68rem; font-weight: 400; color: var(--text-muted); white-space: nowrap; margin-bottom: 2px; transition: color var(--transition); font-variant-numeric: tabular-nums; }

/* Sidebar CTA */
.sidebar-section.sidebar-cta-wrap {
    text-align: center;
    background: rgba(59, 111, 181, 0.04);
}
.sidebar-cta { display: block; text-decoration: none; color: inherit; }
.sidebar-cta-icon { font-size: 1.2rem; margin-bottom: 6px; }
.sidebar-cta h3 { font-size: 0.9rem; font-weight: 600; margin-bottom: 4px; }
.sidebar-cta p { font-size: 0.78rem; color: var(--text-light); line-height: 1.5; }

/* Widget area */
.widget { margin-bottom: 16px; padding: 20px; background: rgba(255, 255, 255, 0.65); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 0.75px solid var(--border); border-radius: 1.25rem; box-shadow: 0 1px 4px rgba(29, 45, 68, 0.03); }
.widget-title { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.widget ul li { padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 0.85rem; }
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { color: var(--text-light); }
.widget ul li a:hover { color: var(--blue); }

/* ==========================================================================
   Single Post
   ========================================================================== */

.single-header { padding: clamp(36px, 5vw, 72px) 0 clamp(20px, 3vw, 36px); }
.single-header-inner { max-width: var(--content-max); }

.single-back { display: inline-flex; align-items: center; gap: 5px; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 28px; transition: color var(--transition-fast); font-weight: 450; }
.single-back:hover { color: var(--blue); }
.single-back svg { width: 14px; height: 14px; }

.single-title { font-family: var(--font-heading); font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 400; line-height: 1.1; margin-bottom: 16px; letter-spacing: -0.03em; }
.single-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 0.82rem; color: var(--text-muted); font-weight: 400; }
.single-meta .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--text-muted); opacity: 0.5; }

.single-featured { max-width: var(--content-max); margin: clamp(20px, 3vw, 32px) auto; padding: 0 clamp(16px, 4vw, 40px); }
.single-featured img { width: 100%; border-radius: var(--radius); }

.single-content { max-width: var(--content-max); margin: 0 auto; padding: clamp(20px, 3vw, 36px) clamp(16px, 4vw, 40px); }
.entry-content { font-size: clamp(0.95rem, 1.6vw, 1.04rem); line-height: 1.85; color: var(--text-light); }
.entry-content p { margin-bottom: 1.5em; }
.entry-content h2 { font-size: clamp(1.3rem, 2.8vw, 1.7rem); margin: 2em 0 0.75em; }
.entry-content h3 { font-size: clamp(1.1rem, 2.2vw, 1.3rem); margin: 1.5em 0 0.5em; }
.entry-content a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(59, 111, 181, 0.3); transition: text-decoration-color var(--transition-fast); }
.entry-content a:hover { text-decoration-color: var(--blue); }
.entry-content img { border-radius: var(--radius); margin: 2em 0; width: 100%; }
.entry-content blockquote { border-left: 2px solid var(--blue); padding: 10px 20px; margin: 2em 0; font-style: italic; color: var(--text); font-size: 1.02em; line-height: 1.7; }
.entry-content ul, .entry-content ol { margin: 1em 0 1.5em 1.5em; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: 0.4em; }
.entry-content .gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin: 2em 0; }
.entry-content .gallery-item { margin: 0; }
.entry-content .gallery-item img { border-radius: var(--radius-sm); margin: 0; height: 180px; object-fit: cover; }

.single-tags { max-width: var(--content-max); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px) clamp(20px, 3vw, 36px); display: flex; gap: 6px; flex-wrap: wrap; }
.single-tags .post-tag { font-size: 0.75rem; padding: 4px 12px; }
.single-tags .post-tag:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ==========================================================================
   Comments
   ========================================================================== */

.comments-area { max-width: var(--content-max); margin: 0 auto; padding: clamp(32px, 5vw, 48px) clamp(16px, 4vw, 40px); border-top: 1px solid var(--border); }
.comments-title { font-size: 1.15rem; font-weight: 600; margin-bottom: 28px; }
.comment-list { list-style: none; padding: 0; }
.comment { padding: 20px 0; border-bottom: 1px solid var(--border); }
.comment-meta-wrap { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.comment-meta-wrap .avatar { width: 28px; height: 28px; border-radius: 50%; }
.comment-author-name { font-weight: 600; font-size: 0.85rem; }
.comment-date { font-size: 0.72rem; color: var(--text-muted); }
.comment-content { font-size: 0.9rem; line-height: 1.7; color: var(--text-light); }
.comment-content p { margin-bottom: 0.4em; }
.comment-content p:last-child { margin-bottom: 0; }
.comment-reply-link { font-size: 0.75rem; font-weight: 500; color: var(--blue); margin-top: 6px; display: inline-block; }
.comment .children { margin-left: 28px; padding: 0; list-style: none; }

/* Comment form — glass */
.comment-respond { margin-top: 32px; padding: 24px; background: var(--glass); backdrop-filter: var(--glass-blur); border: 1px solid var(--glass-border); border-radius: var(--radius); }
.comment-reply-title { font-size: 1rem; font-weight: 600; margin-bottom: 16px; }
.comment-form label { display: block; font-size: 0.8rem; font-weight: 500; margin-bottom: 4px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 0.9rem; color: var(--text); background: rgba(255,255,255,0.5); transition: border-color var(--transition-fast); margin-bottom: 14px; }
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--blue); outline: none; }
.comment-form textarea { min-height: 100px; resize: vertical; }
.comment-form .form-submit input[type="submit"] { padding: 9px 24px; font-size: 0.85rem; font-weight: 500; color: #fff; background: var(--blue); border: 1px solid var(--blue); border-radius: var(--radius-sm); cursor: pointer; transition: all var(--transition-fast); }
.comment-form .form-submit input[type="submit"]:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.must-log-in { font-size: 0.85rem; color: var(--text-muted); padding: 20px 0; }
.must-log-in a { color: var(--blue); }

/* ==========================================================================
   Page / Archive / Search
   ========================================================================== */

.page-header { padding: clamp(36px, 5vw, 72px) 0 clamp(20px, 3vw, 36px); }
.page-header h1 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 600; letter-spacing: -0.02em; }
.page-header p { color: var(--text-muted); margin-top: 8px; font-size: 0.95rem; }
.page-content { max-width: var(--content-max); margin: 0 auto; padding: clamp(20px, 3vw, 36px) clamp(16px, 4vw, 40px); }

.archive-header { padding: clamp(36px, 5vw, 72px) 0 clamp(20px, 3vw, 36px); }
.archive-header h1 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 600; }
.archive-header p { color: var(--text-muted); margin-top: 8px; }

.search-header { padding: clamp(36px, 5vw, 72px) 0 clamp(20px, 3vw, 36px); }
.search-header h1 { font-size: clamp(1.4rem, 3vw, 1.8rem); font-weight: 600; }
.search-header p { color: var(--text-muted); margin-top: 8px; }

.no-results { text-align: center; padding: 64px 20px; }
.no-results h2 { font-size: 1.3rem; margin-bottom: 10px; }
.no-results p { color: var(--text-muted); margin-bottom: 20px; }
.no-results .search-form { max-width: 360px; margin: 0 auto; display: flex; gap: 6px; }
.no-results .search-form input[type="search"] { flex: 1; padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 0.9rem; background: rgba(255,255,255,0.5); }
.no-results .search-form input[type="submit"] { padding: 9px 18px; background: var(--blue); color: #fff; border: none; border-radius: var(--radius-sm); font-weight: 500; cursor: pointer; }

/* Submit page (USP plugin) */
.submit-page { max-width: var(--content-max); margin: 0 auto; padding: clamp(20px, 3vw, 36px) clamp(16px, 4vw, 40px); }
.submit-page label, .submit-page .usp-form label { display: block; font-size: 0.82rem; font-weight: 500; margin-bottom: 5px; }
.submit-page input[type="text"], .submit-page input[type="email"], .submit-page textarea, .submit-page select,
.submit-page .usp-form input[type="text"], .submit-page .usp-form input[type="email"], .submit-page .usp-form textarea, .submit-page .usp-form select {
    width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 0.9rem; color: var(--text); background: rgba(255,255,255,0.5); transition: border-color var(--transition-fast); margin-bottom: 18px;
}
.submit-page input:focus, .submit-page textarea:focus, .submit-page select:focus { border-color: var(--blue); outline: none; }
.submit-page textarea { min-height: 180px; resize: vertical; }
.submit-page input[type="submit"], .submit-page button[type="submit"],
.submit-page .usp-form input[type="submit"] { padding: 10px 28px; font-size: 0.9rem; font-weight: 500; color: #fff; background: var(--blue); border: 1px solid var(--blue); border-radius: var(--radius-sm); cursor: pointer; transition: all var(--transition-fast); }
.submit-page input[type="submit"]:hover, .submit-page button[type="submit"]:hover,
.submit-page .usp-form input[type="submit"]:hover { background: var(--blue-dark); border-color: var(--blue-dark); }

/* 404 */
.error-404 { text-align: center; padding: clamp(72px, 14vw, 140px) 20px; min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.error-404 .error-code { font-size: clamp(3.5rem, 10vw, 7rem); font-weight: 700; color: var(--border-strong); line-height: 1; margin-bottom: 12px; letter-spacing: -0.03em; }
.error-404 h1 { font-size: clamp(1.3rem, 2.8vw, 1.75rem); margin-bottom: 10px; }
.error-404 p { color: var(--text-muted); margin-bottom: 28px; max-width: 360px; font-size: 0.95rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); margin-top: clamp(32px, 5vw, 64px); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; flex-wrap: wrap; gap: 12px; }
.footer-copyright { font-size: 0.8rem; color: var(--text-muted); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 0.8rem; color: var(--text-muted); transition: color var(--transition-fast); }
.footer-links a:hover { color: var(--text); }

/* Pagination */
.pagination { display: flex; align-items: center; justify-content: center; gap: 4px; padding: 32px 0; }
.pagination .page-numbers { display: flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; padding: 0 8px; border-radius: var(--radius-sm); font-size: 0.82rem; color: var(--text-muted); border: 1px solid var(--border); transition: all var(--transition-fast); background: var(--glass); }
.pagination .page-numbers:hover { border-color: var(--blue); color: var(--blue); }
.pagination .page-numbers.current { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 960px) {
    .content-sidebar { display: none; }
    .content-layout { display: block; }
}

@media (max-width: 768px) {
    .nav-primary { display: none; }
    .header-right .btn-cta { display: none; }
    .menu-toggle { display: flex; }
    .header-inner { height: 56px; }
    .mobile-nav { top: 56px; }
    .post-card { padding: 18px 20px; border-radius: 1rem; }
    .post-card-headline { flex-wrap: wrap; }
    .post-card-dots { display: none; }
    .post-card-date { width: 100%; font-size: 0.7rem; margin-top: -2px; }
}

@media (max-width: 480px) {
    .footer-inner { flex-direction: column; text-align: center; }
    .footer-links { flex-wrap: wrap; justify-content: center; }
    .category-tabs { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
    .category-tabs::-webkit-scrollbar { display: none; }
    .category-tab { flex-shrink: 0; }
}

/* Submit page — hide URL & Tags fields */
.submit-page #user-submitted-url,
.submit-page label[for="user-submitted-url"],
.submit-page #user-submitted-tags,
.submit-page label[for="user-submitted-tags"] { display: none; }

/* Submit page — suggestion box */
.submit-page-suggestions {
    background: rgba(59, 111, 181, 0.06);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: clamp(16px, 2vw, 24px);
    margin-bottom: 28px;
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--text-light);
}
.submit-page-suggestions strong { color: var(--text); font-weight: 600; }
.submit-page-suggestions ul { margin: 10px 0 0; padding-left: 20px; }
.submit-page-suggestions li { margin-bottom: 6px; }
.submit-page-suggestions li::marker { color: var(--blue); }

/* Print */
@media print {
    .site-header, .site-footer, .category-tabs, .hero, .content-sidebar, .mobile-nav, .load-more-wrap, .post-card-tags, .single-tags, .comment-respond { display: none !important; }
    body { background: #fff; color: #000; font-size: 12pt; }
    .single-content { max-width: 100%; }
}
/* ═══════════════════════════════════════
   STYLED SUBMISSION FORM
   ═══════════════════════════════════════ */

/* Form container */
.submit-page form,
.submit-page .usp-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 32px;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 0.75px solid var(--border);
    border-radius: 1.25rem;
    box-shadow: 0 1px 4px rgba(29, 45, 68, 0.03);
}

/* Labels */
.submit-page label {
    display: block;
    font-family: var(--font);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 6px;
    margin-top: 20px;
}

.submit-page label:first-of-type {
    margin-top: 0;
}

/* All text inputs, textarea, select */
.submit-page input[type="text"],
.submit-page input[type="email"],
.submit-page input[type="url"],
.submit-page input[type="number"],
.submit-page textarea,
.submit-page select {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font);
    font-size: 0.9rem;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    outline: none;
    margin-bottom: 4px;
}

.submit-page input:focus,
.submit-page textarea:focus,
.submit-page select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(59, 111, 181, 0.1);
}

.submit-page textarea {
    min-height: 200px;
    resize: vertical;
    line-height: 1.7;
}

.submit-page select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a95a5' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

/* Submit button */
.submit-page input[type="submit"],
.submit-page button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 24px;
    padding: 14px 28px;
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    background: var(--text);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-page input[type="submit"]:hover,
.submit-page button[type="submit"]:hover {
    background: var(--blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 111, 181, 0.3);
}

/* Antispam question styling */
.submit-page .usp-captcha label,
.submit-page label[for*="captcha"],
.submit-page label[for*="challenge"] {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* Page header */
.page-template-page-submit .page-header h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    letter-spacing: -0.03em;
}

.page-template-page-submit .page-header p {
    font-family: var(--font);
    color: var(--text-light);
    font-size: 1rem;
    max-width: 500px;
}

/* ═══════════════════════════════════════
   IMAGE UPLOAD FIELD
   ═══════════════════════════════════════ */

.submit-page input[type="file"] {
    width: 100%;
    padding: 32px 20px;
    border: 2px dashed var(--border-strong);
    border-radius: 12px;
    background: var(--bg);
    cursor: pointer;
    transition: border-color 0.25s ease, background 0.25s ease;
    font-family: var(--font);
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
}

.submit-page input[type="file"]:hover {
    border-color: var(--blue);
    background: rgba(59, 111, 181, 0.03);
}

.submit-page input[type="file"]::file-selector-button {
    font-family: var(--font);
    font-size: 0.82rem;
    font-weight: 500;
    color: #fff;
    background: var(--blue);
    border: none;
    border-radius: 8px;
    padding: 8px 20px;
    margin-right: 12px;
    cursor: pointer;
    transition: background 0.25s ease;
}

.submit-page input[type="file"]::file-selector-button:hover {
    background: var(--blue-dark);
}
/* Force center submit page content */
.submit-page,
.submit-page > *,
.submit-page p,
.submit-page div {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.submit-page form,
.submit-page form label,
.submit-page form input,
.submit-page form textarea,
.submit-page form select {
    text-align: left !important;
}