/* ============================================================
   PHISHING URL CHECKER — stylesheet
   Matches the CyberRishabh terminal/hacker theme
   ============================================================ */

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

:root {
  --bg: #0a0e0a;
  --bg-soft: #0f1410;
  --terminal: #00ff41;
  --terminal-dim: #00b82f;
  --warning: #ff3030;
  --amber: #ffb000;
  --safe: #00d4ff;
  --dim: #1a2a1a;
  --dim-2: #0d1a0d;
  --grid: rgba(0, 255, 65, 0.04);
  --text-mute: rgba(0, 255, 65, 0.55);
  --yt: #ff0033;
  --ig: #e1306c;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--terminal);
  font-family: 'JetBrains Mono', monospace;
  min-height: 100vh;
  overflow-x: hidden;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 30px 30px;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 0%, var(--bg) 90%);
  pointer-events: none;
  z-index: 1;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0px, transparent 2px, rgba(0, 255, 65, 0.025) 2px, rgba(0, 255, 65, 0.025) 4px);
  pointer-events: none;
  z-index: 2;
}

.container {
  position: relative;
  z-index: 10;
  max-width: 1000px;
  margin: 0 auto;
  padding: 30px 18px 60px;
}

code {
  background: var(--dim);
  padding: 2px 6px;
  border-radius: 2px;
  color: var(--terminal);
  font-size: 0.9em;
  word-break: break-all;
}

/* ========== TOP NAV ========== */
.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding: 10px 14px;
  background: rgba(0, 20, 5, 0.6);
  border: 1px solid var(--dim);
  border-radius: 2px;
  flex-wrap: wrap;
  gap: 10px;
}

.nav-links { display: flex; gap: 6px; flex-wrap: wrap; }

.nav-link {
  padding: 7px 12px;
  background: var(--dim-2);
  border: 1px solid var(--dim);
  color: var(--terminal);
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  font-weight: 700;
  border-radius: 2px;
  transition: all 0.15s;
}

.nav-link:hover { background: var(--terminal); color: var(--bg); }
.nav-link.active { background: var(--terminal); color: var(--bg); border-color: var(--terminal); }

.socials { display: flex; gap: 6px; }

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: transparent;
  border: 1px solid;
  text-decoration: none;
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  font-weight: 700;
  border-radius: 2px;
  transition: all 0.15s;
}

.social-btn.yt { border-color: var(--yt); color: var(--yt); }
.social-btn.yt:hover { background: var(--yt); color: #fff; box-shadow: 0 0 14px var(--yt); }
.social-btn.ig { border-color: var(--ig); color: var(--ig); }
.social-btn.ig:hover { background: var(--ig); color: #fff; box-shadow: 0 0 14px var(--ig); }
.social-btn svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ========== HEADER ========== */
.header {
  text-align: center;
  margin-bottom: 22px;
  border-bottom: 2px solid var(--terminal);
  padding-bottom: 18px;
}

.header h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.2rem, 7vw, 3.4rem);
  color: var(--terminal);
  letter-spacing: 4px;
  text-shadow: 0 0 22px var(--terminal);
  margin-bottom: 6px;
  line-height: 1;
}

.blink { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.subtitle {
  color: var(--amber);
  font-size: clamp(0.7rem, 2vw, 0.85rem);
  letter-spacing: 2px;
}

.privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 6px 12px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid var(--safe);
  color: var(--safe);
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  border-radius: 2px;
}

.privacy-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--safe);
  border-radius: 50%;
  animation: pulse-dot 1.5s infinite;
  box-shadow: 0 0 8px var(--safe);
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ========== TERMINAL INPUT BOX ========== */
.terminal-box {
  background: rgba(0, 20, 5, 0.7);
  border: 2px solid var(--terminal);
  border-radius: 4px;
  padding: 22px;
  margin-bottom: 22px;
  box-shadow: 0 0 40px rgba(0, 255, 65, 0.12), inset 0 0 30px rgba(0, 255, 65, 0.04);
  position: relative;
}

