/*
Theme Name: Blessinaires
Theme URI: https://blessinaires.com
Author: Blessinaires
Author URI: https://blessinaires.com
Description: A cheerful, colorful WordPress theme for Blessinaires — Daily & Special Day Blessings. Features a vibrant purple, coral, teal, and sunshine palette with elegant serif typography.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: blessinaires
Tags: blog, one-column, two-columns, custom-header, custom-menu, featured-images, translation-ready, theme-options
*/

/* ═══════════════════════════════════════════
   DESIGN TOKENS
   ═══════════════════════════════════════════ */
:root {
  --purple:       #7C5CBA;
  --purple-deep:  #5A3E91;
  --purple-light: #E8DFFB;
  --purple-glow:  #F5F0FF;

  --coral:        #E8845C;
  --coral-soft:   #FCEEE8;

  --teal:         #3BAFA8;
  --teal-soft:    #E4F6F5;

  --rose:         #E06B8F;
  --rose-soft:    #FDE8EF;

  --sunshine:     #F4B740;
  --sunshine-soft:#FFF6E0;

  --bg-main:      #FDFBFF;
  --bg-alt:       #F7F3FC;
  --bg-warm:      #FFF9F5;

  --dark:         #2D1B4E;
  --dark-mid:     #3E2A64;
  --text:         #3A3050;
  --text-light:   #7D7490;
  --white:        #FFFFFF;
  --divider:      #E8E0F0;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --section-pad:  clamp(3.5rem, 8vw, 6rem);
  --content-max:  1200px;
  --narrow-max:   780px;
  --radius:       14px;
  --radius-sm:    10px;
}

/* ═══════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg-main);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--purple); text-decoration: none; transition: color 0.25s; }
a:hover { color: var(--purple-deep); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style-position: inside; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--dark);
  line-height: 1.25;
  font-weight: 600;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.4rem, 3vw, 1.8rem); }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

.narrow-container {
  max-width: var(--narrow-max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

/* ═══════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--purple-deep));
  color: #fff;
  box-shadow: 0 4px 20px rgba(124, 92, 186, 0.3);
}
.btn-primary:hover {
  color: #fff;
  box-shadow: 0 6px 28px rgba(124, 92, 186, 0.4);
  transform: translateY(-2px);
}

.btn-coral {
  background: linear-gradient(135deg, var(--coral), #D4714A);
  color: #fff;
  box-shadow: 0 4px 20px rgba(232, 132, 92, 0.3);
}
.btn-coral:hover {
  color: #fff;
  box-shadow: 0 6px 28px rgba(232, 132, 92, 0.4);
  transform: translateY(-2px);
}

.btn-outline {
  background: var(--white);
  color: var(--text);
  border: 1.5px solid var(--divider);
}
.btn-outline:hover {
  border-color: var(--purple);
  color: var(--purple);
}

/* ═══════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 251, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--divider);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

.site-logo {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.02em;
  text-decoration: none;
}
.site-logo span { color: var(--purple); }
.site-logo:hover { color: var(--dark); }

.site-logo img {
  max-height: 48px;
  width: auto;
}

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

.main-nav .menu {
  display: flex;
  list-style: none;
  gap: 1.75rem;
  align-items: center;
  margin: 0;
  padding: 0;
}

.main-nav .menu li { list-style: none; }

.main-nav .menu a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: 0.02em;
  text-decoration: none;
  position: relative;
  transition: color 0.25s;
}

.main-nav .menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--purple);
  border-radius: 2px;
  transition: width 0.3s;
}

.main-nav .menu a:hover { color: var(--purple); }
.main-nav .menu a:hover::after { width: 100%; }

.main-nav .menu .current-menu-item a,
.main-nav .menu .current_page_item a {
  color: var(--purple);
}
.main-nav .menu .current-menu-item a::after,
.main-nav .menu .current_page_item a::after {
  width: 100%;
}

/* ── Mobile Toggle ── */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  padding: 8px;
  z-index: 110;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  margin: 6px auto;
  border-radius: 2px;
  transition: 0.3s;
}

.mobile-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ── Mobile Menu ── */
.mobile-nav {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  z-index: 99;
  padding: 2rem;
  overflow-y: auto;
}

.mobile-nav.active { display: block; }

.mobile-nav .menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav .menu li {
  border-bottom: 1px solid var(--divider);
  list-style: none;
}

.mobile-nav .menu a {
  display: block;
  padding: 1rem 0;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}

