/*
Theme Name: Top Dog Decks Blog
Theme URI: https://blog.topdogdecks.com
Author: Top Dog Decks
Author URI: https://topdogdecks.com
Description: The official blog theme for Top Dog Decks - matching the main site's design. Barlow Condensed display font, DM Sans body, dark header with lime-green accent, off-white background.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: topdog-decks-blog
Tags: blog, tcg, trading-cards, custom-colors, custom-logo, featured-images, threaded-comments
*/

/* ============================================================
   DESIGN TOKENS — exact match to topdogdecks.com index.html
   ============================================================ */
:root {
  /* Brand Colours */
  --purple:       #734EAC;
  --purple-dark:  #5a3b8a;
  --purple-light: #8e6cc5;
  --green:        #B2DC34;
  --green-dark:   #96bd1e;
  --red:          #F1484D;
  --blue:         #72D1E5;

  /* Neutrals */
  --black:        #1a1a1a;
  --off-black:    #222222;
  --white:        #ffffff;
  --off-white:    #f8f7f4;
  --grey-100:     #f0ede8;
  --grey-200:     #d8d4cc;
  --grey-600:     #6b6560;

  /* Typography */
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  /* Radii */
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-full: 9999px;

  /* Layout */
  --container-max: 1100px;
  --sidebar-width: 300px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--black);
  background: var(--off-white);
  overflow-x: hidden;
}

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

a {
  color: var(--purple);
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover {
  color: var(--purple-dark);
}

ul, ol {
  padding-left: 1.5rem;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.1;
  color: var(--black);
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p { margin-bottom: var(--space-sm); }
p:last-child { margin-bottom: 0; }

blockquote {
  border-left: 4px solid var(--green);
  padding: var(--space-sm) var(--space-md);
  margin: var(--space-md) 0;
  background: var(--grey-100);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--off-black);
}

blockquote cite {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--grey-600);
  font-style: normal;
  font-weight: 600;
}

code {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  background: var(--grey-100);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.875em;
}

pre {
  background: var(--off-black);
  color: var(--green);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: var(--space-md) 0;
}

pre code {
  background: none;
  padding: 0;
  font-size: 0.875rem;
  color: inherit;
}

hr {
  border: none;
  border-top: 2px solid var(--grey-200);
  margin: var(--space-lg) 0;
}

/* ============================================================
   UTILITY
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.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;
}

.section-label {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: var(--space-xs);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 2.8rem);
  text-transform: uppercase;
  color: var(--black);
  line-height: 1.1;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--green);
  color: var(--black);
  border-color: var(--green);
}

.btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: var(--black);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(178, 220, 52, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--purple);
  border-color: var(--purple-light);
}

.btn-secondary:hover {
  background: var(--purple);
  color: var(--white);
  border-color: var(--purple);
  transform: translateY(-2px);
}

/* Scroll animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26, 26, 26, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--green);
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 4px 30px rgba(0,0,0,0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 70px;
  gap: var(--space-sm);
}

/* Site logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

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

.site-logo .logo-text {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1;
}

.site-logo .logo-sub {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--green);
  text-transform: uppercase;
  font-weight: 600;
}

.custom-logo-link {
    margin-right: auto;
}

/* Primary nav */
.main-navigation {
  display: flex;
  align-items: center;
}

.main-navigation ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.main-navigation ul li a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  transition: all 0.25s ease;
  text-decoration: none;
  display: block;
}

/* Ensure uppercase survives WordPress menu walker wrapping */
.main-navigation a,
.main-navigation a span {
  text-transform: uppercase;
}

.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a,
.main-navigation ul li.current_page_item > a {
  background: var(--purple);
  color: var(--white);
}

.main-navigation ul li.nav-cta > a {
  background: var(--green);
  color: var(--black);
  font-weight: 800;
}

.main-navigation ul li.nav-cta > a:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--white);
}

.menu-toggle svg {
  display: block;
}

/* ============================================================
   BLOG HERO / PAGE BANNER
   ============================================================ */
.blog-hero {
  background: var(--black);
  position: relative;
  overflow: hidden;
  padding: var(--space-xl) 0;
  text-align: center;
}

.blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(115, 78, 172, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(114, 209, 229, 0.10) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 80%, rgba(178, 220, 52, 0.08) 0%, transparent 50%);
  z-index: 1;
}

.blog-hero .hero-stripes {
  position: absolute;
  top: -20%; right: -10%;
  width: 50%; height: 140%;
  z-index: 0;
  opacity: 0.05;
  transform: rotate(-12deg);
}

