/**
 * Testimonials Video Carousel Styles
 * Responsive, accessible, modern design
 */

/* Container */
.testimonials-carousel-container {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.testimonials-carousel-wrapper {
    position: relative;
    overflow: visible;
}

/* Track Container */
.testimonials-carousel-track-container {
    overflow: hidden;
    position: relative;
    border-radius: 1rem;
}

/* Track */
.testimonials-carousel-track {
    display: flex;
    gap: 1rem;
    transition: transform 300ms ease-out;
    will-change: transform;
    cursor: grab;
}

.testimonials-carousel-track:active {
    cursor: grabbing;
}

/* Individual Card */
.testimonial-card {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.testimonial-card-inner {
    background: #ffffff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: transform 200ms ease, box-shadow 200ms ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-card-inner:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

/* Video Container - 16:9 Aspect Ratio */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
    border-radius: 16px; /* Added border radius for modern look */
}

.testimonial-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px; /* Match container radius */
}

/* Testimonial Info - Glassmorphism Design */
.testimonial-info {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    flex-grow: 1;
    position: relative;
    overflow: hidden;
}

.testimonial-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 0%; }
    50% { background-position: 100% 0%; }
}

.testimonial-client {
    margin: 0 0 0.5rem 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.4;
}

/* Glassmorphism Title/Link */
.testimonial-title {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #667eea;
    line-height: 1.6;
    padding: 0.75rem 1.25rem;
    background: rgba(102, 126, 234, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    text-align: center;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.testimonial-title:hover {
    background: rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.25);
    color: #5568d3;
}

.testimonial-title:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.glass-btn-icon {
    font-size: 1.125rem;
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Navigation Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: none;
    
    background: rgba(255, 255, 255, 0.95);
    color: #1f2937;
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    
    transition: all 200ms ease;
    
    -webkit-user-select: none;
    user-select: none;
}

.carousel-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    transform: translateY(-50%) scale(1.05);
}

.carousel-btn:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.carousel-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.carousel-btn-prev {
    left: -1.5rem;
}

.carousel-btn-next {
    right: -1.5rem;
}

.carousel-btn svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* Pagination Dots */
.carousel-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.carousel-dot {
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 50%;
    border: none;
    background: #d1d5db;
    cursor: pointer;
    padding: 0;
    
    transition: all 200ms ease;
}

.carousel-dot:hover {
    background: #9ca3af;
    transform: scale(1.2);
}

.carousel-dot:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.carousel-dot.active {
    background: #3b82f6;
    width: 0.75rem;
    height: 0.75rem;
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Empty State */
.testimonials-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #6b7280;
}

/* Responsive Adjustments */
@media (max-width: 1023px) {
    .carousel-btn-prev {
        left: 0.5rem;
    }
    
    .carousel-btn-next {
        right: 0.5rem;
    }
    
    .carousel-btn {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .carousel-btn svg {
        width: 1.25rem;
        height: 1.25rem;
    }
}

@media (max-width: 767px) {
    .testimonials-carousel-container {
        padding: 1.5rem 0.5rem;
    }
    
    .carousel-btn {
        width: 2rem;
        height: 2rem;
    }
    
    .carousel-btn svg {
        width: 1rem;
        height: 1rem;
    }
    
    .carousel-btn-prev {
        left: 0.25rem;
    }
    
    .carousel-btn-next {
        right: 0.25rem;
    }
    
    .video-container {
        border-radius: 12px;
    }
    
    .testimonial-video {
        border-radius: 12px;
    }
    
    .testimonial-info {
        padding: 1rem;
    }
    
    .testimonial-client {
        font-size: 1rem;
    }
    
    .testimonial-title {
        font-size: 0.875rem;
        padding: 0.625rem 1rem;
        border-radius: 10px;
    }
}

/* Print Styles */
@media print {
    .carousel-btn,
    .carousel-pagination {
        display: none;
    }
    
    .testimonial-card {
        page-break-inside: avoid;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .testimonials-carousel-track,
    .carousel-btn,
    .carousel-dot,
    .testimonial-card-inner {
        transition: none;
    }
}

/* Dark Mode Support (optional) */
@media (prefers-color-scheme: dark) {
    .testimonial-card-inner {
        background: #1f2937;
        border-color: #374151;
    }
    
    .testimonial-info {
        background: rgba(31, 41, 55, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
    
    .testimonial-info::before {
        background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    }
    
    .testimonial-client {
        color: #f3f4f6;
    }
    
    .testimonial-title {
        color: #818cf8;
        background: rgba(129, 140, 248, 0.1);
        border-color: rgba(129, 140, 248, 0.3);
    }
    
    .testimonial-title:hover {
        background: rgba(129, 140, 248, 0.2);
        border-color: rgba(129, 140, 248, 0.5);
        color: #a5b4fc;
    }
    
    .carousel-btn {
        background: rgba(31, 41, 55, 0.95);
        color: #f3f4f6;
    }
    
    .carousel-btn:hover:not(:disabled) {
        background: rgba(31, 41, 55, 1);
    }
}