.mobile-nav .menu a:hover { color: var(--purple); }

/* ═══════════════════════════════════════════
   HERO (Front Page)
   ═══════════════════════════════════════════ */
.hero {
  position: relative;
  padding: clamp(4rem, 12vw, 7rem) 0 clamp(4rem, 12vw, 8rem);
  background: linear-gradient(155deg, #F5F0FF 0%, #FCEEE8 35%, #FFF6E0 65%, #E4F6F5 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -60px;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(124,92,186,0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -50px;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(232,132,92,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 1.5rem;
  background: rgba(124,92,186,0.1);
  padding: 6px 20px;
  border-radius: 50px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6.5vw, 4.4rem);
  font-weight: 600;
  line-height: 1.12;
  color: var(--dark);
  margin-bottom: 1.25rem;
}

.hero h1 em {
  font-style: italic;
  background: linear-gradient(135deg, var(--purple), var(--coral));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.8;
  max-width: 540px;
  margin: 0 auto 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════
   SECTION HEADERS
   ═══════════════════════════════════════════ */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 0.6rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  font-weight: 600;
  color: var(--dark);
}

.section-desc {
  font-size: 1rem;
  color: var(--text-light);
  max-width: 500px;
  margin: 0.75rem auto 0;
}

/* ═══════════════════════════════════════════
   CATEGORY CARDS (Front Page)
   ═══════════════════════════════════════════ */
.categories-section { padding: var(--section-pad) 0; background: var(--bg-main); }

.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.cat-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.35s;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.cat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  border-radius: var(--radius) var(--radius) 0 0;
  transform: scaleX(0);
  transition: transform 0.35s;
}

.cat-card.color-coral::before  { background: linear-gradient(90deg, var(--coral), var(--sunshine)); }
.cat-card.color-purple::before { background: linear-gradient(90deg, var(--purple), var(--rose)); }
.cat-card.color-teal::before   { background: linear-gradient(90deg, var(--teal), #6BC5B8); }
.cat-card.color-rose::before   { background: linear-gradient(90deg, var(--rose), var(--coral)); }

.cat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.08);
  border-color: transparent;
  color: inherit;
}
.cat-card:hover::before { transform: scaleX(1); }

.cat-icon-wrap {
  width: 64px; height: 64px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.75rem;
}

.cat-card.color-coral .cat-icon-wrap  { background: var(--coral-soft); }
.cat-card.color-purple .cat-icon-wrap { background: var(--purple-light); }
.cat-card.color-teal .cat-icon-wrap   { background: var(--teal-soft); }
.cat-card.color-rose .cat-icon-wrap   { background: var(--rose-soft); }

.cat-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.cat-card p { font-size: 0.88rem; color: var(--text-light); line-height: 1.6; }

.cat-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.84rem; font-weight: 600; margin-top: 1rem;
}
.cat-card.color-coral .cat-link  { color: var(--coral); }
.cat-card.color-purple .cat-link { color: var(--purple); }
.cat-card.color-teal .cat-link   { color: var(--teal); }
.cat-card.color-rose .cat-link   { color: var(--rose); }

.cat-link svg { transition: transform 0.25s; }
.cat-card:hover .cat-link svg { transform: translateX(4px); }

/* ═══════════════════════════════════════════
   POST CARDS — GRID LAYOUTS
   ═══════════════════════════════════════════ */
.posts-section { padding: var(--section-pad) 0; background: var(--bg-alt); }

/* Featured + small grid (front page) */
.posts-grid-featured {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 1.75rem;
}

/* Standard archive grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

/* ── Post Card (archive/index) ── */
.post-card {
  background: var(--white);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.35s;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.post-card:hover {
  box-shadow: 0 12px 36px rgba(124,92,186,0.1);
  transform: translateY(-4px);
}

.post-card a { text-decoration: none; color: inherit; }
.post-card a:hover { color: inherit; }

.post-card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--purple-light), var(--coral-soft), var(--sunshine-soft));
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.post-card-img img,
.post-card-img .wp-post-image {
  position: absolute;
  top: 0; left: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.4s;
  max-width: none;
}

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

.post-card-img .ph { font-size: 3rem; opacity: 0.4; }

.post-card-body {
  padding: 1.5rem 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 0.75rem;
  text-decoration: none;
  width: fit-content;
}

