/* Electric Avenue — Luxury Frontend Styles */

:root {
    --ea-bg: #121414;
    --ea-surface: #121414;
    --ea-surface-lowest: #0c0f0f;
    --ea-surface-low: #1a1c1c;
    --ea-surface-high: #282a2b;
    --ea-surface-container: #1e2020;
    --ea-text: #e2e2e2;
    --ea-text-muted: #c6c6ca;
    --ea-text-dim: #8f9195;
    --ea-primary: #c5c6cb;
    --ea-secondary: #e9c349;
    --ea-secondary-dim: #af8d11;
    --ea-on-secondary: #3c2f00;
    --ea-accent-red: #E52B2B;
    --ea-accent-blue: #2B7DE9;
    --ea-outline: rgba(143, 145, 149, 0.3);
    --ea-outline-variant: rgba(69, 71, 74, 0.5);
    --ea-rim: rgba(229, 228, 226, 0.12);
    --ea-glass: rgba(12, 15, 15, 0.6);
    --ea-font-nav: 'Jura', sans-serif;
    --ea-font-royal: 'Playfair Display', serif;
    --ea-font-product: 'Monoton', cursive;
    --ea-font-quote: 'Cormorant Garamond', serif;
    --ea-font-body: 'Unna', serif;
    --ea-font-detail: 'Jura', sans-serif;
    --ea-font-display: var(--ea-font-royal);
    --ea-section-gap: 160px;
    --ea-container-max: 1440px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
}

body.ea-body {
    background-color: var(--ea-bg);
    color: var(--ea-text);
    font-family: var(--ea-font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

::selection {
    background: var(--ea-secondary);
    color: var(--ea-on-secondary);
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--ea-bg); }
::-webkit-scrollbar-thumb { background: var(--ea-primary); }

/* Typography */
.ea-display {
    font-family: var(--ea-font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.ea-headline {
    font-family: var(--ea-font-detail);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ea-label {
    font-family: var(--ea-font-detail);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.ea-lead {
    font-family: var(--ea-font-body);
    font-size: 18px;
    line-height: 1.9;
    color: var(--ea-text-muted);
}

.ea-quote {
    font-family: var(--ea-font-quote);
    font-size: 1.25rem;
    font-style: italic;
    font-weight: 400;
    line-height: 1.75;
    letter-spacing: 0.04em;
    color: var(--ea-text-muted);
}

.ea-product-name {
    font-family: var(--ea-font-product);
    font-size: 1.5rem;
    letter-spacing: 0.08em;
    line-height: 1.2;
}

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

@media (min-width: 992px) {
    .ea-container { padding-left: 80px; padding-right: 80px; }
}

.ea-section {
    padding-top: var(--ea-section-gap);
    padding-bottom: var(--ea-section-gap);
}

/* Top Bar */
.ea-topbar {
    background: transparent;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(232, 202, 144, 0.45);
    box-shadow: 0 1px 0 rgba(232, 202, 144, 0.12);
    font-size: 12px;
    letter-spacing: 0.05em;
    padding: 8px 0;
    z-index: 1060;
}

.ea-topbar a {
    color: var(--ea-text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

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

.ea-topbar .ea-divider {
    color: var(--ea-text-dim);
    margin: 0 12px;
}

/* Navigation — centered luxury layout */
.ea-navbar {
    background: transparent;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(69, 71, 74, 0.15);
    padding: 20px 0;
    transition: all 0.4s ease;
    z-index: 1050;
}

.ea-navbar.scrolled {
    background: rgba(18, 20, 20, 0.72);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 14px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.25);
}

.ea-nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 48px;
}

.ea-nav-left,
.ea-nav-right {
    display: flex;
    align-items: center;
    gap: 40px;
}

.ea-nav-left {
    margin-right: 48px;
}

.ea-nav-right {
    margin-left: 48px;
}

.ea-nav-link {
    color: var(--ea-text-muted);
    font-family: var(--ea-font-nav);
    font-size: 1.65rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    text-transform: none;
    text-decoration: none;
    padding: 4px 0;
    position: relative;
    transition: color 0.3s;
    white-space: nowrap;
}

.ea-nav-link:hover {
    color: var(--ea-primary);
}

.ea-nav-link.active {
    color: var(--ea-primary);
}

.ea-nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--ea-primary);
}

.ea-nav-link-brand {
    font-family: var(--ea-font-royal) !important;
    font-size: 2rem;
    letter-spacing: 0.04em;
}

.ea-logo-center {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    transition: opacity 0.3s;
}

.ea-logo-divider-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ea-logo-divider-v {
    width: 1px;
    height: 44px;
    flex-shrink: 0;
    background: rgba(232, 202, 144, 0.45);
}

.ea-logo-center:hover {
    opacity: 0.85;
}

.ea-logo-wordmark {
    font-family: var(--ea-font-royal);
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--ea-text);
    text-transform: none;
    line-height: 1.2;
}

.ea-logo-tagline {
    font-size: 8px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    line-height: 1.4;
}

.ea-logo-tagline .red { color: var(--ea-accent-red); }
.ea-logo-tagline .blue { color: var(--ea-accent-blue); }

.ea-btn-nav {
    background: var(--ea-secondary);
    color: var(--ea-on-secondary);
    border: none;
    padding: 10px 28px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.3s;
    white-space: nowrap;
}

.ea-btn-nav:hover {
    color: var(--ea-on-secondary);
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(233, 195, 73, 0.15);
}

.ea-mobile-toggle {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

/* Buttons */
.ea-btn-primary {
    background: var(--ea-secondary);
    color: var(--ea-on-secondary);
    border: none;
    padding: 14px 32px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 8px 24px rgba(233, 195, 73, 0.1);
}

.ea-btn-primary:hover {
    background: #ffe088;
    color: var(--ea-on-secondary);
    transform: scale(1.02);
}

.ea-btn-outline {
    border: 1px solid var(--ea-outline);
    color: var(--ea-primary);
    background: transparent;
    padding: 14px 32px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.ea-btn-outline:hover {
    color: var(--ea-on-secondary);
    border-color: var(--ea-secondary);
}

.ea-btn-outline .fill {
    position: absolute;
    inset: 0;
    background: var(--ea-secondary);
    transform: translateY(100%);
    transition: transform 0.5s ease;
    z-index: 0;
}

.ea-btn-outline:hover .fill { transform: translateY(0); }
.ea-btn-outline span { position: relative; z-index: 1; }

/* Hero Slider */
.ea-hero-slider {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.ea-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.4s ease-in-out;
    pointer-events: none;
}

.ea-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.ea-slide img,
.ea-slide-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ea-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(18, 20, 20, 0.6) 50%, var(--ea-bg) 100%);
    z-index: 2;
    pointer-events: none;
}

.ea-slider-ui {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 20px;
}

.ea-slider-arrow {
    background: transparent;
    border: 1px solid var(--ea-rim);
    color: var(--ea-primary);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.ea-slider-arrow:hover {
    border-color: var(--ea-secondary);
    color: var(--ea-secondary);
}

.ea-slider-dots {
    display: flex;
    gap: 10px;
}

.ea-slider-dot {
    width: 32px;
    height: 2px;
    background: var(--ea-outline);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.4s;
}

.ea-slider-dot.active,
.ea-slider-dot:hover {
    background: var(--ea-secondary);
    width: 48px;
}

/* Hero */
.ea-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    z-index: 2;
}

.ea-hero-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
}

.ea-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ea-hero-content {
    position: relative;
    z-index: 2;
    padding-top: 180px;
    padding-bottom: 80px;
}

.ea-hero-title {
    font-size: clamp(42px, 6vw, 84px);
}

.ea-accent-line {
    width: 32px;
    height: 1px;
    background: var(--ea-secondary);
    margin-bottom: 16px;
}

.ea-accent-label {
    color: var(--ea-secondary);
    margin-bottom: 24px;
    display: block;
    letter-spacing: 0.25em;
}

/* Glass Panel */
.ea-glass {
    background: var(--ea-glass);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--ea-rim);
    padding: 40px;
}

