/* ========================================
   BULBEX Theme - Main Stylesheet
   Dark Automotive Theme with Amber Accents
   ======================================== */

/* ---- CSS Variables ---- */
:root {
    --color-bg:           #0d0d14;
    --color-bg-secondary: #13131f;
    --color-bg-card:      #1a1a2e;
    --color-bg-card-hover:#222240;
    --color-surface:      rgba(255, 255, 255, 0.03);
    --color-border:       rgba(255, 255, 255, 0.08);
    --color-border-hover: rgba(255, 255, 255, 0.15);

    --color-text:         #e8e8f0;
    --color-text-muted:   rgba(255, 255, 255, 0.55);
    --color-text-dim:     rgba(255, 255, 255, 0.35);

    --color-accent:       #FFC107;
    --color-accent-light: #FFD54F;
    --color-accent-dark:  #FFA000;
    --color-accent-glow:  rgba(255, 193, 7, 0.25);

    --color-success:      #4CAF50;
    --color-error:        #f44336;

    --font-family:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-base:     16px;

    --radius-sm:          6px;
    --radius-md:          10px;
    --radius-lg:          16px;
    --radius-xl:          24px;

    --shadow-sm:          0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md:          0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg:          0 8px 30px rgba(0, 0, 0, 0.5);
    --shadow-glow:        0 0 30px var(--color-accent-glow);

    --container-width:    1200px;
    --header-height:      72px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--color-accent-light);
}

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
}

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

/* ---- Buttons ---- */
.bulbex-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font-family);
    font-size: 15px;
    font-weight: 700;
    color: var(--color-bg);
    background: var(--color-accent);
    border: 2px solid var(--color-accent);
    border-radius: var(--radius-md);
    cursor: pointer;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: all 0.25s ease;
}

.bulbex-btn:hover {
    background: var(--color-accent-light);
    border-color: var(--color-accent-light);
    color: var(--color-bg);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.bulbex-btn-outline {
    background: transparent;
    color: var(--color-accent);
}

.bulbex-btn-outline:hover {
    background: var(--color-accent);
    color: var(--color-bg);
}

.bulbex-btn-large {
    padding: 18px 44px;
    font-size: 17px;
}

/* ========================================
   HEADER
   ======================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(13, 13, 20, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    height: var(--header-height);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

/* Logo */
.site-branding {
    flex-shrink: 0;
}

.site-logo-text {
    font-size: 28px;
    font-weight: 900;
    text-decoration: none;
    letter-spacing: 2px;
}

.logo-bulb {
    color: var(--color-text);
}

.logo-ex {
    color: var(--color-accent);
}

/* Navigation */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 4px;
    align-items: center;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: block;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.nav-menu a:hover,
.nav-menu .current-menu-item a {
    color: var(--color-accent);
    background: rgba(255, 193, 7, 0.08);
}

/* Submenu */
.nav-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 8px 0;
    box-shadow: var(--shadow-lg);
    list-style: none;
}

.nav-menu li:hover > .sub-menu {
    display: block;
}

