/* Rolling Wheel Classics - Premium Dark Design */
/* Color Scheme: Black (#0a0a0a, #1a1a1a) / Gold (#d4af37, #f4e5b2) */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=Inter:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-bg: #0a0a0a;
    --secondary-bg: #1a1a1a;
    --accent-gold: #d4af37;
    --light-gold: #f4e5b2;
    --text-primary: #e0e0e0;
    --text-secondary: #999;
    --border-color: #333;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== HEADER ==================== */
.main-header {
    background: var(--secondary-bg);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background: var(--primary-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
}

.top-bar .container {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 13px;
}

.contact-info {
    display: flex;
    gap: 25px;
}

.contact-info a {
    color: var(--accent-gold);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s;
}

.contact-info a:hover {
    color: var(--light-gold);
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--accent-gold);
}

.logo-image {
    height: 50px;
    width: auto;
    display: block;
}

@media (max-width: 768px) {
    .logo-image {
        height: 40px;
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: width 0.3s;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--accent-gold);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--accent-gold);
    transition: all 0.3s;
}

/* ==================== HERO SECTION ==================== */
.hero {
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.9), rgba(26, 26, 26, 0.9)), url('/assets/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 120px 20px;
    text-align: center;
    border-bottom: 1px solid var(--accent-gold);
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 56px;
    font-weight: 900;
    color: var(--accent-gold);
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero p {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 40px;
}

.btn {
    display: inline-block;
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--accent-gold), var(--light-gold));
    color: #000;
    text-decoration: none;
    font-weight: 700;
    border-radius: 6px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
}

.btn-outline:hover {
    background: var(--accent-gold);
    color: #000;
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Spinner Animation */
.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(0, 0, 0, 0.3);
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==================== FEATURES ==================== */
.features {
    padding: 80px 20px;
    background: var(--secondary-bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.feature-card {
    text-align: center;
    padding: 40px 30px;
    background: var(--primary-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s;
}

.feature-card:hover {
    border-color: var(--accent-gold);
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.1);
}

.feature-card h3 {
    font-family: 'Playfair Display', serif;
    color: var(--accent-gold);
    font-size: 24px;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ==================== SECTION TITLES ==================== */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    color: var(--accent-gold);
    margin-bottom: 15px;
}

.section-title p {
    color: var(--text-secondary);
    font-size: 18px;
}

/* ==================== CAR GRID ==================== */
.cars-section {
    padding: 80px 20px;
    background: var(--primary-bg);
}

.cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.car-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.car-card {
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
}

.car-card-link:hover .car-card {
    transform: translateY(-8px);
    border-color: var(--accent-gold);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.15);
}

.car-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: var(--primary-bg);
}

.car-info {
    padding: 25px;
}

.car-title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    color: var(--accent-gold);
    margin-bottom: 10px;
}

.car-card-link:hover .car-title {
    color: var(--light-gold);
}

.car-specs {
    display: flex;
    gap: 15px;
    margin: 15px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.car-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-gold);
    margin: 15px 0;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3,
.footer-col h4 {
    color: var(--accent-gold);
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}

.footer-col p,
.footer-col ul {
    color: var(--text-secondary);
    line-height: 1.8;
}

.footer-col ul {
    list-style: none;
}

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

.footer-col a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 14px;
}