.blog-hero .hero-stripes span {
  display: block;
  height: 33.33%;
}

.blog-hero .hero-stripes span:nth-child(1) { background: var(--blue); }
.blog-hero .hero-stripes span:nth-child(2) { background: var(--green); }
.blog-hero .hero-stripes span:nth-child(3) { background: var(--red); }

.blog-hero-content {
  position: relative;
  z-index: 2;
}

.blog-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(178, 220, 52, 0.15);
  border: 1px solid rgba(178, 220, 52, 0.3);
  color: var(--green);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-sm);
}

.blog-hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  color: var(--white);
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: var(--space-sm);
}

.blog-hero h1 .accent {
  color: var(--green);
}

.blog-hero p {
  color: var(--grey-200);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Single post / page hero */
.page-hero {
  background: var(--black);
  position: relative;
  overflow: hidden;
  padding: var(--space-xl) 0 var(--space-lg);
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(178, 220, 52, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(115, 78, 172, 0.06) 0%, transparent 50%);
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.post-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(115, 78, 172, 0.2);
  border: 1px solid rgba(115, 78, 172, 0.4);
  color: var(--purple-light);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-sm);
  text-decoration: none;
  transition: all 0.25s ease;
}

.post-category-badge:hover {
  background: var(--purple);
  color: var(--white);
  border-color: var(--purple);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--white);
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: var(--space-sm);
}

.post-meta-hero {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.post-meta-hero .meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--grey-200);
  font-size: 0.9rem;
}

.post-meta-hero .meta-item a {
  color: var(--green);
  font-weight: 600;
  text-decoration: none;
}

.post-meta-hero .meta-item a:hover {
  color: var(--green-dark);
}

.meta-sep {
  color: var(--grey-600);
}

/* ============================================================
   FEATURED IMAGE (single post below hero)
   ============================================================ */
.post-featured-image {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  background: var(--black);
}

.post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================================================
   MAIN CONTENT LAYOUT
   ============================================================ */
.site-main {
  padding: var(--space-xl) 0;
}

.content-sidebar-wrap {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: var(--space-lg);
  align-items: start;
}

/* ============================================================
   BLOG POSTS GRID (archive / home)
   ============================================================ */
.posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

/* Post Card */
.post-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 2px solid var(--grey-100);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

.post-card-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--grey-100);
}

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

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

.post-card-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--grey-100), var(--grey-200));
  font-size: 3rem;
}

.post-card-stripe {
  height: 4px;
  background: linear-gradient(90deg, var(--purple), var(--blue));
}

.post-card-stripe.stripe-green {
  background: linear-gradient(90deg, var(--green), var(--blue));
}

.post-card-body {
  padding: var(--space-md);
}

.post-card-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: var(--space-xs);
}

.cat-tag {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple);
  text-decoration: none;
  transition: color 0.2s ease;
}

.cat-tag:hover {
  color: var(--purple-dark);
}

.post-card-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: var(--space-xs);
}

.post-card-title a {
  color: var(--black);
  text-decoration: none;
}

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

.post-card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  font-size: 0.85rem;
  color: var(--grey-600);
}

.post-card-excerpt {
  color: var(--grey-600);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: var(--space-sm);
}

.post-card-footer {
  padding: var(--space-sm) var(--space-md);
  border-top: 1px solid var(--grey-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.read-more-link {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--purple);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.2s ease;
}

.read-more-link:hover {
  color: var(--purple-dark);
  gap: 0.7rem;
}

.post-card-read-time {
  font-size: 0.82rem;
  color: var(--grey-600);
}

/* Featured post (first post, full-width) */
.post-card.is-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.post-card.is-featured .post-card-thumb {
  aspect-ratio: auto;
  min-height: 260px;
}

.post-card.is-featured .post-card-stripe {
  display: none;
}

/* ============================================================
   SINGLE POST CONTENT
   ============================================================ */
.post-content-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 2px solid var(--grey-100);
  overflow: hidden;
}

.post-content {
  padding: var(--space-lg);
}

/* Rich text content styles */
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
  scroll-margin-top: 90px;
}

.entry-content h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  border-bottom: 3px solid var(--green);
  padding-bottom: 0.4rem;
}

.entry-content h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  color: var(--purple);
}

.entry-content p {
  margin-bottom: var(--space-sm);
  color: var(--off-black);
  line-height: 1.8;
}

