/**
 * Testimonials Carousel Widget Styles
 */

/* ============================================
   CSS Variables
   ============================================ */
:root {
    --tc-primary-dark: #1C1C1C;
    --tc-text-gray: #6E6E6E;
    --tc-text-light: #F5F5F5;
    --tc-border-gray: #D9D9D9;
    --tc-accent-pink: #FA5FB4;
    --tc-white: #FFFFFF;
    --tc-shadow-soft: 
        0px 0.7px 0.42px -0.42px rgba(0, 0, 0, 0.04),
        0px 1.8px 1.08px -0.83px rgba(0, 0, 0, 0.04),
        0px 3.6px 2.17px -1.25px rgba(0, 0, 0, 0.04),
        0px 6.9px 4.12px -1.67px rgba(0, 0, 0, 0.04),
        0px 13.6px 8.19px -2.08px rgba(0, 0, 0, 0.04),
        0px 30px 18px -2.5px rgba(0, 0, 0, 0.04);
    --tc-shadow-heavy: 
        0px 0.84px 0.5px -0.31px rgba(0, 0, 0, 0.13),
        0px 1.99px 1.19px -0.63px rgba(0, 0, 0, 0.13),
        0px 3.63px 2.18px -0.94px rgba(0, 0, 0, 0.13),
        0px 6.04px 3.62px -1.25px rgba(0, 0, 0, 0.13),
        0px 9.75px 5.85px -1.56px rgba(0, 0, 0, 0.13),
        0px 15.96px 9.57px -1.88px rgba(0, 0, 0, 0.13),
        0px 27.48px 16.49px -2.19px rgba(0, 0, 0, 0.13),
        0px 50px 30px -2.5px rgba(0, 0, 0, 0.13);
    --tc-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   Section & Container
   ============================================ */
.tc-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: var(--tc-white);
}

.tc-container {
    width: 100%;
    max-width: 100%;
}

/* ============================================
   Header Styles
   ============================================ */
.tc-header {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}

/* Tag Badge - Hero Eyebrow Style */
.tc-tag-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 0;
}

.tc-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #17468A;
    background: linear-gradient(135deg,
        rgba(23, 70, 138, 0.08) 0%,
        rgba(30, 90, 173, 0.08) 100%);
    border: 1px solid rgba(23, 70, 138, 0.2);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Shimmer effect */
.tc-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(23, 70, 138, 0.15),
        transparent);
    animation: tc-shimmer 3s infinite;
}

@keyframes tc-shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 200%;
    }
}

.tc-tag:hover {
    border-color: rgba(23, 70, 138, 0.4);
    background: linear-gradient(135deg,
        rgba(23, 70, 138, 0.12) 0%,
        rgba(30, 90, 173, 0.12) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(23, 70, 138, 0.15);
}

/* Title */
.tc-title {
    margin: 24px 0 0 0;
    font-size: 42px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--tc-primary-dark);
    letter-spacing: -0.02em;
}

/* Description */
.tc-description {
    margin: 16px 0 0 0;
    font-size: 18px;
    line-height: 1.6;
    color: var(--tc-text-gray);
}

/* ============================================
   CTA Button Styles
   ============================================ */
.tc-cta-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

.tc-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px 10px 10px;
    background-color: var(--tc-primary-dark);
    color: var(--tc-white);
    text-decoration: none;
    border-radius: 36px;
    font-size: 15px;
    font-weight: 500;
    transition: var(--tc-transition);
    box-shadow: 
        rgba(255, 255, 255, 0.15) 0px 0px 20px 1.64px inset,
        var(--tc-shadow-heavy);
}

.tc-cta-button:hover {
    background-color: #333333;
    transform: translateY(-2px);
    color: var(--tc-white);
    text-decoration: none;
}

.tc-cta-image {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--tc-shadow-heavy);
    flex-shrink: 0;
}

.tc-cta-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tc-cta-text {
    white-space: nowrap;
}

/* ============================================
   Carousel Wrapper
   ============================================ */
.tc-carousel-wrapper {
    position: relative;
    width: 100%;
    margin-top: 60px;
    overflow: visible;
}

.tc-carousel-track {
    display: flex;
    gap: 20px;
    cursor: grab;
    user-select: none;
    touch-action: pan-y;
    will-change: transform;
}

.tc-carousel-track.is-dragging {
    cursor: grabbing;
}

/* ============================================
   Card Styles
   ============================================ */
.tc-card {
    flex-shrink: 0;
    width: 320px;
    min-width: 320px;
    border-radius: 24px;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.tc-card:not(.is-active) {
    opacity: 0.6;
    transform: scale(0.9);
}

.tc-card.is-active {
    opacity: 1;
    transform: scale(1);
}

/* Video Container */
.tc-video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    border-radius: 32px;
    overflow: hidden;
    background-color: var(--tc-primary-dark);
    box-shadow: var(--tc-shadow-heavy);
}

.tc-video-wrapper {
    position: absolute;
    inset: 0;
    mask: linear-gradient(0deg, rgb(0, 0, 0) 82%, rgba(0, 0, 0, 0) 100%);
    -webkit-mask: linear-gradient(0deg, rgb(0, 0, 0) 82%, rgba(0, 0, 0, 0) 100%);
}

