:root {
    --re-red: #A32020;
    --re-red-hover: #8B1A1A;
    --dark-charcoal: #1C1C1C;
    --darker-bg: #121212;
    --off-white: #F5F5F0;
    --text-muted: #A0A0A0;
    --glass-bg: rgba(28, 28, 28, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--dark-charcoal);
    color: var(--off-white);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Utilities */
.text-re-red { color: var(--re-red); }
.bg-re-red { background-color: var(--re-red); }
.text-muted { color: #C0C0C0 !important; }

/* Buttons */
.btn-primary {
    background-color: var(--re-red);
    border-color: var(--re-red);
    border-radius: 0;
    padding: 10px 24px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--re-red-hover);
    border-color: var(--re-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(163, 32, 32, 0.4);
}

.btn-outline-light {
    border-radius: 0;
    padding: 10px 24px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Navbar */
.navbar {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    padding: 15px 0;
}

.navbar.scrolled {
    padding: 10px 0;
    background: rgba(18, 18, 18, 0.95);
}

.navbar-brand {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 1px;
}

.brand-re { color: var(--re-red); }
.brand-own { color: var(--off-white); }

.nav-link {
    color: var(--off-white) !important;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--re-red) !important;
}

/* Page Content */
.page-content {
    min-height: calc(100vh - 400px);
    padding-top: 80px; /* offset for fixed navbar */
}

/* Footer */
.footer {
    background-color: var(--darker-bg);
    border-top: 1px solid var(--glass-border);
}

.footer-brand {
    font-weight: 800;
    font-size: 32px;
}

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

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    color: var(--off-white);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--re-red);
    color: white;
    transform: translateY(-3px);
}

.footer-heading {
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links li { margin-bottom: 10px; }

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--re-red);
}

.footer-contact li {
    color: var(--text-muted);
    margin-bottom: 10px;
}

.footer-divider {
    border-color: var(--glass-border);
}

.copyright {
    color: var(--text-muted);
    font-size: 14px;
}

/* Cards (Glassmorphism) */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    backdrop-filter: blur(5px);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Form Elements */
.form-control, .form-select {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--off-white);
    border-radius: 4px;
    padding: 12px 15px;
}

.form-control:focus, .form-select:focus {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: var(--re-red);
    color: var(--off-white);
    box-shadow: none;
}

.form-control::placeholder {
    color: var(--text-muted);
}

/* Compact Search & Filter Section */
.search-filter-bar {
    background: rgba(20, 20, 20, 0.85);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    padding: 12px 16px;
    width: 100%;
}

.search-filter-bar label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #C0C0C0;
    margin-bottom: 4px;
}

.search-filter-bar .form-select-sm,
.search-filter-bar .btn-sm {
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 4px;
    height: 38px;
}

/* Inline Results View */
#hero-results-container {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
    margin-top: 15px;
}

#hero-results-grid {
    scrollbar-width: thin;
    scrollbar-color: var(--re-red) rgba(255, 255, 255, 0.05);
}

#hero-results-grid::-webkit-scrollbar {
    width: 6px;
}

#hero-results-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
}

#hero-results-grid::-webkit-scrollbar-thumb {
    background: var(--re-red);
    border-radius: 4px;
}

#hero-results-grid::-webkit-scrollbar-thumb:hover {
    background: var(--re-red-hover);
}

/* Small Cards inside Hero */
.hero-bike-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease;
    height: 100%;
}

.hero-bike-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.2);
}

.hero-bike-card img {
    object-fit: cover;
    height: 130px;
    width: 100%;
}

.hero-bike-card .card-body {
    padding: 12px;
}

.hero-bike-card h5 {
    font-size: 15px;
    margin-bottom: 5px;
    font-weight: 700;
}

.hero-bike-card .price-tag {
    color: var(--re-red);
    font-weight: 700;
    font-size: 14px;
}

.hero-bike-card .spec-info {
    font-size: 12px;
    color: var(--text-muted) !important;
}

/* Fade animation classes */
.fade-out {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
