/* ============================================================
   Global Realty Intelligence — Custom Styles (Tailwind overrides)
   ============================================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: #f8fafc;
  color: #374151;
}

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

::selection {
  background-color: rgba(26, 122, 76, 0.2);
  color: #111827;
}

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

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

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

.glow-gold {
  box-shadow: 0 0 20px rgba(196, 149, 42, 0.15),
              0 0 60px rgba(196, 149, 42, 0.05);
}

.glow-gold-strong {
  box-shadow: 0 0 30px rgba(196, 149, 42, 0.25),
              0 0 80px rgba(196, 149, 42, 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(26, 122, 76, 0.08),
              0 2px 8px rgba(0, 0, 0, 0.06);
}

/* ---------- 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,
    #ffffff
  );
  pointer-events: none;
}

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

.preview-content h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.preview-content h2 {
  font-size: 1.375rem;
  font-weight: 600;
  color: #1f2937;
  margin-top: 1.5rem;
  margin-bottom: 0.625rem;
  line-height: 1.35;
}
.preview-content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #374151;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}
.preview-content p {
  margin-bottom: 0.875rem;
  line-height: 1.7;
  color: #4b5563;
}
.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: #4b5563;
}
.preview-content strong {
  color: #1f2937;
  font-weight: 600;
}
.preview-content em {
  color: #6b7280;
  font-style: italic;
}
.preview-content blockquote {
  border-left: 3px solid #1a7a4c;
  padding-left: 1rem;
  margin: 1rem 0;
  color: #6b7280;
  font-style: italic;
}

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

.spinner {
  border: 3px solid rgba(26, 122, 76, 0.15);
  border-top-color: #1a7a4c;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 0.8s linear infinite;
}

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

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

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

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

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

.badge-country {
  background-color: rgba(26, 122, 76, 0.1);
  color: #1a7a4c;
  border: 1px solid rgba(26, 122, 76, 0.25);
}
.badge-city {
  background-color: rgba(59, 130, 246, 0.1);
  color: #2563eb;
  border: 1px solid rgba(59, 130, 246, 0.25);
}
.badge-visa {
  background-color: rgba(168, 85, 247, 0.1);
  color: #9333ea;
  border: 1px solid rgba(168, 85, 247, 0.25);
}

/* ---------- Subtle background ---------- */

.bg-subtle {
  background-color: #f8fafc;
}

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

.hero-gradient {
  background: linear-gradient(
    135deg,
    #f8fafc 0%,
    #ecfdf5 40%,
    #f0fdf4 70%,
    #f8fafc 100%
  );
}
