/* ============================================================
   BARKER DEVELOPMENT — BLOG STYLES
   ============================================================ */

/* ── BLOG LISTING PAGE ──────────────────────────────────────── */
.blog-hero {
  padding: calc(var(--section-pad) + 5rem) 0 var(--section-pad);
  background: var(--black);
  text-align: center;
}
.blog-hero h1 { font-size: clamp(3rem, 7vw, 6rem); margin-bottom: 1.25rem; }
.blog-hero .lead {
  font-size: 1.05rem; color: var(--text-muted);
  max-width: 560px; margin: 0 auto 2.5rem; line-height: 1.8;
}

/* Filter Bar */
.blog-filters {
  display: flex; align-items: center; justify-content: center;
  gap: .75rem; flex-wrap: wrap; margin-bottom: 4rem;
}
.filter-btn {
  font-family: var(--font-display); font-size: .65rem;
  font-weight: 600; letter-spacing: .15em; text-transform: uppercase;
  padding: .55rem 1.4rem;
  border: 1px solid rgba(215,175,77,.2);
  color: rgba(255,229,166,.45);
  background: transparent;
  transition: border-color .25s ease, color .25s ease, background .25s ease;
}
.filter-btn:hover, .filter-btn.active {
  border-color: var(--gold); color: var(--gold);
  background: rgba(215,175,77,.06);
}

/* Search */
.blog-search-wrap {
  max-width: 440px; margin: 0 auto 3rem;
  position: relative;
}
.blog-search {
  width: 100%;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(215,175,77,.15);
  color: var(--cream); font-family: var(--font-body);
  font-size: .9rem; padding: .85rem 3rem .85rem 1.25rem;
  outline: none; border-radius: 0;
  transition: border-color .3s ease;
}
.blog-search:focus { border-color: rgba(215,175,77,.4); }
.blog-search::placeholder { color: rgba(255,229,166,.18); }
.search-icon {
  position: absolute; right: 1.1rem; top: 50%;
  transform: translateY(-50%); color: rgba(215,175,77,.4); pointer-events: none;
}

/* Featured Post */
.blog-featured {
  padding: 0 0 var(--section-pad); background: var(--black);
}
.featured-card {
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid rgba(215,175,77,.1); overflow: hidden;
  transition: border-color .3s ease;
}
.featured-card:hover { border-color: rgba(215,175,77,.25); }
.featured-img-wrap {
  position: relative; overflow: hidden; min-height: 420px;
}
.featured-img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s var(--ease-luxury);
}
.featured-card:hover .featured-img { transform: scale(1.04); }
.featured-img-placeholder {
  width: 100%; height: 100%; min-height: 420px;
  background: linear-gradient(135deg, #0e0e12 0%, #1a1408 60%, #0a0a0a 100%);
  display: flex; align-items: center; justify-content: center;
}
.featured-img-placeholder svg {
  width: 80px; height: 80px; opacity: .08; color: var(--gold);
}
.featured-badge {
  position: absolute; top: 1.5rem; left: 1.5rem;
  font-family: var(--font-display); font-size: .6rem;
  font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  padding: .4rem 1rem; background: var(--gold); color: var(--black);
}
.featured-body {
  padding: 3.5rem; display: flex; flex-direction: column; justify-content: center;
  background: var(--black-warm);
}
.featured-cat {
  font-family: var(--font-display); font-size: .62rem;
  font-weight: 700; letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.25rem;
  display: flex; align-items: center; gap: .75rem;
}
.featured-cat::before {
  content: ''; width: 24px; height: 1px; background: var(--gold);
}
.featured-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.5rem, 2.5vw, 2.2rem); line-height: 1.1;
  color: var(--cream); margin-bottom: 1.25rem;
}
.featured-excerpt {
  font-size: .92rem; line-height: 1.8; color: var(--text-muted);
  margin-bottom: 2rem;
}
.featured-meta {
  display: flex; align-items: center; gap: 1.5rem;
  font-family: var(--font-display); font-size: .68rem;
  letter-spacing: .08em; color: rgba(215,175,77,.45);
  text-transform: uppercase; margin-bottom: 2rem;
}
.read-more {
  font-family: var(--font-display); font-size: .72rem;
  font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold); display: inline-flex; align-items: center; gap: .5rem;
  border-bottom: 1px solid rgba(215,175,77,.3); padding-bottom: .2rem;
  transition: gap .3s ease, border-color .3s ease;
}
.read-more:hover { gap: .9rem; border-color: var(--gold); }

