/*
Theme Name: Electric Bike Authority
Theme URI: https://electricbikeauthority.com
Author: EBA Technical Team
Description: Custom high-performance e-bike review and spec matrix theme.
Version: 1.3.0
*/

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --dark: #0f172a;
    --slate: #475569;
    --light-bg: #f8fafc;
    --border: #e2e8f0;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #334155;
    background-color: #f1f5f9;
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}

.eba-site-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.eba-header {
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    position: relative;
}

.eba-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.eba-logo {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.eba-logo span {
    color: var(--primary);
}

.eba-desktop-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.eba-search-form {
    display: flex;
    width: 100%;
}

.eba-search-input {
    width: 220px;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.85rem;
    outline: none;
}

.eba-btn-primary {
    background: var(--primary);
    color: #ffffff !important;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    white-space: nowrap;
    display: inline-block;
}

.eba-btn-primary:hover {
    background: var(--primary-dark);
}

.eba-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.eba-mobile-search {
    display: none;
    margin-top: 10px;
}

.eba-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
    overflow-x: auto;
}

.eba-nav-item {
    color: var(--slate);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
}

.eba-nav-item:hover {
    color: var(--primary);
}

.eba-nav-item.eba-accent {
    color: var(--primary);
    font-weight: 700;
}

.eba-mobile-cta {
    display: none !important;
}

/* Common UI Components */
.eba-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.eba-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 6px;
    background: #eff6ff;
    color: var(--primary);
}

/* Mobile Responsiveness (<= 768px) */
@media (max-width: 768px) {
    .eba-site-container {
        padding: 0 16px;
    }

    .eba-desktop-group {
        display: none;
    }

    .eba-hamburger {
        display: block;
    }

    .eba-mobile-search {
        display: block;
    }

    .eba-mobile-search .eba-search-input {
        width: 100%;
    }

    .eba-nav {
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin-top: 10px;
        padding: 8px 12px;
        background: #f8fafc;
        border: 1px solid var(--border);
        border-radius: 8px;
    }

    .eba-nav.open {
        display: flex;
    }

    .eba-nav-item {
        padding: 10px 0;
        border-bottom: 1px solid #e2e8f0;
        font-size: 0.95rem;
    }

    .eba-nav-item:last-of-type {
        border-bottom: none;
    }

    .eba-mobile-cta {
        display: block !important;
        text-align: center;
        margin-top: 10px;
        margin-bottom: 4px;
    }
}