@import url('https://googleapis.com');

:root {
  --nfn-primary: #003580;
  --nfn-secondary: #d21034;
  --nfn-gold: #ffce00;
  --nfn-bg: #f4f6f9;
  --card: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --pos: #10b981;
  --neu: #f59e0b;
  --neg: #d21034;
}

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

body {
  font-family: 'Poppins', sans-serif;
  background: var(--nfn-bg);
  color: var(--text);
  padding: 20px;
  line-height: 1.5;
}

.container {
  max-width: 780px;
  margin: 0 auto;
}

/* Header matching Media Pulse */
header {
  background: linear-gradient(135deg, var(--nfn-primary) 0%, #002255 100%);
  color: #ffffff;
  padding: 22px 24px;
  border-radius: 12px;
  border-bottom: 4px solid var(--nfn-secondary);
  margin-bottom: 22px;
  box-shadow: 0 4px 12px rgba(0, 53, 128, 0.12);
}

header h1 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

header p {
  font-size: 0.88rem;
  opacity: 0.9;
}

/* Input Card matching Media Pulse .card */
.input-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.source-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.source-tabs label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--nfn-primary);
  background: #f8faff;
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.source-tabs label:hover {
  border-color: var(--nfn-primary);
}

.source-tabs input[type="radio"] {
  accent-color: var(--nfn-secondary);
}

textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.92rem;
  color: var(--text);
  background: #f9fafb;
  resize: vertical;
  transition: border-color 0.15s ease, background 0.15s ease;
}

textarea:focus {
  outline: none;
  border-color: var(--nfn-primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 53, 128, 0.08);
}

/* Action Buttons matching Media Pulse .load-more-btn & .clear-btn */
.actions {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}

button {
  font-family: 'Poppins', sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  padding: 11px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.16s ease;
}

#pasteBtn {
  color: var(--nfn-primary);
  background: #ffffff;
  border: 2px solid var(--nfn-primary);
}

#pasteBtn:hover {
  background: #f0f5ff;
}

#checkBtn {
  color: #ffffff;
  background: var(--nfn-primary);
  border: 2px solid var(--nfn-primary);
  flex: 1;
  box-shadow: 0 4px 12px rgba(0, 53, 128, 0.16);
}

#checkBtn:hover {
  background: var(--nfn-secondary);
  border-color: var(--nfn-secondary);
  transform: translateY(-1px);
}

#checkBtn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.privacy-note {
  display: block;
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--muted);
}

/* Diagnostic Result Card */
.result-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 5px solid var(--nfn-primary);
  border-radius: 12px;
  margin-top: 22px;
  padding: 20px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.hidden { display: none !important; }

.verdict-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.badge {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.score {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--nfn-primary);
}

.summary {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 14px;
}

/* Media Pulse Pill-Aligned Sentiment States */
.safe { border-left-color: var(--pos); }
.safe .badge { background: #d1fae5; color: #065f46; }

.suspicious { border-left-color: var(--neu); }
.suspicious .badge { background: #fef3c7; color: #92400e; }

.high-risk { border-left-color: var(--neg); }
.high-risk .badge { background: #fee2e2; color: #991b1b; }

.dissection-box, .action-box {
  background: #f8fafc;
  border: 1px solid var(--border);
  padding: 14px 16px;
  border-radius: 10px;
  margin-top: 12px;
}

.dissection-box h3, .action-box h3 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--nfn-primary);
  margin-bottom: 8px;
}

ul {
  padding-left: 18px;
}

li {
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--text);
}

@media (max-width: 540px) {
  body { padding: 12px; }
  header { padding: 18px; }
  .actions { flex-direction: column; }
}