.tc-video-wrapper video,
.tc-video-wrapper .tc-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Profile Section */
.tc-profile {
    position: absolute;
    bottom: 16px;
    left: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tc-profile-image {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--tc-shadow-heavy);
    flex-shrink: 0;
}

.tc-profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tc-username {
    font-size: 14px;
    font-weight: 500;
    color: var(--tc-text-light);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.tc-verified {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.tc-verified svg {
    width: 100%;
    height: 100%;
}

/* ============================================
   Stats Badges
   ============================================ */
.tc-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    justify-content: center;
}

.tc-stat-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    background-color: var(--tc-white);
    border: 1px solid var(--tc-border-gray);
    border-radius: 24px;
    font-size: 12px;
    font-weight: 500;
    color: var(--tc-text-gray);
    white-space: nowrap;
    backdrop-filter: blur(5px);
    box-shadow: var(--tc-shadow-soft);
    transition: var(--tc-transition);
}

.tc-card.is-active .tc-stat-badge:hover {
    transform: translateY(-2px);
    box-shadow: 
        var(--tc-shadow-soft),
        0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ============================================
   Navigation Arrows
   ============================================ */
.tc-nav-arrows {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-100%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
    z-index: 10;
}

.tc-arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.2);
    border: none;
    color: var(--tc-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--tc-transition);
    pointer-events: auto;
    backdrop-filter: blur(4px);
}

.tc-arrow:hover {
    background-color: rgba(0, 0, 0, 0.4);
    transform: scale(1.1);
}

.tc-arrow:active {
    transform: scale(0.95);
}

.tc-arrow svg {
    width: 24px;
    height: 24px;
}

/* ============================================
   Pagination Dots
   ============================================ */
.tc-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin-top: 24px;
    padding: 6px 12px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 50px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.tc-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--tc-white);
    border: none;
    padding: 0;
    margin: 0 5px;
    cursor: pointer;
    opacity: 0.5;
    transition: var(--tc-transition);
}

.tc-dot.active {
    opacity: 1;
}

.tc-dot:hover {
    opacity: 0.8;
}

/* ============================================
   Responsive Styles
   ============================================ */
@media (max-width: 1024px) {
    .tc-title {
        font-size: 36px;
    }

    .tc-description {
        font-size: 16px;
    }

    .tc-card {
        width: 280px;
        min-width: 280px;
    }
}

@media (max-width: 768px) {
    .tc-title {
        font-size: 30px;
    }

    .tc-description {
        font-size: 15px;
    }

    .tc-card {
        width: 260px;
        min-width: 260px;
    }

    .tc-carousel-wrapper {
        margin-top: 40px;
    }

    .tc-nav-arrows {
        display: none;
    }

    .tc-stats {
        gap: 6px;
    }

    .tc-stat-badge {
        padding: 6px 10px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .tc-title {
        font-size: 26px;
    }

    .tc-card {
        width: 240px;
        min-width: 240px;
    }

    .tc-video-container {
        border-radius: 24px;
    }

    .tc-profile-image {
        width: 28px;
        height: 28px;
    }

    .tc-username {
        font-size: 13px;
    }

    .tc-pagination {
        padding: 4px 8px;
    }

    .tc-dot {
        width: 8px;
        height: 8px;
        margin: 0 3px;
    }
}

/* ============================================
   Elementor Editor Compatibility
   ============================================ */
.elementor-editor-active .tc-carousel-track {
    flex-wrap: wrap;
    justify-content: center;
}

.elementor-editor-active .tc-card {
    opacity: 1 !important;
    transform: scale(1) !important;
}

/* ============================================
   Animations
   ============================================ */
@keyframes tc-fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tc-section[data-animated="true"] .tc-header {
    animation: tc-fadeIn 0.6s ease forwards;
}

.tc-section[data-animated="true"] .tc-carousel-wrapper {
    animation: tc-fadeIn 0.6s ease 0.2s forwards;
    opacity: 0;
}

/* Video Play State */
.tc-card video {
    transition: opacity 0.3s ease;
}

.tc-card:not(.is-active) video {
    opacity: 0.7;
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .tc-carousel-wrapper {
        overflow: visible;
    }

    .tc-carousel-track {
        flex-wrap: wrap;
        justify-content: center;
    }

    .tc-card {
        opacity: 1 !important;
        transform: none !important;
        break-inside: avoid;
    }

    .tc-nav-arrows,
    .tc-pagination {
        display: none;
    }
}

/* ============================================
   Dark Mode Support
   ============================================ */
@media (prefers-color-scheme: dark) {
    .tc-section.tc-dark-mode {
        --tc-white: #1C1C1C;
        --tc-primary-dark: #FFFFFF;
        --tc-text-gray: #A0A0A0;
        --tc-border-gray: #404040;
    }
}

/* ============================================
   Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .tc-carousel-track,
    .tc-card,
    .tc-cta-button,
    .tc-stat-badge,
    .tc-arrow,
    .tc-dot {
        transition: none;
    }

    .tc-section[data-animated="true"] .tc-header,
    .tc-section[data-animated="true"] .tc-carousel-wrapper {
        animation: none;
        opacity: 1;
    }
}
