/* =====================================================
   Palm Cartel — GTA VI Theme  |  assets/css/theme.css
   ===================================================== */

/* ── Variables (Miami par défaut, écrasées par le Customizer) ── */
:root {
  --pc-pink:    var(--wp-pink,   #ff2d92);
  --pc-purple:  var(--wp-purple, #a020f0);
  --pc-orange:  var(--wp-orange, #ff7e3d);
  --pc-cream:   #fce8c4;
  --pc-bg:      #0a0612;
  --pc-bg2:     #15091e;
  --pc-line:    rgba(252,232,196,.12);
  --pc-muted:   rgba(252,232,196,.55);
  --pc-fg:      #fce8c4;
  --pc-display: "Pricedown","Archivo Black", sans-serif;
  --pc-mono:    "JetBrains Mono", ui-monospace, monospace;
  --pc-body:    "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --pc-radius:  4px;
  --pc-marquee: 40s;
  --pc-neon:    0 0 36px rgba(255,45,146,.5);
}

/* Palettes optionnelles — appliquées via body class (Customizer) */
body.palette-cyber   { --pc-pink:#ff00aa; --pc-purple:#7000ff; --pc-orange:#00f0ff; }
body.palette-redgold { --pc-pink:#ff3b30; --pc-purple:#1a1a1a; --pc-orange:#ffaa00; }
body.palette-matrix  { --pc-pink:#39ff14; --pc-purple:#1a1a1a; --pc-orange:#39ff14;
                        --pc-cream:#fafafa; --pc-bg:#050505; --pc-bg2:#0c0c0c; }

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--pc-bg);
  color: var(--pc-fg);
  font-family: var(--pc-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--pc-pink); color: var(--pc-bg); }

/* ── Typography helpers ── */
.display {
  font-family: var(--pc-display);
  font-weight: 400;
  line-height: .92;
  text-transform: uppercase;
  letter-spacing: .005em;
}
.mono { font-family: var(--pc-mono); }

.grad-text {
  background: linear-gradient(135deg, var(--pc-orange) 0%, var(--pc-pink) 45%, var(--pc-purple) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── Buttons ── */
.pc-btn {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  padding: .7em 1.4em;
  border-radius: 999px;
  border: 1px solid var(--pc-line);
  background: rgba(255,255,255,.02);
  color: var(--pc-fg);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: all .25s cubic-bezier(.2,.8,.2,1);
}
.pc-btn:hover { border-color: var(--pc-pink); background: rgba(255,45,146,.08); transform: translateY(-1px); }
.pc-btn--solid { background: var(--pc-cream); color: var(--pc-bg); border-color: var(--pc-cream); }
.pc-btn--solid:hover { background: var(--pc-pink); border-color: var(--pc-pink); color: var(--pc-cream); }
.pc-btn--neon { border-color: var(--pc-pink); color: var(--pc-pink); }
.pc-btn--neon:hover { background: var(--pc-pink); color: var(--pc-bg); box-shadow: var(--pc-neon); }

/* ── Chips / badges ── */
.pc-chip {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-family: var(--pc-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--pc-cream);
  background: rgba(252,232,196,.08);
  border: 1px solid var(--pc-line);
}
.pc-chip--pink   { color: var(--pc-pink);   border-color: rgba(255,45,146,.4);  background: rgba(255,45,146,.08); }
.pc-chip--orange { color: var(--pc-orange); border-color: rgba(255,126,61,.4);  background: rgba(255,126,61,.08); }

/* ── Nav ── */
.pc-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  gap: 16px;
  background: linear-gradient(180deg, rgba(10,6,18,.9) 0%, rgba(10,6,18,0) 100%);
  backdrop-filter: blur(6px);
  transition: background .3s;
}
.pc-nav.scrolled { background: rgba(10,6,18,.95); }

.pc-nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--pc-display);
  font-size: 16px;
  letter-spacing: .02em;
  text-transform: uppercase;
  white-space: nowrap;
}
.pc-nav__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--pc-orange), var(--pc-pink) 50%, var(--pc-purple));
  color: var(--pc-bg);
  font-family: var(--pc-display);
  font-size: 14px;
  flex-shrink: 0;
}
.pc-nav__sep { width: 1px; height: 18px; background: var(--pc-line); }
.pc-nav__sub { color: var(--pc-muted); font-size: 11px; letter-spacing: .18em; font-family: var(--pc-mono); }

.pc-nav__links { display: flex; gap: 4px; }
.pc-nav__link {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--pc-muted);
  transition: all .2s;
}
.pc-nav__link:hover,
.pc-nav__link.current-menu-item a,
.pc-nav__link.current_page_item a { color: var(--pc-cream); }

