/*
Theme Name: Arts & Hangar Blog
Theme URI: https://arts-hangar.fr
Author: Arts & Hangar
Author URI: https://arts-hangar.fr
Description: Thème WordPress pour le blog Arts & Hangar — Galerie d'Art Contemporain, Sculptures Rétrofuturistes & Totems Céramique. Reproduit fidèlement le style du site vitrine.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
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: arts-hangar
Tags: blog, art, gallery, custom-menu, featured-images, translation-ready
*/

/* =============================================================================
   CSS Variables
   ============================================================================= */

:root {
  --color-white: #ffffff;
  --color-off-white: #fafafa;
  --color-light-gray: #f5f5f5;
  --color-gray: #e5e5e5;
  --color-medium-gray: #888888;
  --color-dark-gray: #555555;
  --color-charcoal: #222222;
  --color-black: #111111;
  --color-gold: #b8860b;
  --color-amber-50: #fffbeb;
  --color-amber-700: #b45309;
  --color-amber-800: #92400e;
  --color-stone-50: #fafaf9;
  --color-stone-100: #f5f5f4;
  --color-stone-200: #e7e5e4;
  --color-stone-300: #d6d3d1;
  --color-stone-400: #a8a29e;
  --color-stone-500: #78716c;
  --color-stone-700: #44403c;
  --color-stone-800: #292524;
  --color-stone-900: #1c1917;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #d1d5db;
  --color-gray-400: #9ca3af;
  --color-gray-500: #6b7280;
  --color-gray-600: #4b5563;
  --color-gray-900: #111827;
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-elegant: cubic-bezier(0.25, 0.1, 0.25, 1);
}

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

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  color: var(--color-charcoal);
  background-color: var(--color-white);
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.3;
  color: var(--color-black);
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--color-gold);
}

button {
  font-family: inherit;
  cursor: pointer;
}

::selection {
  background-color: var(--color-charcoal);
  color: var(--color-white);
}

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

.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex-grow: 1;
}

