/**
 * Person Teaser Slider Styles
 * Team member slider/carousel module
 * 
 * @package Gustoso Child Theme
 * @since 1.0
 */

/* Main Container */
.gustoso-person-teaser-slider {
    width: 100%;
    padding: 60px 0;
    background-color: #ffffff;
}

/* Title */
.gustoso-person-teaser-slider__title {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 64px;
    font-weight: 400;
    color: #2d3748;
    text-align: center;
    margin: 0 0 50px 0;
    padding: 0 20px;
}

/* Slider Wrapper */
.gustoso-person-teaser-slider__wrapper {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
}

/* Slider Container */
.gustoso-person-teaser-slider__container {
    overflow: hidden;
    position: relative;
    touch-action: pan-x;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.gustoso-person-teaser-slider__container:active {
    cursor: grabbing;
}

/* Slider Track */
.gustoso-person-teaser-slider__track {
    display: flex;
    transition: transform 0.5s ease;
    will-change: transform;
    width: 100%;
}

/* Slide */
.gustoso-person-teaser-slider__slide {
    flex: 0 0 33.333%;
    padding: 0 15px;
    box-sizing: border-box;
    min-width: 0; /* Prevent flex item from overflowing */
}

/* Card */
.gustoso-person-teaser-slider__card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0;
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
    height: 85%;
    display: flex;
    flex-direction: column;
}

.gustoso-person-teaser-slider__card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Image Wrapper */
.gustoso-person-teaser-slider__image-wrapper {
    width: 100%;
    padding-top: 100%; /* Square aspect ratio */
    position: relative;
    overflow: hidden;
    background-color: #f7fafc;
}

.gustoso-person-teaser-slider__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Logo */
.gustoso-person-teaser-slider__logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 25px auto 0;
    padding: 0;
}

.gustoso-person-teaser-slider__logo-image {
    max-width: 80px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Reduce name margin when logo is present */
.gustoso-person-teaser-slider__logo + .gustoso-person-teaser-slider__name {
    margin-top: 15px;
}

/* Name / Headline */
.gustoso-person-teaser-slider__name {
    font-family: 'Ysabeau Infant', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 32px;
    font-weight: 300;
    color: #2d3748;
    margin: 25px 20px 10px 20px;
    line-height: 1.4;
}

/* Position / Subheadline */
.gustoso-person-teaser-slider__position {
    font-family: 'Ysabeau Infant', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 18px;
    font-weight: 600;
    font-style: italic;
    color: #26303F;
    margin: 0;
    line-height: 1.4;
}

/* Divider */
.gustoso-person-teaser-slider__divider {
        width: 80%;
        max-width: 200px;
        height: 1px;
        background-color: #e2e8f0;
        margin: 18px auto 18px auto !important;
}

/* Description / Copy Text */
.gustoso-person-teaser-slider__description {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #4a5568;
    line-height: 1.6;
    text-align: left;
    flex-grow: 1;
}

/* Navigation Arrows */
.gustoso-person-teaser-slider__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #f7fafc;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    padding: 0;
    margin: 0;
}

.gustoso-person-teaser-slider__arrow:hover {
    background-color: #edf2f7;
    border-color: #cbd5e0;
}

.gustoso-person-teaser-slider__arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.gustoso-person-teaser-slider__arrow svg {
    width: 24px;
    height: 24px;
    fill: #4a5568;
}

.gustoso-person-teaser-slider__arrow--prev {
    left: 0;
}

.gustoso-person-teaser-slider__arrow--next {
    right: 0;
}

.gustoso-person-teaser-slider__arrow--disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* Pagination */
.gustoso-person-teaser-slider__pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    gap: 8px;
}

.gustoso-person-teaser-slider__pagination-dot {
    width: 40px;
    height: 3px;
    background-color: #e2e8f0;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    margin: 0;
}

.gustoso-person-teaser-slider__pagination-dot--active {
    background-color: #324158;
    width: 60px;
}

/* Responsive: 2 items per view */
.gustoso-person-teaser-slider[data-items-per-view="2"] .gustoso-person-teaser-slider__slide {
    flex: 0 0 50%;
}

/* Responsive: 1 item per view */
.gustoso-person-teaser-slider[data-items-per-view="1"] .gustoso-person-teaser-slider__slide {
    flex: 0 0 100%;
}

/* Responsive: 4 items per view */
.gustoso-person-teaser-slider[data-items-per-view="4"] .gustoso-person-teaser-slider__slide {
    flex: 0 0 25%;
}

/* Tablet Styles */
@media (max-width: 1024px) {
    .gustoso-person-teaser-slider__wrapper {
        padding: 0 50px;
    }
    
    .gustoso-person-teaser-slider__slide {
        flex: 0 0 50% !important;
    }
    
    .gustoso-person-teaser-slider__title {
        font-size: 32px;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .gustoso-person-teaser-slider {
        padding: 40px 0;
    }
    
    .gustoso-person-teaser-slider__wrapper {
        padding: 0 40px;
    }
    
    .gustoso-person-teaser-slider__slide {
        flex: 0 0 100% !important;
    }
    
    .gustoso-person-teaser-slider__title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    .gustoso-person-teaser-slider__arrow {
        width: 40px;
        height: 40px;
    }
    
    .gustoso-person-teaser-slider__arrow svg {
        width: 20px;
        height: 20px;
    }
    
    .gustoso-person-teaser-slider__name {
        font-size: 26px;
    }
    
    .gustoso-person-teaser-slider__position {
        font-size: 16px;
    }
    
    .gustoso-person-teaser-slider__description {
        font-size: 14px;
    }
    
    .gustoso-person-teaser-slider__progress {
        max-width: 200px !important;
    }
}

/* Progress Bar */
.gustoso-person-teaser-slider__progress {
    width: 100%;
    max-width: 400px;
    height: 2px;
    background-color: rgba(146, 169, 205, 0.3);
    margin: 40px auto 0;
    position: relative;
    overflow: hidden;
}

.gustoso-person-teaser-slider__progress-bar {
    height: 100%;
    background-color: #324158;
    width: 0%;
    transition: width 0.5s ease;
}

/* Small Mobile */
@media (max-width: 480px) {
    .gustoso-person-teaser-slider__wrapper {
        padding: 0 20px;
    }
    
    .gustoso-person-teaser-slider__arrow {
        width: 35px;
        height: 35px;
    }
    
    .gustoso-person-teaser-slider__arrow svg {
        width: 18px;
        height: 18px;
    }
}


