/* ============================================================
   gtasixcoins.com — Vice City neon theme
   ============================================================ */

:root {
  --bg-deep:     #08031a;
  --bg-mid:      #1a0840;
  --bg-card:     rgba(28, 8, 64, 0.55);
  --pink:        #ff2d95;
  --pink-soft:   #ff6ec7;
  --cyan:        #00f0ff;
  --cyan-soft:   #7df9ff;
  --purple:      #8a2be2;
  --yellow:      #fff200;
  --orange:      #ff7a18;
  --text:        #f3e9ff;
  --text-dim:    #b8a3d6;
  --border:      rgba(255, 45, 149, 0.35);
  --border-hot:  rgba(255, 45, 149, 0.85);
  --shadow-pink: 0 0 24px rgba(255, 45, 149, 0.55), 0 0 48px rgba(255, 45, 149, 0.25);
  --shadow-cyan: 0 0 18px rgba(0, 240, 255, 0.55), 0 0 38px rgba(0, 240, 255, 0.25);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg-deep);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ----- Animated sunset background ----- */
body {
  background:
    radial-gradient(ellipse at 50% 110%, #ff2d95 0%, #8a2be2 25%, #1a0840 55%, #08031a 100%),
    linear-gradient(180deg, #08031a 0%, #1a0840 40%, #08031a 100%);
  background-attachment: fixed;
  position: relative;
}

body::before {
  /* horizontal scan lines for retro CRT vibe */
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0) 0px,
    rgba(0, 0, 0, 0) 2px,
    rgba(0, 0, 0, 0.12) 3px,
    rgba(0, 0, 0, 0) 4px
  );
  pointer-events: none;
  z-index: 1;
  opacity: 0.4;
}

body::after {
  /* glowing horizon "sun" line */
  content: '';
  position: fixed;
  bottom: -30vh;
  left: -20vw;
  width: 140vw;
  height: 80vh;
  background: radial-gradient(ellipse at 50% 0%,
    rgba(255, 122, 24, 0.7) 0%,
    rgba(255, 45, 149, 0.5) 25%,
    rgba(138, 43, 226, 0.3) 55%,
    transparent 75%);
  pointer-events: none;
  z-index: 0;
  filter: blur(2px);
}

main, header, footer { position: relative; z-index: 2; }

/* ----- Header ----- */
.site-header {
  padding: 28px 24px 12px;
  text-align: center;
}

.brand {
  display: inline-block;
  font-family: 'Monoton', 'Impact', sans-serif;
  font-size: clamp(2.2rem, 7vw, 4.2rem);
  letter-spacing: 0.08em;
  background: linear-gradient(180deg, #ffffff 0%, var(--pink-soft) 35%, var(--pink) 70%, var(--purple) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow:
    0 0 20px rgba(255, 45, 149, 0.6),
    0 0 40px rgba(255, 45, 149, 0.3);
  text-decoration: none;
}

.brand-sub {
  display: block;
  margin-top: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: var(--cyan);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.6);
}

/* ----- Hero ----- */
.hero {
  text-align: center;
  padding: 32px 24px 48px;
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 {
  font-family: 'Monoton', 'Impact', sans-serif;
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1.05;
  margin-bottom: 18px;
  letter-spacing: 0.05em;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--pink) 50%, var(--yellow) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  color: var(--text-dim);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ----- Coin grid ----- */
.coin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  padding: 24px;
  max-width: 1200px;
  margin: 0 auto 60px;
}

.coin-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px 24px;
  position: relative;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

.coin-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(255, 45, 149, 0.08) 0%,
    rgba(0, 240, 255, 0.04) 50%,
    transparent 100%);
  pointer-events: none;
}

.coin-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hot);
  box-shadow: var(--shadow-pink);
}

.coin-card.featured {
  border-color: var(--border-hot);
  box-shadow: var(--shadow-pink);
}

.coin-card.featured::after {
  content: 'TOP COIN';
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pink), var(--orange));
  color: #fff;
  box-shadow: 0 0 14px rgba(255, 45, 149, 0.7);
}

.coin-name {
  font-family: 'Monoton', 'Impact', sans-serif;
  font-size: 2rem;
  letter-spacing: 0.05em;
  color: var(--pink-soft);
  text-shadow: 0 0 12px rgba(255, 45, 149, 0.55);
  margin-bottom: 4px;
}

.coin-ticker {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--cyan);
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.4);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.coin-tagline {
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.55;
  margin-bottom: 18px;
  min-height: 3em;
}

.coin-address-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-bottom: 16px;
}

.coin-address {
  flex: 1;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.78rem;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--cyan-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: flex;
  align-items: center;
}

.copy-btn {
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  border: none;
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  padding: 0 16px;
  border-radius: 10px;
  cursor: pointer;
  text-transform: uppercase;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 0 0 rgba(255, 45, 149, 0);
}

.copy-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-pink);
}

.copy-btn:active { transform: translateY(0); }

.copy-btn.copied {
  background: linear-gradient(135deg, var(--cyan), #00b894);
  box-shadow: var(--shadow-cyan);
}

.copy-btn.copied::after {
  content: 'COPIED!';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: inherit;
  border-radius: inherit;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  flex: 1 1 auto;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: #fff;
  box-shadow: 0 0 0 rgba(255, 45, 149, 0);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-pink);
}

.btn-ghost {
  background: rgba(0, 240, 255, 0.06);
  color: var(--cyan);
  border-color: rgba(0, 240, 255, 0.4);
}