/* Blog Grid */
.blog-grid-section {
  padding: 0 0 var(--section-pad); background: var(--black);
}
.blog-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 2px;
}
.blog-card {
  display: flex; flex-direction: column;
  border: 1px solid rgba(215,175,77,.07);
  background: rgba(215,175,77,.02); overflow: hidden;
  transition: border-color .3s ease, background .3s ease;
}
.blog-card:hover { border-color: rgba(215,175,77,.2); background: rgba(215,175,77,.04); }
.blog-card-img-wrap { overflow: hidden; aspect-ratio: 16/9; position: relative; }
.blog-card-img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease-luxury);
}
.blog-card:hover .blog-card-img { transform: scale(1.05); }
.blog-card-img-placeholder {
  width: 100%; aspect-ratio: 16/9; height: auto;
  background: linear-gradient(135deg, #0d0d0d 0%, #1a1505 100%);
  display: flex; align-items: center; justify-content: center;
}
.blog-card-img-placeholder svg {
  width: 40px; height: 40px; opacity: .06; color: var(--gold);
}
.blog-card-body { padding: 2rem; flex: 1; display: flex; flex-direction: column; }
.blog-card-cat {
  font-family: var(--font-display); font-size: .58rem;
  font-weight: 700; letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem;
}
.blog-card-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1rem, 1.4vw, 1.15rem); line-height: 1.3;
  color: var(--cream); margin-bottom: .75rem;
  flex: 1;
  transition: color .3s ease;
}
.blog-card:hover .blog-card-title { color: var(--gold-light); }
.blog-card-excerpt {
  font-size: .8rem; line-height: 1.7; color: var(--text-faint);
  margin-bottom: 1.5rem;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.blog-card-meta {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-display); font-size: .6rem;
  letter-spacing: .08em; text-transform: uppercase;
  color: rgba(215,175,77,.35);
  border-top: 1px solid rgba(215,175,77,.07); padding-top: 1.2rem;
}
.blog-card-meta .arrow {
  color: var(--gold); opacity: 0;
  transition: opacity .3s ease, transform .3s ease;
}
.blog-card:hover .blog-card-meta .arrow { opacity: 1; transform: translateX(3px); }

.no-results {
  grid-column: 1 / -1; text-align: center; padding: 5rem 2rem;
  color: var(--text-muted); font-family: var(--font-display);
  font-size: 1rem; letter-spacing: .05em;
}

/* ── BLOG ARTICLE PAGE ──────────────────────────────────────── */
.article-hero {
  min-height: 55vh; display: flex; align-items: flex-end;
  padding-bottom: 5rem; position: relative; overflow: hidden;
  background: var(--black-warm);
}
.article-hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; filter: brightness(.28) saturate(.7); z-index: 0;
}
.article-hero-grad {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top,
    rgba(10,10,10,.97) 0%, rgba(10,10,10,.4) 50%, rgba(10,10,10,.1) 100%);
}
.article-hero-content {
  position: relative; z-index: 2;
  max-width: var(--container); margin: 0 auto;
  padding: 9rem 2rem 0;
}
.article-cat {
  font-family: var(--font-display); font-size: .62rem;
  font-weight: 700; letter-spacing: .35em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.25rem;
  display: flex; align-items: center; gap: .75rem;
}
.article-cat::before { content: ''; width: 24px; height: 1px; background: var(--gold); }
.article-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2rem, 5vw, 4.5rem); line-height: 1.05;
  color: var(--cream); max-width: 900px; margin-bottom: 2rem;
}
.article-meta {
  display: flex; align-items: center; gap: 2rem; flex-wrap: wrap;
  font-family: var(--font-display); font-size: .68rem;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(215,175,77,.45);
}
.article-meta .dot::before { content: '·'; margin-right: 2rem; }

/* Article Layout */
.article-layout {
  display: grid; grid-template-columns: 1fr 300px;
  gap: 5rem; padding: var(--section-pad) 0;
  align-items: start;
}
.article-content { min-width: 0; }

/* Article Typography */
.article-body { max-width: 720px; }
.article-body > * + * { margin-top: 1.5em; }
.article-body h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.5rem, 2.5vw, 2rem); color: var(--cream);
  line-height: 1.15; margin-top: 3rem !important;
}
.article-body h2:first-child { margin-top: 0 !important; }
.article-body h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.15rem; color: var(--cream); line-height: 1.25;
  margin-top: 2rem !important;
}
.article-body p {
  font-size: 1rem; line-height: 1.9; color: rgba(255,229,166,.62);
}
.article-body strong { color: var(--cream); font-weight: 600; }
.article-body em { color: var(--gold-light); font-style: italic; }
.article-body a { color: var(--gold); border-bottom: 1px solid rgba(215,175,77,.3); transition: border-color .3s ease; }
.article-body a:hover { border-color: var(--gold); }
.article-body ul, .article-body ol {
  padding-left: 1.5rem; color: rgba(255,229,166,.58);
}
.article-body ul { list-style: none; padding-left: 0; }
.article-body ul li {
  position: relative; padding-left: 1.5rem;
  font-size: .95rem; line-height: 1.8; margin-bottom: .5rem;
}
.article-body ul li::before {
  content: ''; position: absolute; left: 0; top: .7em;
  width: 8px; height: 1px; background: var(--gold);
}
.article-body ol li {
  font-size: .95rem; line-height: 1.8; margin-bottom: .5rem;
  color: rgba(255,229,166,.58);
}
.article-body blockquote {
  border-left: 2px solid var(--gold); padding: 1.25rem 2rem;
  margin: 2.5rem 0 !important; background: rgba(215,175,77,.03);
}
.article-body blockquote p {
  font-family: var(--font-accent); font-style: italic;
  font-size: 1.15rem; line-height: 1.7; color: rgba(255,229,166,.72);
}

