/* GlobeRoute Design System - Dark Mode */
:root {
  /* Colors */
  --bg-body: #09090b;
  --bg-card: #18181b;
  --bg-elevated: #27272a;
  --bg-input: #27272a;
  
  --text-primary: #fafafa;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  
  --border-subtle: #3f3f46;
  --border-hover: #52525b;
  
  /* Brand Colors - Ocean & Sunset */
  --primary: #06b6d4; /* Cyan */
  --primary-dark: #0891b2;
  --accent: #f97316; /* Orange */
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  --gradient-accent: linear-gradient(135deg, #f97316 0%, #ec4899 100%);
  
  /* Spacing */
  --container-width: 1280px;
  --header-height: 80px;
  
  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-glow: 0 0 20px rgba(6, 182, 212, 0.2);
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

ul {
  list-style: none;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 0.875rem; }

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

.section {
  padding: 80px 0;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 1024px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
}

/* Components */
/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.4);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

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

.btn-white:hover {
  background: #f4f4f5;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(9, 9, 11, 0.8);
  backdrop-filter: blur(12px);
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-weight: 500;
  color: var(--text-secondary);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

/* Hero Section */
.hero {
  position: relative;
  height: 85vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.placeholder-hero {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, #1e293b 0%, #020617 100%);
  position: relative;
}

/* Abstract shapes for background */
.placeholder-hero::after {
  content: '';
  position: absolute;
  top: 20%;
  right: 10%;
  width: 300px;
  height: 300px;
  background: var(--primary);
  filter: blur(120px);
  opacity: 0.2;
  border-radius: 50%;
}

.placeholder-hero::before {
  content: '';
  position: absolute;
  bottom: 10%;
  left: 10%;
  width: 400px;
  height: 400px;
  background: var(--accent);
  filter: blur(140px);
  opacity: 0.15;
  border-radius: 50%;
}

/* Search Widget */
.search-widget {
  background: rgba(24, 24, 27, 0.6);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px;
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 16px;
  margin-top: 48px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.search-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.search-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
}

.search-input {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.125rem;
  font-weight: 500;
  outline: none;
  width: 100%;
}

.search-input::placeholder {
  color: var(--text-secondary);
}

.divider {
  width: 1px;
  background: var(--border-subtle);
  height: 100%;
}

/* Destination Cards */
.card-destination {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.card-destination:hover {
  transform: translateY(-8px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
}

.card-image-wrapper {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
}

.placeholder-img {
  width: 100%;
  height: 100%;
  background: #27272a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.badge-price {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(4px);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.875rem;
  color: white;
}

.card-content {
  padding: 24px;
}

.rating {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #fbbf24; /* Amber */
  font-size: 0.875rem;
  margin-bottom: 8px;
}

.destination-meta {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Category Pills */
.categories {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 32px;
  scrollbar-width: none;
}

.category-pill {
  padding: 8px 20px;
  background: var(--bg-elevated);
  border-radius: var(--radius-full);
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.category-pill:hover {
  background: var(--border-subtle);
}

.category-pill.active {
  background: var(--primary);
  color: white;
}

/* Feature Grid */
.feature-card {
  padding: 32px;
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--gradient-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: white;
}

/* Newsletter */
.newsletter {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-radius: var(--radius-lg);
  padding: 64px;
  text-align: center;
  border: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}

.newsletter::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
}

.input-group {
  display: flex;
  gap: 12px;
  max-width: 500px;
  margin: 32px auto 0;
}

.form-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  padding: 12px 20px;
  border-radius: var(--radius-full);
  color: white;
  outline: none;
}

.form-input:focus {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.1);
}

/* Footer */
footer {
  border-top: 1px solid var(--border-subtle);
  padding: 64px 0 32px;
  margin-top: 64px;
  background: var(--bg-card);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 64px;
  margin-bottom: 48px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .search-widget {
    grid-template-columns: 1fr;
  }
  
  .divider { display: none; }
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-secondary);
}

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

/* Utilities */
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }

/* Dashboard Specifics */
.dashboard-grid {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 32px;
  min-height: calc(100vh - var(--header-height));
  padding-top: var(--header-height);
}

.sidebar {
  background: var(--bg-card);
  border-right: 1px solid var(--border-subtle);
  padding: 32px 24px;
  height: 100%;
  position: fixed;
  width: 250px;
  top: var(--header-height);
}

.main-content {
  grid-column: 2;
  padding: 32px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
}

.file-tree {
  font-family: 'Fira Code', monospace;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.tree-item {
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tree-indent {
  padding-left: 20px;
  border-left: 1px solid var(--border-subtle);
  margin-left: 7px;
}

.badge-tech {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.1);
}

.badge-flutter { color: #54c5f8; background: rgba(84, 197, 248, 0.1); border: 1px solid rgba(84, 197, 248, 0.2); }
.badge-node { color: #6cc24a; background: rgba(108, 194, 74, 0.1); border: 1px solid rgba(108, 194, 74, 0.2); }
.badge-mongo { color: #589636; background: rgba(88, 150, 54, 0.1); border: 1px solid rgba(88, 150, 54, 0.2); }

.code-block {
  background: #0f172a;
  border-radius: var(--radius-sm);
  padding: 16px;
  font-family: monospace;
  font-size: 0.875rem;
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  color: #e2e8f0;
}
