/* eSIM Guide - Custom Styles */
/* Color Scheme: Tech/Connectivity Theme (Blue & Cyan) */

:root {
  /* Primary - Blue (Trust, Technology) */
  --esim-blue: #2563EB;
  --esim-blue-light: #3B82F6;
  --esim-blue-dark: #1D4ED8;

  /* Secondary - Indigo (Innovation) */
  --esim-indigo: #4F46E5;
  --esim-indigo-light: #6366F1;
  --esim-indigo-dark: #4338CA;

  /* Accent - Cyan (Connectivity, Speed) */
  --esim-cyan: #06B6D4;
  --esim-cyan-light: #22D3EE;
  --esim-cyan-dark: #0891B2;

  /* Success - Green (Active, Connected) */
  --esim-green: #10B981;
  --esim-green-light: #34D399;

  /* Warning - Amber (Highlight) */
  --esim-amber: #F59E0B;
  --esim-amber-light: #FBBF24;

  /* Neutrals */
  --esim-white: #FFFFFF;
  --esim-gray-50: #F9FAFB;
  --esim-gray-100: #F3F4F6;
  --esim-gray-200: #E5E7EB;
  --esim-gray-300: #D1D5DB;
  --esim-gray-400: #9CA3AF;
  --esim-gray-500: #6B7280;
  --esim-gray-600: #4B5563;
  --esim-gray-700: #374151;
  --esim-gray-800: #1F2937;
  --esim-gray-900: #111827;
  --esim-dark: #0F172A;
}

html {
  margin-left: 0 !important;
}

/* ==================== */
/* Typography           */
/* ==================== */

body {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--esim-gray-800);
  background-color: var(--esim-gray-50);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--esim-gray-900);
  font-weight: 700;
}

h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.875rem;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.375rem;
  line-height: 1.4;
}

h4 {
  font-size: 1.125rem;
  line-height: 1.4;
}

p {
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  color: var(--esim-gray-600);
}

.small, small {
  font-size: 0.9375rem !important;
}

.text-muted {
  color: var(--esim-gray-500) !important;
}

a {
  color: var(--esim-blue);
  transition: color 0.2s ease;
}

a:hover {
  color: var(--esim-blue-dark);
}

/* ==================== */
/* Gradient Utilities   */
/* ==================== */

.gradient-hero {
  background: linear-gradient(135deg, var(--esim-blue) 0%, var(--esim-cyan) 100%);
}

.gradient-card {
  background: linear-gradient(135deg, var(--esim-indigo) 0%, var(--esim-blue) 100%);
}

.gradient-text {
  background: linear-gradient(90deg, var(--esim-blue), var(--esim-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-border {
  border: 2px solid transparent;
  background: linear-gradient(white, white) padding-box,
              linear-gradient(135deg, var(--esim-blue), var(--esim-cyan)) border-box;
}

/* ==================== */
/* Utility Classes      */
/* ==================== */

.bg-esim-light {
  background-color: var(--esim-gray-50);
}

.bg-esim-white {
  background-color: var(--esim-white);
}

.bg-esim-blue {
  background-color: var(--esim-blue);
}

.bg-esim-dark {
  background-color: var(--esim-dark);
}

.text-esim-blue {
  color: var(--esim-blue);
}

.text-esim-cyan {
  color: var(--esim-cyan);
}

.text-esim-green {
  color: var(--esim-green);
}

/* ==================== */
/* Navbar               */
/* ==================== */

.navbar {
  background: var(--esim-white) !important;
  padding: 0.75rem 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid var(--esim-gray-100);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--esim-gray-900) !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-brand:hover {
  color: var(--esim-blue) !important;
}

.navbar .nav-link {
  color: var(--esim-gray-600) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: color 0.2s ease;
}

.navbar .nav-link:hover {
  color: var(--esim-blue) !important;
}

.navbar .nav-link.active {
  color: var(--esim-blue) !important;
  position: relative;
}

.navbar .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: linear-gradient(90deg, var(--esim-blue), var(--esim-cyan));
  border-radius: 2px;
}

/* Hamburger Menu */
.navbar-toggler {
  border-color: var(--esim-gray-300);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%236B7280' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.25);
}

/* ==================== */
/* Hero Section         */
/* ==================== */

.hero-section {
  background: linear-gradient(135deg, var(--esim-blue) 0%, var(--esim-cyan) 100%);
  color: var(--esim-white);
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 50%);
  animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(10%, 10%); }
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--esim-white) !important;
  position: relative;
  z-index: 1;
}

