/* ====================================================================
   GINA DE ECHEONA — BLOG STYLESHEET
   Brand palette + typography matching ginadeecheona.com
   ==================================================================== */

:root {
  --violet: #5828a5;
  --violet-light: #724eaa;
  --gold: #c7a861;
  --cream: #f6f1ea;
  --black: #0a0a0a;
  --white: #ffffff;
  --gray-50: #fafafa;
  --gray-100: #f0f0f0;
  --gray-300: #d0d0d0;
  --gray-500: #707070;
  --gray-700: #3a3a3a;

  --sans: 'Inter', system-ui, sans-serif;
  --serif: 'Playfair Display', Georgia, serif;
  --script: 'Sacramento', cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--black);
  background: var(--white);
  margin: 0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   HEADER (matches main site visual pattern)
   ============================================================ */
.blog-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid rgba(10, 10, 10, 0.06);
}
.blog-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  line-height: 1;
  color: var(--black);
  flex-shrink: 0;
}
.logo .diamond-mark {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
  transition: transform 0.4s ease;
}
.logo:hover .diamond-mark {
  transform: rotate(-8deg) scale(1.05);
}
.logo .logo-name {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 32px;
  line-height: 1;
  color: var(--black);
  letter-spacing: -0.005em;
  white-space: nowrap;
}

/* Nav-pill — white capsule like main site */
.blog-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  background: var(--white);
  padding: 14px 24px;
  border-radius: 100px;
  box-shadow: 0 2px 12px rgba(10, 10, 10, 0.06);
}
.blog-nav a {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--black);
  text-decoration: none;
  transition: color 0.25s ease;
  white-space: nowrap;
  position: relative;
}
.blog-nav a:hover { color: var(--violet); }
.blog-nav a.is-active {
  color: var(--violet);
}
.blog-nav a.is-active::after {
  content: '•';
  margin-left: 4px;
  color: var(--violet);
}

/* Hamburger button — hidden on desktop */
.blog-menu-trigger {
  display: none;
  background: var(--white);
  border: none;
  cursor: pointer;
  padding: 14px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  box-shadow: 0 2px 12px rgba(10, 10, 10, 0.06);
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
}
.blog-menu-trigger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Mobile drawer */
.blog-mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--violet);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateY(-100%);
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.55s;
  padding: 80px 32px 40px;
  visibility: hidden;
  overflow: hidden;
}
.blog-mobile-menu.is-open {
  transform: translateY(0);
  visibility: visible;
}
.blog-mobile-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--white);
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.blog-mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.blog-mobile-nav a {
  font-family: var(--serif);
  font-style: italic;
  font-size: 30px;
  color: var(--white);
  text-decoration: none;
  transition: color 0.25s ease;
}
.blog-mobile-nav a.is-active,
.blog-mobile-nav a:hover {
  color: var(--gold);
}

/* Lang dropdown — same as main site */
.lang-dropdown {
  position: relative;
  margin-left: 6px;
  padding-left: 14px;
  border-left: 1px solid rgba(10, 10, 10, 0.12);
}
.lang-current-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 18px;
  transition: background 0.25s ease;
}
.lang-current-btn:hover { background: rgba(88, 40, 165, 0.08); }
.lang-current-btn .flag {
  width: 22px;
  height: 16px;
  display: none;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}
.lang-current-btn .flag.is-current { display: block; }
.lang-current-btn .chevron {
  width: 10px;
  height: 10px;
  color: var(--black);
  transition: transform 0.25s ease;
}
.lang-current-btn[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(10,10,10,0.16), 0 4px 12px rgba(10,10,10,0.06);
  list-style: none;
  padding: 8px;
  margin: 0;
  min-width: 180px;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.lang-menu.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.lang-menu li { list-style: none; margin: 0; }
.lang-option {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--black);
  border-radius: 8px;
  text-align: left;
  transition: background 0.2s ease;
}
.lang-option:hover { background: rgba(88, 40, 165, 0.06); }
.lang-option.is-active { color: var(--violet); font-weight: 600; }
.lang-option .flag {
  width: 22px;
  height: 16px;
  display: block;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}
.lang-option .check {
  margin-left: auto;
  color: var(--violet);
  font-size: 14px;
  font-weight: 700;
  opacity: 0;
}
.lang-option.is-active .check { opacity: 1; }

/* ============================================================
   BLOG INDEX HERO
   ============================================================ */
.blog-hero {
  background: var(--cream);
  padding: 60px 40px 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.blog-hero::before {
  content: '';
  position: absolute;
  top: -180px;
  right: -120px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(88,40,165,0.13) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}
.blog-hero::after {
  content: '';
  position: absolute;
  bottom: -200px;
  left: -160px;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(199,168,97,0.16) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}
.blog-hero-inner {
  max-width: 880px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.blog-kicker {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 24px;
}
.blog-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(40px, 5.5vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--black);
  margin: 0 0 24px;
}
.blog-subtitle {
  font-family: var(--sans);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
  color: var(--gray-700);
  max-width: 640px;
  margin: 0 auto;
}

/* ============================================================
   POSTS GRID
   ============================================================ */
.posts-section {
  background: var(--white);
  padding: 100px 40px 130px;
}
.posts-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
}
.posts-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px;
  color: var(--gray-500);
  font-family: var(--sans);
}

