/*
 * single.css — BrandName Golf Theme
 * ─────────────────────────────────────────────────────────
 * Article / single post page styles (loaded via functions.php
 * when is_single()):
 *   - Reading progress bar (visible override)
 *   - Breadcrumb bar
 *   - Article hero (split layout)
 *   - Article body layout (2-col grid)
 *   - Article content typography
 *   - Share bar
 *   - Pull quote, article figure, key facts box
 *   - Article tags
 *   - Author bio card
 *   - Sidebar panels (sb-panel, sb-related, sb-newsletter, sb-ad)
 *   - Related articles section (4-col grid)
 *   - All responsive breakpoints
 * ─────────────────────────────────────────────────────────
 */

/* ════════════════════════════════════════
   READING PROGRESS BAR (shown on single)
════════════════════════════════════════ */
.single .read-progress-bar { display: block; }

/* ════════════════════════════════════════
   BREADCRUMB BAR
════════════════════════════════════════ */
.breadcrumb-bar {
  width: 100%; max-width: 1400px;
  margin: 0 auto; padding: 14px 48px;
  border-bottom: 1px solid var(--color-border);
}

.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  list-style: none; flex-wrap: wrap;
}

.breadcrumb li { display: flex; align-items: center; gap: 8px; }

.breadcrumb a {
  font-size: 0.75rem; font-weight: 500; color: #9ca3af;
  text-decoration: none; transition: color 0.2s;
}