.hero-title .highlight {
  display: inline-block;
  position: relative;
}

.hero-title .highlight::after {
  content: '';
  position: absolute;
  bottom: 0.1em;
  left: 0;
  right: 0;
  height: 0.3em;
  background: rgba(255, 255, 255, 0.3);
  z-index: -1;
}

.hero-subtitle {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .hero-section {
    padding: 3rem 0;
  }
  .hero-title {
    font-size: 2rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
}

/* ==================== */
/* Buttons              */
/* ==================== */

.btn {
  border-radius: 8px !important;
  font-weight: 600;
  transition: all 0.2s ease;
  padding: 0.625rem 1.25rem;
}

.btn-lg {
  padding: 0.875rem 1.75rem;
  border-radius: 10px !important;
  font-size: 1.0625rem;
}

.btn-sm {
  padding: 0.375rem 0.875rem;
  border-radius: 6px !important;
  font-size: 0.875rem;
}

/* Primary - Blue */
.btn-esim {
  background: linear-gradient(135deg, var(--esim-blue), var(--esim-blue-dark));
  color: var(--esim-white);
  border: none;
}

.btn-esim:hover {
  background: linear-gradient(135deg, var(--esim-blue-light), var(--esim-blue));
  color: var(--esim-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

/* Gradient Button */
.btn-gradient {
  background: linear-gradient(135deg, var(--esim-blue), var(--esim-cyan));
  color: var(--esim-white);
  border: none;
}

.btn-gradient:hover {
  background: linear-gradient(135deg, var(--esim-blue-light), var(--esim-cyan-light));
  color: var(--esim-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}

/* Secondary - Indigo */
.btn-indigo {
  background: var(--esim-indigo);
  color: var(--esim-white);
  border: none;
}

.btn-indigo:hover {
  background: var(--esim-indigo-light);
  color: var(--esim-white);
}

/* Ghost / Outline */
.btn-outline-esim {
  border: 2px solid var(--esim-blue);
  color: var(--esim-blue);
  background: transparent;
}

.btn-outline-esim:hover {
  background: var(--esim-blue);
  color: var(--esim-white);
}

.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: var(--esim-white);
  background: transparent;
}

.btn-outline-light:hover {
  background: var(--esim-white);
  color: var(--esim-blue);
}

/* Ghost button */
.btn-ghost {
  background: transparent;
  color: var(--esim-gray-600);
  border: none;
}

.btn-ghost:hover {
  background: var(--esim-gray-100);
  color: var(--esim-gray-900);
}

/* ==================== */
/* Cards                */
/* ==================== */

.card {
  border-radius: 16px;
  border: 1px solid var(--esim-gray-200);
  background: var(--esim-white);
  transition: all 0.3s ease;
  overflow: hidden;
}

.card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

/* Provider Card */
.provider-card {
  border: 1px solid var(--esim-gray-200);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
  background: var(--esim-white);
  position: relative;
}

.provider-card:hover {
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.12);
  transform: translateY(-4px);
  border-color: var(--esim-blue-light);
}

.provider-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--esim-blue-light), var(--esim-cyan-light));
  color: var(--esim-white);
}

.provider-card-body {
  padding: 1.5rem;
}

.provider-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--esim-gray-900);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.provider-card-title a {
  color: var(--esim-gray-900);
  text-decoration: none;
}

.provider-card-title a:hover {
  color: var(--esim-blue);
}

.provider-card-desc {
  color: var(--esim-gray-600);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Feature Cards */
.feature-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--esim-white);
  border-radius: 16px;
  border: 1px solid var(--esim-gray-100);
  transition: all 0.3s ease;
}

