@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');
/* ============================================================
   MotoMate — Design System
   India's Community for Smarter Vehicle Ownership
   Brand aligned with gomotomate.com (orange + charcoal, Bebas Neue)
   Reusable tokens + component classes layered on top of Tailwind
   ============================================================ */

:root {
  /* Brand palette — matches gomotomate.com */
  --mm-navy-900: #12151b;   /* near-black */
  --mm-navy-800: #1b1f28;   /* charcoal — dark surfaces */
  --mm-navy-700: #f9603e;   /* PRIMARY brand orange */
  --mm-navy-600: #e14e2e;   /* dark orange — hover */
  --mm-navy-500: #fb7b57;   /* light orange */
  --mm-blue-50:  #fff1ec;   /* soft orange tint */

  --mm-amber-600: #b45309;
  --mm-amber-500: #f59e0b;  /* gold — star ratings & highlights */
  --mm-amber-400: #fbbf24;
  --mm-amber-50:  #fff7e6;

  --mm-green-600: #15803d;
  --mm-green-500: #16a34a;  /* verified / success */
  --mm-green-50:  #ecfdf3;

  --mm-red-500:   #dc2626;
  --mm-red-50:    #fef2f2;

  --mm-ink-cta:   #1b1f28;  /* charcoal secondary buttons / dark surfaces */

  --mm-bg:        #f7f7f8;  /* light grey background */
  --mm-surface:   #ffffff;
  --mm-ink-900:   #1f242e;  /* charcoal text (from site) */
  --mm-ink-700:   #3a4150;
  --mm-ink-500:   #676f7e;  /* muted (from site) */
  --mm-ink-300:   #a0a7b4;
  --mm-line:      #eaebee;

  --mm-shadow-sm: 0 1px 2px rgba(31,36,46,.06), 0 1px 3px rgba(31,36,46,.05);
  --mm-shadow-md: 0 8px 32px rgba(31,36,46,.08);   /* matches site --shadow-card */
  --mm-shadow-lg: 0 20px 60px rgba(31,36,46,.12);  /* matches site --shadow-elevated */

  --mm-radius: 16px;
}

/* ---------- Base ---------- */
* { -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--mm-bg);
  color: var(--mm-ink-900);
  overflow-x: hidden;               /* guard against mobile horizontal overflow */
}

h1, h2, h3, h4, .font-display {
  font-family: 'Inter', system-ui, sans-serif;
  letter-spacing: -0.01em;
}
/* Bebas Neue — brand display type for hero titles, section eyebrows, wordmark */
.font-bebas {
  font-family: 'Bebas Neue', 'Inter', sans-serif;
  letter-spacing: 0.02em;
  font-weight: 400;
}
.mm-eyebrow {
  font-family: 'Bebas Neue', sans-serif; letter-spacing: .12em;
  font-size: .82rem; color: var(--mm-navy-700); font-weight: 400;
}

/* Focus states for keyboard users */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid rgba(47, 108, 176, 0.45);
  outline-offset: 2px;
  border-radius: 8px;
}

/* ---------- Layout helpers ---------- */
.mm-container { max-width: 1240px; margin-inline: auto; padding-inline: 1rem; }
@media (min-width: 768px) { .mm-container { padding-inline: 1.5rem; } }

.mm-main-pad { padding-bottom: 88px; }         /* space for mobile bottom-nav */
@media (min-width: 1024px) { .mm-main-pad { padding-bottom: 3rem; } }

