/* EggRadar — Steal an Egg companion. Dark theme, mobile-first. */
:root {
  --bg: #0d1117;
  --bg-card: #161b27;
  --bg-card-2: #1c2333;
  --line: #2a3247;
  --text: #e6ebf5;
  --muted: #94a0b8;
  --accent: #ffb02e;
  --accent-2: #ff7847;
  --green: #3fd68f;
  --blue: #58a6ff;
  --purple: #bc8cff;
  --red: #ff6b6b;
  --radius: 12px;
  --maxw: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 17, 23, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 56px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 18px; color: var(--text); }
.logo:hover { text-decoration: none; }
.logo .egg { font-size: 22px; }
.logo b { color: var(--accent); }
nav.main-nav { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; }
nav.main-nav a {
  color: var(--muted); padding: 6px 10px; border-radius: 8px; font-size: 14px; font-weight: 600;
}
nav.main-nav a:hover { color: var(--text); background: var(--bg-card-2); text-decoration: none; }
nav.main-nav a[aria-current="page"] { color: var(--accent); background: rgba(255, 176, 46, .1); }

/* ---------- hero ---------- */
.hero { padding: 40px 0 24px; }
.hero h1 { font-size: clamp(26px, 5vw, 40px); line-height: 1.2; margin: 0 0 12px; }
.hero h1 .hl { color: var(--accent); }
.hero p.lead { font-size: 17px; color: var(--muted); max-width: 720px; margin: 0 0 20px; }
.crumb { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.crumb a { color: var(--muted); }

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 18px 0; }
.btn {
  display: inline-block; padding: 12px 20px; border-radius: 10px; font-weight: 700; font-size: 15px;
  border: 1px solid var(--line); color: var(--text); background: var(--bg-card);
}
.btn:hover { text-decoration: none; filter: brightness(1.12); }
.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #1a1205; border: none;
}
.btn.roblox { background: #00a2ff; color: #fff; border: none; }
.btn.discord { background: #5865f2; color: #fff; border: none; }
.btn.small { padding: 8px 14px; font-size: 13px; }

/* ---------- cards / sections ---------- */
section { padding: 24px 0; }
.card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; margin: 14px 0;
}
.card h2, .card h3 { margin-top: 0; }
.grid { display: grid; gap: 14px; }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

h2.section-title { font-size: 24px; margin: 8px 0 4px; }
p.section-sub { color: var(--muted); margin-top: 0; }

/* ---------- timer dashboard ---------- */
.timer-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.timer-card {
  background: linear-gradient(180deg, var(--bg-card-2), var(--bg-card));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; text-align: center; position: relative; overflow: hidden;
}
.timer-card .t-label { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.timer-card .t-desc { font-size: 12px; color: var(--muted); min-height: 32px; margin: 2px 0 8px; }
.timer-card .t-count {
  font-variant-numeric: tabular-nums; font-size: clamp(26px, 6vw, 38px); font-weight: 800; line-height: 1.1;
}
.timer-card .t-last { font-size: 12px; color: var(--muted); margin-top: 6px; font-variant-numeric: tabular-nums; }
.timer-card.urgent { border-color: var(--accent-2); }
.timer-card.urgent::after {
  content: "LIVE"; position: absolute; top: 10px; right: 10px;
  background: var(--accent-2); color: #fff; font-size: 10px; font-weight: 800;
  padding: 2px 8px; border-radius: 99px; letter-spacing: .1em;
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .55; } }
.timer-note { font-size: 12.5px; color: var(--muted); margin-top: 10px; }

/* progress ring bar under countdown */
.t-bar { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; margin-top: 10px; }
.t-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width 1s linear; }

