/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* BODY */
body {
  font-family: Inter, Arial, sans-serif;
  background: radial-gradient(circle at top, #0f172a, #020617);
  color: white;
  overflow-x: hidden;
}

/* 🔥 MOVING TICKER */
.ticker-banner {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;

  background: transparent; /* ✅ transparent now */
  border-bottom: 1px solid #1e293b;

  padding: 10px 0;
  font-weight: bold;
  color: #22c55e;

  position: relative;
}

/* inner scrolling track */
.ticker-track {
  display: inline-block;
  white-space: nowrap;

  animation: tickerLoop 20s linear infinite;
}

@keyframes tickerLoop {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-banner {
  animation: tickerMove 15s linear infinite;
}

@keyframes tickerMove {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* NAV */
nav {
  display: flex;
  align-items: center;
  padding: 20px 40px;
  border-bottom: 1px solid #1e293b;
}

/* HERO */
.hero {
  text-align: center;
  margin-top: 80px;
  margin-bottom: 60px;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 10px;
}

.hero p {
  color: #94a3b8;
  margin-bottom: 20px;
}

/* 💎 SHIELD BADGE */
.shield-badge {
  margin: 20px auto;
  width: fit-content;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: bold;
  background: rgba(34,197,94,0.1);
  border: 1px solid #22c55e;
  color: #22c55e;
  animation: pulseShield 2s infinite;
}

@keyframes pulseShield {
  0% { box-shadow: 0 0 0px rgba(34,197,94,0.5); }
  50% { box-shadow: 0 0 20px rgba(34,197,94,0.8); }
  100% { box-shadow: 0 0 0px rgba(34,197,94,0.5); }
}

/* INPUT */
.scan-box {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.scan-box input {
  padding: 16px;
  width: 420px;
  max-width: 90%;
  background: #020617;
  border: 1px solid #1e293b;
  color: white;
  border-radius: 12px;
  font-size: 16px;
}

.scan-box input::placeholder {
  color: #64748b;
}

/* BUTTON */
.scan-btn {
  padding: 16px 26px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: black;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
}

.scan-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 35px rgba(34, 197, 94, 0.7);
}

/* RESULT SECTION */
#result {
  margin-top: 80px;
  padding: 0 20px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

/* MAIN CARD */
.main-card {
  width: 100%;
  margin-bottom: 30px;
  padding: 40px;
}

/* GRID */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

/* CENTER */
.center-section {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

/* CARDS */
.card {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid #1e293b;
  border-radius: 18px;
  padding: 30px;
  backdrop-filter: blur(12px);
  text-align: center;
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-6px);
  border-color: #22c55e;
}

/* STATUS */
.safe {
  color: #22c55e;
  font-size: 36px;
  font-weight: bold;
}

.risky {
  color: #facc15;
  font-size: 36px;
  font-weight: bold;
}

.danger {
  color: #ef4444;
  font-size: 36px;
  font-weight: bold;
}

/* SCORE */
#score {
  font-size: 22px;
  margin-top: 10px;
}

/* HYPE */
#hypeText {
  margin-top: 10px;
  font-size: 18px;
  color: #94a3b8;
}

/* RISK LIST */
.reasons ul {
  list-style: none;
}

.reasons li {
  margin: 10px 0;
  color: #f87171;
}

/* BUTTON */
.scan-again-btn {
  padding: 16px 28px;
  border-radius: 14px;
  border: none;
  font-weight: bold;
  color: white;
  cursor: pointer;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
  transition: all 0.25s ease;
}

.scan-again-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 35px rgba(34, 197, 94, 0.7);
}

/* CONFIDENCE BAR */
.confidence-bar {
  width: 100%;
  height: 10px;
  background: #1e293b;
  border-radius: 10px;
  margin-top: 20px;
  overflow: hidden;
}

#confidenceFill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, red, yellow, #22c55e);
  transition: 0.4s;
}

/* BACKGROUND GLOW */
body::before {
  content: "";
  position: fixed;
  top: -300px;
  left: -300px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(34,197,94,0.12), transparent);
  filter: blur(120px);
  animation: floatGlow 12s infinite alternate;
  z-index: -1;
}

@keyframes floatGlow {
  from { transform: translate(0, 0); }
  to { transform: translate(120px, 120px); }
}

/* 🔥 LIVE FEED */
.live-feed-bottom {
  margin-top: 120px;
  padding: 40px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.live-box {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid #1e293b;
  border-radius: 18px;
  padding: 25px;
  backdrop-filter: blur(12px);
  transition: 0.3s;
}

.live-box:hover {
  border-color: #22c55e;
  transform: translateY(-4px);
}

.live-box ul {
  list-style: none;
  margin-top: 15px;
}

.live-box li {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  border-bottom: 1px solid #1e293b;
  transition: 0.2s;
}

.live-box li:hover {
  background: rgba(34,197,94,0.1);
}

/* 🚨 FLOATING ALERT */
.floating-alert {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(15,23,42,0.9);
  border: 1px solid #22c55e;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 14px;
  animation: slideUp 0.4s ease;
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* CONFETTI */
.confetti {
  position: fixed;
  top: 0;
  width: 6px;
  height: 10px;
  background: #22c55e;
  animation: fall linear forwards;
}

@keyframes fall {
  to {
    transform: translateY(100vh);
    opacity: 0;
  }
}

/* MOBILE */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 32px;
  }

  .live-feed-bottom {
    grid-template-columns: 1fr;
  }
}