.feature-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--esim-blue), var(--esim-cyan));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: var(--esim-white);
}

.feature-icon svg {
  width: 28px;
  height: 28px;
}

.feature-title {
  font-weight: 700;
  color: var(--esim-gray-900);
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
}

/* Country Cards */
.country-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border: 2px solid var(--esim-gray-200);
  transition: all 0.3s ease;
  background: var(--esim-white);
  border-radius: 16px;
  cursor: pointer;
}

.country-card:hover {
  border-color: var(--esim-blue);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.1);
}

.country-icon {
  width: 72px;
  height: 72px;
  background: var(--esim-gray-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 2rem;
  transition: all 0.3s ease;
}

.country-card:hover .country-icon {
  background: linear-gradient(135deg, var(--esim-blue), var(--esim-cyan));
  color: var(--esim-white);
}

.country-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--esim-gray-900);
  margin-bottom: 0.5rem;
}

.country-count {
  font-size: 0.875rem;
  color: var(--esim-gray-500);
}

/* ==================== */
/* Badges               */
/* ==================== */

.badge-esim {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: linear-gradient(135deg, var(--esim-blue), var(--esim-cyan));
  color: var(--esim-white);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.badge-recommended {
  background: linear-gradient(135deg, var(--esim-green), var(--esim-green-light));
  color: var(--esim-white);
  padding: 0.25rem 0.625rem;
  border-radius: 6px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-country {
  display: inline-block;
  background: var(--esim-gray-100);
  color: var(--esim-gray-700);
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
}

.badge-country-blue {
  background: rgba(37, 99, 235, 0.1);
  color: var(--esim-blue);
}

.badge-country-cyan {
  background: rgba(6, 182, 212, 0.1);
  color: var(--esim-cyan);
}

.badge-country-green {
  background: rgba(16, 185, 129, 0.1);
  color: var(--esim-green);
}

.badge-country-amber {
  background: rgba(245, 158, 11, 0.1);
  color: var(--esim-amber);
}

.badge-country-indigo {
  background: rgba(79, 70, 229, 0.1);
  color: var(--esim-indigo);
}

/* ==================== */
/* Section Styles       */
/* ==================== */

.section-light {
  background: var(--esim-gray-50);
}

.section-white {
  background: var(--esim-white);
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--esim-gray-900);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--esim-gray-500);
  font-size: 1.0625rem;
  margin-bottom: 2.5rem;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--esim-blue) 0%, var(--esim-cyan) 100%);
  color: var(--esim-white);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30L30 0z' fill='%23ffffff' fill-opacity='0.05'/%3E%3C/svg%3E");
  pointer-events: none;
}

.cta-section h2 {
  color: var(--esim-white);
}

.cta-section p {
  color: rgba(255, 255, 255, 0.9);
}

/* Featured Section */
.featured-section {
  background: linear-gradient(135deg, var(--esim-gray-900), var(--esim-dark));
  color: var(--esim-white);
  padding: 4rem 0;
}

.featured-section .section-title {
  color: var(--esim-white);
}

.featured-section .section-subtitle {
  color: var(--esim-gray-400);
}

.featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--esim-amber), var(--esim-amber-light));
  color: var(--esim-gray-900);
  padding: 0.375rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* ==================== */
/* Filter Pills         */
/* ==================== */

.filter-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.filter-pill {
  background: var(--esim-white);
  border: 2px solid var(--esim-gray-200);
  color: var(--esim-gray-600);
  padding: 0.5rem 1.25rem;
  border-radius: 24px;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
}

.filter-pill:hover {
  border-color: var(--esim-blue);
  color: var(--esim-blue);
}

.filter-pill.active {
  background: linear-gradient(135deg, var(--esim-blue), var(--esim-cyan));
  border-color: transparent;
  color: var(--esim-white);
}

/* ==================== */
/* Footer               */
/* ==================== */

.site-footer {
  background: var(--esim-gray-900);
  color: var(--esim-white);
  padding: 3rem 0 1.5rem;
}

