/* ==========================================================================
   TREATMENT RESULTS SLIDER - MOBILE RESPONSIVE
   ==========================================================================
   Desktop: 3 cards | Tablet: 2 cards | Mobile: 1 card
   ========================================================================== */

/* ==========================================================================
   SECTION STYLES
   ========================================================================== */
.treatment-results-section {
    background: var(--color-secondary-light);
    padding: var(--spacing-xxl) 0;
    position: relative;
}

/* ==========================================================================
   HEADER STYLES
   ========================================================================== */
.results-header {
    text-align: center;
    margin-bottom: var(--spacing-xxl);
}

.results-tag {
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-text-inverse);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--border-radius-full);
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-md);
}

.results-title {
    color: var(--color-heading-primary);
    font-size: var(--font-size-h1);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-sm);
    line-height: var(--line-height-tight);
}

.results-subtitle {
    color: var(--color-text-secondary);
    font-size: var(--font-size-body-large);
    max-width: 600px;
    margin: 0 auto;
    line-height: var(--line-height-body);
}

/* ==========================================================================
   SLIDER CONTAINER
   ========================================================================== */
.results-slider-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.results-slider-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-large);
}

.results-slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: auto;
}

/* ==========================================================================
   RESULT CARDS
   ========================================================================== */
.result-card {
    flex: 0 0 calc(33.333% - var(--spacing-lg));
    position: relative;
    border-radius: var(--border-radius-large);
    overflow: hidden;
    background: var(--color-white);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.result-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.result-image-container {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.result-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.result-card:hover .result-image {
    transform: scale(1.05);
}

/* ==========================================================================
   OVERLAY AND CONTENT
   ========================================================================== */
.result-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    padding: var(--spacing-lg);
    color: var(--color-text-inverse);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
}

/* .result-card:hover .result-overlay {
    transform: translateY(0);
    opacity: 1;
} */

.result-content {
    position: relative;
    z-index: 2;
}

.result-title {
    color: var(--color-text-inverse);
    font-size: var(--font-size-h4);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-xs);
    line-height: var(--line-height-tight);
}

.result-duration {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--font-size-body);
    margin-bottom: var(--spacing-sm);
    line-height: var(--line-height-body);
}

.result-badge {
    display: inline-block;
    background: var(--color-success);
    color: var(--color-text-inverse);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius-full);
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   SLIDER CONTROLS
   ========================================================================== */
.results-slider-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--spacing-lg);
    gap: var(--spacing-md);
    padding: 0 var(--spacing-sm);
}

/* Dots Navigation */
.results-slider-dots {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xs);
    flex: 1;
}

.results-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.results-dot.active {
    background: var(--color-primary);
    transform: scale(1.3);
    width: 10px;
    height: 10px;
}

.results-dot:hover {
    background: var(--color-primary);
    opacity: 0.8;
    transform: scale(1.1);
}

/* Arrow Navigation */
.results-slider-arrows {
    display: flex;
    gap: var(--spacing-xs);
}

.results-arrow-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-white);
    border: 2px solid var(--color-border-light);
    color: var(--color-text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-body-small);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 0;
}

.results-arrow-btn:hover {
    background: var(--color-primary);
    color: var(--color-text-inverse);
    border-color: var(--color-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.results-arrow-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    background: var(--color-bg-light);
    color: var(--color-text-muted);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* Tablet: 2 cards */
@media (max-width: 1024px) {
    .result-card {
        flex: 0 0 calc(50% - var(--spacing-md)) !important;
    }
    
    .results-title {
        font-size: var(--font-size-h2);
    }
    
    .result-image-container {
        height: 280px;
    }
    
    .results-slider-controls {
        margin-top: var(--spacing-md);
    }
    
    .results-arrow-btn {
        width: 38px;
        height: 38px;
        font-size: var(--font-size-small);
    }
    
    .results-dot {
        width: 7px;
        height: 7px;
    }
    
    .results-dot.active {
        width: 9px;
        height: 9px;
    }
}

/* Mobile: 1 card */
@media (max-width: 768px) {
    .treatment-results-section {
        padding: var(--spacing-xl) 0;
    }
    
    .results-header {
        margin-bottom: var(--spacing-xl);
    }
    
    .results-slider-container {
        padding: 0 var(--spacing-sm);
    }
    
    .result-card {
        flex: 0 0 100% !important;
    }
    
    .results-title {
        font-size: var(--font-size-h3);
    }
    
    .results-subtitle {
        font-size: var(--font-size-body);
    }
    
    .result-image-container {
        height: 250px;
    }
    
    .result-overlay {
        padding: var(--spacing-md);
    }
    
    .result-title {
        font-size: var(--font-size-h5);
    }
    
    .result-duration {
        font-size: var(--font-size-small);
    }
    
    .results-slider-controls {
        flex-direction: column;
        gap: var(--spacing-sm);
        margin-top: var(--spacing-md);
    }
    
    .results-arrow-btn {
        width: 36px;
        height: 36px;
        font-size: var(--font-size-caption);
    }
    
    .results-dot {
        width: 6px;
        height: 6px;
    }
    
    .results-dot.active {
        width: 8px;
        height: 8px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .results-slider-container {
        padding: 0 var(--spacing-xs);
    }
    
    .result-card {
        flex: 0 0 100%;
    }
    
    .results-slider-track {
        gap: var(--spacing-xs);
    }
    
    .result-image-container {
        height: 220px;
    }
    
    .results-tag {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: var(--font-size-tiny);
    }
    
    .results-title {
        font-size: var(--font-size-h4);
    }
    
    .results-arrow-btn {
        width: 32px;
        height: 32px;
        font-size: var(--font-size-micro);
    }
    
    .results-dot {
        width: 5px;
        height: 5px;
    }
    
    .results-dot.active {
        width: 7px;
        height: 7px;
    }
}

/* ==========================================================================
   ACCESSIBILITY IMPROVEMENTS
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    .results-slider-track,
    .result-card,
    .result-image,
    .result-overlay,
    .results-arrow-btn,
    .results-dot {
        transition: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .result-overlay {
        background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 50%, transparent 100%);
    }
    
    .results-arrow-btn {
        border-width: 3px;
    }
}

/* ==========================================================================
   LOADING STATE
   ========================================================================== */
.results-slider-container.loading .result-card {
    opacity: 0.7;
    pointer-events: none;
}

.results-slider-container.loading .results-slider-controls {
    opacity: 0.5;
    pointer-events: none;
}
