/* ==========================================================================
   SaleGaadi INDIA - Core Design System & Tokens
   ========================================================================== */

@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 from App */
  --primary: #0B63F6;
  --primary-hover: #084ECC;
  --primary-light: #EBF3FF;
  --primary-glow: rgba(11, 99, 246, 0.16);
  --primary-gradient: linear-gradient(135deg, #0B63F6 0%, #0047C7 100%);
  --hero-gradient: linear-gradient(135deg, #0B74FF 0%, #0348B8 100%);
  
  /* Indian Tricolor & App Accents */
  --accent-saffron: #FF7722;
  --accent-green: #05963E;
  --accent-yellow: #FFB800;
  --accent-heart: #EF4444;

  /* Surfaces & Backgrounds */
  --bg-main: #F4F6FB;
  --bg-app: #F5F7FB;
  --surface: #FFFFFF;
  --surface-alt: #F8FAFC;
  --surface-glass: rgba(255, 255, 255, 0.85);

  /* Typography */
  --font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --text-main: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --text-light: #94A3B8;

  /* Borders & Shadows */
  --border: #E4EAF2;
  --border-light: #F0F4F8;
  --border-focus: #0B63F6;
  --shadow-subtle: 0 2px 10px rgba(15, 23, 42, 0.03);
  --shadow-card: 0 4px 18px rgba(15, 23, 42, 0.05);
  --shadow-hover: 0 10px 28px rgba(11, 99, 246, 0.12);
  --shadow-nav: 0 -3px 18px rgba(15, 23, 42, 0.06);

  /* Border Radii */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-full: 9999px;

  /* Transitions */
  --transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Theme Support */
[data-theme="dark"] {
  --bg-main: #0B111E;
  --bg-app: #0F172A;
  --surface: #1E293B;
  --surface-alt: #162032;
  --surface-glass: rgba(30, 41, 59, 0.88);
  --text-main: #F8FAFC;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  --text-light: #64748B;
  --border: #334155;
  --border-light: #1E293B;
  --primary-light: rgba(11, 99, 246, 0.2);
  --shadow-card: 0 4px 18px rgba(0, 0, 0, 0.35);
  --shadow-hover: 0 8px 25px rgba(11, 99, 246, 0.25);
  --shadow-nav: 0 -3px 18px rgba(0, 0, 0, 0.4);
}

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

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: 74px; /* Space for mobile bottom bar */
}

@media (min-width: 992px) {
  body {
    padding-bottom: 0;
  }
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  background: transparent;
  transition: var(--transition);
}

input, select, textarea {
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-main);
  transition: var(--transition);
}

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

/* ==========================================================================
   Container & Layout
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
}

.app-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1;
}

/* Section Header */
.section-title-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 22px 0 14px 0;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.3px;
}

.section-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.section-link:hover {
  text-decoration: underline;
}

/* Badge & Utility */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-blue {
  background: var(--primary-light);
  color: var(--primary);
}

.badge-gold {
  background: #FEF3C7;
  color: #B45309;
}

.badge-green {
  background: #DCFCE7;
  color: #15803D;
}
