/* ==========================================================================
   GTApt v2.7.6 - Homepage hero: GTA VI countdown panel (right column)
   Loaded on the front page only, when the countdown is switched on.
   Light-mode overrides live in light-vicecity.css.
   ========================================================================== */

/* ---------- Hero: two columns when the panel is present ---------- */
.hero-content.hero-content--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
  gap: 48px;
  align-items: center;
  max-width: none;
}
.hero-content--split .hero-text { max-width: 700px; }

/* ---------- Panel ---------- */
.gtapt-cdp {
  --cdp-pink: #ff4fa3;
  --cdp-orange: #ff9a4d;
  --cdp-teal: #2ee6d6;
  --cdp-violet: #9b5cff;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px 22px 20px;
  overflow: hidden;
  border-radius: 18px;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(155, 92, 255, 0.16), transparent 60%),
    rgba(14, 10, 24, 0.62);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.45),
    0 0 26px rgba(255, 79, 163, 0.18),
    0 0 46px rgba(46, 230, 214, 0.08);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  text-align: center;
}
/* Thin neon sunset border (gradient ring via mask) */
.gtapt-cdp::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 1.5px;
  border-radius: inherit;
  background: linear-gradient(120deg, var(--cdp-pink), var(--cdp-orange), var(--cdp-teal), var(--cdp-violet), var(--cdp-pink));
  background-size: 300% 300%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  animation: gtapt-cdp-border 10s linear infinite;
}
/* Soft glow that breathes slowly */
.gtapt-cdp::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  box-shadow: inset 0 0 24px rgba(255, 79, 163, 0.14), inset 0 0 50px rgba(46, 230, 214, 0.05);
  pointer-events: none;
  animation: gtapt-cdp-glow 4.5s ease-in-out infinite;
}
@keyframes gtapt-cdp-border {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}
@keyframes gtapt-cdp-glow {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

/* Big faint "VI" watermark */
.gtapt-cdp__wm {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  transform: translate(-50%, -58%);
  color: rgba(255, 79, 163, 0.07);
  font-family: 'GTAArtDeco', var(--font-display);
  font-size: 11rem;
  line-height: 1;
  letter-spacing: -0.02em;
  pointer-events: none;
  user-select: none;
}

.gtapt-cdp__kicker {
  color: var(--cdp-pink);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.gtapt-cdp__title {
  margin: -4px 0 2px;
  font-family: 'GTAArtDeco', var(--font-display);
  font-size: 1.85rem;
  font-weight: 400;
  line-height: 1.1;
  background: linear-gradient(90deg, #ff6fb5 0%, var(--cdp-pink) 45%, #c86bff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 0 10px rgba(255, 79, 163, 0.28));
}

/* Digit tiles */
.gtapt-cdp__clock {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  width: 100%;
}
.gtapt-cdp__clock[hidden] { display: none; }
.gtapt-cdp__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 4px 8px;
  border: 1px solid rgba(255, 79, 163, 0.5);
  border-radius: 10px;
  background: rgba(10, 6, 20, 0.55);
  box-shadow: 0 0 12px rgba(255, 79, 163, 0.16), inset 0 0 12px rgba(155, 92, 255, 0.1);
}
.gtapt-cdp__unit:nth-child(2) { border-color: rgba(255, 140, 110, 0.5); }
.gtapt-cdp__unit:nth-child(3) { border-color: rgba(200, 107, 255, 0.5); }
.gtapt-cdp__unit:nth-child(4) { border-color: rgba(46, 230, 214, 0.45); box-shadow: 0 0 12px rgba(46, 230, 214, 0.14), inset 0 0 12px rgba(46, 230, 214, 0.06); }
.gtapt-cdp__num {
  font-family: 'GTAArtDeco', var(--font-display);
  font-size: 2.05rem;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #ffd1e8 0%, var(--cdp-pink) 55%, var(--cdp-orange) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 8px rgba(255, 79, 163, 0.35));
}
.gtapt-cdp__label {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Progress */
.gtapt-cdp__progress {
  width: 100%;
  height: 5px;
  margin-top: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}
.gtapt-cdp__bar {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cdp-violet), var(--cdp-pink), var(--cdp-orange), var(--cdp-teal));
  box-shadow: 0 0 10px rgba(46, 230, 214, 0.45);
  transition: width 0.6s ease;
}

.gtapt-cdp__meta {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8rem;
  line-height: 1.4;
}
.gtapt-cdp__sep { margin: 0 4px; color: var(--cdp-pink); }

.gtapt-cdp__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  padding: 8px 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff4fa3, #ff6f91);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(255, 79, 163, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.gtapt-cdp__btn:hover,
.gtapt-cdp__btn:focus-visible {
  color: #fff;
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(255, 79, 163, 0.5);
}
.gtapt-cdp__btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.gtapt-cdp__btn-icon { flex: none; }

/* Released */
.gtapt-cdp.is-done { gap: 14px; padding-top: 26px; padding-bottom: 24px; }
.gtapt-cdp.is-done .gtapt-cdp__title { font-size: 2.1rem; }

/* ---------- v2.7.3 wide layout ---------- */
@media (min-width: 1400px) {
  .hero-content.hero-content--split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
    gap: 72px;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero-content.hero-content--split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
    gap: 32px;
  }
  .hero-content--split .hero-text h1 { font-size: 3rem; }
  .gtapt-cdp__title { font-size: 1.6rem; }
  .gtapt-cdp__num { font-size: 1.75rem; }
}

@media (max-width: 900px) {
  .hero-content.hero-content--split {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .hero-content--split .gtapt-cdp { width: 100%; max-width: 520px; }
}

@media (max-width: 768px) {
  .hero-content--split .hero-text h1 { font-size: 2.4rem; }
  .gtapt-cdp { gap: 10px; padding: 16px 14px; border-radius: 14px; }
  .gtapt-cdp__wm { font-size: 8rem; }
  .gtapt-cdp__title,
  .gtapt-cdp.is-done .gtapt-cdp__title { font-size: 1.45rem; }
  .gtapt-cdp__clock { gap: 7px; }
  .gtapt-cdp__unit { padding: 8px 2px 7px; }
  .gtapt-cdp__num { font-size: 1.55rem; }
  .gtapt-cdp__label { font-size: 0.55rem; letter-spacing: 0.06em; }
  .gtapt-cdp__meta { font-size: 0.74rem; }
  .gtapt-cdp__btn { padding: 7px 16px; font-size: 0.8rem; }
}

@media (max-width: 380px) {
  .gtapt-cdp__num { font-size: 1.3rem; }
  .gtapt-cdp__label { font-size: 0.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .gtapt-cdp::before,
  .gtapt-cdp::after { animation: none; }
  .gtapt-cdp::after { opacity: 0.8; }
  .gtapt-cdp__bar,
  .gtapt-cdp__btn { transition: none; }
  .gtapt-cdp__btn:hover,
  .gtapt-cdp__btn:focus-visible { transform: none; }
}
