/*
  Theme Name: BlueGTV Elegant
  Description: A refined editorial theme for Benny's Story
  Version: 1.0
  Author: Benny
*/

/* ── Variables ── */
:root {
  --bg:         #0B0B0E;
  --card:       #131318;
  --card-hover: #1A1A22;
  --border:     #22222C;
  --text:       #E8E4DC;
  --muted:      #8A8A9A;
  --gold:       #C9A84C;
  --gold-dim:   #8A6E2F;
  --font-serif: 'Palatino Linotype', 'Book Antiqua', Palatino, Georgia, serif;
  --font-sans:  'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-serif);
  line-height: 1.7;
  min-height: 100vh;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 3px; }

/* ── Layout ── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ── Header ── */
.site-header {
  border-bottom: 1px solid var(--border);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11,11,14,0.92);
  backdrop-filter: blur(12px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}
.site-brand {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  flex-shrink: 0;
}
.site-brand span { color: var(--text); font-weight: 400; }

.main-nav { display: flex; gap: 0; list-style: none; }
.main-nav a {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 14px;
  transition: color 0.2s;
}
.main-nav a:hover { color: var(--gold); }

/* ── Hero ── */
.hero {
  padding: 72px 0 56px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.2;
  margin-bottom: 20px;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold);
}
.hero-tagline {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 36px;
  font-family: var(--font-sans);
}

/* ── Search ── */
.search-wrap {
  max-width: 480px;
  margin: 0 auto;
  position: relative;
}
.search-wrap input {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 13px 48px 13px 20px;
  font-size: 0.9rem;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.3s;
  border-radius: 2px;
}
.search-wrap input:focus { border-color: var(--gold-dim); }
.search-wrap input::placeholder { color: var(--muted); }
.search-wrap button {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--gold);
  cursor: pointer;
  font-size: 1rem;
  padding: 4px;
}
.search-wrap button:hover { color: var(--text); }

/* ── Categories Bar ── */
.categories-bar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 36px 0 0;
}
.cat-pill {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 7px 16px;
  border-radius: 2px;
  text-decoration: none;
  transition: all 0.18s;
  cursor: pointer;
  background: transparent;
}
.cat-pill:hover, .cat-pill.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #0B0B0E;
  font-weight: 600;
}
.cat-pill .cat-count {
  font-size: 0.6rem;
  margin-left: 4px;
  opacity: 0.7;
}

/* ── Featured Grid ── */
.featured-section { padding: 56px 0; }
.section-title {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.posts-grid .post-card {
  background: var(--bg);
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  transition: background 0.2s;
  overflow: hidden;
}
.posts-grid .post-card:hover { background: var(--card-hover); }
.post-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  background: var(--card);
}
.post-card-img-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-dim);
  font-size: 2.5rem;
  font-family: var(--font-sans);
}
.post-card-body { padding: 10px 12px 12px; flex: 1; display: flex; flex-direction: column; }
.post-card-cat {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.post-card-title {
  font-size: 0.97rem;
  line-height: 1.4;
  margin-bottom: 10px;
  font-weight: 400;
}
.post-card-date {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  color: var(--muted);
  margin-top: auto;
  padding-top: 12px;
}

/* ── Full-width Feature ── */
.featured-full {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--card);
  border: 1px solid var(--border);
  margin-bottom: 1px;
  text-decoration: none;
  color: var(--text);
  transition: background 0.2s;
}
.featured-full:hover { background: var(--card-hover); }
.featured-full-img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
}
.featured-full-placeholder {
  width: 100%;
  height: 360px;
  background: #1A1520;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--gold-dim);
  font-family: var(--font-sans);
}
.featured-full-body {
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.featured-full-body .eyebrow {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.featured-full-body h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 16px;
}
.featured-full-body p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 24px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.read-more {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.read-more::after { content: '→'; }

/* ── All Posts ── */
.all-posts-section { padding: 0 0 80px; }
.posts-list { list-style: none; }
.posts-list li {
  border-bottom: 1px solid var(--border);
}
.posts-list a {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  text-decoration: none;
  color: var(--text);
  transition: color 0.2s;
}
.posts-list a:hover { color: var(--gold); }
.post-list-title {
  font-size: 0.9rem;
  line-height: 1.4;
}
.post-list-date {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  color: var(--muted);
  white-space: nowrap;
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
  text-align: center;
}
.site-footer p {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.featured-section .posts-grid { grid-template-columns: repeat(3, 1fr); }
/* ── Responsive ── */
@media (max-width: 768px) {
  .posts-grid { grid-template-columns: 1fr; }
  .featured-full { grid-template-columns: 1fr; }
  .featured-full-placeholder { height: 220px; }
  .header-inner { flex-wrap: wrap; height: auto; padding: 12px 0; }
  .main-nav { gap: 0; }
}
@media (max-width: 480px) {
  .main-nav a { padding: 8px 10px; font-size: 0.65rem; }
  .hero { padding: 48px 0 36px; }
  .featured-full-body { padding: 28px 24px; }
}

/* =========================================
   MODEL SCROLL ROW — horizontal card strip
   ========================================= */
.model-scroll-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.model-scroll-row::-webkit-scrollbar {
  height: 4px;
}
.model-scroll-row::-webkit-scrollbar-track {
  background: #111116;
}
.model-scroll-row::-webkit-scrollbar-thumb {
  background: #C9A84C;
  border-radius: 2px;
}

.model-card {
  flex: 0 0 220px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: #111116;
  border: 1px solid #1E1E28;
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.model-card:hover {
  border-color: #C9A84C;
  transform: translateY(-3px);
}

.model-card-img-wrap {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #0B0B0E;
  flex-shrink: 0;
}
.model-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.model-card:hover .model-card-img {
  transform: scale(1.04);
}
.model-card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #C9A84C;
  background: #111116;
  font-family: 'Cormorant Garamond', serif;
}

.model-card-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.model-card-cat {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #C9A84C;
  font-family: 'Helvetica Neue', sans-serif;
}
.model-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #F8F4EE;
  line-height: 1.3;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.model-card-date {
  font-size: 0.65rem;
  color: #555;
  font-family: 'Helvetica Neue', sans-serif;
  margin-top: auto;
  padding-top: 6px;
}

/* ====== Pagination ====== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 40px 0 0;
}
.page-btn {
  background: none;
  border: 1px solid #22222C;
  color: #8A8A9A;
  padding: 8px 20px;
  font-family: 'Helvetica Neue', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
}
.page-btn:hover:not(:disabled) {
  border-color: #C9A84C;
  color: #C9A84C;
}
.page-numbers {
  display: flex;
  align-items: center;
  gap: 4px;
}
.page-num {
  background: none;
  border: 1px solid #22222C;
  color: #8A8A9A;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}
.page-num:hover {
  border-color: #C9A84C;
  color: #C9A84C;
}
.page-num.active {
  background: #C9A84C;
  border-color: #C9A84C;
  color: #0B0B0E;
  font-weight: 600;
}
.page-ellipsis {
  color: #444;
  padding: 0 4px;
}