/* WP menu override */
.pc-nav__links ul { display: flex; gap: 4px; list-style: none; }
.pc-nav__links ul li a {
  display: block;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--pc-muted);
  transition: all .2s;
}
.pc-nav__links ul li a:hover,
.pc-nav__links ul li.current-menu-item a { color: var(--pc-cream); }

/* ── Hero — Senset Miami ── */
.pc-hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background-color: var(--pc-bg);
  background-size: cover;
  background-position: center center;
  filter: saturate(1.4) contrast(1.1) hue-rotate(-8deg); /* VHS Sat baked */
}
.pc-hero__inner {
  position: absolute;
  inset: 0;
  /* cancel filter for text readability */
  filter: saturate(calc(1/1.4)) contrast(calc(1/1.1)) hue-rotate(8deg);
}
.pc-hero__mask-left {
  position: absolute; left: 0; top: 0; bottom: 0; width: 65%;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(10,6,18,.95) 0%, rgba(10,6,18,.7) 45%, rgba(10,6,18,0) 100%);
}
.pc-hero__mask-top {
  position: absolute; left: 0; right: 0; top: 0; height: 30%;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(10,6,18,.9) 0%, rgba(10,6,18,.3) 55%, rgba(10,6,18,0) 100%);
}
.pc-hero__mask-bot {
  position: absolute; inset: 0;
  pointer-events: none;
  background: linear-gradient(0deg, var(--pc-bg) 0%, rgba(10,6,18,.3) 14%, rgba(10,6,18,0) 30%);
}
.pc-hero__scanlines {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: .06;
  mix-blend-mode: overlay;
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.5) 0 1px, transparent 1px 3px);
}
.pc-hero__content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  min-height: 100vh;
  padding: 120px 48px 100px;
  max-width: 1500px;
  margin: 0 auto;
}
.pc-hero__eyebrow {
  font-family: var(--pc-mono);
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--pc-cream);
  margin-bottom: 24px;
  opacity: .9;
}
.pc-hero__title {
  font-family: var(--pc-display);
  font-size: clamp(48px, 6.3vw, 110px);
  line-height: .92;
  text-transform: uppercase;
  color: var(--pc-cream);
  text-shadow: 0 4px 40px rgba(0,0,0,.7);
  margin-bottom: 28px;
}
.pc-hero__sub {
  max-width: 480px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--pc-cream);
  opacity: .92;
  text-shadow: 0 2px 12px rgba(0,0,0,.6);
  margin-bottom: 36px;
}
.pc-hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 48px; }
.pc-hero__stats { display: flex; gap: 28px; }
.pc-stat__n { font-family: var(--pc-display); font-size: 28px; color: var(--pc-cream); line-height: 1; }
.pc-stat__l { font-family: var(--pc-mono); font-size: 10px; color: var(--pc-muted); letter-spacing: .14em; text-transform: uppercase; margin-top: 3px; }

.pc-hero__stamp {
  align-self: flex-end;
  justify-self: flex-end;
  margin-bottom: 28px;
  padding: 10px 14px;
  background: var(--pc-cream);
  color: var(--pc-bg);
  font-family: var(--pc-display);
  font-size: 14px;
  transform: rotate(-3deg);
}

/* Reveal animation */
@keyframes pc-up {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
.pc-hero__content > * { animation: pc-up .8s cubic-bezier(.2,.8,.2,1) both; }
.pc-hero__content > *:nth-child(2) { animation-delay: .12s; }

/* ── Marquee ── */
@keyframes pc-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.pc-marquee {
  overflow: hidden;
  border-top: 1px solid var(--pc-line);
  border-bottom: 1px solid var(--pc-line);
  background: rgba(255,45,146,.04);
}
.pc-marquee__track {
  display: flex;
  gap: 48px;
  padding: 14px 0;
  white-space: nowrap;
  animation: pc-marquee var(--pc-marquee) linear infinite;
  font-family: var(--pc-display);
  font-size: 18px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.pc-marquee__item { display: inline-flex; align-items: center; gap: 48px; color: var(--pc-cream); }
.pc-marquee__dot  { width: 8px; height: 8px; border-radius: 50%; background: var(--pc-pink); display: inline-block; }
.pc-marquee__alt  { color: var(--pc-pink); }

/* ── Roster (ligne horizontale compacte) ── */
.pc-roster { border-top: 1px solid var(--pc-line); }
.pc-roster__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 64px 48px 28px;
  flex-wrap: wrap;
  gap: 16px;
}
.pc-roster__head h2 {
  font-family: var(--pc-display);
  font-size: clamp(40px, 7vw, 96px);
  line-height: .9;
  text-transform: uppercase;
  letter-spacing: -.02em;
}
.pc-roster__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }

