/* Stylesheet for index.html */

:root {
  --accent: #4da3ff;
  --bg: linear-gradient(180deg, #0b0c0d 0%, #111316 60%, #0b0c0d 100%);
  --card: #15181b;
  --text: #cdd6dd;
  --muted: #98a3ad;
  --line: #24292d;
  --link-bg: #171a1d;
  --shadow: 0 6px 22px rgba(0,0,0,0.6);
}

html, body {
  margin: 0;
  padding: 0;
  height: auto;
  min-height: 100vh;
  background: var(--bg);
  font-family: 'Inter', system-ui, 'Segoe UI', sans-serif;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 10% 90%, rgba(77,163,255,0.01) 0%, transparent 25%),
    linear-gradient(transparent 0%, rgba(255,255,255,0.01) 1px, transparent 2px);
  background-size: 100% 100%, 6px 6px;
  pointer-events: none;
  z-index: -1;
  mix-blend-mode: overlay;
}

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* HEADER */
header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.header-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.4px;
}

p.lead {
  margin: 0;
  font-size: 0.95em;
  font-weight: 600;
  color: var(--muted);
}

/* CARDS */
.card, .wide-ad-space {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.02));
  border-radius: 12px;
  padding: 22px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

h2 {
  margin: 0 0 12px;
  padding-left: 6px;
  font-size: 16px;
  font-weight: 700;
  color: var(--muted);
}

/* COUNTDOWN */
.bazaar-countdown {
  text-align: center;
}

.bazaar-countdown h2 {
  color: var(--text);
  margin-bottom: 8px;
}

.countdown-display {
  background: rgba(0,0,0,0.2);
  padding: 8px 12px;
  border-radius: 4px;
  box-shadow: inset 0 1px 4px rgba(0,0,0,0.3);
}

#countdown-timer {
  font-family: 'Courier New', monospace;
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--accent);
}

/* LINKS SECTION */
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
}

.link {
  flex: 1 1 200px;
  padding: 12px 14px;
  background: var(--link-bg);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.02);
  box-shadow: 0 3px 8px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.01);
  transition: 0.16s;
}

.link:hover {
  transform: translateY(-3px);
  background: linear-gradient(180deg, rgba(77,163,255,0.03), rgba(0,0,0,0.03));
  border-color: rgba(77,163,255,0.16);
  box-shadow: 0 10px 30px rgba(13,52,88,0.45);
}

.link h3 {
  margin: 0 0 4px;
  font-size: 15px;
  color: var(--accent);
}

.small {
  font-size: 13px;
  color: var(--muted);
}


/* SECRET LINKS */
.secret-link {
  position: fixed;
  right: -40px;
  top: 50%;
  transform: rotate(-90deg) translateY(-50%);
  background: rgba(20,22,24,0.85);
  padding: 8px 14px;
  border-radius: 6px 6px 0 0;
  color: #dfe7ef;
  text-decoration: none;
  border: 1px solid rgba(77,163,255,0.08);
  backdrop-filter: blur(4px);
  opacity: 0.8;
  z-index: 9999;
  transition: 0.12s;
}

.secret-link:hover {
  opacity: 1;
  box-shadow: 0 8px 24px rgba(77,163,255,0.06);
}

.rome-road {
  position: fixed;
  bottom: 20px;
  left: 12px;
  opacity: 0.9;
  z-index: 1000;
}

.road-sign {
  background: linear-gradient(180deg, #1b1f22 0%, #121416 100%);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid var(--line);
  color: var(--muted);
  box-shadow: 0 4px 12px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.02);
}

/* FOOTER */
footer {
  text-align: center;
  color: var(--muted);
  font-size: 11px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

#coffee,
.wide-ad-space a {
  color: var(--accent);
  text-decoration: underline;
  font-weight: 600;
}

/* AD SPACE */
.wide-ad-space h2 {
  color: var(--accent);
  margin-bottom: 12px;
  font-size: 18px;
}

.wide-ad-space p {
  font-size: 15px;
  line-height: 1.6;
}

/* MOBILE FIXES — squish solved */
@media (max-width: 768px) {
  .container {
    padding: 14px;
    max-width: 100%;
    gap: 16px;
  }

  h1 { font-size: 18px; }
  h2 { font-size: 15px; }
  p.lead { font-size: 0.9em; }

  .card, .wide-ad-space {
    padding: 16px;
    border-radius: 10px;
  }

  .links {
    gap: 12px;
  }

  .link {
    flex: 1 1 auto;
    padding: 10px 12px;
  }

  .link h3 {
    font-size: 14px;
  }

  .small {
    font-size: 12px;
  }

  .secret-link {
    right: 12px;
    top: 12px;
    transform: none;
    font-size: 13px;
    padding: 7px 12px;
  }

  .rome-road {
    bottom: 12px;
    left: 12px;
    transform: scale(0.9);
  }
}
