/**
 * Brands Section Styles
 *
 * @package Media_Khodro
 * @since 1.0.0
 */

/* === Brands Section === */
.mk-brands-section {
    background: #fff !important;
    padding: 3rem 0;
    direction: rtl;
    text-align: right;
}

/* Brands Section Title */
.mk-brands-section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--mk-secondary, #1D3557);
    margin-bottom: 3rem;
    position: relative;
}

/* Carousel Wrapper */
.mk-brands-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    max-width: 100%;
    overflow-x: clip;
}

/* Navigation Buttons */
.mk-brands-nav-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: #666;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
    flex-shrink: 0;
    z-index: 10;
}

.mk-brands-nav-btn:hover {
    color: #333;
}

.mk-brands-nav-btn:active {
    color: #4FC3F7;
}

.mk-brands-nav-btn:disabled {
    cursor: not-allowed;
}

/* Carousel Container */
.mk-brands-carousel {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.mk-brands-carousel-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.5s ease;
    will-change: transform;
    justify-content: flex-start;
}

/* Brand Slide */
.mk-brand-slide {
    flex: 0 0 calc(11.11% - 1.36rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

/* Brand Square */
.mk-brand-square {
    width: 100%;
    aspect-ratio: 1;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mk-brand-slide:hover .mk-brand-square {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.mk-brand-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

/* Brand Label */
.mk-brand-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    text-align: center;
    display: block;
}

/* Pagination Dots */
.mk-brands-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
}

.mk-brands-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: #ddd;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    padding: 0;
}

.mk-brands-dot:hover {
    transform: scale(1.2);
}

.mk-brands-dot.active {
    background: #4FC3F7;
    transform: scale(1.2);
}

/* === Responsive === */
@media (max-width: 1400px) {
    .mk-brand-slide {
        flex: 0 0 calc(12.5% - 1.31rem);
    }
}

@media (max-width: 1200px) {
    .mk-brand-slide {
        flex: 0 0 calc(14.28% - 1.29rem);
    }
    
    .mk-brands-carousel-wrapper {
        gap: 0.75rem;
    }
    
    .mk-brands-nav-btn {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
}

@media (max-width: 992px) {
    .mk-brands-section {
        padding: 2.5rem 0;
    }
    
    .mk-brands-section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .mk-brand-slide {
        flex: 0 0 calc(16.66% - 1.25rem);
    }
    
    .mk-brands-carousel-track {
        gap: 1rem;
    }
    
    .mk-brand-label {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .mk-brands-section-title {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }
    
    .mk-brand-slide {
        flex: 0 0 calc(20% - 0.8rem);
    }
    
    .mk-brands-carousel-wrapper {
        gap: 0.5rem;
    }
    
    .mk-brands-nav-btn {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    
    .mk-brand-square {
        padding: 0.75rem;
        border-radius: 10px;
    }
    
    .mk-brands-pagination {
        gap: 0.5rem;
    }
    
    .mk-brands-dot {
        width: 8px;
        height: 8px;
    }
}

@media (max-width: 576px) {
    .mk-brands-section {
        padding: 2rem 0;
    }
    
    .mk-brands-section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .mk-brand-slide {
        flex: 0 0 calc(33.333% - 0.5rem);
    }
    
    .mk-brands-carousel-track {
        gap: 0.75rem;
    }
    
    .mk-brand-label {
        font-size: 0.78rem;
        line-height: 1.35;
    }
    
    .mk-brands-nav-btn {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .mk-brand-slide {
        flex: 0 0 calc(40% - 0.45rem);
    }

    .mk-brand-square {
        padding: 0.65rem;
    }

    .mk-brands-carousel-wrapper {
        gap: 0.35rem;
    }
}