.container {
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-wide {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (min-width: 640px) {
  .container,
  .container-wide {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (min-width: 1024px) {
  .container,
  .container-wide {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

/* =============================================================================
   Typography Utilities
   ============================================================================= */

.font-display {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  letter-spacing: 0.03em;
}

.font-sans {
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
}

.text-balance {
  text-wrap: balance;
}

.leading-relaxed-plus {
  line-height: 1.9;
}

/* =============================================================================
   Header — exact replica of static site (React/Tailwind)
   ============================================================================= */

/* fixed top-0 left-0 right-0 z-50 transition-all duration-300 bg-white/95 */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.3s ease;
  background-color: rgba(255, 255, 255, 0.95);
}

/* bg-white shadow-sm (on scroll) */
.site-header.scrolled {
  background-color: var(--color-white);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* flex items-center justify-between h-20 */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem; /* h-20 */
}

/* font-display text-xl font-semibold text-gray-900 hover:text-gray-900 */
.site-brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem; /* text-xl */
  font-weight: 600;   /* font-semibold */
  color: var(--color-gray-900);
  letter-spacing: 0.03em;
}

.site-brand:hover {
  color: var(--color-gray-900);
}

/* ── Desktop Navigation ── hidden lg:flex items-center space-x-8 */
.main-navigation {
  display: none;
}

.main-navigation ul {
  display: flex;
  align-items: center;
  gap: 2rem; /* space-x-8 */
  list-style: none;
  margin: 0;
  padding: 0;
}

/* text-sm font-medium transition-colors duration-300 text-gray-600 hover:text-gray-900 */
.main-navigation a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-gray-600);
  transition: color 0.3s ease;
}

.main-navigation a:hover,
.main-navigation a.active,
.main-navigation .current-menu-item > a {
  color: var(--color-gray-900);
}

@media (min-width: 1024px) {
  .main-navigation {
    display: flex;
    align-items: center;
  }
}

/* ── Header Actions (right side) ── flex items-center gap-3 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem; /* gap-3 */
}

/* ── Language Toggle ── hidden lg:flex text-xs font-medium uppercase tracking-[0.15em]
   border border-gray-300 hover:border-gray-900 px-3 py-1.5 text-gray-600 hover:text-gray-900 */
.lang-toggle {
  display: none;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;      /* text-xs */
  font-weight: 500;        /* font-medium */
  text-transform: uppercase;
  letter-spacing: 0.15em;  /* tracking-[0.15em] */
  border: 1px solid var(--color-gray-300);
  padding: 0.375rem 0.75rem; /* px-3 py-1.5 */
  transition: all 0.2s ease;
  color: var(--color-gray-600);
  background: transparent;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
}

.lang-toggle:hover {
  border-color: var(--color-gray-900);
  color: var(--color-gray-900);
}

@media (min-width: 1024px) {
  .lang-toggle {
    display: flex;
  }
}

/* ── Hamburger Toggle ── lg:hidden p-2 */
.menu-toggle {
  display: flex;
  padding: 0.5rem; /* p-2 */
  background: none;
  border: none;
  cursor: pointer;
}

/* w-6 h-5 relative flex flex-col justify-between */
.menu-toggle .hamburger {
  width: 1.5rem;    /* w-6 */
  height: 1.25rem;  /* h-5 */
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* w-full h-0.5 bg-gray-900 transition-all duration-300 */
.menu-toggle .hamburger span {
  width: 100%;
  height: 2px; /* h-0.5 = 0.125rem ≈ 2px */
  background-color: var(--color-gray-900);
  transition: all 0.3s ease;
  display: block;
}

/* rotate-45 translate-y-2 */
.menu-toggle.active .hamburger span:nth-child(1) {
  transform: rotate(45deg) translateY(0.5rem);
}

/* opacity-0 */
.menu-toggle.active .hamburger span:nth-child(2) {
  opacity: 0;
}

/* -rotate-45 -translate-y-2 */
.menu-toggle.active .hamburger span:nth-child(3) {
  transform: rotate(-45deg) translateY(-0.5rem);
}

@media (min-width: 1024px) {
  .menu-toggle {
    display: none;
  }
}

/* ── Mobile Navigation ──
   lg:hidden transition-all duration-300 overflow-hidden
   max-h-0 → max-h-screen when open */
.mobile-navigation {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.mobile-navigation.active {
  max-height: 100vh;
}

@media (min-width: 1024px) {
  .mobile-navigation {
    display: none !important;
  }
}

/* bg-white border-t border-gray-100 py-6 */
.mobile-nav-inner {
  background-color: var(--color-white);
  border-top: 1px solid var(--color-gray-100);
  padding: 1.5rem 0; /* py-6 */
}

/* flex flex-col space-y-4 */
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1rem; /* space-y-4 */
}

/* text-base font-medium py-2 text-gray-600 */
.mobile-nav-link {
  display: block;
  font-size: 1rem;      /* text-base */
  font-weight: 500;     /* font-medium */
  padding: 0.5rem 0;    /* py-2 */
  color: var(--color-gray-600);
}

/* active state: text-gray-900 */
.mobile-nav-link.active {
  color: var(--color-gray-900);
}

/* container mt-6 pt-6 border-t border-gray-100 */
.mobile-nav-info {
  margin-top: 1.5rem;    /* mt-6 */
  padding-top: 1.5rem;   /* pt-6 */
  border-top: 1px solid var(--color-gray-100);
}

/* text-sm text-gray-500 */
.mobile-nav-hours-label {
  font-size: 0.875rem;
  color: var(--color-gray-500);
}

/* text-sm text-gray-900 mt-1 */
.mobile-nav-hours {
  font-size: 0.875rem;
  color: var(--color-gray-900);
  margin-top: 0.25rem;
}

/* text-sm text-gray-500 */
.mobile-nav-hours-note {
  font-size: 0.875rem;
  color: var(--color-gray-500);
}

/* mt-4 text-xs font-medium uppercase tracking-[0.15em] border border-gray-300 px-3 py-1.5 text-gray-600 */
.lang-toggle-mobile {
  margin-top: 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  border: 1px solid var(--color-gray-300);
  padding: 0.375rem 0.75rem;
  color: var(--color-gray-600);
  background: transparent;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
}

/* =============================================================================
   Footer
   ============================================================================= */

.site-footer {
  background-color: var(--color-stone-900);
  color: var(--color-white);
}

.footer-main {
  padding: 3.5rem 0;
}

@media (min-width: 768px) {
  .footer-main {
    padding: 4rem 0;
  }
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
  }
}

.footer-brand {
  grid-column: span 2;
}

@media (min-width: 768px) {
  .footer-brand {
    grid-column: span 1;
  }
}

.footer-brand .brand-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--color-white);
  display: inline-block;
  margin-bottom: 1rem;
}

