/* ─────────────────────────────────────────────
   JM Smart Lot — Gearhead Theme
   High-performance: gunmetal, orange, chrome
   ───────────────────────────────────────────── */

:root {
    --jm-black:       #0D0D0D;
    --jm-gunmetal:    #1C1E22;
    --jm-steel:       #2A2D33;
    --jm-orange:      #E85D04;
    --jm-orange-hot:  #FF6B1A;
    --jm-red:         #CC1100;
    --jm-chrome:      #B8C0CC;
    --jm-white:       #F0F0F0;
    --jm-off-white:   #E8E9EB;
    --jm-mid-gray:    #6B7280;
    --jm-light-gray:  #D1D5DB;
}

html, body {
    background-color: #0D0D0D;
    color: #F0F0F0;
    scroll-behavior: smooth;
}

/* ── App Bar ────────────────────────────────── */
.jm-appbar {
    background: rgba(13, 13, 13, 0.97) !important;
    backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--jm-orange);
    transition: background 0.3s ease;
}

.jm-logo-link { text-decoration: none !important; }

.jm-logo-text {
    font-family: 'Barlow Condensed', sans-serif !important;
    letter-spacing: 0.08em !important;
    font-weight: 700 !important;
    color: #fff !important;
    font-size: 1.3rem !important;
    text-transform: uppercase !important;
}

.jm-logo-jm {
    color: var(--jm-orange);
    font-weight: 800;
}

.jm-nav-link {
    font-family: 'Barlow Condensed', sans-serif !important;
    letter-spacing: 0.06em !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    color: rgba(255, 255, 255, 0.85) !important;
    position: relative;
    transition: color 0.2s ease !important;
}

.jm-nav-link:hover { color: var(--jm-orange) !important; }

.jm-nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--jm-orange);
    transition: width 0.2s ease, left 0.2s ease;
}

.jm-nav-link:hover::after {
    width: 70%;
    left: 15%;
}

.jm-login-btn {
    border-color: var(--jm-orange) !important;
    color: var(--jm-orange) !important;
    letter-spacing: 0.08em !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    transition: all 0.2s ease !important;
}

.jm-login-btn:hover {
    background: var(--jm-orange) !important;
    color: #fff !important;
}

/* ── Sticky footer — layout fills full viewport height ─ */
/* MudLayout renders as a flex-column; giving the main    */
/* content flex:1 auto-pushes the footer to the bottom    */
/* regardless of how short the page content is.           */
.mud-layout {
    min-height: 100vh;
    display: flex !important;
    flex-direction: column !important;
}
.jm-main-grow {
    flex: 1 0 auto !important;
}

/* ── Main content ───────────────────────────── */
.jm-main-content { padding-top: 0 !important; }

/* ── Hero sections ──────────────────────────── */
.jm-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(160deg, #0D0D0D 0%, #1C1E22 40%, #111318 100%);
    position: relative;
    overflow: hidden;
}

.jm-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at 65% 50%, rgba(232, 93, 4, 0.12) 0%, transparent 55%);
    pointer-events: none;
}

/* Speed stripe accent */
.jm-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--jm-orange) 0%, var(--jm-red) 100%);
    pointer-events: none;
}

.jm-hero-subtitle {
    font-family: 'Barlow Condensed', sans-serif;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--jm-orange);
    font-size: 0.9rem;
    font-weight: 600;
}

.jm-hero-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    color: #fff;
    font-size: clamp(2.8rem, 6vw, 5rem);
    line-height: 1.05;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.jm-hero-description {
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.75;
    max-width: 560px;
}

.jm-hero-cta {
    background: var(--jm-orange) !important;
    color: #fff !important;
    padding: 12px 40px !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em !important;
    transition: all 0.2s ease !important;
    border-radius: 0 !important;
}

.jm-hero-cta:hover {
    background: var(--jm-orange-hot) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(232, 93, 4, 0.4);
}

.jm-hero-cta-outline {
    border: 2px solid rgba(255, 255, 255, 0.35) !important;
    color: #fff !important;
    padding: 12px 40px !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.1em !important;
    transition: all 0.2s ease !important;
    border-radius: 0 !important;
}

.jm-hero-cta-outline:hover {
    border-color: var(--jm-orange) !important;
    color: var(--jm-orange) !important;
}

