/*
Theme Name: Car Sun Gossip
Theme URI: https://carsungossip.com
Author: Car Sun Gossip
Description: Dark luxury celebrity news blog theme. Gold and crimson accents, magazine-style homepage for Hollywood gossip, red carpet and movie news.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: car-sun-gossip
*/

:root {
  --bg: #0a0a0a;
  --bg-card: #141414;
  --bg-elevated: #1a1a1a;
  --gold: #c9a227;
  --gold-hover: #e0b93a;
  --crimson: #b91c1c;
  --text: #f5f0e8;
  --muted: #a39b8b;
  --line: #2a2418;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold); }

.hp-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* Header */
.hp-header {
  background: #000;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.hp-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}
.hp-logo {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--gold);
  white-space: nowrap;
}
.hp-nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hp-nav ul { display: flex; gap: 22px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.hp-nav li { margin: 0; padding: 0; }
.hp-nav a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: capitalize;
  color: #eee;
}
.hp-nav a:hover,
.hp-nav .current-menu-item > a { color: var(--gold); }
.hp-btn {
  display: inline-block;
  background: var(--gold);
  color: #111 !important;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 10px 18px;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  letter-spacing: 0.03em;
}
.hp-btn:hover { background: var(--gold-hover); color: #111 !important; }
.hp-menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 8px 12px;
  font-size: 0.75rem;
}

/* Hero */
.hp-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  background: #000;
  border-bottom: 1px solid var(--line);
  min-height: 420px;
}
.hp-hero-copy { padding: 56px 40px 56px 0; display: flex; flex-direction: column; justify-content: center; }
.hp-badge {
  display: inline-block;
  background: var(--crimson);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 5px 10px;
  margin-bottom: 16px;
  width: fit-content;
}
.hp-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.12;
  margin: 0 0 16px;
  font-weight: 700;
}
.hp-hero p { color: var(--muted); margin: 0 0 24px; max-width: 460px; }
.hp-hero-img { position: relative; overflow: hidden; min-height: 360px; }
.hp-hero-img img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }

/* Sections */
.hp-section { padding: 48px 0; }
.hp-section h2 {
  font-family: var(--serif);
  color: var(--gold);
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 22px;
  font-weight: 600;
}

/* Featured */
.hp-featured {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.hp-card {
  background: var(--bg-card);
  border: 1px solid #2c2618;
  overflow: hidden;
}
.hp-card img { width: 100%; height: 220px; object-fit: cover; }
.hp-card-body { padding: 16px 16px 20px; }
.hp-cat {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--crimson);
  text-transform: uppercase;
}
.hp-card h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.3;
  margin: 8px 0 10px;
  font-weight: 600;
}
.hp-meta { font-size: 0.75rem; color: var(--muted); }

/* Latest */
.hp-latest {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 28px;
}
.hp-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid #221e16;
  padding: 10px;
}
.hp-row img { width: 120px; height: 86px; object-fit: cover; }
.hp-row h3 { font-size: 0.98rem; margin: 4px 0 6px; font-family: var(--serif); line-height: 1.3; }

/* Promo */
.hp-promo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: linear-gradient(90deg, #1a0c0c 0%, #0d0d0d 55%);
  border: 1px solid #3a2218;
  overflow: hidden;
}
.hp-promo-copy { padding: 40px 36px; display: flex; flex-direction: column; justify-content: center; }
.hp-promo h2 { color: #fff; font-size: 1.8rem; text-transform: none; letter-spacing: 0; margin-bottom: 12px; }
.hp-promo p { color: var(--muted); }
.hp-promo img { width: 100%; height: 100%; object-fit: cover; min-height: 260px; }

/* Footer */
.hp-footer {
  background: #050505;
  border-top: 1px solid var(--line);
  padding: 48px 0 20px;
  margin-top: 20px;
}
.hp-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 28px;
}
.hp-footer h4 { color: var(--gold); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 12px; }
.hp-footer p, .hp-footer li { color: var(--muted); font-size: 0.88rem; }
.hp-footer ul { list-style: none; margin: 0; padding: 0; }
.hp-footer li { margin-bottom: 6px; }
.hp-copy { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 16px; color: #666; font-size: 0.78rem; text-align: center; }
.hp-nl { display: flex; gap: 8px; }
.hp-nl input {
  flex: 1;
  background: #111;
  border: 1px solid #333;
  color: #fff;
  padding: 10px 12px;
}

/* Single */
.hp-single { max-width: 760px; margin: 40px auto; padding: 0 24px 60px; }
.hp-single h1 { font-family: var(--serif); font-size: 2.4rem; line-height: 1.2; }
.hp-content p { color: #ddd; margin: 0 0 18px; }

@media (max-width: 900px) {
  .hp-wrap { padding: 0 16px; }
  .hp-header { position: sticky; }
  .hp-header-inner { min-height: 64px; gap: 12px; }
  .hp-logo { font-size: 1.05rem; }
  .hp-hero, .hp-featured, .hp-latest, .hp-promo, .hp-footer-grid {
    grid-template-columns: 1fr;
  }
  .hp-nav { display: none; }
  .hp-nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #000;
    padding: 20px;
    border-bottom: 1px solid var(--line);
    z-index: 120;
  }
  .hp-nav.is-open ul { flex-direction: column; gap: 14px; }
  .hp-menu-toggle { display: block; }
  .hp-hero { min-height: 0; }
  .hp-hero-copy { padding: 28px 0 8px; }
  .hp-hero h1 { font-size: 1.85rem; }
  .hp-hero-img { min-height: 220px; position: relative; }
  .hp-hero-img img { position: relative; height: 220px; object-fit: cover; }
  .hp-card img { height: 200px; }
  .hp-single h1 { font-size: 1.7rem; }
  .hp-nl { flex-direction: column; }
}

@media (max-width: 600px) {
  .hp-row { grid-template-columns: 90px 1fr; gap: 10px; }
  .hp-row img { width: 90px; height: 70px; }
  .hp-row h3 { font-size: 0.92rem; }
  .hp-header .hp-btn { display: none; }
}