.tag-daily   { color: var(--coral);  background: var(--coral-soft); }
.tag-special { color: var(--purple); background: var(--purple-light); }
.tag-spirit  { color: var(--teal);   background: var(--teal-soft); }
.tag-quotes  { color: var(--rose);   background: var(--rose-soft); }
.tag-default { color: var(--purple); background: var(--purple-light); }

.post-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.3;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-body .excerpt {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 1rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-meta {
  font-size: 0.8rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.post-meta-sep { opacity: 0.4; }

/* ── Featured Post Card (front page) ── */
.post-featured-card {
  grid-row: span 2;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--divider);
  transition: all 0.35s;
}
.post-featured-card:hover {
  box-shadow: 0 12px 40px rgba(124,92,186,0.1);
  transform: translateY(-3px);
}

.post-featured-card a { text-decoration: none; color: inherit; }

.post-featured-card .post-img {
  position: relative;
  height: 320px;
  background: linear-gradient(135deg, var(--purple-light), var(--coral-soft), var(--sunshine-soft));
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}

.post-featured-card .post-img img,
.post-featured-card .post-img .wp-post-image {
  position: absolute;
  top: 0; left: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  max-width: none;
}

.post-featured-card .post-img .ph { font-size: 4.5rem; }

.post-featured-card .post-body { padding: 1.75rem 2rem; }

.post-featured-card h3 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.3;
  margin-bottom: 0.6rem;
}

.post-featured-card .excerpt {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* ── Small Post Card (front page sidebar) ── */
.post-small-card {
  display: flex;
  gap: 1.25rem;
  background: var(--white);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: all 0.35s;
  align-items: center;
  text-decoration: none;
  color: inherit;
}
.post-small-card:hover {
  box-shadow: 0 8px 28px rgba(124,92,186,0.08);
  transform: translateY(-2px);
  color: inherit;
}

.post-small-card .post-thumb {
  position: relative;
  flex-shrink: 0;
  width: 110px; height: 90px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--purple-light), var(--coral-soft));
}

.post-small-card .post-thumb img,
.post-small-card .post-thumb .wp-post-image {
  position: absolute;
  top: 0; left: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  max-width: none;
}

.post-small-card .post-thumb .ph { font-size: 1.8rem; opacity: 0.4; }

.post-small-card .post-info { flex: 1; }

.post-small-card h4 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.35;
  margin-bottom: 0.35rem;
}

.view-all { text-align: center; margin-top: 2.5rem; }

/* ═══════════════════════════════════════════
   DAILY BLESSING BANNER
   ═══════════════════════════════════════════ */
.blessing-banner {
  padding: var(--section-pad) 0;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-mid) 50%, #4A3175 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.blessing-banner::before {
  content: '\201C';
  position: absolute;
  top: -20px; left: 6%;
  font-family: var(--font-display);
  font-size: 16rem;
  color: rgba(124, 92, 186, 0.1);
  line-height: 1;
}

.blessing-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.blessing-inner .section-label {
  color: var(--sunshine);
  background: rgba(244,183,64,0.12);
  padding: 4px 16px;
  border-radius: 50px;
}

.blessing-quote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.55;
  color: rgba(255,255,255,0.9);
  margin: 1.5rem 0;
}

.blessing-source { font-size: 0.88rem; color: rgba(255,255,255,0.4); }

/* ═══════════════════════════════════════════
   ABOUT SECTION (Front Page)
   ═══════════════════════════════════════════ */
