/* ==========================================================================
   SearchMyBus - Main Stylesheet & Design System
   Inspired by Hostinger & Skyscanner: Premium Light Theme with Violet Accents
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Brand Colors */
  --primary: #6100ed;
  --primary-hover: #5000c7;
  --primary-dark: #3a0094;
  --primary-light: #f3eeff;
  --primary-lighter: #faf7ff;
  
  --violet-gradient: linear-gradient(135deg, #6f00ff 0%, #4a00e0 100%);
  --violet-glow-gradient: linear-gradient(135deg, rgba(111, 0, 255, 0.12) 0%, rgba(74, 0, 224, 0.03) 100%);
  --hero-bg-gradient: radial-gradient(circle at 50% 0%, #f6f0ff 0%, #ffffff 70%);
  --badge-gradient: linear-gradient(135deg, #7928ca 0%, #6100ed 100%);
  
  /* Status & Accents */
  --accent-green: #059669;
  --accent-green-bg: #ecfdf5;
  --accent-orange: #ea580c;
  --accent-orange-bg: #fff7ed;

  /* Neutrals */
  --bg-main: #ffffff;
  --bg-surface: #ffffff;
  --bg-subtle: #f8f9fe;
  --bg-card: #ffffff;

  --text-main: #0f172a;
  --text-secondary: #475569;
  --text-muted: #8e9bb0;
  --text-white: #ffffff;

  --border-light: #edf2f7;
  --border-subtle: #e2e8f0;
  --border-primary-subtle: #e0d4fc;

  /* Shadows */
  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 12px 32px -4px rgba(97, 0, 237, 0.06);
  --shadow-lg: 0 24px 60px -12px rgba(97, 0, 237, 0.12);
  --shadow-card: 0 16px 40px -10px rgba(15, 23, 42, 0.05);
  --shadow-phone: 0 30px 80px -15px rgba(97, 0, 237, 0.22);

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

  /* Typography */
  --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;

  /* Layout Spacing */
  --container-max: 1240px;
  --header-height: 80px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Dark Mode Color Variable Overrides */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --primary: #9d4edd;
    --primary-hover: #b5179e;
    --primary-light: #241442;
    --primary-lighter: #1a0f30;
    
    --violet-gradient: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
    --hero-bg-gradient: radial-gradient(circle at 50% 0%, #1e1035 0%, #0b0f19 75%);
    
    --bg-main: #0b0f19;
    --bg-surface: #151c2e;
    --bg-subtle: #0f172a;
    --bg-card: #1e293b;

    --text-main: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-white: #ffffff;

    --border-light: #1e293b;
    --border-subtle: #334155;
    --border-primary-subtle: #4c1d95;

    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 12px 32px -4px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 24px 60px -12px rgba(0, 0, 0, 0.8);
  }
}

html[data-theme="dark"] {
  --primary: #9d4edd;
  --primary-hover: #b5179e;
  --primary-light: #241442;
  --primary-lighter: #1a0f30;
  
  --violet-gradient: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
  --hero-bg-gradient: radial-gradient(circle at 50% 0%, #1e1035 0%, #0b0f19 75%);
  
  --bg-main: #0b0f19;
  --bg-surface: #151c2e;
  --bg-subtle: #0f172a;
  --bg-card: #1e293b;

  --text-main: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-white: #ffffff;

  --border-light: #1e293b;
  --border-subtle: #334155;
  --border-primary-subtle: #4c1d95;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 12px 32px -4px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 24px 60px -12px rgba(0, 0, 0, 0.8);
}

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

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

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

/* Typography Base */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

p {
  color: var(--text-secondary);
}

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

a:hover {
  color: var(--primary-hover);
}

img, svg {
  max-width: 100%;
  display: block;
}

button, input {
  font-family: inherit;
  border: none;
  outline: none;
}

/* Utility Containers */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.text-gradient {
  background: var(--violet-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.badge-coming-soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--border-primary-subtle);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.badge-coming-soon .dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(97, 0, 237, 0.2);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(97, 0, 237, 0.5); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(97, 0, 237, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(97, 0, 237, 0); }
}

/* Section Header Shared */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px auto;
}

.section-header .sub-tag {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  display: block;
}

.section-header h2 {
  font-size: 2.75rem;
  margin-bottom: 18px;
}

.section-header p {
  font-size: 1.15rem;
  color: var(--text-secondary);
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--violet-gradient);
  color: var(--text-white);
  padding: 16px 32px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 10px 25px -5px rgba(97, 0, 237, 0.35);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 35px -5px rgba(97, 0, 237, 0.45);
  color: var(--text-white);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  padding: 16px 32px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-lighter);
  transform: translateY(-2px);
}

/* Store Badges */
.store-badges {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #0f172a;
  color: #ffffff;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  transition: var(--transition-fast);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.store-badge:hover {
  opacity: 1;
  transform: translateY(-2px);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.store-badge svg {
  width: 26px;
  height: 26px;
  fill: #ffffff;
  flex-shrink: 0;
}

.store-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  color: #ffffff;
}

.store-badge-text .small {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.85);
}

.store-badge-text .title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.badge-tag-overlay {
  position: absolute;
  top: 4px;
  right: 6px;
  background: var(--badge-gradient);
  color: #ffffff;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Scroll reveal utility */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
