/* ==========================================
   GOSSIP INDEX PAGE
   - Top hero story + latest feed + sidebar
   - Dark, glossy, mobile-first layout
   - All classes from gossip/index.php styled
========================================== */

/* Global inline dot separator used in meta rows */
.dot {
  display: inline-block;
  margin: 0 0.15rem;
  opacity: 0.7;
}

/* Root wrapper for page background + padding */
.gossip-page {
  background: radial-gradient(
      circle at top,
      rgba(245, 178, 0, 0.2),
      transparent 55%
    ),
    radial-gradient(circle at bottom, rgba(15, 23, 42, 0.9), #020617);
  min-height: 100vh;
  padding: 1.5rem 1rem 3rem;
  color: #e5e7eb;
}

/* Constrain content width */
.gossip-page-inner {
  margin: 0 auto;
  max-width: 1200px;
}

/* ============================
   HERO FEATURED STORY
   - Uses blurred backdrop
   - Primary CTA
============================ */

.gossip-hero {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  min-height: 320px;
  margin-bottom: 2rem;
  background: #020617;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.65);
}

/* Hero backdrop image
   - Recommended source size: 1920 x 1080 (16:9)
   - Rendered as blurred, zoomed background */
.gossip-hero-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  filter: blur(6px) brightness(0.9);
}

/* Dark gradient overlay to improve text contrast */
.gossip-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(15, 23, 42, 0.9),
    rgba(15, 23, 42, 0.25)
  );
}

/* Container for hero textual content */
.gossip-hero-content {
  position: relative;
  padding: 1.75rem 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Kicker row: section badge + category pill */
.gossip-hero-kicker-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* "VAN Gossip" badge */
.gossip-hero-kicker-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(248, 250, 252, 0.15);
  font-weight: 600;
  color: #e5e7eb;
}

/* Category pill */
.gossip-hero-category-pill {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.08);
  color: #f97316;
  border: 1px solid rgba(248, 250, 252, 0.15);
}

/* Main hero headline */
.gossip-hero-title {
  font-family: Poppins, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.6rem;
  line-height: 1.25;
  letter-spacing: -0.03em;
  margin: 0;
}

.gossip-hero-title a {
  color: #f9fafb;
  text-decoration: none;
}

.gossip-hero-title a:hover {
  text-decoration: underline;
}

/* Hero tagline */
.gossip-hero-tagline {
  margin: 0.4rem 0 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #d1d5db;
}

/* Hero meta row: author + time + read length */
.gossip-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  font-size: 0.8rem;
  color: #9ca3af;
}

.gossip-hero-meta .dot {
  opacity: 0.6;
}

/* Hero actions: main CTA + secondary buttons */
.gossip-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.25rem;
}

/* Shared button base styles */
.gossip-hero-btn-primary,
.gossip-hero-btn-secondary,
.gossip-hero-btn-icon {
  border-radius: 999px;
  border: none;
  outline: none;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.2rem;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease,
    color 0.12s ease, filter 0.12s ease;
  white-space: nowrap;
}

/* Primary hero button */
.gossip-hero-btn-primary {
  background: linear-gradient(135deg, #f5b200, #f97316);
  color: #020617;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
}

.gossip-hero-btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.8);
}

/* Secondary hero button */
.gossip-hero-btn-secondary {
  background: rgba(15, 23, 42, 0.85);
  color: #e5e7eb;
  border: 1px solid rgba(148, 163, 184, 0.6);
}

.gossip-hero-btn-secondary:hover {
  background: rgba(15, 23, 42, 0.95);
}

/* Icon-style hero button */
.gossip-hero-btn-icon {
  padding-inline: 0.9rem;
  background: rgba(15, 23, 42, 0.7);
  color: #e5e7eb;
  border: 1px dashed rgba(148, 163, 184, 0.8);
}

.gossip-hero-btn-icon:hover {
  background: rgba(15, 23, 42, 0.92);
}

/* ============================
   CATEGORY BAR + SEARCH
   - Horizontal scroll pills
============================ */

.gossip-categories-bar {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

/* Scrollable category pill row */
.gossip-categories-scroll {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.2rem;
  scrollbar-width: thin;
}

.gossip-categories-scroll::-webkit-scrollbar {
  height: 4px;
}

.gossip-categories-scroll::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.6);
  border-radius: 999px;
}

/* Individual category pill */
.gossip-category-pill {
  flex: 0 0 auto;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.85);
  color: #e5e7eb;
  font-size: 0.75rem;
  padding: 0.35rem 0.95rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease,
    transform 0.12s ease;
}

.gossip-category-pill:hover {
  background: rgba(15, 23, 42, 0.95);
  transform: translateY(-1px);
}

/* Active category pill */
.gossip-category-pill.is-active {
  background: #f5b200;
  border-color: #f5b200;
  color: #111827;
}

