/* ================================================================
   THE GARBAGE CAFÉ — Y2K Night Street Base CSS
   "It's 2002. You're up at midnight. The street lamp is orange.
    Your monitor is the brightest thing in the room."
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=VT323&family=Press+Start+2P&family=Share+Tech+Mono&family=Orbitron:wght@400;700&display=swap');

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

html {
  scroll-behavior: smooth;
}

:root {
  --sky-deep:    #04030e;
  --sky-mid:     #080620;
  --sky-horizon: #0d0828;
  --lamp:        #e8940a;
  --lamp-mid:    #a05808;
  --lamp-dim:    #50280a;
  --surface:     #07050f;
  --surface2:    #0e0b1e;
  --surface3:    #151030;
  --text:        #d8cca0;
  --text-dim:    #706048;
  --text-bright: #f8f0d0;
  --text-glow:   #ffe890;
  --border:      #3a2a10;
  --border-hi:   #806020;
  --link:        #f0c040;
  --link-hover:  #ffe060;
  --font-body:   'Share Tech Mono', 'Courier New', monospace;
  --font-pixel:  'VT323', monospace;
  --font-press:  'Press Start 2P', monospace;
  --font-title:  'Orbitron', sans-serif;
  --accent:      #f0a020;
  --accent-dim:  #784808;
  --accent-glow: rgba(240,160,32,0.15);
  --gap:     12px;
  --gap-lg:  24px;
}

body {
  background-color: var(--sky-deep);
  background-image:
    radial-gradient(circle, rgba(200,200,255,0.5) 1px, transparent 1px),
    radial-gradient(circle, rgba(255,240,200,0.35) 1px, transparent 1px),
    radial-gradient(ellipse 60% 40% at 50% 0%,
      rgba(180,100,8,0.20) 0%,
      rgba(100,55,4,0.08)  45%,
      transparent          70%),
    linear-gradient(180deg,
      var(--sky-deep)    0%,
      var(--sky-mid)     60%,
      var(--sky-horizon) 100%
    );
  background-size: 200px 200px, 150px 150px, 100% 100%, 100% 100%;
  background-position: 0 0, 75px 75px, 0 0, 0 0;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Custom scrollbars */
::-webkit-scrollbar {
  width: 8px;
  background: #000;
}
::-webkit-scrollbar-thumb {
  background: var(--lamp-dim);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--lamp-mid);
}

/* ── News Ticker ───────────────────────────────────────────── */
.news-ticker {
  background: #000;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  white-space: nowrap;
  padding: 4px 0;
  position: relative;
}
.news-ticker-label {
  display: inline-block;
  background: var(--accent);
  color: #000;
  font-family: var(--font-press);
  font-size: 0.42rem;
  padding: 2px 8px;
  margin-right: 12px;
  vertical-align: middle;
  box-shadow: 0 0 8px var(--accent-dim);
  position: relative;
  z-index: 2;
}
.news-ticker-text {
  display: inline-block;
  animation: ticker-run 80s linear infinite;
  will-change: transform;
  font-family: var(--font-pixel);
  font-size: 1.1rem;
  color: var(--accent);
  text-shadow: 0 0 6px var(--accent-dim);
  vertical-align: middle;
}
@keyframes ticker-run {
  from { transform: translateX(100vw); }
  to   { transform: translateX(-100%); }
}
@media (prefers-reduced-motion: reduce) {
  .news-ticker-text { animation: none; }
}

/* ── Footer (container only) ────────────────────────────── */
#tgc-footer {
  margin-top: 30px;
}

.footer-panel {
  background: #050403;
  border-top: 1px solid #2a1a0c;
  position: relative;
  margin-top: 30px;
}

/* glowing top line */
.footer-top-line {
  height: 2px;
  background: linear-gradient(to right,
    transparent,
    #f0a020,
    transparent
  );
  opacity: 0.6;
}

/* inner content */
.footer-inner {
  padding: 14px 10px 16px;
  text-align: center;
}

/* phrase (main focus) */
.footer-phrase {
  font-family: 'VT323', monospace;
  font-size: 0.95rem;
  color: #f0a020;
  text-shadow:
    0 0 6px rgba(240,160,32,0.5),
    0 0 12px rgba(240,160,32,0.2);
  letter-spacing: 1px;
  margin-bottom: 6px;
  transition: opacity 0.3s ease;
  animation: footer-flicker 6s infinite;
}

/* copyright */
.footer-copy {
  font-size: 0.65rem;
  color: #6a4a1f;
  letter-spacing: 1px;
  font-family: 'Share Tech Mono', monospace;
}

@keyframes footer-flicker {
  0%, 18%, 22%, 100% { opacity: 1; }
  20% { opacity: 0.6; }
}

/* ── Page wrapper ──────────────────────────────────────── */
.page-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 12px 24px;
}

