/* ============================================================================
   TubeCalendar - Depoimentos públicos
   ============================================================================ */

.tc-testimonials-section {
    max-width: 1180px;
    margin: 0 auto;
    padding: 14px 22px 46px;
    opacity: 0;
    transition: opacity .45s ease;
}

.tc-testimonials-section.is-ready {
    opacity: 1;
}

.tc-testimonials-heading {
    max-width: 760px;
    margin: 0 auto 24px;
    text-align: center;
}

.tc-testimonials-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 12px;
    color: #ff3b3b;
    font-size: 15px;
    font-weight: 950;
    letter-spacing: 1.1px;
    text-transform: uppercase;
}

.tc-testimonials-heading h2 {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.08;
    letter-spacing: -1px;
}

.tc-testimonials-heading p {
    margin: 0;
    color: #aeb7c5;
    font-size: 15px;
    line-height: 1.65;
}

.tc-testimonials-viewport {
    position: relative;
    overflow: hidden;
    padding: 7px 0 14px;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%);
}

.tc-testimonials-track {
    display: flex;
    align-items: stretch;
    gap: 18px;
    width: max-content;
    will-change: transform;
}

.tc-testimonials-track.is-moving {
    animation: tcTestimonialsMarquee var(--tc-testimonials-duration, 34s) linear infinite;
}

.tc-testimonials-viewport:hover .tc-testimonials-track.is-moving {
    animation-play-state: paused;
}

@keyframes tcTestimonialsMarquee {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-50% - 9px)); }
}

.tc-testimonial-card {
    width: clamp(285px, 31vw, 350px);
    flex: 0 0 auto;
    padding: 1px;
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(255, 0, 0, .95), rgba(255, 56, 56, .38), rgba(255, 0, 0, .78));
    box-shadow: 0 18px 42px rgba(0, 0, 0, .24), 0 0 26px rgba(255, 0, 0, .08);
}

.tc-testimonial-card-inner {
    height: 100%;
    min-height: 238px;
    display: flex;
    flex-direction: column;
    padding: 21px;
    border-radius: 23px;
    background:
        radial-gradient(circle at top right, rgba(255, 0, 0, .09), transparent 38%),
        #08090b;
}

.tc-testimonial-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tc-testimonial-avatar {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid rgba(255, 0, 0, .68);
    background: linear-gradient(135deg, #ff0000, #5b0000);
    color: #fff;
    font-size: 18px;
    font-weight: 950;
    box-shadow: 0 0 0 4px rgba(255, 0, 0, .07);
}

.tc-testimonial-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.tc-testimonial-identity {
    min-width: 0;
}

.tc-testimonial-name {
    color: #fff;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.25;
}

.tc-testimonial-role {
    margin-top: 3px;
    color: #929baa;
    font-size: 12px;
    line-height: 1.35;
}

.tc-testimonial-stars {
    margin: 17px 0 10px;
    color: #ff3535;
    font-size: 14px;
    letter-spacing: 2px;
}

.tc-testimonial-quote {
    margin: 0;
    color: #f2f4f7;
    font-size: 14px;
    line-height: 1.68;
    flex: 1;
}

.tc-testimonial-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    margin-top: 15px;
    color: #ff5b5b;
    font-size: 12px;
    font-weight: 850;
    text-decoration: none;
}

.tc-testimonial-link:hover {
    color: #fff;
}

.tc-testimonials-single .tc-testimonials-track {
    width: 100%;
    justify-content: center;
}

.tc-testimonials-actions {
    display: flex;
    justify-content: center;
    margin-top: 18px;
}

.tc-testimonials-view-all {
    appearance: none;
    border: 1px solid rgba(255, 0, 0, .42);
    background: rgba(255, 0, 0, .07);
    color: #fff;
    min-height: 38px;
    padding: 9px 15px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .45px;
    cursor: pointer;
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.tc-testimonials-view-all:hover {
    transform: translateY(-1px);
    background: rgba(255, 0, 0, .14);
    border-color: rgba(255, 0, 0, .75);
}

.tc-testimonials-modal[hidden] {
    display: none !important;
}

.tc-testimonials-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, .78);
    backdrop-filter: blur(10px);
}

.tc-testimonials-modal-panel {
    width: min(760px, 100%);
    max-height: min(760px, 88vh);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255, 0, 0, .34);
    border-radius: 26px;
    background: #090a0d;
    box-shadow: 0 32px 80px rgba(0, 0, 0, .55), 0 0 45px rgba(255, 0, 0, .10);
}

.tc-testimonials-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.tc-testimonials-modal-header h3 {
    margin: 0;
    color: #fff;
    font-size: 21px;
}

.tc-testimonials-modal-close {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 50%;
    background: rgba(255, 255, 255, .05);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.tc-testimonials-list {
    overflow: auto;
    padding: 4px 22px 22px;
}

.tc-testimonials-list-item {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 13px;
    padding: 18px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .075);
}

.tc-testimonials-list-item:last-child {
    border-bottom: 0;
}

.tc-testimonials-list-item .tc-testimonial-avatar {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
}

.tc-testimonials-list-copy p {
    margin: 9px 0 0;
    color: #dfe4ea;
    font-size: 14px;
    line-height: 1.62;
}

body.tc-testimonials-modal-open {
    overflow: hidden;
}

@media (max-width: 680px) {
    .tc-testimonials-section {
        padding: 10px 14px 38px;
    }

    .tc-testimonials-viewport {
        -webkit-mask-image: none;
        mask-image: none;
    }

    .tc-testimonial-card {
        width: min(82vw, 330px);
    }

    .tc-testimonial-card-inner {
        min-height: 225px;
        padding: 19px;
    }

    .tc-testimonials-modal {
        padding: 10px;
    }

    .tc-testimonials-modal-panel {
        max-height: 92vh;
        border-radius: 22px;
    }

    .tc-testimonials-modal-header,
    .tc-testimonials-list {
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tc-testimonials-track.is-moving {
        animation: none !important;
        transform: none !important;
    }

    .tc-testimonials-viewport {
        overflow-x: auto;
        -webkit-mask-image: none;
        mask-image: none;
    }
}