/* ==================== RESPONSIVE ==================== */
@media (min-width: 769px) {
    .nav-menu {
        position: static !important;
        left: auto !important;
        height: auto !important;
        background: transparent !important;
        flex-direction: row !important;
        backdrop-filter: none !important;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 36px;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(26, 26, 26, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 999;
        padding: 20px;
        transition: left 0.3s ease;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 20px 0;
    }

    .nav-menu a {
        font-size: 24px;
    }

    .mobile-menu-btn {
        display: flex;
        z-index: 1000;
        position: relative;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

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

    .top-bar .container {
        flex-direction: column;
        gap: 10px;
    }
}

/* ==================== FILTERS ==================== */
.filters-section {
    background: var(--secondary-bg);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 40px;
}

.filter-group {
    margin-bottom: 25px;
}

.filter-group label {
    display: block;
    color: var(--accent-gold);
    margin-bottom: 10px;
    font-weight: 600;
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 12px;
    background: var(--primary-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 15px;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: var(--accent-gold);
}

/* ==================== GALLERY ==================== */
.gallery {
    margin-bottom: 40px;
    max-width: 100%;
    overflow: hidden;
}

.gallery-main-wrapper {
    position: relative;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    max-width: 100%;
}

.gallery-main-wrapper:hover .gallery-arrow {
    opacity: 1;
}

.gallery-main-wrapper:hover .gallery-fullscreen-hint {
    opacity: 1;
}

.main-image {
    width: 100%;
    max-width: 100%;
    height: 500px;
    object-fit: cover;
    cursor: pointer;
    display: block;
    transition: transform 0.3s ease;
}

.main-image:hover {
    transform: scale(1.02);
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(26, 26, 26, 0.85);
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
    font-size: 28px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-arrow:hover {
    background: var(--accent-gold);
    color: var(--primary-bg);
    transform: translateY(-50%) scale(1.1);
}

.gallery-arrow-prev {
    left: 20px;
}

.gallery-arrow-next {
    right: 20px;
}

.gallery-fullscreen-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(26, 26, 26, 0.85);
    color: var(--accent-gold);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 13px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border: 1px solid var(--accent-gold);
}

.thumbnails-wrapper {
    position: relative;
    overflow: hidden;
    max-width: 100%;
}

.thumbnails {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 10px 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.thumbnails::-webkit-scrollbar {
    height: 8px;
}

.thumbnails::-webkit-scrollbar-track {
    background: var(--secondary-bg);
    border-radius: 4px;
}

.thumbnails::-webkit-scrollbar-thumb {
    background: var(--accent-gold);
    border-radius: 4px;
}

.thumbnails::-webkit-scrollbar-thumb:hover {
    background: var(--light-gold);
}

.thumbnail {
    min-width: 120px;
    height: 90px;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.thumbnail:hover {
    border-color: var(--light-gold);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.3);
}

.thumbnail.active {
    border-color: var(--accent-gold);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.5);
}

/* ==================== FORMS ==================== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px;
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 15px;
    font-family: 'Inter', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-gold);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* ==================== STATS ==================== */
.stats-section {
    padding: 80px 20px;
    background: var(--secondary-bg);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: 900;
    color: var(--accent-gold);
    font-family: 'Playfair Display', serif;
}

.stat-label {
    font-size: 16px;
    color: var(--text-secondary);
    margin-top: 10px;
}

/* ==================== RESPONSIVE - GALLERY ==================== */
@media (max-width: 1024px) {
    .container {
        max-width: 100%;
        padding: 0 15px;
    }
}

@media (max-width: 768px) {
    .main-image {
        height: 300px;
    }

    .gallery-arrow {
        width: 40px;
        height: 40px;
        font-size: 22px;
    }

    .gallery-arrow-prev {
        left: 10px;
    }

    .gallery-arrow-next {
        right: 10px;
    }

    .gallery-fullscreen-hint {
        bottom: 10px;
        font-size: 11px;
        padding: 8px 15px;
    }

    .thumbnail {
        min-width: 100px;
        height: 75px;
    }

    /* Stack layout on mobile */
    body div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
}

/* ==================== CARDS ==================== */
.card {
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    transition: border-color 0.3s;
}

.card:hover {
    border-color: var(--accent-gold);
}

.card h2,
.card h3,
.card h4 {
    color: var(--accent-gold);
}

.card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Gradient highlight cards */
.card.highlight {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(26, 26, 26, 0.9));
    border: 2px solid var(--accent-gold);
}

.card.highlight h3,
.card.highlight h4 {
    color: var(--accent-gold);
    font-size: 20px;
    margin-bottom: 15px;
}

.card.highlight p {
    color: var(--text-primary);
    line-height: 1.8;
}