.terminal-box::before {
  content: attr(data-label);
  position: absolute;
  top: -11px;
  left: 18px;
  background: var(--bg);
  padding: 0 10px;
  color: var(--amber);
  font-size: 0.72rem;
  letter-spacing: 2px;
}

.input-label {
  display: block;
  color: var(--amber);
  margin-bottom: 12px;
  font-size: 0.85rem;
  letter-spacing: 2px;
}

.input-wrapper { position: relative; }

#urlInput {
  width: 100%;
  padding: 16px 18px;
  background: var(--dim);
  border: 1px solid var(--terminal);
  color: var(--terminal);
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  letter-spacing: 0.5px;
  outline: none;
  transition: all 0.2s;
  border-radius: 2px;
}

#urlInput:focus {
  box-shadow: 0 0 18px var(--terminal);
  background: rgba(0, 255, 65, 0.05);
}

.alert-banner {
  margin-top: 14px;
  padding: 13px;
  background: rgba(255, 48, 48, 0.12);
  border: 2px solid var(--warning);
  color: var(--warning);
  font-size: 0.85rem;
  letter-spacing: 1px;
  display: none;
  line-height: 1.5;
  border-radius: 2px;
}

.alert-banner.show { display: block; animation: warn-pulse 0.8s infinite; }

.alert-banner .icon { font-size: 1.1rem; margin-right: 6px; }

@keyframes warn-pulse {
  0%, 100% { box-shadow: 0 0 8px rgba(255, 48, 48, 0.3); }
  50% { box-shadow: 0 0 22px rgba(255, 48, 48, 0.85); }
}

/* ========== EXAMPLES ========== */
.examples { margin-top: 22px; }

.examples-title {
  color: var(--amber);
  font-size: 0.78rem;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.example-btn {
  display: inline-block;
  margin: 3px;
  padding: 8px 13px;
  background: var(--dim);
  border: 1px solid var(--terminal);
  color: var(--terminal);
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  transition: all 0.15s;
  border-radius: 2px;
}

.example-btn:hover {
  background: var(--terminal);
  color: var(--bg);
  transform: translateY(-2px);
}

/* ========== ACTION BTN ========== */
.action-btn {
  padding: 14px 12px;
  background: var(--dim);
  border: 2px solid var(--terminal);
  color: var(--terminal);
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  font-weight: 700;
  transition: all 0.15s;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.action-btn:hover:not(:disabled) {
  background: var(--terminal);
  color: var(--bg);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 255, 65, 0.3);
}

.action-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.action-btn.cyan { border-color: var(--safe); color: var(--safe); }
.action-btn.cyan:hover:not(:disabled) { background: var(--safe); color: var(--bg); }

/* ========== VERDICT CARD ========== */
.verdict-card {
  text-align: center;
  padding: 32px 18px;
  border: 2px solid var(--terminal);
  background: rgba(0, 0, 0, 0.7);
  margin-bottom: 22px;
  transition: all 0.3s;
  border-radius: 4px;
}

.verdict-card.weak {
  border-color: var(--warning);
  box-shadow: 0 0 40px rgba(255, 48, 48, 0.35);
  animation: pulse-red 1.2s infinite;
}

.verdict-card.medium {
  border-color: var(--amber);
  box-shadow: 0 0 40px rgba(255, 176, 0, 0.35);
}

.verdict-card.strong {
  border-color: var(--safe);
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.35);
}

.verdict-card.exposed {
  border-color: var(--warning);
  box-shadow: 0 0 50px rgba(255, 48, 48, 0.6);
  animation: pulse-red 1s infinite;
}

@keyframes pulse-red {
  0%, 100% { box-shadow: 0 0 35px rgba(255, 48, 48, 0.35); }
  50% { box-shadow: 0 0 55px rgba(255, 48, 48, 0.7); }
}

.verdict-label {
  font-size: 0.78rem;
  letter-spacing: 4px;
  color: var(--amber);
  margin-bottom: 12px;
}

.verdict-time {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 8vw, 3.6rem);
  line-height: 1;
  letter-spacing: 2px;
  margin-bottom: 8px;
  text-shadow: 0 0 18px currentColor;
  word-break: break-word;
}