.about-section { padding: var(--section-pad) 0; background: var(--bg-warm); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-visual {
  background: linear-gradient(145deg, var(--purple-light), var(--coral-soft), var(--teal-soft));
  border-radius: var(--radius);
  padding: 3rem;
  text-align: center;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.about-visual .big-icon { font-size: 4rem; margin-bottom: 1.25rem; }

.about-tagline {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--dark);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.stat-row { display: flex; gap: 2rem; }

.stat {
  text-align: center;
  background: rgba(255,255,255,0.7);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--purple);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.about-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.about-text p { color: var(--text-light); line-height: 1.8; }

.feature-list { list-style: none; margin: 1.5rem 0; padding: 0; }

.feature-list li {
  padding: 0.6rem 0 0.6rem 2rem;
  position: relative;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  list-style: none;
}

.feature-list li::before { position: absolute; left: 0; font-size: 1rem; }
.feature-list li:nth-child(1)::before { content: '🌅'; }
.feature-list li:nth-child(2)::before { content: '🎉'; }
.feature-list li:nth-child(3)::before { content: '🕊️'; }
.feature-list li:nth-child(4)::before { content: '✨'; }

/* ═══════════════════════════════════════════
   NEWSLETTER
   ═══════════════════════════════════════════ */
.newsletter-section { padding: var(--section-pad) 0; background: var(--bg-main); }

.newsletter-card {
  background: linear-gradient(135deg, var(--purple-light) 0%, var(--coral-soft) 50%, var(--sunshine-soft) 100%);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.newsletter-card h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.6rem;
}

.newsletter-card > p {
  color: var(--text-light);
  margin-bottom: 2rem;
  max-width: 420px;
  margin-left: auto; margin-right: auto;
}

.newsletter-form {
  display: flex; gap: 0.75rem;
  max-width: 440px; margin: 0 auto;
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: 14px 20px;
  border: 1.5px solid var(--divider);
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  background: var(--white);
  color: var(--text);
  outline: none;
  transition: border-color 0.25s;
}
.newsletter-form input[type="email"]::placeholder { color: var(--text-light); }
.newsletter-form input[type="email"]:focus { border-color: var(--purple); }

.newsletter-form button[type="submit"] {
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--purple), var(--purple-deep));
  color: #fff; border: none; border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.9rem; font-weight: 600;
  cursor: pointer; transition: all 0.25s;
  white-space: nowrap;
}
.newsletter-form button[type="submit"]:hover { opacity: 0.9; }

.newsletter-note { font-size: 0.78rem; color: var(--text-light); margin-top: 1rem; }

/* ═══════════════════════════════════════════
   SINGLE POST / PAGE
   ═══════════════════════════════════════════ */
.page-header-section {
  padding: clamp(3rem, 8vw, 5rem) 0 2rem;
  background: linear-gradient(155deg, #F5F0FF 0%, #FCEEE8 50%, #FFF6E0 100%);
  text-align: center;
}

.page-header-section h1 {
  font-family: var(--font-display);
  color: var(--dark);
  margin-bottom: 0.75rem;
}

.page-header-meta {
  font-size: 0.88rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.single-content {
  padding: 3rem 0 var(--section-pad);
  background: var(--bg-main);
}

.entry-content {
  max-width: var(--narrow-max);
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text);
}

.entry-content h2 {
  margin: 2.5rem 0 1rem;
  font-size: 1.75rem;
}

.entry-content h3 {
  margin: 2rem 0 0.75rem;
  font-size: 1.4rem;
}

.entry-content p { margin-bottom: 1.25rem; }

.entry-content a { color: var(--purple); text-decoration: underline; }
.entry-content a:hover { color: var(--purple-deep); }

.entry-content img {
  border-radius: var(--radius-sm);
  margin: 1.5rem 0;
}

.entry-content blockquote {
  border-left: 4px solid var(--purple);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--purple-glow);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--dark);
}

.entry-content ul, .entry-content ol {
  margin: 1rem 0 1.5rem 1.5rem;
  list-style-position: outside;
}

.entry-content li { margin-bottom: 0.5rem; }

.entry-content .wp-block-image { margin: 2rem 0; }
.entry-content .wp-block-image img { border-radius: var(--radius-sm); }

/* Tags below post */
.post-tags {
  max-width: var(--narrow-max);
  margin: 2rem auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--divider);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.post-tags a {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: 50px;
  background: var(--purple-light);
  color: var(--purple);
  text-decoration: none;
}
.post-tags a:hover { background: var(--purple); color: #fff; }

/* Post navigation */
.post-nav {
  max-width: var(--narrow-max);
  margin: 0 auto;
  padding: 2rem 0;
  border-top: 1px solid var(--divider);
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.post-nav a {
  font-size: 0.9rem;
  color: var(--purple);
  text-decoration: none;
  font-weight: 500;
}
.post-nav a:hover { color: var(--purple-deep); }

.post-nav .nav-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
}

/* ═══════════════════════════════════════════
   ARCHIVE / CATEGORY PAGE HEADER
   ═══════════════════════════════════════════ */
.archive-header {
  padding: clamp(3rem, 8vw, 4.5rem) 0 2rem;
  background: linear-gradient(155deg, #F5F0FF 0%, #FCEEE8 50%, #E4F6F5 100%);
  text-align: center;
}

.archive-header h1 {
  font-family: var(--font-display);
  color: var(--dark);
}

.archive-header .archive-desc {
  font-size: 1rem;
  color: var(--text-light);
  max-width: 520px;
  margin: 0.5rem auto 0;
}

.archive-posts {
  padding: 2.5rem 0 var(--section-pad);
  background: var(--bg-main);
}

/* ═══════════════════════════════════════════
   COMMENTS
   ═══════════════════════════════════════════ */
.comments-area {
  max-width: var(--narrow-max);
  margin: 0 auto;
  padding: 2.5rem 0 var(--section-pad);
}

.comments-area h2 {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
}

.comment-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.comment-list .comment {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--divider);
  list-style: none;
}

.comment-author {
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.25rem;
}

.comment-meta { font-size: 0.82rem; color: var(--text-light); margin-bottom: 0.75rem; }

.comment-body p { font-size: 0.95rem; }

/* Comment form */
.comment-respond { margin-top: 2rem; }
.comment-respond h3 { font-size: 1.4rem; margin-bottom: 1rem; }

.comment-form label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--divider);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text);
  background: var(--white);
  margin-bottom: 1rem;
  outline: none;
  transition: border-color 0.25s;
}

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

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

