/*
Theme Name: AmorTser Blog
Theme URI: https://amortser.com.br
Author: AmorTser
Description: Tema do blog da AmorTser — Escola de Formação em Doulagem da Morte e Doula Pet.
Version: 2.0
Text Domain: amortser-blog
*/

/* ══════════════════════════════════════
   DESIGN TOKENS
══════════════════════════════════════ */
:root {
  --purple-50: #F5F0FF;
  --purple-100: #EDE4FF;
  --purple-200: #D4BFFF;
  --purple-300: #B899F5;
  --purple-400: #9B6FE8;
  --purple-500: #7C4FCA;
  --purple-600: #6B3FA0;
  --purple-700: #542F82;
  --purple-800: #3D1F6A;
  --purple-900: #2D1550;
  --purple-950: #1A0D35;

  --gold-300: #E8D48A;
  --gold-400: #D4AF5C;
  --gold-500: #C49A35;
  --gold-600: #A67C20;
  --gold-700: #8A6318;

  --nude-dark: #2D1B3D;
  --nude-mid: #3D2A55;

  --white: #FFFFFF;
  --off-white: #FAF8FF;
  --light-gray: #F0ECF8;

  --bg: #FAFAFA;
  --bg-alt: var(--purple-50);
  --bg-card: #FFFFFF;
  --text: #1A0D35;
  --text-mid: #3D2A55;
  --text-muted: #7B6A9A;
  --text-light: #B8A8D4;
  --border: rgba(107, 63, 160, 0.12);
  --border-gold: rgba(196, 154, 53, 0.3);
  --shadow: rgba(107, 63, 160, 0.08);
  --shadow-strong: rgba(107, 63, 160, 0.18);

  --radius: 16px;
  --radius-sm: 8px;
}

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

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; }

/* ══════════════════════════════════════
   NAVIGATION
══════════════════════════════════════ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 16px 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(45, 27, 61, 0.96);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid rgba(196, 154, 53, 0.15);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-logo img {
  height: 36px;
  width: auto;
  filter: brightness(1.1);
  transition: transform 0.3s;
}

.nav-logo:hover img { transform: scale(1.03); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
}

.nav-links li a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(240, 236, 255, 0.85);
  transition: color 0.3s;
  position: relative;
  padding: 8px 16px;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 16px;
  right: 16px;
  height: 1px;
  background: var(--gold-400);
  transform: scaleX(0);
  transition: transform 0.3s;
}

.nav-links li a:hover { color: var(--gold-400); }
.nav-links li a:hover::after { transform: scaleX(1); }

.nav-link-blog {
  color: var(--gold-400) !important;
  font-weight: 600 !important;
}

.nav-cta {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 10px 24px;
  background: transparent;
  border: 1px solid var(--gold-400);
  color: var(--gold-400);
  border-radius: 40px;
  transition: all 0.3s;
  display: inline-block;
}

.nav-cta:hover {
  background: var(--gold-400);
  color: var(--nude-dark);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  z-index: 1001;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(240, 236, 255, 0.85);
  border-radius: 2px;
  transition: all 0.3s;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--nude-dark);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(240, 236, 255, 0.85);
  padding: 16px 0;
  transition: color 0.3s;
  border-bottom: 1px solid rgba(196, 154, 53, 0.1);
  width: 220px;
  text-align: center;
}

.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--gold-400); }

/* ══════════════════════════════════════
   BLOG BANNER (index/home)
══════════════════════════════════════ */
.blog-banner {
  position: relative;
  background: linear-gradient(135deg, var(--purple-950) 0%, var(--purple-800) 50%, var(--purple-900) 100%);
  padding: 100px 60px 80px;
  text-align: center;
  overflow: hidden;
}

.blog-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212, 175, 92, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.blog-banner::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(155, 111, 232, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.blog-banner h1 {
  font-family: 'Playfair Display', serif;
  font-size: 56px;
  font-weight: 500;
  color: var(--off-white);
  margin-bottom: 16px;
  position: relative;
}

.blog-banner p {
  font-size: 17px;
  color: rgba(220, 210, 255, 0.55);
  max-width: 560px;
  margin: 0 auto;
  font-weight: 300;
  line-height: 1.7;
  position: relative;
}

.blog-banner .gold-line {
  width: 60px;
  height: 2px;
  background: var(--gold-400);
  margin: 20px auto 0;
  position: relative;
}

/* ══════════════════════════════════════
   CATEGORY FILTER CHIPS
══════════════════════════════════════ */
.category-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 36px 60px 0;
  max-width: 1200px;
  margin: 0 auto;
}