.pc-roster__row {
  display: flex;
  gap: 1px;
  background: var(--pc-line);
  border-top: 1px solid var(--pc-line);
  border-bottom: 1px solid var(--pc-line);
  overflow-x: auto;
}
.pc-roster__row::-webkit-scrollbar { height: 3px; }
.pc-roster__row::-webkit-scrollbar-thumb { background: rgba(255,45,146,.3); border-radius: 2px; }

/* Carte joueur compacte */
.pc-player {
  flex: 1;
  min-width: 140px;
  max-width: 200px;
  background: var(--pc-bg);
  padding: 14px 12px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), background .3s;
  cursor: pointer;
}
.pc-player:hover { background: var(--pc-bg2); transform: translateY(-5px); }
.pc-player:hover .pc-player__img::after { opacity: 1; }

.pc-player__img {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: 8px;
}
.pc-player__img img,
.pc-player__img .wp-post-image {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.pc-player__img--placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(255,126,61,.12), rgba(255,45,146,.12) 50%, rgba(160,32,240,.15));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--pc-display);
  font-size: 32px;
  color: rgba(252,232,196,.2);
}
.pc-player__img::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(255,45,146,.4) 100%);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.pc-player__no {
  position: absolute; top: 6px; left: 8px;
  font-family: var(--pc-display);
  font-size: 18px; line-height: 1;
  color: var(--pc-cream); opacity: .7;
  z-index: 2;
}
.pc-player__tag {
  position: absolute; top: 6px; right: 6px;
  z-index: 2;
}
.pc-player__name {
  font-family: var(--pc-display);
  font-size: 16px; line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -.01em;
}
.pc-player__role { font-size: 10px; color: var(--pc-muted); letter-spacing: .03em; line-height: 1.3; }
.pc-player__stats {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px dashed var(--pc-line);
  width: 100%;
}
.pc-player__stat dt {
  font-family: var(--pc-mono);
  font-size: 9px; color: var(--pc-muted);
  text-transform: uppercase; letter-spacing: .06em;
}
.pc-player__stat dd {
  font-family: var(--pc-display);
  font-size: 13px; color: var(--pc-cream);
}
.pc-player__stat dd.pink { color: var(--pc-pink); }

/* ── Blog / Articles ── */
.pc-blog { padding: 72px 48px 96px; }
.pc-blog__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--pc-line);
  margin-bottom: 44px;
  flex-wrap: wrap;
  gap: 16px;
}
.pc-blog__head h2 {
  font-family: var(--pc-display);
  font-size: clamp(40px, 6vw, 96px);
  line-height: .9;
  text-transform: uppercase;
  letter-spacing: -.02em;
}
.pc-blog__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--pc-line);
}

/* Carte article */
.pc-article {
  background: var(--pc-bg);
  display: flex;
  flex-direction: column;
  transition: background .3s;
  cursor: pointer;
}
.pc-article:hover { background: var(--pc-bg2); }
.pc-article:hover .pc-article__thumb img { transform: scale(1.04); }
.pc-article:hover .pc-article__title { color: var(--pc-pink); }

.pc-article__thumb {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255,126,61,.12), rgba(255,45,146,.12) 50%, rgba(160,32,240,.15));
}
.pc-article__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.pc-article__thumb .pc-article__cat { position: absolute; top: 14px; left: 14px; z-index: 2; }
.pc-article__thumb .pc-article__num {
  position: absolute; bottom: 14px; right: 14px;
  font-family: var(--pc-display); font-size: 40px;
  color: rgba(252,232,196,.15); z-index: 2;
}

.pc-article__body { padding: 22px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.pc-article__meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pc-article__date { font-family: var(--pc-mono); font-size: 11px; color: var(--pc-muted); letter-spacing: .06em; }
.pc-article__author { font-family: var(--pc-mono); font-size: 11px; color: var(--pc-pink); }
.pc-article__title {
  font-family: var(--pc-display);
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -.01em;
  color: var(--pc-cream);
  transition: color .2s;
}
.pc-article__excerpt { font-size: 14px; line-height: 1.6; color: var(--pc-muted); flex: 1; }

.pc-article__footer {
  padding: 14px 22px;
  border-top: 1px dashed var(--pc-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pc-article__read {
  font-family: var(--pc-mono); font-size: 11px;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--pc-pink);
  transition: letter-spacing .2s;
}
.pc-article:hover .pc-article__read { letter-spacing: .16em; }
.pc-article__time { font-family: var(--pc-mono); font-size: 11px; color: var(--pc-muted); }

/* Pagination */
.pc-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-top: 48px;
  flex-wrap: wrap;
}
.pc-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 8px;
  border: .5px solid var(--pc-line);
  background: transparent;
  color: var(--pc-muted);
  font-family: var(--pc-mono);
  font-size: 13px;
  transition: all .2s;
}
.pc-pagination .page-numbers:hover { border-color: var(--pc-pink); color: var(--pc-pink); }
.pc-pagination .page-numbers.current { background: var(--pc-cream); color: var(--pc-bg); border-color: var(--pc-cream); }