/* ── Section heading ──────────────────────────────────── */
.section-head {
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--accent) 25%, #000) 0%,
    color-mix(in srgb, var(--accent) 12%, #000) 60%,
    transparent 100%);
  border-left: 3px solid var(--accent);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  padding: 6px 12px;
  margin-bottom: 12px;
  font-family: var(--font-pixel);
  font-size: 1.3rem;
  color: var(--accent);
  text-shadow: 0 0 8px var(--accent-dim);
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Panel ────────────────────────────────────────────── */
.panel {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  margin-bottom: var(--gap);
  box-shadow: 0 2px 12px rgba(0,0,0,0.7);
}
.panel-title {
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--accent) 20%, #000) 0%, #000 100%);
  border-bottom: 1px solid var(--border);
  padding: 5px 10px;
  font-family: var(--font-press);
  font-size: 0.46rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.panel-body {
  padding: 10px;
}

/* ── Separators ───────────────────────────────────────── */
.sep {
  border: none;
  border-top: 1px solid var(--border);
  margin: 8px 0;
}
.sep-glow {
  border: none;
  border-top: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  box-shadow: 0 0 4px var(--accent-dim);
  margin: 12px 0;
}

/* ── Button ───────────────────────────────────────────── */
.btn {
  font-family: var(--font-press);
  font-size: 0.46rem;
  padding: 5px 14px;
  background: #000;
  color: var(--accent);
  border: 1px solid var(--accent);
  cursor: pointer;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  transition: background 0.12s, box-shadow 0.12s;
  box-shadow: inset 1px 1px 0 rgba(255,255,255,0.06), inset -1px -1px 0 rgba(0,0,0,0.4);
}
.btn:hover {
  background: color-mix(in srgb, var(--accent) 20%, #000);
  box-shadow: 0 0 10px var(--accent-dim);
  color: #fff;
  text-decoration: none;
}
.btn:active {
  transform: translate(1px, 1px);
}
.btn-sm {
  font-size: 0.38rem;
  padding: 3px 10px;
}

/* ── Links ────────────────────────────────────────────── */
a {
  color: var(--link);
  text-decoration: none;
}
a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

/* ── Inputs ───────────────────────────────────────────── */
input, textarea, select {
  background: #000;
  color: var(--text-bright);
  border: 1px solid var(--border-hi);
  padding: 5px 8px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  outline: none;
  width: 100%;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 6px var(--accent-dim);
}
textarea {
  resize: vertical;
  min-height: 80px;
}

label {
  display: block;
  font-family: var(--font-press);
  font-size: 0.38rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
  margin-top: 8px;
}

/* ── Badges ───────────────────────────────────────────── */
.blink {
  animation: blink 1s step-end infinite;
}
@keyframes blink {
  50% { opacity: 0; }
}

.badge {
  font-family: var(--font-press);
  font-size: 0.34rem;
  padding: 2px 5px;
  border: 1px solid currentColor;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
}
.badge-new  { color: #00ff40; }
.badge-hot  { color: #ff4020; animation: blink 1.4s infinite; }
.badge-live { color: #ff2040; background: rgba(255,32,64,0.12); }
.badge-upd  { color: var(--accent); }

/* ── Live dot ─────────────────────────────────────────── */
.live-dot {
  width: 7px;
  height: 7px;
  background: #ff2040;
  border-radius: 50%;
  box-shadow: 0 0 6px #ff2040;
  animation: live-pulse 1.3s ease-in-out infinite;
  display: inline-block;
  flex-shrink: 0;
}
@keyframes live-pulse {
  0%, 100% { box-shadow: 0 0 3px #ff2040; }
  50%      { box-shadow: 0 0 10px #ff2040; }
}

/* ── Hit counter ──────────────────────────────────────── */
.hit-counter {
  font-family: var(--font-press);
  font-size: 0.55rem;
  color: #00ff40;
  background: #000;
  border: 2px inset #333;
  padding: 3px 10px;
  letter-spacing: 4px;
  text-shadow: 0 0 6px #00ff40;
  display: inline-block;
}

/* ── Layout helpers ───────────────────────────────────── */
.cols-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}
.cols-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--gap);
}
.layout-sidebar {
  display: grid;
  grid-template-columns: 220px 1fr 220px;
  gap: var(--gap);
  align-items: start;
}
.layout-sidebar > div {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}
.layout-sidebar-right {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: var(--gap);
  align-items: start;
}
@media (max-width: 800px) {
  .cols-2,
  .cols-3,
  .layout-sidebar,
  .layout-sidebar-right {
    grid-template-columns: 1fr;
  }
}

/* ── Card ─────────────────────────────────────────────── */
.card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  padding: 10px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.card h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.card p {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ── Data table ──────────────────────────────────────── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.data-table th {
  background: #000;
  color: var(--accent);
  font-family: var(--font-press);
  font-size: 0.36rem;
  padding: 5px 8px;
  text-align: left;
  border-bottom: 1px solid var(--accent);
  letter-spacing: 1px;
}
.data-table td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: top;
}
.data-table tr:hover td {
  background: rgba(255,255,255,0.03);
}
.data-table tr:last-child td {
  border-bottom: none;
}

/* ── Utilities ───────────────────────────────────────── */
.text-dim    { color: var(--text-dim); }
.text-bright { color: var(--text-bright); }
.text-accent { color: var(--accent); }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.small { font-size: 0.75rem; }

/* ── Poll form styles ────────────────────────────────── */
.poll-form label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  margin-bottom: 10px;
}

.poll-form input[type="radio"] {
  width: auto;
  margin: 0;
}