.btn-ghost:hover {
  background: rgba(0, 240, 255, 0.12);
  box-shadow: var(--shadow-cyan);
  border-color: var(--cyan);
}

/* ----- Coin detail page ----- */
.detail-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
  font-weight: 600;
}

.back-link:hover { text-shadow: 0 0 10px var(--cyan); }

.detail-header {
  text-align: center;
  margin-bottom: 28px;
}

.detail-header .coin-name {
  font-size: clamp(2.4rem, 8vw, 4.5rem);
  margin-bottom: 8px;
}

.detail-header .coin-tagline {
  font-size: 1.05rem;
  max-width: 640px;
  margin: 12px auto 0;
  min-height: 0;
}

.detail-address-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  max-width: 720px;
  margin: 22px auto 32px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.detail-address-label {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 8px;
}

.chart-frame {
  width: 100%;
  height: 70vh;
  min-height: 520px;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-pink);
  margin-bottom: 24px;
}

.notice {
  max-width: 720px;
  margin: 0 auto 22px;
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(255, 122, 24, 0.12), rgba(255, 45, 149, 0.12));
  border: 1px solid rgba(255, 122, 24, 0.45);
  border-radius: 12px;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.5;
  text-align: center;
}

.notice strong { color: var(--orange); letter-spacing: 0.04em; }

.chart-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.detail-footer-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

/* ----- Footer ----- */
.site-footer {
  text-align: center;
  padding: 30px 24px 40px;
  color: var(--text-dim);
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 45, 149, 0.15);
  margin-top: 40px;
}

.site-footer .disclaimer {
  max-width: 640px;
  margin: 12px auto 0;
  font-size: 0.78rem;
  opacity: 0.75;
  line-height: 1.55;
}

/* ----- Mobile tweaks ----- */
@media (max-width: 600px) {
  .coin-grid { padding: 16px; gap: 18px; }
  .coin-card { padding: 22px 18px; }
  .chart-frame { height: 60vh; min-height: 420px; }
  .btn-row { flex-direction: column; }
  .btn { width: 100%; }
}


/* ===== GTA 6 Countdown (shared) ===== */
.gta6-countdown {
  margin: 28px auto 36px;
  max-width: 760px;
  padding: 22px 18px 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(20,3,40,.85), rgba(60,8,80,.55));
  border: 1px solid rgba(255, 45, 149, .35);
  box-shadow:
    0 0 24px rgba(255, 45, 149, .25),
    0 0 60px rgba(44, 232, 255, .12) inset;
  text-align: center;
  position: relative;
}
.gta6-countdown__label {
  font-family: 'Inter', sans-serif;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-size: 12px;
  color: #2ce8ff;
  text-shadow: 0 0 8px rgba(44, 232, 255, .8);
  margin-bottom: 8px;
}
.gta6-countdown__title {
  font-family: 'Monoton', cursive;
  font-size: clamp(22px, 4vw, 34px);
  color: #ff2d95;
  text-shadow: 0 0 10px rgba(255, 45, 149, .9), 0 0 24px rgba(255, 45, 149, .55);
  margin-bottom: 14px;
  line-height: 1.1;
}
.gta6-countdown__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  max-width: 620px;
  margin: 0 auto;
}
.gta6-countdown__cell {
  background: rgba(0, 0, 0, .42);
  border: 1px solid rgba(44, 232, 255, .45);
  border-radius: 10px;
  padding: 12px 6px 10px;
  box-shadow: 0 0 14px rgba(44, 232, 255, .18) inset;
}
.gta6-countdown__num {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: clamp(24px, 5vw, 38px);
  color: #fff;
  text-shadow: 0 0 6px #2ce8ff, 0 0 14px rgba(44, 232, 255, .7);
  line-height: 1;
  letter-spacing: .02em;
}
.gta6-countdown__unit {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: #ffb6d9;
  margin-top: 6px;
}
.gta6-countdown__date {
  margin-top: 14px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #d9c7f0;
  letter-spacing: .12em;
}
.gta6-countdown.is-launched .gta6-countdown__title {
  color: #2ce8ff;
  text-shadow: 0 0 12px #2ce8ff, 0 0 28px rgba(44, 232, 255, .6);
}
.gta6-countdown__h2 {
  text-align: center;
  font-family: 'Monoton', cursive;
  color: #2ce8ff;
  font-size: clamp(18px, 3vw, 24px);
  margin: 18px 0 0;
  text-shadow: 0 0 10px rgba(44,232,255,.6);
  letter-spacing: .04em;
}
@media (max-width: 520px) {
  .gta6-countdown__grid { gap: 5px; }
  .gta6-countdown__cell { padding: 10px 2px 8px; }
}

/* ===== Clickable coin cards ===== */
.coin-card[data-href] {
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.coin-card[data-href]:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 45, 149, .6);
  box-shadow: 0 8px 28px rgba(255, 45, 149, .25), 0 0 0 1px rgba(255, 45, 149, .3) inset;
}
.coin-card[data-href]:focus-visible {
  outline: 2px solid #2ce8ff;
  outline-offset: 4px;
}
.coin-card[data-href] .coin-name {
  transition: text-shadow .15s ease;
}
.coin-card[data-href]:hover .coin-name {
  text-shadow: 0 0 12px rgba(255, 45, 149, .85), 0 0 28px rgba(255, 45, 149, .5);
}
/* Inner clickable elements stay interactive */
.coin-card[data-href] .copy-btn,
.coin-card[data-href] .btn,
.coin-card[data-href] .coin-address {
  position: relative;
  z-index: 2;
}