/* Search + filter row */
.gossip-categories-tools {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

/* Search input wrapper */
.gossip-search-wrap {
  flex: 1;
  position: relative;
}

/* Search input field */
.gossip-search-wrap input[type="search"] {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  padding: 0.55rem 0.85rem;
  font-size: 0.8rem;
}

.gossip-search-wrap input::placeholder {
  color: #6b7280;
}

/* Filter button */
.gossip-filter-btn {
  border-radius: 999px;
  border: 1px solid rgba(55, 65, 81, 1);
  background: rgba(15, 23, 42, 0.95);
  color: #e5e7eb;
  font-size: 0.8rem;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
  white-space: nowrap;
}

/* ============================
   MAIN LAYOUT
   - Main feed + sidebar
============================ */

.gossip-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr);
  gap: 1.75rem;
}

/* Main feed column */
.gossip-main {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

/* Generic section wrapper */
.gossip-section {
  background: rgba(15, 23, 42, 0.95);
  border-radius: 1.1rem;
  padding: 1.2rem 1.1rem 1.25rem;
  border: 1px solid rgba(30, 64, 175, 0.35);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65);
}

/* Section header: title + link/button */
.gossip-section-header {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

/* Section title */
.gossip-section-title {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #f5f5f5;
}

/* Section subtitle */
.gossip-section-subtitle {
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: #9ca3af;
}

/* Section link (anchor) */
.gossip-section-link {
  font-size: 0.78rem;
  text-decoration: none;
  color: #f5b200;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 600;
  padding-top: 0.15rem;
  white-space: nowrap;
}

.gossip-section-link:hover {
  text-decoration: underline;
}

/* Ghost-style section link (button) */
.gossip-section-link--ghost {
  border: none;
  background: transparent;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  cursor: pointer;
}

/* ============================
   TOP STORIES GRID
   - Image cards (16:9)
============================ */

.gossip-top-stories-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

/* Individual top story card */
.gossip-top-card {
  display: flex;
  flex-direction: column;
  background: radial-gradient(
    circle at top,
    rgba(30, 64, 175, 0.35),
    rgba(15, 23, 42, 1)
  );
  border-radius: 0.9rem;
  overflow: hidden;
  border: 1px solid rgba(30, 64, 175, 0.5);
}

/* Link wrapper around thumbnail */
.gossip-top-card-thumb-link {
  display: block;
}

/* Thumbnail wrapper
   - aspect-ratio: 16/9 ensures consistent height
   - Recommended image size: 640 x 360 */
.gossip-top-card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.gossip-top-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 0.22s ease;
}

/* Zoom effect on hover */
.gossip-top-card-thumb-link:hover img {
  transform: scale(1.06);
}

/* Category pill on thumbnail */
.gossip-top-card-category {
  position: absolute;
  left: 0.85rem;
  bottom: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.85);
  color: #f5b200;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Card body: title + meta */
.gossip-top-card-body {
  padding: 0.8rem 0.85rem 0.9rem;
}

.gossip-top-card-title {
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.gossip-top-card-title a {
  color: #f9fafb;
  text-decoration: none;
}

.gossip-top-card-title a:hover {
  text-decoration: underline;
}

.gossip-top-card-meta {
  font-size: 0.75rem;
  color: #9ca3af;
}

/* ============================
   LATEST TEA LIST
   - Text-only feed
============================ */

.gossip-latest-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

/* Individual latest item row */
.gossip-latest-item {
  padding: 0.55rem 0.4rem;
  border-radius: 0.65rem;
  transition: background 0.12s ease, transform 0.12s ease;
}

.gossip-latest-item:hover {
  background: rgba(15, 23, 42, 0.98);
  transform: translateY(-1px);
}

/* Primary meta row (category + time) */
.gossip-latest-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: center;
  font-size: 0.75rem;
  color: #9ca3af;
}

/* Category label in meta */
.gossip-latest-category {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: #f97316;
}

/* Local dot opacity overrides */
.gossip-latest-meta .dot,
.gossip-latest-meta-secondary .dot {
  opacity: 0.7;
}

/* Latest feed title */
.gossip-latest-title {
  font-size: 0.9rem;
  margin: 0.2rem 0 0.25rem;
}

.gossip-latest-title a {
  color: #f9fafb;
  text-decoration: none;
}

.gossip-latest-title a:hover {
  text-decoration: underline;
}

/* Secondary meta row (read time + social buzz) */
.gossip-latest-meta-secondary {
  font-size: 0.75rem;
  color: #9ca3af;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

/* ============================
   SIDEBAR
   - Trending + picks + CTA
============================ */

.gossip-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

/* Generic sidebar section */
.gossip-sidebar-section {
  background: rgba(15, 23, 42, 0.98);
  border-radius: 1.05rem;
  padding: 1.1rem 1rem 1.1rem;
  border: 1px solid rgba(55, 65, 81, 0.8);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
}

/* Sidebar section header (title + button) */
.gossip-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.7rem;
}