.post-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.post-card:hover { transform: translateY(-6px); }
.post-card-cover {
  aspect-ratio: 16 / 11;
  overflow: hidden;
  border-radius: 4px;
  background: var(--cream);
  margin-bottom: 22px;
}
.post-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.post-card:hover .post-card-cover img { transform: scale(1.04); }

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.post-card-meta .cat { color: var(--violet); }
.post-card-meta .dot { color: var(--gray-300); }
.post-card-meta .date { color: var(--gray-500); }

.post-card-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--black);
  margin: 0 0 14px;
  transition: color 0.3s ease;
}
.post-card:hover .post-card-title { color: var(--violet); }

.post-card-excerpt {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--gray-700);
  margin: 0 0 18px;
}
.post-card-readtime {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

/* ============================================================
   INDIVIDUAL POST PAGE
   ============================================================ */
.post-main {
  background: var(--white);
}
.post-article {
  max-width: 760px;
  margin: 0 auto;
  padding: 80px 40px 60px;
}
.post-meta-top { margin-bottom: 32px; }
.back-link {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--violet);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: opacity 0.25s ease;
}
.back-link:hover { opacity: 0.7; }

.post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.post-meta .post-category { color: var(--violet); }
.post-meta .dot { color: var(--gray-300); font-weight: normal; }
.post-meta .post-date,
.post-meta .post-readtime { color: var(--gray-500); }

.post-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--black);
  margin: 0 0 48px;
}

.post-cover {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 6px;
  margin-bottom: 60px;
  background: var(--cream);
}
.post-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Post body — editorial typography */
.post-body {
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.75;
  color: var(--gray-700);
}
.post-body .lead {
  font-family: var(--serif);
  font-style: italic;
  font-size: 24px;
  line-height: 1.5;
  color: var(--black);
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--gray-100);
}
.post-body p {
  margin: 0 0 24px;
}
.post-body h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 32px;
  line-height: 1.2;
  color: var(--black);
  margin: 56px 0 22px;
  letter-spacing: -0.005em;
}
.post-body h3 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 19px;
  color: var(--black);
  margin: 40px 0 16px;
}
.post-body strong { color: var(--black); font-weight: 600; }
.post-body em { font-style: italic; color: var(--black); }
.post-body a {
  color: var(--violet);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: opacity 0.25s ease;
}
.post-body a:hover { opacity: 0.7; }

.post-body ul,
.post-body ol {
  padding-left: 28px;
  margin: 0 0 28px;
}
.post-body li {
  margin-bottom: 12px;
}
.post-body ol { counter-reset: item; padding-left: 0; list-style: none; }
.post-body ol > li {
  counter-increment: item;
  padding-left: 48px;
  position: relative;
}
.post-body ol > li::before {
  content: counter(item, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  color: var(--violet);
  line-height: 1.3;
}

.post-body blockquote {
  margin: 40px 0;
  padding: 20px 0 20px 28px;
  border-left: 3px solid var(--gold);
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.5;
  color: var(--black);
}

.post-body img {
  max-width: 100%;
  height: auto;
  margin: 40px 0;
  border-radius: 4px;
}

/* Author card */
.post-author {
  max-width: 760px;
  margin: 80px auto 0;
  padding: 0 40px;
}
.author-card {
  background: var(--cream);
  padding: 40px;
  border-radius: 12px;
  display: flex;
  gap: 28px;
  align-items: flex-start;
}
.author-img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  background: var(--white);
  flex-shrink: 0;
  border: 2px solid var(--white);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.author-info h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  margin: 0 0 8px;
  color: var(--black);
}
.author-info p {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--gray-700);
  margin: 0 0 18px;
}
.author-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn-violet, .btn-ghost {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 100px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn-violet {
  background: var(--violet);
  color: var(--white);
}
.btn-violet:hover {
  background: #4a1f8b;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(88,40,165,0.3);
}
.btn-ghost {
  background: transparent;
  color: var(--violet);
  border: 1px solid rgba(88,40,165,0.3);
}
.btn-ghost:hover { background: rgba(88,40,165,0.08); }

/* Related posts */
.related-section {
  background: var(--cream);
  padding: 100px 40px;
  margin-top: 100px;
}
.related-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.related-kicker {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--violet);
  text-align: center;
  margin-bottom: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.related-kicker::before, .related-kicker::after {
  content: ''; width: 28px; height: 1px; background: var(--violet);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.blog-footer {
  background: var(--black);
  color: var(--white);
  padding: 70px 40px 40px;
  text-align: center;
}
.blog-footer-inner {
  max-width: 800px;
  margin: 0 auto;
}
.blog-footer .logo {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--white);
}
.blog-footer .logo .logo-name {
  color: var(--white);
}
.blog-footer .footer-tag {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 32px;
}
.blog-footer .footer-copy {
  font-family: var(--sans);
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.06em;
  margin: 0;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .blog-nav { display: none; }
  .blog-menu-trigger { display: flex; }
}
@media (max-width: 980px) {
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .blog-header-inner { padding: 14px 20px; gap: 14px; }
  .logo .diamond-mark { width: 36px; height: 36px; }
  .logo .logo-name { font-size: 24px; }

  .blog-hero { padding: 60px 24px 70px; }
  .posts-section { padding: 60px 24px 80px; }
  .posts-grid { grid-template-columns: 1fr; gap: 36px; }

  .post-article { padding: 50px 22px 40px; }
  .post-body { font-size: 17px; }
  .post-body .lead { font-size: 21px; }
  .post-body h2 { font-size: 26px; }

  .post-author { padding: 0 22px; }
  .author-card { flex-direction: column; padding: 28px; gap: 18px; }
  .author-img { width: 80px; height: 80px; }

  .related-section { padding: 60px 24px 80px; margin-top: 60px; }
}
