/* Brand Selector Styles - Both Traditional and Responsive with Swiper */

/* ==========================================================================
   1. Shared Styles for Both Traditional and Swiper
   ========================================================================== */

/* Brand Bubbles General Styling */
.brand-bubble {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin: 0 auto;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    border: 2px solid #00548E;
}

.brand-bubble:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}

.brand-bubble img.brand-logo {
    max-width: 70%;
    max-height: 70%;
    object-fit: contain;
}

.brand-bubble .brand-name {
    font-weight: bold;
    font-size: 14px;
    text-align: center;
}

.brand-bubble.active {
    border-color: #ff6b00;
    box-shadow: 0 0 15px rgba(255, 107, 0, 0.5);
    transform: scale(1.05);
}

/* ==========================================================================
   2. Traditional Slider Styles
   ========================================================================== */

/* Traditional brand slider styles */
.brand-slider-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.brand-slider {
    display: flex;
    transition: transform 0.3s ease;
    width: 100%;
}

.brand-slide {
    flex: 0 0 25%; /* Default for desktop */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Traditional pagination dots */
.brand-slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    padding: 10px 0;
    z-index: 10;
    position: relative;
    pointer-events: auto;
}

.brand-slider-dot {
    /* Reset button stylings */
    -webkit-appearance: none;
    appearance: none;
    border: none;
    background: none;
    outline: none;
    
    /* Perfect circle dimensions */
    width: 12px;
    height: 12px;
    
    /* Enforce circular shape */
    border-radius: 50% !important;
    
    /* Styling */
    background-color: #d1d1d1;
    margin: 0 6px;
    padding: 0;
    cursor: pointer;
    
    /* Animation */
    transition: all 0.2s ease;
    
    /* Ensure clickability */
    position: relative;
    z-index: 5;
    display: block;
    overflow: hidden;
}

@media (max-width: 480px) {
    /* Make dots more prominent on mobile with fewer of them */
    .brand-slider-dot {
        width: 14px;
        height: 14px;
        margin: 0 8px;
    }
}

.brand-slider-dot.active {
    background-color: #000000;
    transform: scale(1.2);
}

.brand-slider-dot:hover {
    background-color: #888888;
}

/* Responsive styles */
@media (max-width: 768px) {
    .brand-slide {
        flex: 0 0 50%; /* Tablet */
    }
}

@media (max-width: 480px) {
    .brand-slide {
        flex: 0 0 50%; /* Mobile - show 2 brands per view */
    }
    
    /* Adjust brand bubble size for mobile - 2 per row */
    .brand-bubble {
        width: 80px;
        height: 80px;
    }
}

/* Basic brand bubble styles */
.brand-bubble {
    background: #fff;
    border-radius: 50%;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 0 auto;
}

.brand-logo {
    max-width: 70%;
    max-height: 70%;
}

/* Modal styles */
.model-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
}

.modal-content {
    background: white;
    padding: 30px;
    max-width: 1000px;
    margin: 100px auto;
    border-radius: 8px;
    text-align: center;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}

/* Model list styling - enhanced flex layout */
.model-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

/* Model item container - circular design */
.model-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 140px;
    margin: 15px;
    text-align: center;
    background: none;
    box-shadow: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

/* Model image wrapper - circular design */
.model-img-wrapper {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: #f8f8f8;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 8px;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

/* Model image */
.model-img {
    width: 100%;
    height: 90px !important;
    object-fit: contain;
    display: block;
}

/* Placeholder for when no image is available */
.model-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background-color: #f0f0f0;
    color: #666;
    font-size: 30px;
    font-weight: bold;
}

/* Model name styling */
.model-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.2;
}

/* Hover effect - subtle scale and shadow */
.model-item:hover .model-img-wrapper {
    transform: scale(1.03);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
}

/* Selected state styling */
.model-item.selected .model-img-wrapper {
    border: 3px solid #F15BB5;
    box-shadow: 0 3px 12px rgba(241, 91, 181, 0.25);
}

.model-item.selected .model-name {
    color: #F15BB5;
    font-weight: 700;
}