.site-footer a {
  color: var(--esim-gray-400);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: var(--esim-white);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--esim-white);
  margin-bottom: 0.5rem;
}

.footer-desc {
  color: var(--esim-gray-400);
  font-size: 0.9375rem;
  max-width: 300px;
}

.footer-title {
  font-weight: 600;
  color: var(--esim-white);
  margin-bottom: 1rem;
  font-size: 0.9375rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--esim-gray-400);
  font-size: 0.9375rem;
}

.footer-links a:hover {
  color: var(--esim-blue-light);
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--esim-gray-800);
  text-align: center;
  color: var(--esim-gray-500);
  font-size: 0.875rem;
}

/* ==================== */
/* Comparison Table     */
/* ==================== */

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--esim-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.comparison-table th {
  background: var(--esim-gray-100);
  padding: 1rem 1.25rem;
  text-align: left;
  font-weight: 600;
  color: var(--esim-gray-900);
  border-bottom: 2px solid var(--esim-gray-200);
}

.comparison-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--esim-gray-100);
  color: var(--esim-gray-700);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table tr:hover td {
  background: var(--esim-gray-50);
}

.check-icon {
  color: var(--esim-green);
}

.cross-icon {
  color: var(--esim-gray-400);
}

/* ==================== */
/* Steps / How It Works */
/* ==================== */

.step-card {
  text-align: center;
  padding: 2rem 1.5rem;
  position: relative;
}

.step-number {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--esim-blue), var(--esim-cyan));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: var(--esim-white);
  font-weight: 700;
  font-size: 1.25rem;
}

.step-title {
  font-weight: 700;
  color: var(--esim-gray-900);
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
}

.step-desc {
  color: var(--esim-gray-600);
  font-size: 0.9375rem;
}

/* ==================== */
/* FAQ Section          */
/* ==================== */

.faq-item {
  background: var(--esim-white);
  border: 1px solid var(--esim-gray-200);
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-question {
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  color: var(--esim-gray-900);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s ease;
}

.faq-question:hover {
  background: var(--esim-gray-50);
}

.faq-answer {
  padding: 0 1.5rem 1.25rem;
  color: var(--esim-gray-600);
  line-height: 1.7;
}

/* ==================== */
/* Mobile Adjustments   */
/* ==================== */

@media (max-width: 768px) {
  body {
    font-size: 1rem;
  }

  h1 {
    font-size: 1.875rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .country-card {
    padding: 1.5rem 1rem;
  }

  .country-icon {
    width: 56px;
    height: 56px;
    font-size: 1.5rem;
  }

  .provider-card-body {
    padding: 1.25rem;
  }

  .filter-pills {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
  }

  .filter-pill {
    flex-shrink: 0;
  }

  .navbar .nav-link.active::after {
    display: none;
  }
}

/* ==================== */
/* Animations           */
/* ==================== */

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

.animate-fadeInUp {
  animation: fadeInUp 0.5s ease-out;
}

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

.animate-float {
  animation: float 3s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 20px rgba(37, 99, 235, 0.3); }
  50% { box-shadow: 0 0 40px rgba(37, 99, 235, 0.5); }
}

.animate-glow {
  animation: glow 2s ease-in-out infinite;
}

/* ==================== */
/* Scrollbar Styling    */
/* ==================== */

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--esim-gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--esim-gray-400);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--esim-gray-500);
}

/* ==================== */
/* Link Card Style      */
/* ==================== */

.link-card {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--esim-blue);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.link-card:hover {
  color: var(--esim-blue-dark);
  gap: 0.75rem;
}

.link-card svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.link-card:hover svg {
  transform: translateX(2px);
}

/* ==================== */
/* Country Section      */
/* ==================== */

.country-section {
  padding: 3rem 0;
  border-bottom: 1px solid var(--esim-gray-200);
}

.country-section:last-child {
  border-bottom: none;
}

.country-flag {
  font-size: 2.5rem;
  margin-right: 1rem;
}

.country-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.country-header h3 {
  margin: 0;
}