.footer-brand .brand-tagline {
  color: var(--color-stone-400);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-social a {
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--color-stone-700);
  border-radius: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  color: var(--color-stone-400);
}

.footer-social a:hover {
  border-color: var(--color-stone-500);
  background-color: var(--color-stone-800);
  color: var(--color-white);
}

.footer-social svg {
  width: 0.875rem;
  height: 0.875rem;
}

.footer-col h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-stone-300);
  margin-bottom: 1rem;
}

.footer-col nav {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-col nav a {
  color: var(--color-stone-400);
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.footer-col nav a:hover {
  color: var(--color-white);
}

.footer-contact p {
  font-size: 0.875rem;
  margin-bottom: 0;
}

.footer-contact .hours {
  color: var(--color-white);
}

.footer-contact .hours-note {
  color: var(--color-stone-500);
}

.footer-contact a {
  color: var(--color-stone-400);
  font-size: 0.875rem;
  display: block;
  margin-top: 0.75rem;
  transition: color 0.2s ease;
}

.footer-contact a:hover {
  color: var(--color-white);
}

.footer-contact .address {
  color: var(--color-stone-500);
  font-size: 0.75rem;
  line-height: 1.6;
  margin-top: 0.75rem;
}

.footer-contact .address:hover {
  color: var(--color-stone-300);
}

.footer-bottom {
  border-top: 1px solid var(--color-stone-800);
  padding: 1rem 0;
}

.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--color-stone-500);
}

@media (min-width: 640px) {
  .footer-bottom-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* =============================================================================
   Buttons
   ============================================================================= */

.btn-primary {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  background: var(--color-charcoal);
  color: var(--color-white);
  border: 2px solid var(--color-charcoal);
  text-align: center;
}

.btn-primary:hover {
  background: transparent;
  color: var(--color-charcoal);
}

.btn-outline {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  background: transparent;
  color: var(--color-charcoal);
  border: 2px solid var(--color-charcoal);
  text-align: center;
}

.btn-outline:hover {
  background: var(--color-charcoal);
  color: var(--color-white);
}

.btn-light {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  background: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white);
  text-align: center;
}

.btn-light:hover {
  background: var(--color-white);
  color: var(--color-charcoal);
}

/* =============================================================================
   Blog Hero Section
   ============================================================================= */

.blog-hero {
  position: relative;
  height: 50vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-stone-900);
}

.blog-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.30), rgba(0, 0, 0, 0.50), rgba(0, 0, 0, 0.70));
}

.blog-hero .hero-image {
  position: absolute;
  inset: 0;
}

.blog-hero .hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.blog-hero .hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 1.5rem;
  max-width: 56rem;
  margin: 0 auto;
}

.blog-hero .hero-label {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  margin-bottom: 2rem;
}

.blog-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  color: var(--color-white);
  font-weight: 500;
  margin-bottom: 1.5rem;
  line-height: 1;
}

.blog-hero .hero-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 36rem;
  margin: 0 auto;
  letter-spacing: 0.025em;
}