.breadcrumb a:hover { color: #000; }

.breadcrumb__sep  { color: #d1d5db; font-size: 0.625rem; }
.breadcrumb__current { font-size: 0.75rem; font-weight: 500; color: #000; }

@media (max-width: 600px) { .breadcrumb-bar { padding: 12px 20px; } }

/* ════════════════════════════════════════
   ARTICLE HERO — Split layout
════════════════════════════════════════ */
.article-hero {
  width: 100%; max-width: 1400px;
  margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 520px;
}

.article-hero__text {
  display: flex; flex-direction: column; justify-content: center;
  padding: 56px 56px 56px 48px;
  background: #fff;
  border-bottom: 3px solid #000;
}

.article-hero__cats {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px;
}

.hero-cat {
  display: inline-block; padding: 5px 14px; border-radius: 4px;
  font-size: 0.625rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; text-decoration: none;
  background: var(--color-accent); color: #fff;
  transition: background 0.2s;
}

.hero-cat:hover { background: var(--color-accent-hover); }

.hero-cat--outline {
  background: transparent;
  border: 1px solid var(--color-border); color: #6b7280;
}

.hero-cat--outline:hover { background: #f3f4f6; color: #000; }

.article-hero__title {
  font-size: clamp(1.75rem, 2.6vw, 2.75rem);
  font-weight: 800; color: #000; line-height: 1.13;
  letter-spacing: -0.025em; margin-bottom: 24px;
}

.article-hero__title-rule {
  width: 48px; height: 3px;
  background: #f0c93a; border-radius: 2px; margin-bottom: 24px;
}

.article-hero__meta {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}

.hero-meta__author {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
}

.hero-meta__avatar {
  width: 40px; height: 40px; border-radius: 50%;
  object-fit: cover; border: 2px solid var(--color-border); flex-shrink: 0;
}

.hero-meta__name { font-size: 0.875rem; font-weight: 700; color: #000; display: block; }

.hero-meta__role { font-size: 0.6875rem; color: #9ca3af; display: block; }

.hero-meta__divider { width: 1px; height: 28px; background: var(--color-border); }

.hero-meta__detail {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.75rem; color: #9ca3af;
}

.hero-meta__detail svg {
  width: 13px; height: 13px; stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.article-hero__img-wrap { position: relative; overflow: hidden; }

.article-hero__img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 6s ease;
}

.article-hero:hover .article-hero__img { transform: scale(1.04); }

.article-hero__caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.55);
  font-size: 0.6875rem; color: rgba(255, 255, 255, 0.7);
  font-style: italic;
}

@media (max-width: 860px) {
  .article-hero { grid-template-columns: 1fr; }
  .article-hero__img-wrap { min-height: 300px; }
  .article-hero__text { padding: 36px 24px; border-bottom: none; }
}

@media (max-width: 560px) {
  .article-hero__text { padding: 28px 16px; }
}

/* ════════════════════════════════════════
   ARTICLE LAYOUT (2-col grid)
════════════════════════════════════════ */
.article-layout {
  width: 100%; max-width: 1400px;
  margin: 0 auto; padding: 56px 48px 80px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 64px; align-items: start;
}

/* ════════════════════════════════════════
   SHARE BAR
════════════════════════════════════════ */
.share-bar {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 24px; margin-bottom: 32px;
  border-bottom: 1px solid var(--color-border);
  flex-wrap: wrap;
}

.share-label {
  font-size: 0.6875rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: #9ca3af; margin-right: 4px;
}

.share-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: 6px; text-decoration: none;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em;
  transition: background 0.2s, color 0.2s, opacity 0.2s, transform 0.2s;
  border: none; cursor: pointer; font-family: inherit;
}

.share-btn i { font-size: 0.8125rem; }

.share-btn--fb   { background: #1877f2; color: #fff; }
.share-btn--x    { background: #000;    color: #fff; }
.share-btn--in   { background: #0077b5; color: #fff; }
.share-btn--wa   { background: #25d366; color: #fff; }
.share-btn--copy { background: #f3f4f6; color: #000; }

.share-btn:hover          { opacity: 0.85; transform: translateY(-1px); }
.share-btn--copy.copied   { background: #dcfce7; color: #16a34a; }

/* ════════════════════════════════════════
   ARTICLE BODY TYPOGRAPHY
════════════════════════════════════════ */
.article-body {
  font-size: 1.0625rem; line-height: 1.78; color: #1a1a1a;
}

.article-body p { margin-bottom: 1.6em; }

.article-body h2 {
  font-size: 1.625rem; font-weight: 700; color: #000;
  letter-spacing: -0.02em; line-height: 1.25;
  margin: 2.2em 0 0.8em;
  border-top: 2px solid #000; padding-top: 1.2em;
}

.article-body h3 {
  font-size: 1.25rem; font-weight: 700; color: #000;
  letter-spacing: -0.01em; line-height: 1.3;
  margin: 1.8em 0 0.6em;
}

.article-body a {
  color: var(--color-accent); text-decoration: underline;
  text-decoration-thickness: 1px; text-underline-offset: 3px;
  transition: opacity 0.2s;
}

.article-body a:hover { opacity: 0.75; }

.article-body strong { font-weight: 700; color: #000; }
.article-body em     { font-style: italic; }

.article-body ul,
.article-body ol { margin: 0 0 1.6em 1.5em; }

.article-body li { margin-bottom: 0.5em; }

/* Pull quote */
.pull-quote {
  margin: 2.5em 0; padding: 28px 32px;
  border-left: 4px solid #f0c93a;
  background: #fefce8; border-radius: 0 8px 8px 0;
  position: relative;
}

.pull-quote::before {
  content: '\201C';
  font-size: 5rem; line-height: 0.6;
  color: #f0c93a; font-weight: 800;
  position: absolute; top: 28px; left: 20px;
  font-family: Georgia, serif;
}

.pull-quote__text {
  font-size: 1.1875rem; font-weight: 600; color: #000;
  line-height: 1.5; font-style: italic;
  padding-left: 28px; display: block; margin-bottom: 12px;
}

.pull-quote__cite {
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #9ca3af; padding-left: 28px; display: block;
}

/* Inline figure */
.article-figure { margin: 2.5em -24px; }

.article-figure img {
  width: 100%; display: block; border-radius: 8px;
  aspect-ratio: 16 / 9; object-fit: cover;
}

.article-figure figcaption {
  font-size: 0.8125rem; color: #9ca3af; margin-top: 10px;
  font-style: italic; line-height: 1.5; padding: 0 4px;
}

/* Key facts box */
.key-facts {
  margin: 2.2em 0;
  border: 1.5px solid var(--color-border);
  border-radius: 10px; overflow: hidden;
}

.key-facts__head {
  background: #000; color: #fff; padding: 12px 20px;
  font-size: 0.6875rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
}

.key-facts__list { list-style: none; }

.key-facts__item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9375rem; color: #1a1a1a;
}

.key-facts__item:last-child { border-bottom: none; }

.key-facts__icon {
  width: 18px; height: 18px; flex-shrink: 0;
  background: #f0c93a; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin-top: 2px;
}

.key-facts__icon svg {
  width: 10px; height: 10px; stroke: #000; fill: none;
  stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
}

/* ════════════════════════════════════════
   ARTICLE TAGS
════════════════════════════════════════ */
.article-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 48px; padding-top: 32px;
  border-top: 1px solid var(--color-border);
}

.article-tags__label {
  font-size: 0.6875rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: #9ca3af; align-self: center; margin-right: 4px;
}

.tag-chip {
  display: inline-block; padding: 5px 14px;
  border: 1px solid var(--color-border); border-radius: 20px;
  font-size: 0.75rem; font-weight: 500; color: #000;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.tag-chip:hover { background: #f3f4f6; border-color: #000; }

/* ════════════════════════════════════════
   AUTHOR BIO CARD
════════════════════════════════════════ */
.author-bio {
  display: flex; gap: 20px; align-items: flex-start;
  margin-top: 48px; padding: 28px;
  background: #f9fafb; border-radius: 12px;
  border: 1px solid var(--color-border);
}

.author-bio__avatar {
  width: 72px; height: 72px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0; border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.author-bio__label {
  font-size: 0.625rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #9ca3af; margin-bottom: 6px;
}

.author-bio__name { font-size: 1.0625rem; font-weight: 700; color: #000; margin-bottom: 8px; }

.author-bio__desc {
  font-size: 0.875rem; color: #6b7280;
  line-height: 1.6; margin-bottom: 12px;
}

.author-bio__follow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: #000; text-decoration: none;
  border-bottom: 1px solid #000; padding-bottom: 1px;
  transition: color 0.2s;
}

.author-bio__follow:hover { color: var(--color-accent); border-color: var(--color-accent); }

/* ════════════════════════════════════════
   SIDEBAR
════════════════════════════════════════ */
.article-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  display: flex; flex-direction: column; gap: 28px;
}

/* Sidebar panel wrapper */
.sb-panel {
  border: 1px solid var(--color-border);
  border-radius: 10px; overflow: hidden;
}

.sb-panel__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 16px;
  border-bottom: 1px solid var(--color-border);
}

.sb-panel__title {
  font-size: 0.625rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: #000;
}

.sb-panel__link {
  font-size: 0.625rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-accent); text-decoration: none; transition: opacity 0.2s;
}

.sb-panel__link:hover { opacity: 0.65; }

/* Related list */
.sb-related-list { list-style: none; }

.sb-related-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border);
  text-decoration: none; transition: background 0.15s;
}

.sb-related-item:last-child { border-bottom: none; }
.sb-related-item:hover { background: #f9fafb; }

.sb-related-item__img {
  width: 64px; height: 48px; border-radius: 5px;
  object-fit: cover; flex-shrink: 0;
}

.sb-related-item__cat {
  font-size: 0.5625rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--color-accent); margin-bottom: 4px;
}

.sb-related-item__title {
  font-size: 0.8125rem; font-weight: 600; color: #000; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}

/* Sidebar ad */
.sb-ad {
  border: 1px solid var(--color-border);
  border-radius: 10px; overflow: hidden;
  position: relative; background: #f9fafb;
}

.sb-ad__label {
  position: absolute; top: 8px; right: 10px;
  font-size: 0.5rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: #d1d5db; background: rgba(255, 255, 255, 0.8);
  padding: 2px 7px; border-radius: 3px;
}

.sb-ad__content {
  padding: 32px 20px;
  background: linear-gradient(135deg, #1e3a5f 0%, #1d4ed8 100%);
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 12px; min-height: 260px;
  justify-content: center; position: relative; overflow: hidden;
}

.sb-ad__content::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(240, 201, 58, 0.2), transparent 60%);
}

.sb-ad__eyebrow {
  font-size: 0.5625rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: #f0c93a; position: relative;
}

.sb-ad__headline {
  font-size: 1.25rem; font-weight: 800; color: #fff; line-height: 1.2; position: relative;
}

.sb-ad__sub {
  font-size: 0.8125rem; color: rgba(255, 255, 255, 0.6); line-height: 1.5; position: relative;
}

.sb-ad__cta {
  display: inline-block; padding: 10px 24px; border-radius: 6px;
  background: #f0c93a; color: #000; text-decoration: none;
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  transition: background 0.2s; position: relative;
}

.sb-ad__cta:hover { background: #f5d660; }

/* Sidebar newsletter */
.sb-newsletter {
  background: #000; border-radius: 10px; overflow: hidden; padding: 24px 20px;
}

.sb-newsletter__icon {
  width: 40px; height: 40px; background: #f0c93a; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}

.sb-newsletter__icon svg {
  width: 20px; height: 20px; stroke: #000; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.sb-newsletter__title {
  font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 6px; line-height: 1.3;
}

.sb-newsletter__desc {
  font-size: 0.8125rem; color: rgba(255, 255, 255, 0.5); line-height: 1.55; margin-bottom: 18px;
}

.sb-newsletter__input {
  width: 100%; padding: 10px 14px; border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  font-family: inherit; font-size: 0.875rem; color: #fff;
  outline: none; margin-bottom: 10px; transition: border-color 0.2s;
}

.sb-newsletter__input::placeholder { color: rgba(255, 255, 255, 0.3); }
.sb-newsletter__input:focus         { border-color: rgba(255, 255, 255, 0.4); }

.sb-newsletter__btn {
  width: 100%; padding: 11px; border-radius: 7px;
  background: #f0c93a; color: #000; border: none;
  font-family: inherit; font-size: 0.8125rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.sb-newsletter__btn:hover { background: #f5d660; transform: translateY(-1px); }

/* ════════════════════════════════════════
   RELATED ARTICLES (full-width bottom)
════════════════════════════════════════ */
.related-section {
  width: 100%; max-width: 1400px;
  margin: 0 auto; padding: 0 48px 80px;
}

.related-section__head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 16px; margin-bottom: 32px;
  border-bottom: 2px solid #000;
}

.related-section__title {
  font-size: 1.125rem; font-weight: 700; color: #000; letter-spacing: -0.01em;
}

.related-section__link {
  font-size: 0.6875rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: #000; text-decoration: none;
  border-bottom: 1px solid #000; padding-bottom: 1px;
  transition: opacity 0.2s;
}

.related-section__link:hover { opacity: 0.45; }

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

.related-card {
  display: flex; flex-direction: column; text-decoration: none; transition: opacity 0.2s;
}

.related-card:hover { opacity: 0.8; }

.related-card__img-wrap {
  width: 100%; aspect-ratio: 3/2; overflow: hidden;
  border-radius: 7px; margin-bottom: 14px;
}

.related-card__img {
  width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease;
}

.related-card:hover .related-card__img { transform: scale(1.04); }

.related-card__cat {
  font-size: 0.625rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--color-accent); margin-bottom: 6px;
}

.related-card__title {
  font-size: 0.9375rem; font-weight: 600; color: #000; line-height: 1.4; margin-bottom: 8px;
}

.related-card__date { font-size: 0.6875rem; color: #9ca3af; font-weight: 400; margin-top: auto; }

/* ── Responsive ── */
@media (max-width: 900px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }

@media (max-width: 860px) {
  .article-layout { grid-template-columns: 1fr; padding: 40px 24px 64px; }
  .article-sidebar { position: static; }
}

@media (max-width: 560px) {
  .article-layout { padding: 32px 16px 56px; }
  .related-section { padding: 0 20px 56px; }
  .related-grid { grid-template-columns: 1fr; }
}