/* ── CTA Strip ── */
.pc-cta {
  padding: 96px 48px;
  text-align: center;
  background: radial-gradient(80% 60% at 50% 40%, rgba(255,45,146,.15) 0%, transparent 60%);
}
.pc-cta__eyebrow { font-family: var(--pc-mono); font-size: 12px; letter-spacing: .2em; color: var(--pc-pink); margin-bottom: 16px; }
.pc-cta h2 {
  font-family: var(--pc-display);
  font-size: clamp(48px, 8vw, 130px);
  line-height: .9;
  text-transform: uppercase;
  letter-spacing: -.02em;
  margin-bottom: 20px;
}
.pc-cta p { color: var(--pc-muted); max-width: 520px; margin: 0 auto 32px; font-size: 16px; line-height: 1.6; }
.pc-cta__row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Single article ── */
.pc-single { padding: 140px 48px 80px; max-width: 820px; margin: 0 auto; }
.pc-single__header { margin-bottom: 40px; }
.pc-single__cat { margin-bottom: 16px; }
.pc-single__title {
  font-family: var(--pc-display);
  font-size: clamp(36px, 5vw, 72px);
  line-height: .92;
  text-transform: uppercase;
  letter-spacing: -.02em;
  margin-bottom: 20px;
}
.pc-single__meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  font-family: var(--pc-mono); font-size: 12px; color: var(--pc-muted); letter-spacing: .06em; }
.pc-single__meta .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--pc-pink); }
.pc-single__thumb { aspect-ratio: 16/9; overflow: hidden; border-radius: 8px; margin-bottom: 40px; }
.pc-single__thumb img { width: 100%; height: 100%; object-fit: cover; }
.pc-single__content { font-size: 17px; line-height: 1.75; color: var(--pc-muted); }
.pc-single__content p { margin-bottom: 1.4em; }
.pc-single__content h2, .pc-single__content h3 { font-family: var(--pc-display); color: var(--pc-cream); text-transform: uppercase; margin: 1.8em 0 .8em; }
.pc-single__content h2 { font-size: clamp(24px, 3vw, 40px); }
.pc-single__content h3 { font-size: clamp(20px, 2.5vw, 32px); }
.pc-single__content a { color: var(--pc-pink); border-bottom: 1px solid rgba(255,45,146,.3); }
.pc-single__content a:hover { border-color: var(--pc-pink); }
.pc-single__content blockquote {
  border-left: 3px solid var(--pc-pink);
  padding: 12px 24px;
  margin: 24px 0;
  background: rgba(255,45,146,.05);
  border-radius: 0 6px 6px 0;
  font-family: var(--pc-display);
  font-size: clamp(18px, 2vw, 28px);
  color: var(--pc-cream);
  text-transform: uppercase;
}
.pc-single__content ul, .pc-single__content ol { padding-left: 1.4em; margin-bottom: 1.4em; }
.pc-single__content li { margin-bottom: .5em; }

/* ── Footer ── */
.pc-footer {
  padding: 32px 48px;
  border-top: 1px solid var(--pc-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--pc-mono);
  font-size: 11px;
  color: var(--pc-muted);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.pc-footer__links { display: flex; gap: 18px; flex-wrap: wrap; }
.pc-footer__links a:hover { color: var(--pc-pink); }

/* ── 404 ── */
.pc-404 {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  min-height: 100vh; text-align: center; padding: 48px;
}
.pc-404 h1 { font-family: var(--pc-display); font-size: clamp(80px, 15vw, 200px); line-height: .9; color: var(--pc-pink); }
.pc-404 p { font-size: 18px; color: var(--pc-muted); margin: 20px 0 32px; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .pc-blog__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .pc-nav { padding: 14px 20px; }
  .pc-nav__links { display: none; }
  .pc-hero__content { grid-template-columns: 1fr; padding: 100px 24px 60px; }
  .pc-hero__stamp { display: none; }
  .pc-roster__head, .pc-blog, .pc-cta, .pc-footer { padding-left: 20px; padding-right: 20px; }
  .pc-blog__grid { grid-template-columns: 1fr; }
  .pc-single { padding: 100px 20px 60px; }
}

/* ── Countdown banner ── */
.pc-countdown {
  background: linear-gradient(90deg, rgba(255,45,146,.12) 0%, rgba(160,32,240,.12) 100%);
  border-bottom: 1px solid rgba(255,45,146,.2);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--pc-mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--pc-muted);
}
.pc-countdown strong { color: var(--pc-pink); font-size: 14px; }
.pc-countdown__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--pc-pink); animation: pc-pulse 2s ease-in-out infinite; }
@keyframes pc-pulse { 0%,100%{opacity:1;} 50%{opacity:.2;} }
