/* OtoFenix Homepage Specific Styles */

/* Premium Hero Background */
.hero-premium-bg {
    background: linear-gradient(135deg, rgba(0,0,0,0.65) 0%, rgba(29,29,31,0.55) 50%, rgba(0,0,0,0.65) 100%);
}

/* Trust Badge */
.trust-badge {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.trust-badge:hover {
    background: rgba(212, 169, 74, 0.2);
    border-color: rgba(212, 169, 74, 0.5);
    transform: translateY(-5px);
}

/* Premium Card */
.premium-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(212, 169, 74, 0.1);
}

/* Hover Scale */
.hover-scale {
    transition: transform 0.3s ease;
}

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

/* Fade In Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

.delay-1 {
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.delay-2 {
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

.delay-3 {
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 0.6s;
    opacity: 0;
}

/* Scrollbar Hide */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* Smooth mobile scrolling optimization */
#vehicles-container {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scroll-snap-stop: normal;
    will-change: scroll-position;
}

.snap-start {
    scroll-snap-align: start;
    scroll-snap-stop: normal;
}

@media (max-width: 1024px) {
    #vehicles-container {
        scroll-snap-type: x proximity;
    }
}

/* Shine Effect */
@keyframes shine {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.shine-effect {
    background: linear-gradient(90deg, transparent, rgba(212, 169, 74, 0.3), transparent);
    background-size: 200% 100%;
    animation: shine 3s infinite;
}

/* Tom Select Styling */
.ts-wrapper,
.ts-wrapper *,
.ts-wrapper *:before,
.ts-wrapper *:after {
    box-sizing: border-box !important;
    outline: 0 !important;
}

.ts-wrapper {
    border: 0 !important;
    box-shadow: none !important;
    outline: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
    width: 100% !important;
}

.ts-wrapper::before,
.ts-wrapper::after {
    display: none !important;
}

.ts-wrapper.single .ts-control {
    background-color: #f9fafb !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 0.5rem !important;
    padding: 0.625rem 0.75rem !important;
    font-size: 0.875rem !important;
    box-shadow: none !important;
    outline: 0 !important;
    min-height: 42px !important;
}

.ts-wrapper.single .ts-control:focus,
.ts-wrapper.single .ts-control:active,
.ts-wrapper.focus .ts-control,
.ts-wrapper.input-active .ts-control {
    outline: 0 !important;
    border: 1px solid #d4a94a !important;
    box-shadow: 0 0 0 2px rgba(212, 169, 74, 0.1) !important;
}

.ts-wrapper.focus,
.ts-wrapper.input-active,
.ts-wrapper.dropdown-active {
    box-shadow: none !important;
    outline: 0 !important;
    border: 0 !important;
}

.ts-wrapper.single,
.ts-wrapper.single.input-active {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}

.ts-wrapper.single .ts-control .item {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.ts-wrapper.single .ts-control .item img {
    display: inline-block !important;
    max-height: 18px !important;
    width: auto !important;
}

.ts-dropdown {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 99999 !important;
    border-radius: 0.75rem !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
    border: 1px solid #e5e7eb !important;
    background: #ffffff !important;
    margin-top: 4px !important;
    max-height: 300px !important;
    overflow-y: auto !important;
}

.ts-dropdown-content {
    border: none !important;
    outline: none !important;
}

.ts-dropdown .option,
.ts-dropdown .optgroup-header,
.ts-dropdown .no-results {
    padding: 0.75rem 1rem !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.ts-dropdown .option:hover,
.ts-dropdown .option.active,
.ts-dropdown .option:focus {
    background: linear-gradient(135deg, #d4a94a 0%, #c09940 100%) !important;
    color: #ffffff !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.ts-wrapper {
    z-index: auto;
    position: relative;
}

.ts-wrapper.dropdown-active {
    z-index: 99999 !important;
}

.ts-wrapper .ts-dropdown {
    z-index: 99999 !important;
}

/* Fix rounded corners for tabs and content */
.hero-tab:first-child {
    border-top-left-radius: 1rem !important;
}

.hero-tab:last-child {
    border-top-right-radius: 1rem !important;
}

.tab-content-hero {
    border-bottom-left-radius: 1rem !important;
    border-bottom-right-radius: 1rem !important;
}

/* Hero Title Text Gradient - Always Apply */
.hero-title-content .text-gradient,
.hero-title-content span.text-gradient {
    background: linear-gradient(135deg, #d4a94a 0%, #ffd700 50%, #d4a94a 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    text-fill-color: transparent !important;
    display: inline-block !important;
}

/* Premium Brands - Modern Minimalist */
.brand-card {
    position: relative;
    overflow: visible;
}

.brand-inner {
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.brand-card:hover .brand-inner {
    transform: translateY(-4px);
}

/* Stagger Animation for Brands */
.brand-card {
    animation: brandFadeIn 0.6s ease-out forwards;
    opacity: 0;
}

@keyframes brandFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Add staggered delay to each brand card */
.brand-card:nth-child(1) { animation-delay: 0.05s; }
.brand-card:nth-child(2) { animation-delay: 0.1s; }
.brand-card:nth-child(3) { animation-delay: 0.15s; }
.brand-card:nth-child(4) { animation-delay: 0.2s; }
.brand-card:nth-child(5) { animation-delay: 0.25s; }
.brand-card:nth-child(6) { animation-delay: 0.3s; }
.brand-card:nth-child(7) { animation-delay: 0.35s; }
.brand-card:nth-child(8) { animation-delay: 0.4s; }
.brand-card:nth-child(9) { animation-delay: 0.45s; }
.brand-card:nth-child(10) { animation-delay: 0.5s; }
.brand-card:nth-child(11) { animation-delay: 0.55s; }
.brand-card:nth-child(12) { animation-delay: 0.6s; }
.brand-card:nth-child(n+13) { animation-delay: 0.65s; }

/* Subtle hover glow effect */
.brand-inner::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 0.75rem;
    opacity: 0;
    background: radial-gradient(circle at center, rgba(212, 169, 74, 0.1), transparent 70%);
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.brand-card:hover .brand-inner::after {
    opacity: 1;
}