.category-filter a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 9px 22px;
  border: 1px solid var(--border);
  border-radius: 40px;
  color: var(--text-muted);
  transition: all 0.3s;
  background: var(--bg-card);
}

.category-filter a:hover,
.category-filter a.active {
  background: var(--purple-600);
  color: var(--white);
  border-color: var(--purple-600);
  box-shadow: 0 4px 16px rgba(107, 63, 160, 0.2);
}

/* ══════════════════════════════════════
   POST GRID
══════════════════════════════════════ */
.posts-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 60px 80px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.post-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.4s cubic-bezier(.22,.61,.36,1), box-shadow 0.4s;
}

.post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px var(--shadow-strong);
}

.post-card-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(.22,.61,.36,1);
}

.post-card:hover .post-card-thumb { transform: scale(1.03); }

.post-card > a { overflow: hidden; display: block; }

.post-card-body {
  padding: 24px;
}

.post-card-category {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 10px;
  background: rgba(196, 154, 53, 0.08);
  padding: 4px 12px;
  border-radius: 20px;
}

.post-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 10px;
}

.post-card-title a { transition: color 0.3s; }
.post-card-title a:hover { color: var(--purple-500); }

.post-card-excerpt {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
  font-weight: 300;
}

.post-card-meta {
  font-size: 12px;
  color: var(--text-light);
}

.post-card-no-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--purple-100), var(--purple-50));
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-card-no-thumb svg {
  width: 48px;
  height: 48px;
  opacity: 0.25;
  stroke: var(--purple-400);
}

/* ══════════════════════════════════════
   PAGINATION
══════════════════════════════════════ */
.pagination {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px 80px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.pagination .nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

.pagination .nav-links a,
.pagination .nav-links span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s;
}

.pagination .nav-links a {
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.pagination .nav-links a:hover {
  background: var(--purple-600);
  color: var(--white);
  border-color: var(--purple-600);
}

.pagination .nav-links span.current {
  background: var(--purple-600);
  color: var(--white);
  border: 1px solid var(--purple-600);
}

/* ══════════════════════════════════════
   SINGLE POST HERO (imagem como background)
══════════════════════════════════════ */
.single-hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  background-color: var(--purple-950);
}

.single-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26, 13, 53, 0.3) 0%,
    rgba(26, 13, 53, 0.55) 40%,
    rgba(26, 13, 53, 0.92) 100%
  );
  pointer-events: none;
}

.single-hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 60px 56px;
}

.single-hero-cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--purple-950);
  background: var(--gold-400);
  padding: 6px 18px;
  border-radius: 40px;
  margin-bottom: 20px;
  transition: background 0.3s;
}

.single-hero-cat:hover {
  background: var(--gold-300);
}

.single-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 46px;
  font-weight: 500;
  color: var(--off-white);
  line-height: 1.15;
  margin-bottom: 20px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.2);
}

.single-hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(220, 210, 255, 0.55);
  font-weight: 300;
}

.meta-sep { opacity: 0.4; }

/* ══════════════════════════════════════
   SINGLE POST LAYOUT (content + sidebar)
══════════════════════════════════════ */
.single-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 60px 40px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 56px;
  align-items: start;
}

.single-content {
  font-size: 17px;
  line-height: 1.9;
  color: var(--text-mid);
}

.single-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--text);
  margin: 48px 0 16px;
}

.single-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  margin: 36px 0 12px;
}

.single-content p { margin-bottom: 20px; }

.single-content a {
  color: var(--purple-500);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.single-content a:hover { color: var(--purple-700); }

.single-content blockquote {
  border-left: 3px solid var(--gold-400);
  padding: 20px 28px;
  margin: 32px 0;
  background: var(--bg-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-muted);
  font-size: 18px;
}

.single-content ul,
.single-content ol {
  margin: 16px 0 20px 24px;
  list-style: disc;
}

.single-content ol { list-style: decimal; }
.single-content li { margin-bottom: 8px; }

.single-content img {
  border-radius: var(--radius);
  margin: 32px 0;
}

/* ══════════════════════════════════════
   SHARE BAR
══════════════════════════════════════ */
.share-bar {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 20px;
}

.share-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.share-buttons {
  display: flex;
  gap: 10px;
}

.share-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.3s;
  position: relative;
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px var(--shadow);
}