.comment-form .submit {
  background: linear-gradient(135deg, var(--purple), var(--purple-deep));
  color: #fff; border: none;
  padding: 13px 30px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
}
.comment-form .submit:hover { opacity: 0.9; }

/* ═══════════════════════════════════════════
   SEARCH & 404
   ═══════════════════════════════════════════ */
.search-form-wrap {
  max-width: 480px;
  margin: 2rem auto;
}

.search-form-wrap form {
  display: flex;
  gap: 0.75rem;
}

.search-form-wrap input[type="search"] {
  flex: 1;
  padding: 14px 20px;
  border: 1.5px solid var(--divider);
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
}
.search-form-wrap input[type="search"]:focus { border-color: var(--purple); }

.search-form-wrap button {
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--purple), var(--purple-deep));
  color: #fff; border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
}

.error-404-content,
.no-results-content {
  text-align: center;
  padding: clamp(4rem, 10vw, 6rem) 0;
}

.error-404-content .big-icon,
.no-results-content .big-icon {
  font-size: 5rem;
  margin-bottom: 1.5rem;
}

/* ═══════════════════════════════════════════
   PAGINATION
   ═══════════════════════════════════════════ */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
  padding: 1rem 0;
}

.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px; height: 42px;
  padding: 0 12px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s;
}

.pagination a {
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--divider);
}
.pagination a:hover {
  background: var(--purple);
  color: #fff;
  border-color: var(--purple);
}

.pagination .current {
  background: var(--purple);
  color: #fff;
  border: 1px solid var(--purple);
}

/* ═══════════════════════════════════════════
   SIDEBAR / WIDGETS
   ═══════════════════════════════════════════ */
.widget {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
}

.widget h3, .widget-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--purple-light);
}

.widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget ul li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--divider);
  list-style: none;
}

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

.widget ul a {
  font-size: 0.9rem;
  color: var(--text);
  text-decoration: none;
}
.widget ul a:hover { color: var(--purple); }

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .site-logo { color: #fff; margin-bottom: 1rem; display: inline-block; }
.footer-brand .site-logo span { color: var(--sunshine); }

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.45);
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.social-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  transition: all 0.25s;
  text-decoration: none;
}
.social-icon:nth-child(1) { background: rgba(124,92,186,0.2); }
.social-icon:nth-child(2) { background: rgba(232,132,92,0.2); }
.social-icon:nth-child(3) { background: rgba(59,175,168,0.2); }
.social-icon:hover { transform: translateY(-2px); }

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 0.6rem; list-style: none; }

.footer-col ul a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
}
.footer-col ul a:hover { color: var(--sunshine); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.3); margin: 0; }

.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.3);
  text-decoration: none;
}
.footer-bottom-links a:hover { color: var(--sunshine); }

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 960px) {
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .mobile-toggle { display: block; }

  .posts-grid-featured { grid-template-columns: 1fr; }
  .post-featured-card { grid-row: auto; }

  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-visual { order: -1; min-height: 280px; padding: 2rem; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 600px) {
  .cat-grid { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: 1fr; }

  .post-small-card { flex-direction: column; }
  .post-small-card .post-thumb { width: 100%; height: 130px; }

  .newsletter-form { flex-direction: column; }
  .newsletter-form button { width: 100%; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .stat-row { gap: 1rem; }
  .stat { padding: 0.75rem 1rem; }

  .post-nav { flex-direction: column; }

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

/* ═══════════════════════════════════════════
   ACCESSIBILITY
   ═══════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  word-wrap: normal !important;
}