/* ── Sections ───────────────────────────────── */
.jm-section {
    padding: 100px 0;
}

.jm-section-dark {
    background: var(--jm-gunmetal);
    color: var(--jm-white);
}

.jm-section-light {
    background: var(--jm-off-white);
}

.jm-section-heading {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.jm-section-label {
    font-family: 'Barlow Condensed', sans-serif;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--jm-orange);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.jm-gold-divider {
    width: 60px;
    height: 3px;
    background: var(--jm-orange);
    margin: 24px 0;
}

/* ── Feature cards ──────────────────────────── */
.jm-feature-card {
    background: var(--jm-steel);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-left: 3px solid var(--jm-orange);
    border-radius: 0;
    padding: 36px 28px;
    transition: all 0.25s ease;
    height: 100%;
}

.jm-feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    border-left-color: var(--jm-orange-hot);
    background: #2E3138;
}

.jm-feature-icon {
    color: var(--jm-orange);
    font-size: 2.5rem !important;
    margin-bottom: 20px;
}

/* ── Stats counters ─────────────────────────── */
.jm-stat-number {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 3.5rem;
    color: var(--jm-orange);
    line-height: 1;
}

.jm-stat-label {
    font-family: 'Barlow Condensed', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 8px;
}

/* ── Footer ─────────────────────────────────── */
.jm-footer {
    background: #080808;
    color: rgba(255, 255, 255, 0.6);
    padding: 60px 0 30px;
    border-top: 2px solid var(--jm-orange);
}

.jm-footer-heading {
    color: var(--jm-white) !important;
    font-family: 'Barlow Condensed', sans-serif !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    margin-bottom: 16px !important;
}

.jm-footer-link {
    display: block;
    color: rgba(255, 255, 255, 0.45) !important;
    font-size: 0.85rem;
    padding: 4px 0;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.jm-footer-link:hover { color: var(--jm-orange) !important; }

.jm-footer-text {
    color: rgba(255, 255, 255, 0.45) !important;
    font-size: 0.85rem !important;
    line-height: 1.6 !important;
}

.jm-footer-copyright {
    color: rgba(255, 255, 255, 0.25) !important;
}

/* ── Cookie consent banner ──────────────────── */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-banner-visible { transform: translateY(0); }

.cookie-banner-inner {
    background: var(--jm-gunmetal) !important;
    color: rgba(255, 255, 255, 0.85) !important;
    padding: 20px 32px !important;
    border-radius: 0 !important;
    border-top: 2px solid var(--jm-orange);
}

.cookie-prefs-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10001;
    width: 90%;
    max-width: 560px;
}

/* ── Animations ─────────────────────────────── */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }

/* ── Page transitions ───────────────────────── */
.page-enter {
    animation: pageEnter 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes pageEnter {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Drawer ──────────────────────────────────── */
.jm-drawer {
    background: var(--jm-gunmetal) !important;
    border-right: 2px solid var(--jm-orange) !important;
}

/* ── Dashboard cards ─────────────────────────── */
.jm-dash-card {
    border-left: 4px solid var(--jm-orange);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.jm-dash-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 93, 4, 0.15);
}

/* ── Legal pages ─────────────────────────────── */
.jm-legal-page {
    padding-top: 100px;
    min-height: 80vh;
}

.jm-legal-page h2, .jm-legal-page h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 32px;
    margin-bottom: 12px;
}

/* ── Responsive ──────────────────────────────── */
@media (max-width: 960px) {
    .jm-hero { min-height: 80vh; padding-top: 80px; }
    .jm-section { padding: 60px 0; }
    .jm-hero-title { font-size: 2.4rem; }
}

/* ── Pulse animation for live indicators ────── */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.pulse { animation: pulse 2s ease-in-out infinite; }

/* ── Rev counter / speed line accent ────────── */
@keyframes speedLine {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.speed-accent {
    background: linear-gradient(90deg, var(--jm-orange) 0%, var(--jm-orange-hot) 40%, var(--jm-red) 60%, var(--jm-orange) 100%);
    background-size: 200% 100%;
    animation: speedLine 2.5s linear infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ── MudBlazor dark mode accent overrides ──────────────── */
/* Primary hover state uses orange accent */
.mud-list-item:hover,
.mud-list-item.mud-selected { color: #E85D04 !important; }