.weak .verdict-time { color: var(--warning); }
.medium .verdict-time { color: var(--amber); }
.strong .verdict-time { color: var(--safe); }
.exposed .verdict-time { color: var(--warning); }

.verdict-status {
  font-size: clamp(0.75rem, 2vw, 0.9rem);
  letter-spacing: 3px;
  margin-bottom: 10px;
}

.weak .verdict-status { color: var(--warning); }
.medium .verdict-status { color: var(--amber); }
.strong .verdict-status { color: var(--safe); }
.exposed .verdict-status { color: var(--warning); }

.verdict-sub {
  font-size: 0.82rem;
  color: var(--text-mute);
  letter-spacing: 1px;
  line-height: 1.5;
}

@keyframes glitch {
  0%, 100% { transform: translate(0); }
  20% { transform: translate(-2px, 2px); }
  40% { transform: translate(-2px, -2px); }
  60% { transform: translate(2px, 2px); }
  80% { transform: translate(2px, -2px); }
}

.verdict-card.weak .verdict-time,
.verdict-card.exposed .verdict-time {
  animation: glitch 0.3s infinite, pulse-text 1s infinite;
}

@keyframes pulse-text {
  0%, 100% { text-shadow: 0 0 18px currentColor; }
  50% { text-shadow: 0 0 28px currentColor, 0 0 40px currentColor; }
}

/* ========== LOADING SPINNER ========== */
.spinner-big {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 3px solid var(--amber);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ========== SECTION TITLE ========== */
.section-title {
  color: var(--amber);
  font-size: 0.9rem;
  letter-spacing: 3px;
  margin-bottom: 14px;
  margin-top: 30px;
  padding-left: 10px;
  border-left: 3px solid var(--terminal);
}

/* ========== FINDINGS ========== */
.findings-section { margin-bottom: 22px; }

.finding {
  background: rgba(0, 0, 0, 0.5);
  border-left: 4px solid var(--terminal);
  padding: 14px 16px;
  margin-bottom: 10px;
  border-radius: 2px;
  transition: all 0.15s;
}

.finding.crit { border-left-color: var(--warning); background: rgba(255, 48, 48, 0.08); }
.finding.high { border-left-color: var(--warning); background: rgba(255, 48, 48, 0.05); }
.finding.med  { border-left-color: var(--amber); background: rgba(255, 176, 0, 0.05); }
.finding.low  { border-left-color: var(--terminal); }

.finding:hover { transform: translateX(3px); }

.finding-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.finding-sev {
  display: inline-block;
  padding: 3px 8px;
  font-size: 0.65rem;
  letter-spacing: 1.5px;
  font-weight: 700;
  border-radius: 2px;
  border: 1px solid;
  flex-shrink: 0;
}

.sev-crit { background: var(--warning); color: var(--bg); border-color: var(--warning); animation: warn-pulse 1s infinite; }
.sev-high { color: var(--warning); border-color: var(--warning); }
.sev-med  { color: var(--amber); border-color: var(--amber); }
.sev-low  { color: var(--terminal); border-color: var(--terminal); }

.finding-title {
  font-size: 0.92rem;
  color: var(--terminal);
  font-weight: 700;
  letter-spacing: 0.5px;
  word-break: break-word;
}

.finding.crit .finding-title,
.finding.high .finding-title { color: var(--warning); }

.finding-detail {
  font-size: 0.82rem;
  color: rgba(0, 255, 65, 0.85);
  line-height: 1.6;
  margin-top: 4px;
}

.finding-detail strong { color: var(--amber); }

/* ========== STEPS GRID ========== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.step-card {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--terminal);
  padding: 18px;
  border-radius: 2px;
  position: relative;
}

.step-num {
  position: absolute;
  top: -14px;
  left: 14px;
  background: var(--bg);
  color: var(--amber);
  padding: 0 8px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 2px;
}

.step-title {
  color: var(--amber);
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
  margin-top: 4px;
  font-weight: 700;
}

.step-text {
  color: rgba(0, 255, 65, 0.85);
  font-size: 0.82rem;
  line-height: 1.6;
}

.step-text strong { color: var(--terminal); }

/* ========== TIPS GRID ========== */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 11px;
  margin-bottom: 22px;
}

