/* counter.css
   Countdown card styles.

   Intent:
   - Keep this component self-contained so it doesn’t inherit “hero” sizing from the page.
   - Make the title comparable to the site’s smaller headline sizing (h2 ~30px) [3].
   - Make the timer read like normal body text (p ~20px) [3].
   - Keep the whole thing compact (roughly ~320px wide) so it sits nicely near embeds.
*/

.s4a-card{
  /* Card look */
  --panel: rgba(166, 132, 148, 0.85);
  --text: rgba(0, 0, 0, 0.92);
  --muted: rgba(0, 0, 0, 0.70);
  --accent: #5034FF;

  background: var(--panel);
  color: var(--text);
  border-radius: 16px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.18);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);

  /* Compact sizing */
  width: min(320px, 92vw);
  margin: 0 auto;
  padding: 14px 14px 16px;

  font-family: 'Handjet', cursive;
  box-sizing: border-box;
}

.s4a-card *{ box-sizing: border-box; }

/* Label */
.s4a-pill{
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.6px;
  font-size: 18px;
  line-height: 1;
  padding: 8px 12px;
  border-radius: 12px;
  margin: 2px 0 10px;
}

.s4a-pill a {
  color: #fff;
}

.s4a-pill a:hover {
  color: #ccc; /* Slightly gray */
}

/* Cover: smaller so the card is not dominated by artwork */
.s4a-cover{
  width: 100%;
  max-width: 220px;
  margin: 0 auto 10px;
}

.s4a-cover img{
  width: 100%;
  display: block;
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}

/* “EP” */
.s4a-type{
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.7px;
  margin: 2px 0 2px;
}

/* Title: target ~h2 sizing (~30px) rather than page hero sizes [3] */
.s4a-title{
  font-size: clamp(28px, 4.4vw, 34px);
  font-weight: 700;
  letter-spacing: 0.6px;
  line-height: 1;
  margin: 0 0 10px;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Countdown: numbers about paragraph size (~20px) [3] */
.s4a-countdown{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 6px 0 10px;
}

.s4a-unit{ text-align: left; }

.s4a-num{
  font-size: clamp(18px, 3.2vw, 22px);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 2px;
}

.s4a-label{
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.7px;
  color: var(--muted);
  line-height: 1.1;
}

/* Release date row */
.s4a-release-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 2px;
}

.s4a-release{
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.6px;
  color: var(--text);
}

/* Help button */
.s4a-help{
  width: 28px;
  height: 28px;
  border-radius: 999px;

  border: 2px solid rgba(0, 0, 0, 0.85);
  background: transparent;
  color: rgba(0, 0, 0, 0.9);

  font-family: 'Handjet', cursive;
  font-weight: 700;
  font-size: 18px;
  line-height: 1;

  display: grid;
  place-items: center;

  cursor: pointer;
  padding: 0;
}

.s4a-help:hover{ background: rgba(0,0,0,0.06); }

.s4a-help:focus-visible{
  outline: 3px solid rgba(80, 52, 255, 0.7);
  outline-offset: 3px;
}

/* Light mode: page background becomes lighter, so bump opacity for legibility */
@media (prefers-color-scheme: light){
  .s4a-card{
    --panel: rgba(255, 255, 255, 0.78);
  }
}