.entry-content ul,
.entry-content ol {
  margin-bottom: var(--space-sm);
  padding-left: 1.5rem;
}

.entry-content li {
  margin-bottom: 0.4rem;
  line-height: 1.7;
}

.entry-content ul li::marker {
  color: var(--green);
  font-size: 1.2em;
}

.entry-content ol li::marker {
  color: var(--purple);
  font-weight: 700;
  font-family: var(--font-display);
}

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

.entry-content a:hover {
  color: var(--purple-dark);
}

.entry-content img {
  border-radius: var(--radius-md);
  margin: var(--space-md) 0;
  max-width: 100%;
}

.entry-content .wp-caption {
  max-width: 100%;
}

.entry-content .wp-caption-text {
  text-align: center;
  font-size: 0.875rem;
  color: var(--grey-600);
  margin-top: 0.5rem;
  font-style: italic;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-md) 0;
  font-size: 0.95rem;
}

.entry-content th,
.entry-content td {
  padding: 0.6rem 1rem;
  border: 1px solid var(--grey-200);
  text-align: left;
}

.entry-content th {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
}

.entry-content tr:nth-child(even) td {
  background: var(--grey-100);
}

/* Post tags */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 2px solid var(--grey-100);
}

.post-tag {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-600);
  background: var(--grey-100);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid var(--grey-200);
}

.post-tag:hover {
  background: var(--purple);
  color: var(--white);
  border-color: var(--purple);
}

/* ============================================================
   AUTHOR BOX
   ============================================================ */
.author-box {
  background: var(--black);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg);
  margin-top: var(--space-md);
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--space-md);
  align-items: center;
  position: relative;
  overflow: hidden;
}

.author-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(178, 220, 52, 0.05) 0%, transparent 60%);
}

.author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--green);
  object-fit: cover;
  position: relative;
  z-index: 1;
}

.author-info {
  position: relative;
  z-index: 1;
}

.author-name-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 700;
}

.author-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--white);
  margin: 0.15rem 0;
}

.author-bio {
  color: var(--grey-200);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

/* ============================================================
   POST NAVIGATION (prev/next)
   ============================================================ */
.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.nav-post {
  background: var(--white);
  border: 2px solid var(--grey-100);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  text-decoration: none;
  transition: all 0.25s ease;
}

.nav-post:hover {
  border-color: var(--purple);
  box-shadow: 0 4px 20px rgba(115,78,172,0.15);
}

.nav-post-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey-600);
  font-weight: 700;
  display: block;
  margin-bottom: 0.25rem;
}

.nav-post-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  text-transform: uppercase;
  color: var(--black);
  line-height: 1.2;
}

.nav-post.next-post {
  text-align: right;
}

/* ============================================================
   COMMENTS
   ============================================================ */
.comments-section {
  background: var(--white);
  border: 2px solid var(--grey-100);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-top: var(--space-md);
}

.comments-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.6rem;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 3px solid var(--green);
}

.comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-lg);
}

.comment-body {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--grey-100);
}

.comment-author img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--green);
}

.comment-meta {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  margin-bottom: 0.4rem;
  flex-wrap: wrap;
}

.comment-author-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  text-transform: uppercase;
  color: var(--black);
}

.comment-date {
  font-size: 0.82rem;
  color: var(--grey-600);
}

.comment-text p {
  font-size: 0.95rem;
  color: var(--off-black);
  line-height: 1.7;
  margin-bottom: 0.4rem;
}

.comment-reply-link {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--purple);
}

/* Comment form */
.comment-respond {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 2px solid var(--grey-100);
}

.comment-reply-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.4rem;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: var(--space-md);
}

.comment-form p {
  margin-bottom: var(--space-sm);
}

.comment-form label {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 0.4rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--grey-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--black);
  background: var(--off-white);
  transition: border-color 0.25s ease;
  outline: none;
}

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

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

.comment-form input[type="submit"] {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--green);
  color: var(--black);
  border: 2px solid var(--green);
  border-radius: var(--radius-full);
  padding: 0.8rem 2rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.comment-form input[type="submit"]:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  transform: translateY(-1px);
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.widget {
  background: var(--white);
  border: 2px solid var(--grey-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.widget-header {
  background: var(--black);
  padding: 0.75rem var(--space-md);
  position: relative;
}

.widget-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--green);
}

.widget-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  margin: 0;
}

.widget-body {
  padding: var(--space-md);
}

/* Search widget */
.widget-search form {
  display: flex;
  gap: 0.4rem;
}