/* =============================================================================
   Blog Archive / Listing
   ============================================================================= */

.blog-listing {
  padding: 6rem 0;
  background-color: var(--color-white);
}

@media (min-width: 768px) {
  .blog-listing {
    padding: 9rem 0;
  }
}

.blog-listing .section-header {
  margin-bottom: 3.5rem;
}

.blog-listing .section-label {
  color: var(--color-amber-700);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  margin-bottom: 1.25rem;
  display: block;
}

.blog-listing .section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  color: var(--color-gray-900);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.blog-listing .section-divider {
  width: 4rem;
  height: 1px;
  background-color: var(--color-amber-700);
  margin-top: 1.25rem;
}

.posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

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

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

/* =============================================================================
   Post Card (Archive)
   ============================================================================= */

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.post-card .card-thumbnail {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: var(--color-stone-50);
}

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

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

.post-card .card-thumbnail .no-thumb {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-stone-100);
}

.post-card .card-thumbnail .no-thumb svg {
  width: 3rem;
  height: 3rem;
  color: var(--color-stone-300);
}

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

.post-card .card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.post-card .card-category {
  color: var(--color-amber-700);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 500;
}

.post-card .card-category:hover {
  color: var(--color-amber-800);
}

.post-card .card-date {
  color: var(--color-gray-400);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.post-card .card-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.375rem;
  font-weight: 500;
  color: var(--color-gray-900);
  line-height: 1.3;
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
}

.post-card .card-title a {
  color: inherit;
}

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

.post-card .card-excerpt {
  color: var(--color-gray-600);
  font-size: 0.9375rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
  flex: 1;
}

.post-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-gray-900);
  transition: gap 0.3s ease;
  margin-top: auto;
}

.post-card .card-link:hover {
  gap: 1.25rem;
  color: var(--color-gray-900);
}

.post-card .card-link svg {
  width: 1rem;
  height: 1rem;
}

/* =============================================================================
   Featured Post (First post in archive)
   ============================================================================= */

.post-card.featured {
  grid-column: 1 / -1;
}

.post-card.featured .card-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

@media (min-width: 768px) {
  .post-card.featured .card-inner {
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }
}

.post-card.featured .card-thumbnail {
  aspect-ratio: 16 / 10;
}

@media (min-width: 768px) {
  .post-card.featured .card-thumbnail {
    aspect-ratio: auto;
    min-height: 400px;
  }
}

.post-card.featured .card-body {
  padding: 2rem;
  justify-content: center;
  background-color: var(--color-stone-50);
}

@media (min-width: 768px) {
  .post-card.featured .card-body {
    padding: 3rem;
  }
}

.post-card.featured .card-title {
  font-size: 1.75rem;
}

@media (min-width: 768px) {
  .post-card.featured .card-title {
    font-size: 2.25rem;
  }
}

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

.single-post-hero {
  position: relative;
  height: 70vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.single-post-hero .hero-image {
  position: absolute;
  inset: 0;
}

.single-post-hero .hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.single-post-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.30), rgba(0, 0, 0, 0.50), rgba(0, 0, 0, 0.70));
}

.single-post-hero .hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 1.5rem;
  max-width: 56rem;
  margin: 0 auto;
}

.single-post-hero .hero-category {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  margin-bottom: 2rem;
}

.single-post-hero .hero-category:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
}

.single-post-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 5vw, 4rem);
  color: var(--color-white);
  font-weight: 500;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.single-post-hero .hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

.single-post-hero .hero-meta .separator {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
}

.single-post-hero .hero-meta a {
  color: rgba(255, 255, 255, 0.8);
}

.single-post-hero .hero-meta a:hover {
  color: var(--color-white);
}

/* Single Post Content */
.single-post-content {
  padding: 5rem 0;
}

@media (min-width: 768px) {
  .single-post-content {
    padding: 6rem 0;
  }
}

.single-post-content .post-content-inner {
  max-width: 48rem;
  margin: 0 auto;
}