.nav-menu .sub-menu a {
    padding: 10px 20px;
    font-size: 13px;
    text-transform: none;
    border-radius: 0;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-cart {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--color-text);
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

.header-cart:hover {
    color: var(--color-accent);
    background: rgba(255, 193, 7, 0.08);
}

.cart-count {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--color-accent);
    color: var(--color-bg);
    font-size: 11px;
    font-weight: 800;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger-line {
    width: 100%;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all 0.3s;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   MAIN CONTENT
   ======================================== */
.site-main {
    min-height: calc(100vh - var(--header-height) - 300px);
    padding-top: var(--header-height);
}

.page-content {
    padding: 60px 24px;
}

.page-title {
    font-size: 36px;
    margin-bottom: 24px;
    color: var(--color-accent);
}

.entry-content {
    max-width: 800px;
    line-height: 1.8;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero-section {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 0 60px;
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 30%, rgba(255, 193, 7, 0.08) 0%, transparent 70%),
                linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-secondary) 100%);
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(255, 193, 7, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 193, 7, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-title .highlight {
    color: var(--color-accent);
    text-shadow: 0 0 40px var(--color-accent-glow);
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

/* ========================================
   HOW IT WORKS
   ======================================== */
.how-it-works-section {
    padding: 80px 0;
    background: var(--color-bg-secondary);
}

.section-title {
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 800;
    text-align: center;
    margin-bottom: 12px;
    color: var(--color-text);
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 17px;
    margin-bottom: 50px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.step-card {
    text-align: center;
    padding: 40px 24px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all 0.3s;
    position: relative;
}

.step-card:hover {
    border-color: rgba(255, 193, 7, 0.3);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.step-number {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 32px;
    background: var(--color-accent);
    color: var(--color-bg);
    font-size: 14px;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-icon {
    color: var(--color-accent);
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.step-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--color-text);
}

.step-card p {
    color: var(--color-text-muted);
    font-size: 15px;
    line-height: 1.6;
}

/* ========================================
   FEATURED PRODUCTS
   ======================================== */
.featured-products-section {
    padding: 80px 0;
    background: var(--color-bg);
}

.section-cta {
    text-align: center;
    margin-top: 40px;
}

/* ========================================
   TRUST SECTION
   ======================================== */
.trust-section {
    padding: 80px 0;
    background: var(--color-bg-secondary);
}

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

.trust-card {
    text-align: center;
    padding: 36px 20px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all 0.3s;
}

.trust-card:hover {
    border-color: rgba(255, 193, 7, 0.3);
}

.trust-icon {
    color: var(--color-accent);
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
}

.trust-card h3 {
    font-size: 17px;
    margin-bottom: 10px;
}

.trust-card p {
    color: var(--color-text-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-secondary) 100%);
    border-top: 1px solid var(--color-border);
}

.cta-section h2 {
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 800;
    margin-bottom: 12px;
}

.cta-section p {
    color: var(--color-text-muted);
    font-size: 17px;
    margin-bottom: 30px;
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer-brand .footer-logo {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 2px;
    display: inline-block;
    margin-bottom: 12px;
}

.footer-tagline {
    color: var(--color-text-muted);
    font-size: 14px;
    line-height: 1.6;
    max-width: 320px;
}

.footer-links h4,
.footer-widget-area h4 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-accent);
    margin-bottom: 16px;
}

.footer-menu {
    list-style: none;
}

.footer-menu li {
    margin-bottom: 8px;
}

.footer-menu a,
.footer-menu li {
    color: var(--color-text-muted);
    font-size: 14px;
    transition: color 0.2s;
}

.footer-menu a:hover {
    color: var(--color-accent);
}

.footer-widget-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-accent);
    margin-bottom: 16px;
}

.footer-bottom {
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid var(--color-border);
    text-align: center;
}

.footer-bottom p {
    color: var(--color-text-dim);
    font-size: 13px;
}

/* ========================================
   404 PAGE
   ======================================== */
.error-404 {
    text-align: center;
    padding: 100px 20px;
}

.error-404 h1 {
    font-size: 120px;
    font-weight: 900;
    color: var(--color-accent);
    line-height: 1;
    text-shadow: 0 0 60px var(--color-accent-glow);
}

.error-404 h2 {
    font-size: 28px;
    margin: 16px 0;
}

.error-404 p {
    color: var(--color-text-muted);
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   RESPONSIVE
   ======================================== */

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

@media (max-width: 768px) {
    :root {
        --header-height: 64px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .main-nav {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(13, 13, 20, 0.98);
        backdrop-filter: blur(20px);
        z-index: 999;
        padding: 30px 24px;
        overflow-y: auto;
    }

    .main-nav.active {
        display: block;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0;
    }

    .nav-menu a {
        padding: 16px 0;
        font-size: 18px;
        border-bottom: 1px solid var(--color-border);
    }

    .nav-menu .sub-menu {
        position: static;
        display: block;
        background: none;
        border: none;
        padding: 0 0 0 20px;
        box-shadow: none;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .trust-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-section {
        min-height: 500px;
        padding: 60px 0 40px;
    }

    .page-content {
        padding: 40px 16px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

    .section-title {
        font-size: 24px;
    }

    .error-404 h1 {
        font-size: 80px;
    }
}