/* Key Takeaway Box */
.key-takeaway {
  border: 1px solid rgba(215,175,77,.2); padding: 2rem;
  margin: 3rem 0 !important;
  background: rgba(215,175,77,.04);
  position: relative;
}
.key-takeaway::before {
  content: 'Key Takeaway';
  position: absolute; top: -10px; left: 1.5rem;
  font-family: var(--font-display); font-size: .6rem;
  font-weight: 700; letter-spacing: .25em; text-transform: uppercase;
  color: var(--gold); background: var(--black-warm); padding: 0 .75rem;
}
.key-takeaway p { color: rgba(255,229,166,.72); }

/* Article FAQ */
.article-faq { margin-top: 3rem; }
.article-faq h2 { margin-bottom: 1.5rem !important; }

/* Share */
.article-share {
  margin-top: 3rem; padding-top: 2rem;
  border-top: 1px solid rgba(215,175,77,.1);
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
}
.share-label {
  font-family: var(--font-display); font-size: .65rem;
  font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(215,175,77,.45);
}
.share-btns { display: flex; gap: .75rem; }
.share-btn {
  padding: .5rem 1.2rem;
  border: 1px solid rgba(215,175,77,.2); color: rgba(255,229,166,.45);
  font-family: var(--font-display); font-size: .65rem;
  font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  transition: border-color .3s ease, color .3s ease, background .3s ease;
}
.share-btn:hover {
  border-color: var(--gold); color: var(--gold);
  background: rgba(215,175,77,.06);
}

/* Article Sidebar */
.article-sidebar { position: sticky; top: 9rem; }
.sidebar-widget {
  padding: 2rem;
  border: 1px solid rgba(215,175,77,.1); margin-bottom: 2rem;
  background: rgba(215,175,77,.025);
}
.sidebar-title {
  font-family: var(--font-display); font-size: .62rem;
  font-weight: 700; letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.5rem; padding-bottom: 1rem;
  border-bottom: 1px solid rgba(215,175,77,.1);
}
.sidebar-toc { display: flex; flex-direction: column; gap: .6rem; }
.sidebar-toc a {
  font-size: .8rem; line-height: 1.5; color: rgba(255,229,166,.4);
  padding-left: 1rem; border-left: 1px solid rgba(215,175,77,.1);
  transition: color .3s ease, border-color .3s ease;
}
.sidebar-toc a:hover, .sidebar-toc a.active {
  color: var(--gold); border-left-color: var(--gold);
}
.sidebar-cta-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.05rem; color: var(--cream); margin-bottom: .75rem;
}
.sidebar-cta p {
  font-size: .8rem; line-height: 1.7; color: var(--text-muted); margin-bottom: 1.5rem;
}
.sidebar-cta .btn-primary { width: 100%; justify-content: center; font-size: .72rem; }

.recent-posts { display: flex; flex-direction: column; gap: 1.25rem; }
.recent-post { display: flex; gap: 1rem; align-items: flex-start; }
.recent-post-img {
  width: 60px; height: 60px; flex-shrink: 0; object-fit: cover;
  background: linear-gradient(135deg, #111 0%, #1a1505 100%);
}
.recent-post-title {
  font-family: var(--font-display); font-size: .78rem;
  font-weight: 600; line-height: 1.4; color: var(--cream);
  transition: color .3s ease;
}
.recent-post-title:hover { color: var(--gold); }
.recent-post-date {
  font-size: .65rem; color: rgba(215,175,77,.35);
  font-family: var(--font-display); letter-spacing: .05em; margin-top: .3rem;
}

/* Related Posts */
.related-posts {
  padding: var(--section-pad) 0;
  background: var(--black-warm);
  border-top: 1px solid rgba(215,175,77,.08);
}
.related-posts h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 3rem;
}
.related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2px; }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .article-layout { grid-template-columns: 1fr; gap: 3.5rem; }
  .article-sidebar { position: static; }
  .blog-grid       { grid-template-columns: repeat(2,1fr); }
  .related-grid    { grid-template-columns: repeat(2,1fr); }
  .featured-card   { grid-template-columns: 1fr; }
  .featured-img-wrap { min-height: 300px; }
}
@media (max-width: 768px) {
  .blog-grid    { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .article-hero { min-height: 50vh; }
  .article-title { font-size: clamp(1.8rem, 6vw, 3rem); }
}