/* Form */
.ea-form-group { margin-bottom: 32px; }

.ea-form-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ea-text-muted);
    margin-bottom: 8px;
    display: block;
    transition: color 0.3s;
}

.ea-form-group:focus-within .ea-form-label { color: var(--ea-secondary); }

.ea-form-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--ea-outline);
    color: var(--ea-text);
    font-size: 16px;
    padding: 12px 0;
    outline: none;
    transition: border-color 0.3s;
}

.ea-form-input:focus { border-bottom-color: var(--ea-secondary); }

.ea-form-input::placeholder { color: rgba(198, 198, 202, 0.3); }

.ea-form-select {
    appearance: none;
    cursor: pointer;
}

.ea-form-select option { background: var(--ea-surface); }

/* Cards */
.ea-card {
    background: var(--ea-surface-container);
    border: 1px solid var(--ea-rim);
    overflow: hidden;
    transition: all 0.5s;
}

.ea-card:hover {
    border-color: rgba(233, 195, 73, 0.3);
    transform: translateY(-4px);
}

.ea-card-product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ea-product-main-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 2px;
    transition: opacity 0.4s;
}

.ea-card-img {
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
}

.ea-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ea-card:hover .ea-card-img img,
.ea-card:hover .ea-card-product-img {
    transform: scale(1.05);
}

.ea-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 60%);
}

.ea-card-body { padding: 24px; }

/* Bento Grid */
.ea-bento-large {
    aspect-ratio: 16/9;
}

.ea-bento-small {
    aspect-ratio: 4/3;
}

/* Stats */
.ea-stat-value {
    font-family: var(--ea-font-display);
    font-size: 48px;
    font-weight: 700;
    transition: color 0.3s;
}

.ea-stat-item:hover .ea-stat-value { color: var(--ea-secondary); }

/* Feature Grid */
.ea-feature-item { padding: 24px 0; }

.ea-feature-icon {
    font-size: 32px;
    color: var(--ea-secondary);
    margin-bottom: 16px;
}

/* Product Detail */
.ea-product-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    background: var(--ea-surface-low);
}