/* Post Content Typography (Gutenberg & Classic Editor) */
.entry-content {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--color-gray-600);
}

.entry-content > * + * {
  margin-top: 1.75rem;
}

.entry-content h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  font-weight: 500;
  color: var(--color-gray-900);
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.entry-content h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-gray-900);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.entry-content h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-gray-900);
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.entry-content p {
  margin-bottom: 0;
}

.entry-content a {
  color: var(--color-amber-700);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(180, 83, 9, 0.3);
  transition: text-decoration-color 0.3s ease;
}

.entry-content a:hover {
  color: var(--color-amber-800);
  text-decoration-color: var(--color-amber-700);
}

.entry-content strong {
  font-weight: 600;
  color: var(--color-charcoal);
}

.entry-content em {
  font-style: italic;
}

.entry-content blockquote {
  border-left: 3px solid var(--color-amber-700);
  padding: 1.5rem 2rem;
  margin: 2.5rem 0;
  background-color: var(--color-stone-50);
}

.entry-content blockquote p {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-style: italic;
  color: var(--color-gray-900);
  line-height: 1.6;
}

.entry-content blockquote cite {
  display: block;
  margin-top: 1rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.875rem;
  font-style: normal;
  color: var(--color-gray-500);
  letter-spacing: 0.05em;
}

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

.entry-content ul {
  list-style-type: disc;
}

.entry-content ol {
  list-style-type: decimal;
}

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

.entry-content li::marker {
  color: var(--color-amber-700);
}

.entry-content figure {
  margin: 2.5rem 0;
}

.entry-content figure img {
  width: 100%;
  height: auto;
}

.entry-content figcaption {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: var(--color-gray-500);
  text-align: center;
  font-style: italic;
}

.entry-content pre {
  background-color: var(--color-gray-900);
  color: var(--color-stone-300);
  padding: 1.5rem;
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.6;
  border-radius: 0;
}

.entry-content code {
  background-color: var(--color-stone-100);
  padding: 0.125rem 0.375rem;
  font-size: 0.875em;
  color: var(--color-charcoal);
}

.entry-content pre code {
  background: none;
  padding: 0;
  color: inherit;
}

.entry-content hr {
  border: none;
  height: 1px;
  background-color: var(--color-gray-200);
  margin: 3rem 0;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}

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

.entry-content th {
  font-weight: 600;
  color: var(--color-gray-900);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* WordPress Alignment Classes */
.entry-content .alignwide {
  margin-left: -2rem;
  margin-right: -2rem;
  max-width: calc(100% + 4rem);
  width: calc(100% + 4rem);
}

.entry-content .alignfull {
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  max-width: 100vw;
  width: 100vw;
}

.entry-content .aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.entry-content .alignleft {
  float: left;
  margin-right: 2rem;
  margin-bottom: 1rem;
  max-width: 50%;
}

.entry-content .alignright {
  float: right;
  margin-left: 2rem;
  margin-bottom: 1rem;
  max-width: 50%;
}

/* WordPress Gallery */
.entry-content .wp-block-gallery {
  display: grid;
  gap: 0.5rem;
}

.entry-content .wp-block-gallery.columns-2 {
  grid-template-columns: repeat(2, 1fr);
}

.entry-content .wp-block-gallery.columns-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* =============================================================================
   Post Footer (Tags, Author, Nav)
   ============================================================================= */

.post-footer {
  max-width: 48rem;
  margin: 0 auto;
  padding-top: 3rem;
  border-top: 1px solid var(--color-gray-200);
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 3rem;
}

.post-tags a {
  display: inline-block;
  padding: 0.375rem 1rem;
  border: 1px solid var(--color-gray-300);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-gray-600);
  transition: all 0.2s ease;
}

.post-tags a:hover {
  border-color: var(--color-gray-900);
  color: var(--color-gray-900);
}

/* Author Box */
.author-box {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 2rem;
  background-color: var(--color-stone-50);
  margin-bottom: 3rem;
}

