/* ==========================================================================
   Hero Slider Styles - CarTrier WordPress Theme v4
   ========================================================================== */

/* ==================== HERO SLIDER ==================== */
.hero-slider {
    position: relative;
    height: 520px;
    overflow: hidden;
    background: #0f172a;
}

.slides {
    display: flex;
    height: 100%;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
}

.slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 10s linear, opacity 0.7s;
}

.slide.active .slide-bg {
    transform: scale(1.08);
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15,23,42,0.92) 0%, rgba(15,23,42,0.75) 40%, rgba(15,23,42,0.4) 100%);
}

.slide-content {
    position: relative;
    z-index: 2;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.slide-inner {
    max-width: 620px;
}

.slide-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 24px;
}

.slide-badge svg {
    width: 16px;
    height: 16px;
}

.slide-text h2 {
    font-size: 48px;
    font-weight: 800;
    color: white;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
    text-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.slide-text h2 span {
    color: #dc2626;
    position: relative;
}

.slide-text p {
    font-size: 18px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 32px;
    line-height: 1.7;
    max-width: 520px;
}

.slide-features {
    display: flex;
    gap: 32px;
    margin-bottom: 36px;
}

.slide-feature {
    display: flex;
    align-items: center;
    gap: 12px;
}

.slide-feature-icon {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.slide-feature-text {
    font-size: 14px;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
}

.slide-feature-text span {
    display: block;
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    font-weight: 400;
}

.slide-buttons {
    display: flex;
    gap: 16px;
}

.slide-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.slide-btn.primary {
    background: linear-gradient(180deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.4), 0 1px 0 rgba(255,255,255,0.2) inset;
    border: none;
}

.slide-btn.primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.slide-btn.primary:hover::before {
    left: 100%;
}

.slide-btn.primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(220, 38, 38, 0.5);
}

.slide-btn.secondary {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
}

.slide-btn.secondary:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.slider-dot:hover {
    background: rgba(255,255,255,0.5);
    transform: scale(1.2);
}

.slider-dot.active {
    background: #dc2626;
    width: 40px;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(220, 38, 38, 0.5);
}

.slider-arrows {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 10;
    pointer-events: none;
}

.slider-arrow {
    width: 52px;
    height: 52px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    color: white;
    font-size: 22px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.slider-arrow:hover {
    background: #dc2626;
    border-color: #dc2626;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

/* ==================== TRUST BAR ==================== */
.trust-bar {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 24px 0;
}

.trust-grid {
    display: flex;
    justify-content: center;
    gap: 64px;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #475569;
    font-size: 14px;
    font-weight: 500;
}

.trust-item svg {
    width: 24px;
    height: 24px;
    color: #dc2626;
}

/* ==================== CATEGORIES SECTION ==================== */
.categories-section {
    padding: 56px 0;
    background: #f8fafc;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

.category-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 28px;
    display: flex;
    align-items: center;
    gap: 18px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.02), 0 4px 8px rgba(0,0,0,0.04);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #dc2626, #f59e0b);
    transform: scaleX(0);
    transition: transform 0.4s;
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08), 0 24px 48px rgba(0,0,0,0.08);
    border-color: transparent;
}

.category-icon {
    width: 56px;
    height: 56px;
    background: #fef2f2;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    transition: transform 0.4s, box-shadow 0.4s;
}

.category-card:hover .category-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 8px 16px rgba(220, 38, 38, 0.2);
}

.category-icon.winter { background: #dbeafe; }
.category-icon.allseason { background: #dcfce7; }

.category-info h3 {
    color: #0f172a;
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 4px;
}

.category-info p {
    color: #94a3b8;
    font-size: 14px;
    margin: 0;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .hero-slider { height: 480px; }
    .slide-text h2 { font-size: 36px; }
    .slide-features { flex-wrap: wrap; gap: 20px; }
    .trust-grid { gap: 32px; flex-wrap: wrap; }
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hero-slider { height: 520px; }
    .slide-text h2 { font-size: 28px; }
    .slide-text p { font-size: 16px; }
    .slide-buttons { flex-direction: column; }
    .slide-btn { width: 100%; justify-content: center; }
    .slider-arrows { display: none; }
    .trust-grid { flex-direction: column; gap: 16px; align-items: center; }
    .categories-grid { grid-template-columns: 1fr; }
    .slide-features { flex-direction: column; gap: 16px; }
}

@media (max-width: 640px) {
    .hero-slider { height: 560px; }
    .slide-content { padding: 0 16px; }
    .slide-text h2 { font-size: 24px; }
    .slide-badge { font-size: 12px; padding: 6px 12px; }
    .slide-feature-icon { width: 36px; height: 36px; font-size: 16px; }
}