.share-whatsapp:hover {
  background: #25D366;
  color: var(--white);
  border-color: #25D366;
}

.share-facebook:hover {
  background: #1877F2;
  color: var(--white);
  border-color: #1877F2;
}

.share-x:hover {
  background: var(--text);
  color: var(--white);
  border-color: var(--text);
}

.share-copy:hover {
  background: var(--purple-600);
  color: var(--white);
  border-color: var(--purple-600);
}

.copy-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--text);
  color: var(--white);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s;
}

.share-copy.copied .copy-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ══════════════════════════════════════
   SIDEBAR
══════════════════════════════════════ */
.single-sidebar {
  position: sticky;
  top: 88px;
}

.sidebar-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 24px;
}

.sidebar-title {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.sidebar-categories ul {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sidebar-categories ul li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-mid);
  font-size: 15px;
  font-weight: 400;
  transition: all 0.25s;
}

.sidebar-categories ul li a:hover {
  background: var(--bg-alt);
  color: var(--purple-600);
  padding-left: 18px;
}

.cat-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-light);
  background: var(--bg-alt);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
}

.sidebar-categories ul li a:hover .cat-count {
  background: var(--purple-600);
  color: var(--white);
}

.sidebar-search form {
  display: flex;
}

.sidebar-search input[type="search"] {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.3s;
}

.sidebar-search input[type="search"]:focus {
  outline: none;
  border-color: var(--purple-400);
}

.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 24px;
}

/* ══════════════════════════════════════
   COMMENTS
══════════════════════════════════════ */
.comments-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px 80px;
}

.comments-area {
  max-width: 780px;
}

.comments-heading {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

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

.comment-item {
  margin-bottom: 28px;
}

.comment-body {
  display: flex;
  gap: 16px;
}

.comment-avatar img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.comment-content {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
}

.comment-author-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.comment-author-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.comment-date {
  font-size: 12px;
  color: var(--text-light);
}

.comment-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-mid);
}

.comment-text p { margin-bottom: 8px; }
.comment-text p:last-child { margin-bottom: 0; }

.comment-reply-link {
  margin-top: 10px;
}

.comment-reply-link a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--purple-500);
  transition: color 0.3s;
}

.comment-reply-link a:hover { color: var(--purple-700); }

.comment-awaiting {
  font-size: 13px;
  color: var(--gold-600);
  margin-bottom: 8px;
}

/* Comment children (replies) */
.comment-list .children {
  list-style: none;
  padding-left: 40px;
  margin-top: 16px;
}

/* Comment form */
.comment-respond {
  margin-top: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}

.comment-respond .comment-reply-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 24px;
}

.comment-respond .comment-reply-title small a {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--purple-500);
  margin-left: 12px;
}

.comment-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.comment-form-author input,
.comment-form-email input,
.comment-form-comment textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.3s;
  resize: vertical;
}

.comment-form-author input:focus,
.comment-form-email input:focus,
.comment-form-comment textarea:focus {
  outline: none;
  border-color: var(--purple-400);
}

.comment-form-comment {
  margin-top: 16px;
}

.comment-form .form-submit {
  margin-top: 20px;
}

.comment-form .submit {
  display: inline-block;
  padding: 14px 36px;
  background: var(--purple-600);
  color: var(--white);
  border: none;
  border-radius: 40px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s;
}

.comment-form .submit:hover {
  background: var(--purple-700);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(107, 63, 160, 0.3);
}

/* ══════════════════════════════════════
   RELATED POSTS
══════════════════════════════════════ */
.related-posts {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px 64px;
}

.related-posts h2 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 32px;
  text-align: center;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* ══════════════════════════════════════
   CATEGORY PAGE HEADER
══════════════════════════════════════ */
.category-header {
  position: relative;
  background: linear-gradient(135deg, var(--purple-950) 0%, var(--purple-800) 100%);
  padding: 100px 60px 60px;
  text-align: center;
  overflow: hidden;
}

.category-header::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(212, 175, 92, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.category-header .cat-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 12px;
  position: relative;
}

.category-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  font-weight: 500;
  color: var(--off-white);
  position: relative;
}