.tip-card {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--dim);
  padding: 14px;
  border-radius: 2px;
  transition: all 0.15s;
}

.tip-card:hover {
  border-color: var(--terminal);
  transform: translateY(-2px);
}

.tip-icon { font-size: 1.4rem; margin-bottom: 6px; }

.tip-title {
  color: var(--amber);
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  margin-bottom: 6px;
  font-weight: 700;
}

.tip-text {
  color: var(--text-mute);
  font-size: 0.78rem;
  line-height: 1.5;
}

.tip-text code { font-size: 0.85em; }

/* ========== REUSE WARNING ========== */
.reuse-card {
  background: rgba(255, 176, 0, 0.08);
  border: 2px solid var(--amber);
  padding: 18px;
  margin-bottom: 22px;
  position: relative;
  border-radius: 2px;
}

.reuse-card::before {
  content: '⚠ ALREADY CLICKED? ⚠';
  position: absolute;
  top: -11px;
  left: 18px;
  background: var(--bg);
  padding: 0 10px;
  color: var(--warning);
  font-size: 0.72rem;
  letter-spacing: 2px;
  font-weight: 700;
}

.reuse-title {
  color: var(--amber);
  font-size: 0.95rem;
  letter-spacing: 2px;
  margin-bottom: 10px;
  margin-top: 4px;
  font-weight: 700;
}

.reuse-desc {
  color: rgba(0, 255, 65, 0.85);
  font-size: 0.85rem;
  line-height: 1.8;
}

.reuse-desc strong { color: var(--warning); }

/* ========== FOLLOW BANNER ========== */
.follow-banner {
  background: linear-gradient(135deg, rgba(255, 0, 51, 0.12), rgba(225, 48, 108, 0.12));
  border: 2px solid var(--amber);
  padding: 22px;
  margin-bottom: 22px;
  border-radius: 4px;
  text-align: center;
  position: relative;
}

.follow-banner::before {
  content: '◆ FOLLOW FOR MORE ◆';
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg);
  padding: 0 10px;
  color: var(--amber);
  font-size: 0.72rem;
  letter-spacing: 2px;
  font-weight: 700;
  white-space: nowrap;
}

.follow-banner-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  letter-spacing: 2px;
  color: var(--terminal);
  margin-bottom: 6px;
  margin-top: 4px;
}

.follow-banner-text {
  font-size: 0.82rem;
  color: var(--text-mute);
  margin-bottom: 14px;
  line-height: 1.5;
}

.follow-banner-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.follow-big {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  font-size: 0.82rem;
  letter-spacing: 1.5px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 2px;
  transition: all 0.15s;
  border: 2px solid;
}

.follow-big.yt { background: var(--yt); color: #fff; border-color: var(--yt); }
.follow-big.yt:hover { background: transparent; color: var(--yt); box-shadow: 0 0 18px var(--yt); transform: translateY(-2px); }
.follow-big.ig { background: var(--ig); color: #fff; border-color: var(--ig); }
.follow-big.ig:hover { background: transparent; color: var(--ig); box-shadow: 0 0 18px var(--ig); transform: translateY(-2px); }
.follow-big svg { width: 18px; height: 18px; }

/* ========== FOOTER ========== */
.footer {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--dim);
  color: var(--amber);
  font-size: 0.7rem;
  letter-spacing: 2px;
  line-height: 1.7;
}

.brand { color: var(--terminal); font-weight: 700; }

.footer a {
  color: var(--terminal);
  text-decoration: none;
  border-bottom: 1px dotted var(--terminal);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 600px) {
  .container { padding: 22px 14px 40px; }
  .header { margin-bottom: 18px; }
  .top-nav { padding: 8px 10px; }
  .nav-link, .social-btn { padding: 6px 10px; font-size: 0.65rem; }
  .finding { padding: 12px; }
  .finding-title { font-size: 0.85rem; }
  .finding-detail { font-size: 0.78rem; }
}
