/* ==========================================================================
   How To Travel Vietnam - Clean & Bright Light Theme
   Fresh, vibrant colors, high contrast readability & simplified UI effects.
   ========================================================================== */

/* Design Tokens - Bright & Friendly Palette */
:root {
  --color-primary: #4F46E5;        /* Vibrant Indigo */
  --color-primary-hover: #4338CA;
  --color-teal: #0D9488;           /* Fresh Emerald Teal */
  --color-teal-hover: #0F766E;
  --color-amber: #D97706;          /* Warm Sun Amber */
  --color-rose: #E11D48;           /* Coral Rose */
  
  --bg-page: #F8FAFC;              /* Clean Slate Sky Light */
  --bg-surface: #FFFFFF;           /* Crisp White Card */
  --bg-surface-hover: #F1F5F9;
  
  --text-heading: #0F172A;         /* Dark Slate for contrast */
  --text-body: #334155;
  --text-muted: #64748B;
  
  --border-light: #E2E8F0;
  --border-hover: #CBD5E1;

  /* Typography Scale */
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
}

/* ============================================================
   Base Typography — Travel website feel
   ============================================================ */
html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-body);
  overflow-x: hidden;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button, input, select, textarea {
  font-family: var(--font-body);
}

/* Headings use Outfit — bolder, editorial travel style */
h1, h2, h3, h4, h5, h6,
.font-heading {
  font-family: var(--font-heading);
  letter-spacing: -0.025em;
  color: var(--text-heading);
  line-height: 1.25;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; }
h2 { font-size: clamp(1.35rem, 3vw, 1.875rem); font-weight: 800; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); font-weight: 700; }
h4 { font-size: clamp(0.95rem, 2vw, 1.125rem); font-weight: 700; }

/* Body text — easy to read for travel articles */
p {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--text-body);
}

/* Strong tags in travel guides */
strong, b {
  font-weight: 700;
  color: #1E293B;
}

/* Article prose styling */
.article-body p {
  margin-bottom: 1.25rem;
}

.article-body h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #E2E8F0;
}

.article-body h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.article-body ul {
  padding-left: 1.5rem;
  list-style: disc;
  space-y: 0.5rem;
}

.article-body li {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--text-body);
  margin-bottom: 0.4rem;
}

/* ============================================================
   Custom Scrollbar
   ============================================================ */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #F1F5F9; }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-primary); }

/* ============================================================
   Cards & Navigation
   ============================================================ */
.bright-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  transition: all 0.25s ease-in-out;
}

.bright-card:hover {
  border-color: #A5B4FC;
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -4px rgba(79, 70, 229, 0.12);
}

.bright-nav {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #E2E8F0;
}

.bright-modal {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

/* ============================================================
   Text Gradients
   ============================================================ */
.text-gradient-primary {
  background: linear-gradient(135deg, #4F46E5 0%, #0D9488 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-warm {
  background: linear-gradient(135deg, #EA580C 0%, #D97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============================================================
   Countdown Ticker
   ============================================================ */
.ticker-box {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 0.75rem;
  padding: 0.75rem 0.5rem;
  min-width: 3.75rem;
  text-align: center;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
}

.ticker-value {
  font-family: var(--font-mono);
  font-weight: 800;
}

/* ============================================================
   Filter Pills & Favorites
   ============================================================ */
.filter-pill.active {
  background-color: var(--color-primary);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

.favorite-btn.active svg {
  fill: #EF4444;
  color: #EF4444;
  filter: drop-shadow(0 2px 4px rgba(239, 68, 68, 0.3));
}

/* ============================================================
   Image & Card Overlays
   ============================================================ */
.card-img-overlay {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.02) 0%, rgba(15, 23, 42, 0.65) 100%);
}

/* ============================================================
   Travel Guide Article Specific Styles
   ============================================================ */

/* Route summary info blocks */
.route-stat {
  text-align: center;
  padding: 1rem;
}
.route-stat .stat-value {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #0F172A;
  display: block;
}
.route-stat .stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #64748B;
}

/* Tip list items in guides */
.tip-item {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  padding: 0.75rem;
  background: #F8FAFC;
  border-radius: 0.75rem;
  border: 1px solid #E2E8F0;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: #334155;
}

.tip-icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  color: #0D9488;
  margin-top: 0.1rem;
}

/* Call-to-action gradient banners in guides */
.cta-banner {
  background: linear-gradient(135deg, #4F46E5 0%, #0D9488 100%);
  border-radius: 1rem;
  padding: 1.5rem;
  color: white;
}

/* ============================================================
   Animations
   ============================================================ */
@keyframes liveDotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.25); }
}

.animate-live-dot {
  animation: liveDotPulse 1.6s infinite ease-in-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.45s ease-out both;
}