.widget-search input[type="search"] {
  flex: 1;
  padding: 0.6rem 0.9rem;
  border: 2px solid var(--grey-200);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--black);
  background: var(--off-white);
  outline: none;
  transition: border-color 0.25s ease;
}

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

.widget-search button {
  background: var(--green);
  color: var(--black);
  border: none;
  border-radius: var(--radius-full);
  padding: 0.6rem 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s ease;
}

.widget-search button:hover {
  background: var(--green-dark);
}

/* Recent posts widget */
.widget-recent-posts ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget-recent-posts li {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
  padding-bottom: var(--space-sm);
  margin-bottom: var(--space-sm);
  border-bottom: 1px solid var(--grey-100);
}

.widget-recent-posts li:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}

.widget-recent-thumb {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--grey-100);
}

.widget-recent-info {}

.widget-recent-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.widget-recent-title a {
  color: var(--black);
  text-decoration: none;
}

.widget-recent-title a:hover {
  color: var(--purple);
}

.widget-recent-date {
  font-size: 0.8rem;
  color: var(--grey-600);
}

/* Categories widget */
.widget-categories ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget-categories li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--grey-100);
}

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

.widget-categories a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--black);
  text-decoration: none;
  transition: color 0.2s ease;
}

.widget-categories a:hover {
  color: var(--purple);
}

.cat-count {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--white);
  background: var(--purple);
  min-width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
}

/* Tags cloud widget */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag-cloud a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grey-600);
  background: var(--grey-100);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  border: 1px solid var(--grey-200);
  transition: all 0.2s ease;
}

.tag-cloud a:hover {
  background: var(--purple);
  color: var(--white);
  border-color: var(--purple);
}

/* About widget */
.widget-about .about-logo {
  height: 40px;
  margin-bottom: var(--space-sm);
}

.widget-about p {
  font-size: 0.9rem;
  color: var(--grey-600);
  line-height: 1.6;
  margin-bottom: var(--space-sm);
}

.widget-about .widget-about-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.widget-about .widget-about-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--purple);
  text-decoration: none;
}

.widget-about .widget-about-links a:hover {
  color: var(--purple-dark);
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: var(--space-xl);
}

.pagination a,
.pagination span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  border: 2px solid var(--grey-200);
  color: var(--black);
  text-decoration: none;
  transition: all 0.25s ease;
}

.pagination a:hover {
  border-color: var(--purple);
  color: var(--purple);
}

.pagination .current {
  background: var(--purple);
  border-color: var(--purple);
  color: var(--white);
}

.pagination .prev,
.pagination .next {
  width: auto;
  padding: 0 1rem;
  font-size: 0.8rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--off-black);
  border-top: 3px solid var(--purple);
  padding: var(--space-xl) 0 var(--space-md);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer-brand {}

.footer-logo {
  height: 40px;
  width: auto;
  opacity: 0.85;
  margin-bottom: var(--space-sm);
}

.footer-tagline {
  color: var(--grey-200);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 260px;
}

.footer-col-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: var(--space-sm);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grey-200);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--green);
}

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

.footer-copy {
  font-size: 0.82rem;
  color: var(--grey-600);
}

.footer-shop-links {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.footer-shop-links a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grey-200);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-shop-links a:hover {
  color: var(--green);
}

/* ============================================================
   404 PAGE
   ============================================================ */
.error-404-section {
  padding: var(--space-2xl) 0;
  text-align: center;
  background: var(--black);
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.error-404-inner {
  position: relative;
  z-index: 1;
}

.error-404-code {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(6rem, 15vw, 10rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 3px var(--green);
  margin-bottom: var(--space-sm);
}

.error-404-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.error-404-inner p {
  color: var(--grey-200);
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto var(--space-lg);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .content-sidebar-wrap {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 0.75rem 0;
  }

  .main-navigation {
    display: none;
    width: 100%;
    padding-bottom: var(--space-sm);
  }

  .main-navigation.nav-open {
    display: flex;
  }

  .main-navigation ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    width: 100%;
  }

  .main-navigation ul li a {
    padding: 0.6rem 1rem;
    width: 100%;
  }

  .menu-toggle {
    display: block;
  }

  .post-card.is-featured {
    grid-template-columns: 1fr;
  }

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

  .post-navigation {
    grid-template-columns: 1fr;
  }

  .author-box {
    grid-template-columns: 64px 1fr;
  }

  .sidebar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .blog-hero h1 { font-size: 2rem; }
  .page-hero h1 { font-size: 1.8rem; }

  .post-card-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
