/* SLOPFARM.AI — garish growth-hacker SaaS aesthetic, on purpose */

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

body {
  font-family: "Comic Sans MS", "Chalkboard SE", "Segoe UI", sans-serif;
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  color: #eee;
  min-height: 100vh;
  padding-bottom: 40px;
}

header {
  text-align: center;
  padding: 24px 10px 10px;
  background: linear-gradient(90deg, #ff0080, #7928ca, #00d4ff, #ff0080);
  background-size: 300% 100%;
  animation: gradient-slide 8s linear infinite;
  -webkit-background-clip: text;
  background-clip: text;
}

@keyframes gradient-slide {
  0% { background-position: 0% 0; }
  100% { background-position: 300% 0; }
}

header h1 {
  font-size: 3em;
  letter-spacing: 2px;
  color: transparent;
  text-shadow: none;
}

.dotai { font-style: italic; }

.tagline {
  color: #aaa;
  font-style: italic;
  margin-top: 4px;
  text-shadow: 0 1px 2px #000;
}

/* ---- stats bar ---- */
#stats-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  padding: 14px;
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 2px solid #7928ca;
  position: sticky;
  top: 0;
  z-index: 10;
}

.stat {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 8px 14px;
  min-width: 150px;
  text-align: center;
}

.stat-label { display: block; font-size: 0.75em; color: #bbb; margin-bottom: 4px; }
.stat-value { font-size: 1.3em; font-weight: bold; color: #7fff9e; }

.meter-stat { min-width: 180px; }

.meter {
  height: 12px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.meter-fill {
  height: 100%;
  width: 100%;
  transition: width 0.3s;
}

.meter-fill.integrity { background: linear-gradient(90deg, #00d4ff, #7fff9e); }
.meter-fill.heat { background: linear-gradient(90deg, #ffb347, #ff3d3d); width: 0%; }

.meter-num { font-size: 0.8em; color: #ccc; }

/* ---- main panels ---- */
main {
  display: flex;
  gap: 20px;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: flex-start;
}

#left-panel { flex: 3; }
#right-panel { flex: 2; }

#generate-btn {
  width: 100%;
  font-size: 1.6em;
  font-weight: bold;
  padding: 22px;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  color: white;
  background: linear-gradient(135deg, #ff0080, #7928ca);
  box-shadow: 0 0 20px rgba(255, 0, 128, 0.5);
  transition: transform 0.08s, box-shadow 0.2s;
  font-family: inherit;
}

#generate-btn:hover { box-shadow: 0 0 32px rgba(255, 0, 128, 0.8); }
#generate-btn:active { transform: scale(0.96); }

.rates {
  text-align: center;
  color: #9adf9e;
  margin: 10px 0 18px;
  font-size: 0.95em;
}

h2 { font-size: 1.1em; margin-bottom: 10px; color: #ffd86b; }

.live { color: #ff3d3d; font-size: 0.7em; animation: blink 1.2s infinite; }

@keyframes blink { 50% { opacity: 0.2; } }

#feed, #ticker { list-style: none; }

#feed li, #ticker li {
  background: rgba(255, 255, 255, 0.05);
  border-left: 3px solid #00d4ff;
  padding: 8px 12px;
  margin-bottom: 6px;
  border-radius: 0 8px 8px 0;
  font-size: 0.9em;
  animation: slide-in 0.25s ease-out;
}

#ticker li { border-left-color: #ffd86b; color: #ffe9b0; }

@keyframes slide-in {
  from { opacity: 0; transform: translateX(-14px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ---- shop ---- */
.shop-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 10px;
}

.shop-item h3 { font-size: 1em; color: #fff; }
.shop-item .desc { font-size: 0.8em; color: #aaa; margin: 4px 0 8px; font-style: italic; }
.shop-item .owned { color: #7fff9e; font-size: 0.85em; margin-right: 10px; }

.buy-btn {
  background: linear-gradient(135deg, #00b09b, #96c93d);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-weight: bold;
  cursor: pointer;
  font-family: inherit;
}

.buy-btn:disabled {
  background: #444;
  color: #888;
  cursor: not-allowed;
}

.buy-btn:not(:disabled):hover { filter: brightness(1.2); }

/* ---- ticker & footer ---- */
#ticker-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

footer {
  max-width: 1200px;
  margin: 20px auto 0;
  padding: 14px 20px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.footer-note { color: #666; font-size: 0.75em; margin-left: auto; font-style: italic; }

.small-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #ddd;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  padding: 6px 14px;
  cursor: pointer;
  font-family: inherit;
}

.small-btn:hover { background: rgba(255, 255, 255, 0.2); }
.small-btn.danger:hover { background: rgba(255, 60, 60, 0.4); }

/* ---- ending overlay ---- */
#ending-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

#ending-overlay.hidden { display: none; }

#ending-box {
  background: linear-gradient(135deg, #1a1a2e, #302b63);
  border: 2px solid #7928ca;
  border-radius: 16px;
  padding: 40px;
  max-width: 560px;
  text-align: center;
  box-shadow: 0 0 60px rgba(121, 40, 202, 0.6);
}

#ending-box h1 { margin-bottom: 16px; color: #ffd86b; }
#ending-box p { margin-bottom: 14px; line-height: 1.5; }
#ending-stats { color: #9adf9e; font-size: 0.9em; }

#restart-btn {
  background: linear-gradient(135deg, #ff0080, #7928ca);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 14px 28px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  font-family: inherit;
}

#restart-btn:hover { filter: brightness(1.2); }