.author-box .author-avatar {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.author-box .author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-box .author-info h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--color-gray-900);
  margin-bottom: 0.5rem;
}

.author-box .author-info p {
  font-size: 0.875rem;
  color: var(--color-gray-600);
  line-height: 1.6;
}

/* Post Navigation */
.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-top: 1px solid var(--color-gray-200);
  border-bottom: 1px solid var(--color-gray-200);
  max-width: 48rem;
  margin: 0 auto 4rem;
}

.post-navigation .nav-item {
  display: flex;
  flex-direction: column;
}

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

.post-navigation .nav-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-gray-400);
  margin-bottom: 0.5rem;
}

.post-navigation .nav-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.125rem;
  color: var(--color-gray-900);
  font-weight: 500;
  transition: color 0.3s ease;
}

.post-navigation .nav-title:hover {
  color: var(--color-amber-700);
}

/* =============================================================================
   Related Posts
   ============================================================================= */

.related-posts {
  padding: 6rem 0;
  background-color: var(--color-stone-50);
}

.related-posts .section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.related-posts .section-label {
  color: var(--color-amber-700);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  margin-bottom: 1rem;
  display: block;
}

.related-posts .section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  font-weight: 500;
  color: var(--color-gray-900);
}

.related-posts .section-divider {
  width: 3rem;
  height: 1px;
  background-color: var(--color-amber-700);
  margin: 1.5rem auto 0;
}

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

.comments-section {
  padding: 4rem 0;
  background-color: var(--color-white);
}

.comments-inner {
  max-width: 48rem;
  margin: 0 auto;
}

.comments-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--color-gray-900);
  margin-bottom: 0.5rem;
}

.comments-divider {
  width: 3rem;
  height: 1px;
  background-color: var(--color-amber-700);
  margin-bottom: 2.5rem;
}

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

.comment-list .comment {
  padding: 2rem 0;
  border-bottom: 1px solid var(--color-gray-100);
}

.comment-list .comment:last-child {
  border-bottom: none;
}

.comment-list .children {
  list-style: none;
  padding-left: 2rem;
  margin: 0;
  border-left: 2px solid var(--color-gray-100);
}

.comment-body {
  display: flex;
  gap: 1.25rem;
}

.comment-body .avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.comment-content-wrap {
  flex: 1;
}

.comment-author-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-gray-900);
}

.comment-date {
  font-size: 0.75rem;
  color: var(--color-gray-400);
  letter-spacing: 0.05em;
  margin-top: 0.125rem;
}

.comment-text {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  color: var(--color-gray-600);
  line-height: 1.7;
}

.comment-text p {
  margin-bottom: 0.5rem;
}

.comment-reply-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-gray-400);
  font-weight: 500;
  transition: color 0.2s ease;
}

.comment-reply-link:hover {
  color: var(--color-gray-900);
}

/* Comment Form */
.comment-respond {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--color-gray-200);
}

.comment-respond .comment-reply-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-gray-900);
  margin-bottom: 1.5rem;
}

.comment-respond label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-gray-500);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-gray-300);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9375rem;
  color: var(--color-charcoal);
  transition: border-color 0.2s ease;
  background-color: var(--color-white);
  outline: none;
}

.comment-respond input[type="text"]:focus,
.comment-respond input[type="email"]:focus,
.comment-respond input[type="url"]:focus,
.comment-respond textarea:focus {
  border-color: var(--color-gray-900);
}

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

.comment-respond .comment-form-comment {
  margin-bottom: 1.5rem;
}

.comment-respond .comment-form-author,
.comment-respond .comment-form-email,
.comment-respond .comment-form-url {
  margin-bottom: 1.25rem;
}

.comment-respond .form-submit {
  margin-top: 1.5rem;
}

.comment-respond .form-submit input[type="submit"] {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  background: var(--color-charcoal);
  color: var(--color-white);
  border: 2px solid var(--color-charcoal);
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  transition: all 0.3s ease;
}

