/* =================================================================
   WINNERS CIRCLE  -  style.css
   Pure CSS. No frameworks. No external fonts or dependencies.
   ================================================================= */

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

body {
  /* Transparent so the widget drops cleanly onto OBS / any page */
  background: transparent;
}

/* ---------- MAIN CONTAINER ---------- */
.winners-circle {
  /* Width + height are applied from script.js (SETTINGS).
     The values below are fallbacks only. */
  width: 100%;
  height: 400px;
  background: #000000;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.25),
    0 8px 30px rgba(0, 0, 0, 0.6);
  user-select: none;
  container-type: inline-size;   /* lets the header choose a banner by widget width */
}

/* ---------- HEADER (banner image) ---------- */
.wc-header {
  height: 100px;                 /* fixed header height */
  flex: 0 0 100px;
  background-color: #000000;
  background-image: url("assets/header.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 100% 100%;    /* expand banner to perfectly fill the header */
  border-bottom: 2px solid #d4af37;  /* thin gold accent line */
}

/* On larger widths, use the wider banner (smaller lettering) so the
   text doesn't stretch — looks crisp/4K when filled across a wide header. */
@container (min-width: 760px) {
  .wc-header {
    background-image: url("assets/header-wide.png");
  }
}
/* Fallback for engines without container-query support */
@supports not (container-type: inline-size) {
  @media (min-width: 760px) {
    .wc-header {
      background-image: url("assets/header-wide.png");
    }
  }
}

/* ---------- CHAT FEED ---------- */
.wc-feed {
  flex: 1 1 auto;
  position: relative;
  overflow: hidden;
  background: #000000;
  /* soft fade so rows emerge/dissolve at the edges */
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0,
    #000 18px,
    #000 calc(100% - 18px),
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0,
    #000 18px,
    #000 calc(100% - 18px),
    transparent 100%
  );
}

.wc-track {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  will-change: transform;        /* GPU hint for smooth 60fps motion */
}

/* ---------- A SINGLE CHAT ROW ---------- */
.wc-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  line-height: 1;
  border-bottom: 1px solid rgba(212, 175, 55, 0.06);
}

/* Avatar: a plain colored circle (no images needed) */
.wc-avatar {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.55);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.wc-name {
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.wc-dash {
  color: #777777;
  font-weight: 600;
  font-size: 15px;
}

.wc-amount {
  color: #00ff66;                /* bright green */
  font-weight: 800;
  font-size: 15px;
  text-shadow: 0 0 8px rgba(0, 255, 102, 0.35);
}

.wc-emojis {
  font-size: 15px;
  white-space: nowrap;
}

/* ---------- FOOTER CONTROLS ---------- */
.wc-footer {
  height: 45px;
  flex: 0 0 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: linear-gradient(180deg, #0a0f1a 0%, #000000 100%);
  border-top: 1px solid rgba(74, 160, 255, 0.45);
}

/* Blue neon buttons (styled after the reference image) */
.wc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  background: radial-gradient(circle at 50% 35%, #11233f 0%, #060b14 100%);
  color: #7cc4ff;                 /* icon color */
  border: 2px solid #4aa0ff;      /* blue neon outline */
  border-radius: 10px;            /* rounded corners */
  cursor: pointer;
  box-shadow:
    0 0 6px rgba(74, 160, 255, 0.55),          /* outer glow */
    inset 0 0 7px rgba(74, 160, 255, 0.45);    /* inner glow */
  transition: transform 0.12s ease, color 0.18s ease,
    border-color 0.18s ease, box-shadow 0.18s ease;
}

.wc-btn svg {
  width: 17px;
  height: 17px;
  display: block;
  fill: currentColor;
  filter: drop-shadow(0 0 4px rgba(124, 196, 255, 0.9));  /* glowing icon */
}

.wc-btn:hover {
  color: #d6ecff;
  border-color: #9fd0ff;
  box-shadow:
    0 0 14px rgba(99, 179, 255, 0.95),
    inset 0 0 10px rgba(99, 179, 255, 0.6);
  transform: translateY(-1px);
}

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

.wc-btn:focus-visible {
  outline: 2px solid #bfe0ff;
  outline-offset: 2px;
}

/* Brighter when paused so the play state is obvious */
.wc-btn.is-paused {
  color: #eaf5ff;
  border-color: #bfe0ff;
  box-shadow:
    0 0 16px rgba(150, 205, 255, 1),
    inset 0 0 11px rgba(150, 205, 255, 0.7);
}

/* ---------- ACCESSIBILITY ---------- */
@media (prefers-reduced-motion: reduce) {
  .wc-btn {
    transition: none;
  }
}