/* Continue button styles */
#continue-btn, .continue-btn {
    background-color: #f15bb5;
    border: none;
    padding: 12px 30px;
    font-weight: bold;
    font-size: 16px;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 20px;
}

#continue-btn:disabled, .continue-btn:disabled {
    background-color: #e0e0e0;
    color: #999;
    cursor: not-allowed;
}

/* Loading indicator */
.loader-circle {
    border: 4px solid #ccc;
    border-top: 4px solid #F15BB5;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 40px auto;
}

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

/* Mobile adjustments */
/* No models message styling */
.no-models-message {
    font-size: 16px;
    color: #666;
    padding: 20px;
    text-align: center;
    width: 100%;
}

@media (max-width: 768px) {
    .model-item {
        width: 120px;
        margin: 12px;
    }
    .model-img-wrapper {
        width: 100px;
        height: 100px;
        padding: 6px;
    }
    .model-name {
        font-size: 13px;
    }
}

/* ==========================================================================
   3. Responsive Swiper Carousel Styles
   ========================================================================== */

/* Desktop view - grid layout */
.brand-selector-carousel.desktop-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    width: 100%;
    padding: 20px 0;
}

.brand-selector-carousel.desktop-view .brand-item {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Desktop carousel view - Swiper for desktop */
.brand-selector-carousel.desktop-carousel-view {
    position: relative;
    overflow: hidden;
    padding-bottom: 40px; /* Space for pagination */
    width: 100%;
}

.brand-selector-carousel.desktop-carousel-view .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Mobile view - Swiper carousel */
.brand-selector-carousel.mobile-view {
    position: relative;
    overflow: hidden;
    padding-bottom: 40px; /* Space for pagination */
    width: 100%;
}

/* Swiper pagination bullets styling - for both mobile and desktop */
.brand-selector-carousel.mobile-view .swiper-pagination,
.brand-selector-carousel.desktop-carousel-view .swiper-pagination {
    position: absolute;
    bottom: 0;
    display: flex;
    justify-content: center;
    margin-top: 20px;
    width: 100%;
    z-index: 10;
}

.brand-selector-carousel.mobile-view .swiper-pagination-bullet,
.brand-selector-carousel.desktop-carousel-view .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d1d1d1;
    opacity: 1;
    margin: 0 5px;
    transition: all 0.2s ease;
}

.brand-selector-carousel.mobile-view .swiper-pagination-bullet-active,
.brand-selector-carousel.desktop-carousel-view .swiper-pagination-bullet-active {
    background: #000000;
    transform: scale(1.2);
}

/* Navigation arrows styling - for both mobile and desktop */
.brand-selector-carousel.mobile-view .swiper-button-next,
.brand-selector-carousel.mobile-view .swiper-button-prev,
.brand-selector-carousel.desktop-carousel-view .swiper-button-next,
.brand-selector-carousel.desktop-carousel-view .swiper-button-prev {
    color: #000;
    background: rgba(255, 255, 255, 0.5);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.brand-selector-carousel.mobile-view .swiper-button-next:after,
.brand-selector-carousel.mobile-view .swiper-button-prev:after,
.brand-selector-carousel.desktop-carousel-view .swiper-button-next:after,
.brand-selector-carousel.desktop-carousel-view .swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}

.brand-selector-carousel.mobile-view .swiper-button-next:hover,
.brand-selector-carousel.mobile-view .swiper-button-prev:hover,
.brand-selector-carousel.desktop-carousel-view .swiper-button-next:hover,
.brand-selector-carousel.desktop-carousel-view .swiper-button-prev:hover {
    background: rgba(255, 255, 255, 0.8);
}

.brand-selector-carousel.mobile-view .swiper-button-disabled,
.brand-selector-carousel.desktop-carousel-view .swiper-button-disabled {
    opacity: 0.3;
    cursor: auto;
    pointer-events: none;
}

/* Hover state for pagination bullets */
.brand-selector-carousel.mobile-view .swiper-pagination-bullet:hover,
.brand-selector-carousel.desktop-carousel-view .swiper-pagination-bullet:hover {
    background: #888888;
}