/* ---------- Cards ---------- */
.mm-card {
  background: var(--mm-surface);
  border: 1px solid var(--mm-line);
  border-radius: var(--mm-radius);
  box-shadow: var(--mm-shadow-sm);
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.mm-card-hover:hover {
  box-shadow: var(--mm-shadow-md);
  transform: translateY(-2px);
  border-color: #d6def0;
}

/* ---------- Buttons ---------- */
.mm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 600; font-size: .9rem; line-height: 1;
  padding: .7rem 1.1rem; border-radius: 12px;
  cursor: pointer; border: 1px solid transparent;
  transition: transform .12s ease, background .18s ease, box-shadow .18s ease, color .18s;
  white-space: nowrap;
}
.mm-btn:active { transform: scale(.97); }
.mm-btn-primary { background: var(--mm-navy-700); color: #fff; box-shadow: var(--mm-shadow-sm); }
.mm-btn-primary:hover { background: var(--mm-navy-600); }
.mm-btn-accent { background: var(--mm-ink-cta); color: #fff; }
.mm-btn-accent:hover { background: #12151b; }
.mm-btn-ghost { background: transparent; color: var(--mm-ink-700); border-color: var(--mm-line); }
.mm-btn-ghost:hover { background: var(--mm-blue-50); color: var(--mm-navy-700); border-color: #c9d6ea; }
.mm-btn-soft { background: var(--mm-blue-50); color: var(--mm-navy-700); }
.mm-btn-soft:hover { background: #e2ecf9; }
.mm-btn-sm { padding: .45rem .75rem; font-size: .8rem; border-radius: 10px; }
.mm-btn-block { width: 100%; }

/* ---------- Badges ---------- */
.mm-badge {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .7rem; font-weight: 600; line-height: 1;
  padding: .3rem .55rem; border-radius: 999px; white-space: nowrap;
}
.mm-badge i, .mm-badge svg { width: 13px; height: 13px; }

/* role badges */
.role-new        { background: #eef1f6; color: #55617a; }
.role-owner      { background: var(--mm-blue-50); color: var(--mm-navy-700); }
.role-experienced{ background: #ede9fe; color: #6d28d9; }
.role-mechanic   { background: var(--mm-green-50); color: var(--mm-green-600); }
.role-expert     { background: #fff4e0; color: var(--mm-amber-600); }
.role-moderator  { background: #e0f2fe; color: #0369a1; }
.role-admin      { background: #fee2e2; color: #b91c1c; }

/* status badges */
.status-solved   { background: var(--mm-green-50); color: var(--mm-green-600); }
.status-open     { background: #fff4e0; color: var(--mm-amber-600); }
.status-verified { background: var(--mm-green-500); color: #fff; }
.status-urgent   { background: var(--mm-red-50); color: var(--mm-red-500); }
.status-neutral  { background: #eef1f6; color: #55617a; }
.status-info     { background: var(--mm-blue-50); color: var(--mm-navy-700); }

/* ---------- Tags / chips ---------- */
.mm-tag {
  display: inline-flex; align-items: center; gap: .25rem;
  font-size: .72rem; font-weight: 500;
  padding: .28rem .55rem; border-radius: 8px;
  background: #eef1f6; color: var(--mm-ink-700);
}
.mm-tag-vehicle { background: var(--mm-blue-50); color: var(--mm-navy-700); }

.mm-chip {
  font-size: .8rem; font-weight: 600; padding: .5rem .9rem;
  border-radius: 999px; border: 1px solid var(--mm-line);
  background: #fff; color: var(--mm-ink-700); cursor: pointer;
  transition: all .15s ease; white-space: nowrap;
}
.mm-chip:hover { border-color: #c9d6ea; color: var(--mm-navy-700); }
.mm-chip[aria-pressed="true"], .mm-chip.is-active {
  background: var(--mm-navy-700); color: #fff; border-color: var(--mm-navy-700);
}

/* ---------- Segmented control ---------- */
.mm-seg {
  display:inline-flex; align-items:center; gap:.4rem;
  font-size:.85rem; font-weight:600; color:var(--mm-ink-700);
  padding:.5rem 1rem; border-radius:999px; cursor:pointer;
  transition: all .15s ease; white-space:nowrap;
}
.mm-seg.is-active { background:var(--mm-navy-700); color:#fff; box-shadow: var(--mm-shadow-sm); }

/* ---------- Avatars ---------- */
.mm-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; color: #fff; font-weight: 700;
  font-family: 'Sora', sans-serif; overflow: hidden; flex: none;
  background: linear-gradient(135deg, var(--mm-navy-600), var(--mm-navy-500));
}
.mm-avatar-ring { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--mm-green-500); }

/* ---------- Forms ---------- */
.mm-label { display:block; font-size:.82rem; font-weight:600; color: var(--mm-ink-700); margin-bottom:.4rem; }
.mm-input, .mm-select, .mm-textarea {
  width: 100%; font-size: .9rem; color: var(--mm-ink-900);
  background: #fff; border: 1px solid var(--mm-line); border-radius: 12px;
  padding: .7rem .9rem; transition: border-color .15s, box-shadow .15s;
}
.mm-input::placeholder, .mm-textarea::placeholder { color: var(--mm-ink-300); }
.mm-input:focus, .mm-select:focus, .mm-textarea:focus {
  border-color: var(--mm-navy-500);
  box-shadow: 0 0 0 3px rgba(47,108,176,.15); outline: none;
}
.mm-input-icon { position: relative; }
.mm-input-icon i, .mm-input-icon svg { position:absolute; left:.85rem; top:50%; transform:translateY(-50%); color: var(--mm-ink-300); width:18px; height:18px; }
.mm-input-icon input { padding-left: 2.5rem; }

/* ---------- Ecosystem top-bar (main site / store / community) ---------- */
.mm-topbar { background: var(--mm-navy-900); }
.mm-topbar-link {
  color: rgba(255,255,255,.72); font-weight: 600;
  padding: .18rem .45rem; border-radius: 6px; transition: all .15s;
  display: inline-flex; align-items: center; gap: .15rem;
}
.mm-topbar-link:hover { color:#fff; background: rgba(255,255,255,.1); }
.mm-topbar-link.is-active { color: var(--mm-navy-500); }

/* ---------- Header ---------- */
#mm-header-host { display: contents; }  /* let the sticky header's containing block be <body> */
.mm-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--mm-line);
}
.mm-nav-link {
  position: relative; font-size: .9rem; font-weight: 600; color: var(--mm-ink-700);
  padding: .5rem .2rem; transition: color .15s;
}
.mm-nav-link:hover { color: var(--mm-navy-700); }
.mm-nav-link.is-active { color: var(--mm-navy-700); }
.mm-nav-link.is-active::after {
  content:''; position:absolute; left:0; right:0; bottom:-14px; height:3px;
  background: var(--mm-navy-700); border-radius: 3px 3px 0 0;
}

/* ---------- Bottom nav (mobile) ---------- */
.mm-bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  background: #fff; border-top: 1px solid var(--mm-line);
  display: flex; justify-content: space-around; align-items: flex-end;
  padding: .4rem .4rem calc(.4rem + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 20px rgba(16,40,87,.06);
}
@media (min-width: 1024px) { .mm-bottomnav { display: none; } }
.mm-bnav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: .66rem; font-weight: 600; color: var(--mm-ink-500);
  padding: .4rem 0; border-radius: 12px; transition: color .15s;
}
.mm-bnav-item i, .mm-bnav-item svg { width: 22px; height: 22px; }
.mm-bnav-item.is-active { color: var(--mm-navy-700); }
.mm-bnav-fab {
  margin-top: -26px; background: var(--mm-navy-700); color: #fff;
  width: 54px; height: 54px; border-radius: 50%;
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 8px 20px rgba(249,96,62,.45); border: 4px solid #fff;
}
.mm-bnav-fab i, .mm-bnav-fab svg { width: 26px; height: 26px; }

/* ---------- Category / vehicle tiles ---------- */
.mm-cat-icon {
  width: 46px; height: 46px; border-radius: 13px;
  display:flex; align-items:center; justify-content:center; flex:none;
}
.mm-brand-tile {
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:.5rem; padding: 1rem .5rem; text-align:center;
  background:#fff; border:1px solid var(--mm-line); border-radius: 14px;
  transition: all .18s ease;
}
.mm-brand-tile:hover { border-color:#c9d6ea; box-shadow: var(--mm-shadow-md); transform: translateY(-2px); }
.mm-brand-logo {
  width: 44px; height: 44px; border-radius: 50%;
  display:flex; align-items:center; justify-content:center;
  font-weight:800; font-family:'Sora',sans-serif; font-size:.95rem; color:#fff;
}

/* ---------- Skeleton loading ---------- */
.mm-skel { position: relative; overflow: hidden; background: #e9edf3; border-radius: 8px; }
.mm-skel::after {
  content:''; position:absolute; inset:0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent);
  animation: mm-shimmer 1.4s infinite;
}
@keyframes mm-shimmer { 100% { transform: translateX(100%); } }

/* ---------- Toast ---------- */
#mm-toast-wrap {
  position: fixed; z-index: 100; left: 50%; bottom: 96px; transform: translateX(-50%);
  display:flex; flex-direction:column; gap:.5rem; width: min(92vw, 380px);
}
@media (min-width:1024px){ #mm-toast-wrap { bottom: 24px; left:auto; right:24px; transform:none; } }
.mm-toast {
  display:flex; align-items:center; gap:.6rem;
  background: var(--mm-ink-900); color:#fff; padding:.8rem 1rem; border-radius:12px;
  box-shadow: var(--mm-shadow-lg); font-size:.85rem; font-weight:500;
  animation: mm-toast-in .25s ease;
}
.mm-toast i, .mm-toast svg { width:18px; height:18px; flex:none; }
.mm-toast.ok i { color: var(--mm-green-500); }
.mm-toast.warn i { color: var(--mm-amber-400); }
@keyframes mm-toast-in { from { opacity:0; transform: translateY(10px); } to { opacity:1; transform:none; } }

/* ---------- Drawer (mobile slide-out) ---------- */
.mm-drawer-backdrop {
  position: fixed; inset: 0; z-index: 60; background: rgba(11,37,71,.5);
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.mm-drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.mm-drawer {
  position: fixed; top:0; bottom:0; left:0; z-index:61; width: min(84vw, 320px);
  background:#fff; box-shadow: var(--mm-shadow-lg);
  transform: translateX(-100%); transition: transform .28s cubic-bezier(.4,0,.2,1);
  display:flex; flex-direction:column;
}
.mm-drawer.open { transform: none; }

/* ---------- Modal ---------- */
.mm-modal-backdrop {
  position: fixed; inset:0; z-index:70; background: rgba(11,37,71,.55);
  display:flex; align-items:center; justify-content:center; padding:1rem;
  opacity:0; pointer-events:none; transition: opacity .2s;
}
.mm-modal-backdrop.open { opacity:1; pointer-events:auto; }
.mm-modal {
  background:#fff; border-radius: 20px; width: min(96vw, 440px);
  box-shadow: var(--mm-shadow-lg); transform: translateY(12px) scale(.98);
  transition: transform .2s; max-height: 92vh; overflow-y:auto;
}
.mm-modal-backdrop.open .mm-modal { transform: none; }

/* ---------- Misc ---------- */
.mm-divider { height:1px; background: var(--mm-line); }
.mm-scroll-x { overflow-x:auto; scrollbar-width:none; -ms-overflow-style:none; }
.mm-scroll-x::-webkit-scrollbar { display:none; }
.line-clamp-2 { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.line-clamp-3 { display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.mm-accepted { border: 2px solid var(--mm-green-500); box-shadow: 0 0 0 4px var(--mm-green-50); }
.mm-hero-gradient {
  background:
    radial-gradient(900px 380px at 88% -12%, rgba(249,96,62,.32), transparent 60%),
    radial-gradient(700px 300px at 5% 120%, rgba(249,96,62,.14), transparent 60%),
    linear-gradient(140deg, #171a22, #262c39);
}
.mm-step-dot { width:30px;height:30px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:.85rem; }
.mm-rating-star { color: var(--mm-amber-500); }

/* ---------- Motion: scroll-reveal + float (site's language) ---------- */
@keyframes mm-fade-up { from { opacity:0; transform: translateY(18px); } to { opacity:1; transform:none; } }
.mm-reveal { opacity: 0; }
.mm-reveal.in { animation: mm-fade-up .6s cubic-bezier(.22,.61,.36,1) forwards; }
@keyframes mm-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.mm-float { animation: mm-float 3.5s ease-in-out infinite; }

/* reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::after { animation: none !important; transition: none !important; scroll-behavior:auto !important; }
  .mm-reveal { opacity: 1 !important; }   /* never leave content hidden when motion is off */
}
