/* static/website/home/mobile.css */
/* Home Page Mobile & Tablet Styles */

/* Show mobile banner, hide desktop banner */
@media (max-width: 991px) {
    .desktop-banner-section {
        display: none;
    }
    
    .mobile-banner-section {
        display: block;
        margin-bottom: 1.5rem;
    }
    
    .main-banner img,
    .banner-static img {
        max-height: 250px;
    }
    
    .mobile-banner {
        border-radius: var(--border-radius-sm);
        overflow: hidden;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        transition: var(--transition-base);
        position: relative;
    }
    
    .mobile-banner img {
        width: 100%;
        height: auto;
        max-height: 250px;
        object-fit: cover;
    }
    
    /* ========== MOBILE CAROUSEL INDICATORS - OUTSIDE BANNER ========== */
    .mobile-banner-section .carousel {
        position: relative;
        padding-bottom: 28px; /* فضای بالت‌ها */
    }
    
    .mobile-banner-section .carousel-indicators {
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        z-index: 5;
        height: 20px;
    }
    
    .mobile-banner-section .carousel-indicators button {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background-color: #cbd5e1;
        border: none;
        margin: 0;
        padding: 0;
        transition: all 0.3s ease;
        opacity: 0.7;
        cursor: pointer;
        box-sizing: border-box;
    }
    
    .mobile-banner-section .carousel-indicators button.active {
        background-color: var(--primary-orange);
        width: 24px;
        height: 8px;
        border-radius: 4px;
        opacity: 1;
    }
    
    /* مخفی کردن کنترل‌های قبلی/بعدی در موبایل */
    .mobile-banner-section .carousel-control-prev,
    .mobile-banner-section .carousel-control-next {
        display: none;
    }
    
    /* Banner caption for mobile */
    .mobile-banner-section .banner-caption {
        padding: 1rem;
        background: linear-gradient(to top, rgba(15, 23, 42, 0.85), transparent);
    }
    
    .mobile-banner-section .banner-caption h5 {
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .mobile-banner img {
        max-height: 220px;
    }
    
    .user-card-image-placeholder {
        height: 160px;
    }
    
    .no-banner {
        padding: 2rem 1.5rem;
        border-radius: var(--border-radius-sm);
    }
    
    .no-banner i {
        font-size: 2rem;
    }
    
    .no-results {
        padding: 2rem 1rem;
        border-radius: var(--border-radius-sm);
    }
    
    /* افزایش فضای بالت‌ها در موبایل کوچک */
    .mobile-banner-section .carousel {
        padding-bottom: 24px;
    }
    
    .mobile-banner-section .carousel-indicators {
        bottom: 3px; /* فاصله 3 پیکسل از زیر بنر */
    }
}

@media (max-width: 576px) {
    .mobile-banner img {
        max-height: 180px;
    }
    
    .user-card-image-placeholder {
        height: 180px;
    }
    
    /* بالت‌های کوچکتر برای موبایل خیلی کوچک */
    .mobile-banner-section .carousel-indicators button {
        width: 6px;
        height: 6px;
    }
    
    .mobile-banner-section .carousel-indicators button.active {
        width: 20px;
        height: 6px;
    }
}