.ea-product-viewer {
    position: relative;
    background: radial-gradient(circle at 50% 50%, rgba(51,53,53,0.3) 0%, var(--ea-bg) 80%);
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ea-spec-bar {
    height: 2px;
    background: var(--ea-outline);
    position: relative;
    overflow: hidden;
}

.ea-spec-bar-fill {
    height: 100%;
    background: var(--ea-secondary);
    width: 0;
    transition: width 1.5s ease;
}

.ea-spec-item:hover .ea-spec-bar-fill { width: 100%; }

/* Dealer Card */
.ea-dealer-card {
    background: var(--ea-surface-container);
    border: 1px solid var(--ea-rim);
    padding: 32px;
    height: 100%;
    transition: all 0.4s;
}

.ea-dealer-card:hover {
    border-color: var(--ea-secondary);
    box-shadow: 0 0 30px rgba(233, 195, 73, 0.12);
}

.ea-dealer-type {
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ea-secondary);
    border: 1px solid var(--ea-secondary-dim);
    padding: 4px 12px;
    display: inline-block;
}

/* Footer */
.ea-footer {
    background: var(--ea-surface);
    border-top: 1px solid var(--ea-outline);
    padding: 80px 0 40px;
}

.ea-footer-link {
    color: var(--ea-text-muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s, color 0.3s;
}

.ea-footer-link:hover {
    opacity: 1;
    color: var(--ea-text);
}

/* Animations */
.ea-fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.ea-fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.ea-stagger-1 { transition-delay: 0.1s; }
.ea-stagger-2 { transition-delay: 0.2s; }
.ea-stagger-3 { transition-delay: 0.3s; }
.ea-stagger-4 { transition-delay: 0.4s; }

/* Quote */
.ea-quote {
    border-left: 1px solid var(--ea-outline);
    padding-left: 24px;
    font-style: italic;
    color: var(--ea-text-muted);
}

/* Material Icons */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}

/* Alerts */
.ea-alert {
    padding: 16px 24px;
    border: 1px solid;
    font-size: 14px;
    margin-bottom: 24px;
}

.ea-alert-success {
    background: rgba(233, 195, 73, 0.1);
    border-color: var(--ea-secondary-dim);
    color: var(--ea-text);
}

.ea-alert-error {
    background: rgba(229, 43, 43, 0.1);
    border-color: var(--ea-accent-red);
    color: var(--ea-text);
}

/* Checkout */
.ea-checkout-summary {
    background: var(--ea-surface-container);
    border: 1px solid var(--ea-rim);
    padding: 32px;
    position: sticky;
    top: 140px;
}

/* Category Filter */
.ea-filter-btn {
    background: transparent;
    border: 1px solid var(--ea-outline);
    color: var(--ea-text-muted);
    padding: 8px 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: all 0.3s;
    text-decoration: none;
}

.ea-filter-btn:hover,
.ea-filter-btn.active {
    border-color: var(--ea-secondary);
    color: var(--ea-text);
    background: rgba(233, 195, 73, 0.1);
}

/* Placeholder product image */
.ea-product-placeholder {
    background: linear-gradient(135deg, var(--ea-surface-high) 0%, var(--ea-surface-low) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.ea-product-placeholder img {
    max-width: 60%;
    opacity: 0.6;
}

/* Mobile Nav */
.ea-mobile-toggle {
    background: none;
    border: none;
    color: var(--ea-text);
    font-size: 28px;
    padding: 4px;
}

.ea-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--ea-surface);
    border-left: 1px solid var(--ea-outline);
    padding: 80px 32px 32px;
    z-index: 1100;
    transition: right 0.4s ease;
}

.ea-mobile-menu.open { right: 0; }

.ea-mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1090;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s;
}

.ea-mobile-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Admin overrides */
.ea-admin-body {
    background: #f8f9fa;
    color: #212529;
    font-family: var(--ea-font-body);
}

.ea-admin-sidebar {
    background: var(--ea-surface);
    min-height: 100vh;
    width: 260px;
    border-right: 1px solid var(--ea-outline);
}

.ea-admin-sidebar .nav-link {
    color: var(--ea-text-muted);
    font-size: 13px;
    letter-spacing: 0.05em;
    padding: 10px 20px;
    border-radius: 0;
}

.ea-admin-sidebar .nav-link:hover,
.ea-admin-sidebar .nav-link.active {
    color: var(--ea-text);
    background: rgba(233, 195, 73, 0.15);
}

.ea-stat-card {
    background: #fff;
    border: 1px solid #dee2e6;
    padding: 24px;
    border-radius: 4px;
}

.ea-stat-card .stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--ea-secondary);
}

/* Login Page */
.ea-login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ea-bg);
}

.ea-login-card {
    width: 100%;
    max-width: 420px;
    background: var(--ea-surface-container);
    border: 1px solid var(--ea-rim);
    padding: 48px;
}

@media (max-width: 991px) {
    .ea-nav-left, .ea-nav-right { margin: 0; }
}

@media (max-width: 767px) {
    .ea-hero-content { padding-top: 140px; }
    .ea-section { padding-top: 80px; padding-bottom: 80px; }
    .ea-glass { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
