@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* Colors - Soft Minimal Travel Palette */
  --bg-primary: #fcfbfa;
  --bg-secondary: #f6f5f0;
  --bg-tertiary: #ebeae4;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.5);
  --bg-glass-hover: rgba(255, 255, 255, 0.85);
  --border-glass: rgba(44, 48, 46, 0.08);
  --border-glass-hover: rgba(44, 48, 46, 0.15);

  --accent-primary: #8ea89d; /* Soft Sage Green */
  --accent-primary-dim: rgba(142, 168, 157, 0.15);
  --accent-secondary: #d9a78a; /* Warm Terracotta */
  --accent-secondary-dim: rgba(217, 167, 138, 0.15);
  --accent-tertiary: #708a83; /* Soft Forest */
  --accent-gradient: linear-gradient(135deg, #8ea89d, #d9a78a);
  --accent-gradient-h: linear-gradient(90deg, #8ea89d, #d9a78a);

  --text-primary: #2c302e; /* Soft Charcoal */
  --text-secondary: #5a605c; /* Muted Slate */
  --text-muted: #8e9591;

  --visa-free: #6b8f71; /* Soft Green */
  --visa-free-bg: rgba(107, 143, 113, 0.1);
  --visa-on-arrival: #dca06c; /* Soft Amber */
  --visa-on-arrival-bg: rgba(220, 160, 108, 0.1);
  --visa-required: #c87a7a; /* Soft Terracotta Red */
  --visa-required-bg: rgba(200, 122, 122, 0.1);

  --success: #6b8f71;
  --warning: #dca06c;
  --danger: #c87a7a;

  /* Typography */
  --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 4px 12px rgba(44, 48, 46, 0.04);
  --shadow-md: 0 8px 24px rgba(44, 48, 46, 0.06);
  --shadow-lg: 0 16px 40px rgba(44, 48, 46, 0.1);
  --shadow-glow-primary: 0 0 15px rgba(142, 168, 157, 0.15);
  --shadow-glow-secondary: 0 0 15px rgba(217, 167, 138, 0.15);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* Z-index */
  --z-header: 100;
  --z-modal: 500;
  --z-overlay: 400;
  --z-nav: 300;
  --z-toast: 600;
  --z-confetti: 700;

  /* Safe areas */
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* === Reset === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: 80px;
}

/* Ambient soft background glow */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 600px at 10% 20%, rgba(142, 168, 157, 0.06) 0%, transparent 80%),
    radial-gradient(ellipse 500px 500px at 90% 80%, rgba(217, 167, 138, 0.05) 0%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

#app {
  position: relative;
  z-index: 1;
}

/* === Typography === */
h1 { font-size: 2.2rem; font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; }
h2 { font-size: 1.6rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
h3 { font-size: 1.3rem; font-weight: 600; line-height: 1.4; }
h4 { font-size: 1.05rem; font-weight: 600; line-height: 1.4; }
p { color: var(--text-secondary); }

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover { color: var(--accent-tertiary); }

/* === Scrollbar === */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(142, 168, 157, 0.3);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover { background: var(--accent-primary); }

/* === Utility Classes === */
.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass {
  background: var(--bg-glass);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--border-glass);
}

.hidden { display: none !important; }
.text-muted { color: var(--text-muted); }

/* === Animations === */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

@keyframes progressFill {
  from { width: 0; }
}

@keyframes confettiFall {
  0% { transform: translateY(0) rotate(0deg) scale(1); opacity: 1; }
  100% { transform: translateY(100vh) rotate(360deg) scale(0); opacity: 0; }
}

@keyframes stampAppear {
  0% { transform: scale(0.3) rotate(-20deg); opacity: 0; }
  70% { transform: scale(1.1) rotate(3deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.animate-fade-in { animation: fadeIn 0.3s cubic-bezier(0.215, 0.61, 0.355, 1) forwards; }
.animate-slide-up { animation: slideUp 0.4s cubic-bezier(0.215, 0.61, 0.355, 1) forwards; }
.animate-scale-in { animation: scaleIn 0.3s cubic-bezier(0.215, 0.61, 0.355, 1) forwards; }

/* === Page System === */
.page {
  display: none;
  min-height: 100vh;
  min-height: 100dvh;
}

.page.active {
  display: block;
}

/* Flag Icon Style */
.flag-icon {
  width: 32px;
  height: 24px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  border: 1px solid rgba(0,0,0,0.05);
}