/* ---------- badges / rarity ---------- */
.badge {
  display: inline-block; padding: 2px 10px; border-radius: 99px;
  font-size: 12px; font-weight: 700; letter-spacing: .02em; white-space: nowrap;
}
.r-common    { background: #9aa7bd33; color: #b9c4d8; }
.r-uncommon  { background: #3fd68f26; color: var(--green); }
.r-rare      { background: #58a6ff26; color: var(--blue); }
.r-epic      { background: #bc8cff26; color: var(--purple); }
.r-legendary { background: #ffb02e2b; color: var(--accent); }
.r-mythic    { background: #ff784729; color: var(--accent-2); }
.r-cosmic    { background: #7ee7ff26; color: #7ee7ff; }
.r-secret    { background: #ff6b6b29; color: var(--red); }
.r-eternal   { background: #f0f6ff2b; color: #dbe7ff; }
.r-divine    { background: linear-gradient(90deg, #ffd7026, #ff784726); color: #ffd702; }

.pill {
  display: inline-block; background: var(--bg-card-2); border: 1px solid var(--line);
  padding: 3px 12px; border-radius: 99px; font-size: 13px; color: var(--muted); margin: 2px;
}

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data {
  width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px;
}
table.data th, table.data td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--line); }
table.data th {
  font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted);
  position: sticky; top: 0; background: var(--bg-card); cursor: pointer; user-select: none;
}
table.data th:hover { color: var(--text); }
table.data td.num { text-align: right; font-variant-numeric: tabular-nums; }
table.data tr:hover td { background: #ffffff08; }
.income-top { color: var(--green); font-weight: 700; }
.na { color: var(--muted); }

/* filter row */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.filters select, .filters input {
  background: var(--bg-card); color: var(--text); border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 12px; font-size: 14px;
}

/* ---------- callout ---------- */
.callout {
  border-left: 4px solid var(--accent); background: var(--bg-card);
  padding: 14px 16px; border-radius: 0 var(--radius) var(--radius) 0; margin: 16px 0;
}
.callout.warn { border-color: var(--red); }
.callout.good { border-color: var(--green); }
.callout.info { border-color: var(--blue); }
.callout p { margin: 6px 0; }
.verified { font-size: 12.5px; color: var(--muted); }

/* ---------- FAQ ---------- */
details.faq { border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin: 10px 0; background: var(--bg-card); }
details.faq summary { cursor: pointer; font-weight: 700; }
details.faq p { color: var(--muted); }

/* ---------- subscribe form ---------- */
.sub-form { display: grid; gap: 10px; max-width: 560px; }
.sub-form label { font-size: 14px; font-weight: 600; display: block; margin-bottom: 4px; }
.sub-form input[type="url"] {
  width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--line);
  border-radius: 8px; padding: 11px 12px; font-size: 14px;
}
.checks { display: grid; gap: 6px; grid-template-columns: 1fr; }
.checks label { display: flex; gap: 8px; align-items: center; font-weight: 500; font-size: 14px; }
.checks input { accent-color: var(--accent); width: 16px; height: 16px; }
.sub-msg { font-size: 14px; min-height: 20px; }
.sub-msg.ok { color: var(--green); }
.sub-msg.err { color: var(--red); }

/* ---------- steps ---------- */
ol.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
ol.steps li { counter-increment: step; position: relative; padding: 0 0 18px 46px; }
ol.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 30px; height: 30px; border-radius: 99px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #1a1205; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 15px;
}
ol.steps h3 { margin: 4px 0 6px; }
ol.steps p { margin: 0; color: var(--muted); }

/* ---------- ad slots (hidden until AdSense id configured) ---------- */
.ad-slot { display: none; margin: 18px 0; text-align: center; min-height: 0; }
.ad-slot.on { display: block; min-height: 90px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
.site-footer .cols { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.site-footer h4 { color: var(--text); margin: 0 0 8px; font-size: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 4px 0; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.fineprint { margin-top: 22px; font-size: 12.5px; color: #6b7690; }

/* misc */
.muted { color: var(--muted); }
.small { font-size: 13px; }
.kpi { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0; }
.kpi .pill b { color: var(--text); }
.divider { border: none; border-top: 1px solid var(--line); margin: 26px 0; }