/* Sidebar section title */
.gossip-sidebar-title {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: #f9fafb;
}

/* "Refresh" button */
.gossip-sidebar-refresh-btn {
  border-radius: 999px;
  border: 1px solid rgba(75, 85, 99, 1);
  background: transparent;
  color: #9ca3af;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  padding: 0.25rem 0.65rem;
  cursor: pointer;
}

/* ---------- Trending topics ---------- */

.gossip-trending-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.gossip-trending-item {
  flex: 0 0 auto;
}

/* Trending topic pill */
.gossip-trending-pill {
  border-radius: 999px;
  border: 1px solid rgba(75, 85, 99, 1);
  background: rgba(15, 23, 42, 0.96);
  color: #e5e7eb;
  font-size: 0.75rem;
  padding: 0.3rem 0.7rem;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease,
    transform 0.12s ease;
}

.gossip-trending-pill:hover {
  background: rgba(15, 23, 42, 1);
  border-color: #f97316;
  transform: translateY(-1px);
}

/* ---------- Editor's picks ---------- */

.gossip-editors-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.8rem;
}

/* Editor pick card */
.gossip-editors-card {
  border-radius: 0.9rem;
  overflow: hidden;
  background: rgba(15, 23, 42, 1);
  border: 1px solid rgba(55, 65, 81, 1);
}

/* Thumbnail link wrapper */
.gossip-editors-thumb-link {
  display: block;
}

/* Thumbnail wrapper
   - aspect-ratio: 16/9
   - Recommended image size: 640 x 360 */
.gossip-editors-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.gossip-editors-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 0.2s ease;
}

/* Zoom on hover */
.gossip-editors-thumb-link:hover img {
  transform: scale(1.05);
}

/* Category badge over thumbnail */
.gossip-editors-category {
  position: absolute;
  left: 0.75rem;
  bottom: 0.65rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.9);
  color: #facc15;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Card body */
.gossip-editors-body {
  padding: 0.7rem 0.8rem 0.8rem;
}

/* Editor pick title */
.gossip-editors-title {
  font-size: 0.88rem;
  margin: 0;
}

.gossip-editors-title a {
  color: #f9fafb;
  text-decoration: none;
}

.gossip-editors-title a:hover {
  text-decoration: underline;
}

/* ---------- Sidebar CTA ---------- */

.gossip-sidebar-section--cta {
  background: radial-gradient(
    circle at top left,
    rgba(245, 158, 11, 0.35),
    rgba(15, 23, 42, 1)
  );
  border-color: rgba(245, 158, 11, 0.7);
}

/* CTA text */
.gossip-sidebar-text {
  font-size: 0.8rem;
  color: #e5e7eb;
  margin: 0.4rem 0 0.7rem;
}

/* CTA form */
.gossip-sidebar-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* CTA email input */
.gossip-sidebar-form input[type="email"] {
  border-radius: 0.7rem;
  border: 1px solid rgba(31, 41, 55, 1);
  background: rgba(15, 23, 42, 0.98);
  color: #f9fafb;
  font-size: 0.8rem;
  padding: 0.55rem 0.7rem;
}

.gossip-sidebar-form input::placeholder {
  color: #9ca3af;
}

/* CTA submit button */
.gossip-sidebar-form button {
  border-radius: 0.7rem;
  border: none;
  background: linear-gradient(135deg, #f5b200, #f97316);
  color: #111827;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.55rem 0.7rem;
  cursor: pointer;
}

/* CTA footer note */
.gossip-sidebar-note {
  margin-top: 0.45rem;
  font-size: 0.72rem;
  color: #d1d5db;
}

/* ============================
   RESPONSIVE BREAKPOINTS
============================ */

@media (min-width: 640px) {
  .gossip-hero-content {
    padding: 2.1rem 2rem 2rem;
  }

  .gossip-hero-title {
    font-size: 2rem;
  }

  .gossip-hero-tagline {
    font-size: 1rem;
  }

  .gossip-section {
    padding: 1.3rem 1.2rem 1.3rem;
  }
}

@media (min-width: 768px) {
  /* Two-column layout: main feed + sidebar */
  .gossip-layout {
    grid-template-columns: minmax(0, 2.1fr) minmax(260px, 1fr);
    align-items: flex-start;
  }

  /* Top stories as 3 cards in a row */
  .gossip-top-stories-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gossip-page {
    padding-inline: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .gossip-page {
    padding-top: 2rem;
  }

  .gossip-hero {
    min-height: 360px;
  }

  .gossip-hero-content {
    max-width: 65%;
  }

  .gossip-hero-title {
    font-size: 2.3rem;
  }
}
