/* ============================================================
   Crypto Intelligence — Custom Styles (Tailwind overrides)
   ============================================================ */

/* ---------- Base ---------- */

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: #0a0e1a;
  color: #e2e8f0;
}

/* ---------- Selection ---------- */

::selection {
  background-color: rgba(245, 158, 11, 0.3);
  color: #fff;
}

/* ---------- Scrollbar ---------- */

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0f1629;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* ---------- Glow effects ---------- */

.glow-amber {
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.15),
              0 0 60px rgba(245, 158, 11, 0.05);
}

.glow-amber-strong {
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.25),
              0 0 80px rgba(245, 158, 11, 0.1);
}

/* ---------- Report card hover ---------- */

.report-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.report-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.12),
              0 2px 8px rgba(0, 0, 0, 0.4);
}

/* ---------- Preview fade overlay ---------- */

.preview-fade {
  position: relative;
}
.preview-fade::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(
    to bottom,
    transparent,
    #0f1629
  );
  pointer-events: none;
}

/* ---------- Preview markdown rendering ---------- */

.preview-content h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.preview-content h2 {
  font-size: 1.375rem;
  font-weight: 600;
  color: #f1f5f9;
  margin-top: 1.5rem;
  margin-bottom: 0.625rem;
  line-height: 1.35;
}
.preview-content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}
.preview-content p {
  margin-bottom: 0.875rem;
  line-height: 1.7;
  color: #cbd5e1;
}
.preview-content ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-bottom: 0.875rem;
}
.preview-content li {
  margin-bottom: 0.375rem;
  line-height: 1.6;
  color: #cbd5e1;
}
.preview-content strong {
  color: #f1f5f9;
  font-weight: 600;
}
.preview-content em {
  color: #94a3b8;
  font-style: italic;
}
.preview-content blockquote {
  border-left: 3px solid #f59e0b;
  padding-left: 1rem;
  margin: 1rem 0;
  color: #94a3b8;
  font-style: italic;
}

/* ---------- Loading spinner ---------- */

.spinner {
  border: 3px solid rgba(245, 158, 11, 0.15);
  border-top-color: #f59e0b;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 0.8s linear infinite;
}

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

/* ---------- Pulse animation for price badges ---------- */

@keyframes pulse-amber {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.pulse-amber {
  animation: pulse-amber 2s ease-in-out infinite;
}

/* ---------- Type badge colors ---------- */

.badge-weekly {
  background-color: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.25);
}
.badge-token {
  background-color: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.25);
}
.badge-defi {
  background-color: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

/* ---------- Grid pattern background ---------- */

.bg-grid {
  background-image:
    linear-gradient(rgba(245, 158, 11, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 158, 11, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ---------- Hero gradient ---------- */

.hero-gradient {
  background: linear-gradient(
    135deg,
    #0a0e1a 0%,
    #111827 40%,
    #1a1a2e 70%,
    #0a0e1a 100%
  );
}