.comment-respond .form-submit input[type="submit"]:hover {
  background: transparent;
  color: var(--color-charcoal);
}

/* =============================================================================
   Pagination
   ============================================================================= */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding-top: 4rem;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-gray-600);
  border: 1px solid var(--color-gray-200);
  transition: all 0.2s ease;
}

.pagination .page-numbers:hover {
  border-color: var(--color-gray-900);
  color: var(--color-gray-900);
}

.pagination .page-numbers.current {
  background-color: var(--color-charcoal);
  border-color: var(--color-charcoal);
  color: var(--color-white);
}

.pagination .page-numbers.prev,
.pagination .page-numbers.next {
  width: auto;
  padding: 0 1rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

/* =============================================================================
   Sidebar / Widgets
   ============================================================================= */

.sidebar .widget {
  margin-bottom: 2.5rem;
}

.sidebar .widget-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-gray-900);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-gray-200);
}

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

.sidebar .widget li {
  padding: 0.375rem 0;
}

.sidebar .widget a {
  font-size: 0.9375rem;
  color: var(--color-gray-600);
  transition: color 0.2s ease;
}

.sidebar .widget a:hover {
  color: var(--color-gray-900);
}

/* Search Widget */
.widget_search .search-form {
  display: flex;
}

.widget_search .search-field {
  flex: 1;
  padding: 0.625rem 1rem;
  border: 1px solid var(--color-gray-300);
  border-right: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.widget_search .search-field:focus {
  border-color: var(--color-gray-900);
}

.widget_search .search-submit {
  padding: 0.625rem 1rem;
  background: var(--color-charcoal);
  color: var(--color-white);
  border: 1px solid var(--color-charcoal);
  font-size: 0.875rem;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  transition: all 0.2s ease;
}

.widget_search .search-submit:hover {
  background: transparent;
  color: var(--color-charcoal);
}

/* =============================================================================
   Search Results & 404
   ============================================================================= */

.search-results-header,
.error-404-content {
  text-align: center;
  padding: 4rem 0;
}

.search-results-header h1,
.error-404-content h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  color: var(--color-gray-900);
  margin-bottom: 1rem;
}

.error-404-content .error-code {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(5rem, 15vw, 12rem);
  color: var(--color-stone-200);
  line-height: 1;
  margin-bottom: 1rem;
}

.error-404-content p {
  font-size: 1.125rem;
  color: var(--color-gray-500);
  max-width: 30rem;
  margin: 0 auto 2rem;
}

/* =============================================================================
   Animations
   ============================================================================= */

.fade-in {
  animation: fadeIn 0.8s ease forwards;
}

.fade-in-up {
  animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pageEnter {
  from { opacity: 0; }
  to { opacity: 1; }
}

.page-transition {
  animation: pageEnter 0.6s ease;
}

/* =============================================================================
   Hover Effects
   ============================================================================= */

.hover-lift {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* =============================================================================
   Underline Animation
   ============================================================================= */

.line-animate {
  position: relative;
}

.line-animate::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-gold);
  transition: width 0.3s ease;
}

.line-animate:hover::after {
  width: 100%;
}

/* =============================================================================
   Screen Reader Text (Accessibility)
   ============================================================================= */

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: var(--color-light-gray);
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  clip-path: none;
  color: var(--color-charcoal);
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* =============================================================================
   WordPress Core Styles
   ============================================================================= */

.wp-caption {
  max-width: 100%;
  margin-bottom: 1.5rem;
}

.wp-caption img {
  display: block;
  max-width: 100%;
}

.wp-caption-text {
  font-size: 0.8125rem;
  color: var(--color-gray-500);
  text-align: center;
  font-style: italic;
  margin-top: 0.5rem;
}

.sticky .post-card {
  border-left: 3px solid var(--color-amber-700);
}

.gallery-caption {
  font-size: 0.8125rem;
  color: var(--color-gray-500);
}

.bypostauthor > .comment-body {
  background-color: var(--color-stone-50);
  padding: 1rem;
}