/* ══════════════════════════════════════
   SEARCH PAGE
══════════════════════════════════════ */
.search-header {
  background: linear-gradient(135deg, var(--purple-950) 0%, var(--purple-800) 100%);
  padding: 100px 60px 60px;
  text-align: center;
}

.search-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 500;
  color: var(--off-white);
}

.search-form-block {
  max-width: 600px;
  margin: 24px auto 0;
  display: flex;
  gap: 8px;
}

.search-form-block input[type="search"] {
  flex: 1;
  padding: 14px 20px;
  border: 1px solid rgba(220, 210, 255, 0.15);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: 'DM Sans', sans-serif;
  background: rgba(255,255,255,0.06);
  color: var(--off-white);
}

.search-form-block input[type="search"]::placeholder {
  color: rgba(220, 210, 255, 0.35);
}

.search-form-block button {
  padding: 14px 28px;
  background: var(--gold-400);
  color: var(--purple-950);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: background 0.3s;
}

.search-form-block button:hover {
  background: var(--gold-300);
}

/* ══════════════════════════════════════
   404 PAGE
══════════════════════════════════════ */
.page-404 {
  text-align: center;
  padding: 120px 60px;
}

.page-404 h1 {
  font-family: 'Playfair Display', serif;
  font-size: 100px;
  font-weight: 700;
  color: var(--purple-200);
  margin-bottom: 16px;
  line-height: 1;
}

.page-404 p {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

.page-404 a {
  display: inline-block;
  padding: 14px 36px;
  background: var(--purple-600);
  color: var(--white);
  border-radius: 40px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s;
}

.page-404 a:hover {
  background: var(--purple-700);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(107, 63, 160, 0.25);
}

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.site-footer {
  background: var(--purple-950);
  padding: 72px 0 0;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 64px;
}

.footer-logo-img {
  height: 44px;
  width: auto;
  margin-bottom: 16px;
  filter: brightness(1.1);
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(220, 210, 255, 0.45);
  font-weight: 300;
  max-width: 300px;
}

.footer-col h4 {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(220, 210, 255, 0.4);
  margin-bottom: 20px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
}

.footer-col ul a {
  font-size: 15px;
  color: rgba(220, 210, 255, 0.65);
  transition: color 0.3s;
  font-weight: 300;
}

.footer-col ul a:hover { color: var(--gold-400); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 60px;
  border-top: 1px solid rgba(220, 210, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 12px;
  color: rgba(220, 210, 255, 0.25);
}

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

  .single-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .single-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .single-sidebar .sidebar-block { margin-bottom: 0; }
}

@media (max-width: 768px) {
  .site-nav {
    padding: 14px 24px;
  }

  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }

  .blog-banner { padding: 72px 24px 56px; }
  .blog-banner h1 { font-size: 36px; }
  .blog-banner p { font-size: 15px; }

  .category-filter { padding: 24px 24px 0; }

  .posts-grid {
    grid-template-columns: 1fr;
    padding: 32px 24px 60px;
  }

  .related-grid { grid-template-columns: 1fr; }
  .related-posts { padding-left: 24px; padding-right: 24px; }
  .pagination { padding-left: 24px; padding-right: 24px; }

  /* Single */
  .single-hero { min-height: 380px; }
  .single-hero h1 { font-size: 28px; }
  .single-hero-content { padding: 40px 24px; }

  .single-layout {
    padding: 32px 24px 24px;
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .single-content { font-size: 16px; }

  .single-sidebar {
    display: flex;
    flex-direction: column;
  }

  .share-bar { flex-direction: column; align-items: flex-start; gap: 14px; }

  /* Comments */
  .comments-section { padding: 0 24px 60px; }
  .comment-respond { padding: 24px; }
  .comment-form-row { grid-template-columns: 1fr; }
  .comment-list .children { padding-left: 20px; }

  /* Category / Search */
  .category-header,
  .search-header { padding: 72px 24px 48px; }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    padding: 0 24px;
    gap: 32px;
  }

  .footer-bottom {
    padding: 20px 24px;
    flex-direction: column;
    text-align: center;
  }

  .page-404 { padding: 80px 24px; }
  .page-404 h1 { font-size: 64px; }
}

/* ══════════════════════════════════════
   ACCESSIBILITY
══════════════════════════════════════ */
:focus-visible {
  outline: 2px solid var(--gold-400);
  outline-offset: 2px;
}

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