/* Shozon Slider Final CSS - Beautiful Background Design - Save as: assets/css/shozon-slider.css */

/* 
🎨 COLOR CUSTOMIZATION GUIDE:
To change slider colors, modify these variables:

Primary Green Colors:
- #1a4d3a (Dark Green)
- #2d5a27 (Medium Dark Green) 
- #4a7c59 (Medium Green)
- #56ab2f (Main Green)
- #a8e6cf (Light Green)

Example: Change to Blue Theme:
Replace: #1a4d3a, #2d5a27, #4a7c59, #56ab2f, #a8e6cf
With:    #1a3d4d, #27475a, #497c7c, #2f8bab, #cfe6a8

Example: Change to Purple Theme:  
Replace: #1a4d3a, #2d5a27, #4a7c59, #56ab2f, #a8e6cf
With:    #4d1a4d, #5a2759, #7c597c, #ab2f8b, #e6cfe6
*/

.shozon-slider-container {
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Header styling - شبیه عکس با gradient زیبا و شکل‌های نوری */
.slider-header {
    background: linear-gradient(135deg, #1a4d3a 0%, #2d5a27 25%, #4a7c59 50%, #56ab2f 75%, #a8e6cf 100%);
    color: white;
    padding: 40px 35px;
    border-radius: 20px 20px 0 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(86, 171, 47, 0.4);
    text-align: left; /* تایتل سمت چپ */
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* تایتل سمت چپ */
}

/* Background geometric shapes - شکل‌های نوری مثل عکس */
.slider-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.08) 0%, transparent 35%),
        radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.06) 0%, transparent 45%),
        radial-gradient(circle at 90% 20%, rgba(255, 255, 255, 0.12) 0%, transparent 30%),
        linear-gradient(45deg, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    animation: floatShapes 20s ease-in-out infinite;
    pointer-events: none;
}

/* Floating animation for background shapes */
@keyframes floatShapes {
    0%, 100% { 
        transform: rotate(0deg) scale(1);
        opacity: 1;
    }
    25% { 
        transform: rotate(5deg) scale(1.02);
        opacity: 0.8;
    }
    50% { 
        transform: rotate(-3deg) scale(0.98);
        opacity: 1;
    }
    75% { 
        transform: rotate(7deg) scale(1.01);
        opacity: 0.9;
    }
}

/* Additional decorative elements */
.slider-header::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    pointer-events: none;
}

.header-content {
    position: relative;
    z-index: 2;
    text-align: left; /* تایتل سمت چپ */
    max-width: 400px;
}

.premium-badge {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    backdrop-filter: blur(15px);
    display: inline-block;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.premium-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.premium-badge::before {
    content: '✨';
    margin-right: 8px; /* برای چپ چین */
    font-size: 14px;
}

.main-title {
    font-size: 28px;
    font-weight: 900;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    margin-bottom: 10px;
    background: linear-gradient(45deg, #ffffff, #f0f9ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.header-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    font-weight: 500;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

/* حذف loading و stats indicators اضافی */
.loading-indicator {
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 14px;
    text-align: center;
}

.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Stats indicator removed - no longer needed */

/* Container styling - ادامه gradient زیبا */
.swiper-container {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e6cf 50%, #c8e6c9 100%);
    border-radius: 0 0 20px 20px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    padding: 35px 25px;
    position: relative;
}

/* Subtle pattern overlay for container */
.swiper-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60"><defs><pattern id="dots" width="60" height="60" patternUnits="userSpaceOnUse"><circle cx="30" cy="30" r="1.5" fill="white" opacity="0.05"/><circle cx="15" cy="15" r="1" fill="white" opacity="0.03"/><circle cx="45" cy="45" r="1" fill="white" opacity="0.03"/></pattern></defs><rect width="60" height="60" fill="url(%23dots)"/></svg>');
    pointer-events: none;
    z-index: 1;
}

.swiper {
    width: 100%;
    padding: 0 0 50px 0;
    overflow: visible;
    position: relative;
    z-index: 2;
}

/* Fixed slide widths for consistency */
.swiper-slide {
    width: 300px !important;
    height: auto;
    flex-shrink: 0;
}

/* Car card styling - بهبود شده */
.car-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    transition: all 0.4s ease;
    position: relative;
    border: 1px solid rgba(255,255,255,0.8);
    cursor: pointer;
    height: 400px;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
}

.car-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 35px rgba(0,0,0,0.2);
    border-color: rgba(255, 255, 255, 1);
}

/* Fixed image container with consistent aspect ratio */
.car-image {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.car-image.no-image {
    background: linear-gradient(135deg, #bdc3c7, #95a5a6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(86, 171, 47, 0.8), rgba(45, 90, 39, 0.9));
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 14px;
    backdrop-filter: blur(5px);
}

.car-card:hover .image-overlay {
    opacity: 1;
}

/* Premium label */
.premium-label {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #8e44ad, #9b59b6);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(142, 68, 173, 0.3);
}

.negotiable-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.3);
}

/* Fixed content area */
.car-content {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(180deg, #ffffff, #fafafa);
}

.car-title {
    font-size: 15px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 38px;
}

.car-price {
    font-size: 16px;
    font-weight: 800;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.car-location {
    color: #7f8c8d;
    font-size: 12px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

/* Car details section */
.car-details {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #ecf0f1;
}

.car-detail-item {
    text-align: center;
    flex: 1;
}

.car-detail-label {
    color: #95a5a6;
    font-size: 10px;
    margin-bottom: 2px;
    font-weight: 500;
}

.car-detail-value {
    color: #2c3e50;
    font-weight: 600;
    font-size: 11px;
}

/* Auto-scroll controls - بهبود شده */
.auto-scroll-controls {
    position: absolute;
    top: 50%;
    right: 25px;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auto-scroll-btn {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.auto-scroll-btn:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.auto-scroll-btn.active {
    background: linear-gradient(135deg, #56ab2f, #4a7c59);
    color: white;
    border-color: rgba(86, 171, 47, 0.5);
}

/* Swiper pagination - بهبود شده */
.swiper-pagination {
    bottom: 20px !important;
}

.swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.6) !important;
    opacity: 1 !important;
    width: 10px !important;
    height: 10px !important;
    transition: all 0.3s ease !important;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.swiper-pagination-bullet-active {
    background: white !important;
    transform: scale(1.4) !important;
    border-color: rgba(255, 255, 255, 0.8);
}

/* Responsive with fixed sizes */
@media (min-width: 1200px) {
    .swiper-slide {
        width: 300px !important;
    }
    .swiper {
        padding-left: 25px;
        padding-right: 25px;
    }
}

@media (max-width: 1199px) and (min-width: 768px) {
    .swiper-slide {
        width: 280px !important;
    }
    .main-title {
        font-size: 24px;
    }
    .slider-header {
        padding: 35px 30px;
    }
}

@media (max-width: 767px) {
    .swiper-slide {
        width: 260px !important;
    }
    .main-title {
        font-size: 22px;
    }
    .slider-header {
        padding: 30px 25px;
        text-align: center; /* در موبایل وسط */
    }
    .header-content {
        text-align: center;
        max-width: 100%;
    }
    .swiper-container {
        padding: 25px 20px;
    }
    .car-card {
        height: 380px;
    }
    .car-image {
        height: 160px;
    }
}

@media (max-width: 480px) {
    .swiper-slide {
        width: 240px !important;
    }
    .car-content {
        padding: 16px;
    }
    .car-card {
        height: 360px;
    }
    .car-image {
        height: 150px;
    }
    .premium-badge::before {
        margin-left: 6px;
    }
}