/* Testimonial Collection Widget CSS */

.wml-testimonial-collection {
    /* Base Variables */
    --wml-tc-glass-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    --wml-tc-glass-border: rgba(255, 255, 255, 0.08);
    --wml-tc-glass-shadow: 0 0 15px -5px rgba(0, 0, 0, 0.2);

    --wml-tc-gold-text: linear-gradient(to right, #d4af37, #fdf0ba, #d4af37);
    --wml-tc-text-main: #f8fafc;
    --wml-tc-text-muted: #cbd5e1;
    --wml-tc-text-faint: #94a3b8;

    --wml-tc-bg-dark: #0b0f19;
    --wml-tc-bg-darker: #070a11;

    --wml-tc-star: #d4af37;

    width: 100%;
    color: var(--wml-tc-text-main);
    font-family: 'Inter', sans-serif;
}

.wml-tc-premium-glass {
    background: var(--wml-tc-glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--wml-tc-glass-border);
    box-shadow: var(--wml-tc-glass-shadow);
}

.wml-tc-gold-text {
    background: var(--wml-tc-gold-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.wml-tc-playfair {
    font-family: 'Playfair Display', serif;
}

.wml-tc-stars {
    display: flex;
    gap: 4px;
    color: var(--wml-tc-star);
    margin-bottom: 12px;
}

.wml-tc-stars svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Card General */
.wml-tc-card {
    padding: 24px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.wml-tc-card-text {
    color: var(--wml-tc-text-muted);
    font-style: italic;
    flex-grow: 1;
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.5;
}

.wml-tc-card-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}

.wml-tc-card-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.5);
    object-fit: cover;
}

.wml-tc-card-author {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wml-tc-card-author h4 {
    font-weight: 600;
    color: #fff;
    font-size: 14px;
    margin: 0;
    line-height: 1.2;
}

.wml-tc-card-author span {
    font-size: 12px;
    color: var(--wml-tc-text-faint);
    line-height: 1.2;
}

/* 1. The Infinite Ribbon */
@keyframes wml-tc-marquee {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes wml-tc-marquee-full {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

.wml-tc-style-1 {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.wml-tc-style-1-overlay-l,
.wml-tc-style-1-overlay-r {
    position: absolute;
    top: 0;
    width: 120px;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

.wml-tc-style-1-overlay-l {
    left: 0;
    background: linear-gradient(to right, var(--wml-tc-ribbon-fade-color, var(--wml-tc-bg-dark)), transparent);
}

.wml-tc-style-1-overlay-r {
    right: 0;
    background: linear-gradient(to left, var(--wml-tc-ribbon-fade-color, var(--wml-tc-bg-dark)), transparent);
}

.wml-tc-style-1-track {
    display: flex;
}

.wml-tc-style-1-marquee {
    display: flex;
    flex-shrink: 0;
    gap: 24px;
    padding: 16px 24px 16px 0;
    animation: wml-tc-marquee-full 30s linear infinite;
}

.wml-tc-style-1-track:hover .wml-tc-style-1-marquee {
    animation-play-state: paused;
}

.wml-tc-style-1-item {
    width: 320px;
    flex-shrink: 0;
}

/* 2. The Glass Stack */
.wml-tc-style-2 {
    position: relative;
    height: 250px;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.wml-tc-style-2 .wml-tc-stack-card {
    position: absolute;
    width: 100%;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.wml-tc-style-2 .wml-tc-stack-card .wml-tc-card>* {
    transition: opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

.wml-tc-style-2 .wml-tc-stack-card.wml-tc-active-card .wml-tc-card>* {
    opacity: 1;
    pointer-events: auto;
}

/* 3. The Orbital Hub */
.wml-tc-style-3 {
    position: relative;
    height: 500px;
    width: 100%;
    max-width: 768px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

@keyframes wml-tc-spin {
    100% {
        transform: rotate(360deg);
    }
}

.wml-tc-style-3-ring {
    position: absolute;
    z-index: 0;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.05);
    animation: wml-tc-spin 40s linear infinite;
}

.wml-tc-style-3-center {
    z-index: 10;
    text-align: center;
    padding: 32px;
    border-radius: 50%;
    width: 256px;
    height: 256px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.5s;
}

.wml-tc-style-3-center h3 {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.wml-tc-style-3-center p {
    font-size: 12px;
    color: var(--wml-tc-text-faint);
    margin-top: 8px;
}

.wml-tc-orbit-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid var(--wml-tc-star);
    transition: transform 0.3s;
}

.wml-tc-orbit-avatar:hover {
    transform: scale(1.25);
}

/* 4. The Piano Accordion */
.wml-tc-style-4 {
    display: flex;
    height: 400px;
    gap: 12px;
    width: 100%;
    border-radius: 16px;
    padding: 8px;
    overflow: hidden;
}

.wml-tc-piano-item {
    flex: 1;
    transition: flex 0.7s cubic-bezier(0.25, 1, 0.5, 1);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    border-radius: 12px;
}

.wml-tc-piano-item:hover {
    flex: 7;
}

.wml-tc-piano-title {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
}

.wml-tc-piano-item:hover .wml-tc-piano-title {
    opacity: 0;
}

.wml-tc-piano-title span {
    transform: rotate(-90deg);
    white-space: nowrap;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--wml-tc-star);
    text-transform: uppercase;
}

.wml-tc-piano-content {
    opacity: 0;
    width: 320px;
    position: absolute;
    inset: 0;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: opacity 0.4s ease 0.2s;
    pointer-events: none;
}

.wml-tc-piano-item:hover .wml-tc-piano-content {
    opacity: 1;
    pointer-events: auto;
}

.wml-tc-piano-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--wml-tc-star);
    margin-bottom: 24px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: scale(0.8) translateY(20px);
    transition: all 0.5s ease 0.1s;
    opacity: 0;
}

.wml-tc-piano-item:hover .wml-tc-piano-avatar {
    transform: scale(1.1) translateY(0);
    opacity: 1;
}

.wml-tc-piano-content p {
    font-size: 14px;
    font-style: italic;
    color: var(--wml-tc-text-muted);
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wml-tc-piano-content h4 {
    font-weight: 700;
    color: #fff;
    margin: 0;
}

/* 5. 3D Matrix Reveal */
.wml-tc-style-5 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

@media (min-width: 768px) {
    .wml-tc-style-5 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.wml-tc-flip-card {
    width: 100%;
    height: 192px;
    background: transparent;
    cursor: pointer;
    perspective: 1000px;
}

.wml-tc-flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.wml-tc-flip-card:hover .wml-tc-flip-card-inner {
    transform: rotateY(180deg);
}

.wml-tc-flip-card-front,
.wml-tc-flip-card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 16px;
}

.wml-tc-flip-card-front {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.wml-tc-flip-card-front img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
    border: 2px solid var(--wml-tc-star);
}

.wml-tc-flip-card-front .wml-tc-card-avatar {
    width: 64px;
    height: 64px;
}

.wml-tc-flip-card-front span {
    font-weight: 600;
    color: var(--wml-tc-text-muted);
}

.wml-tc-flip-card-back {
    transform: rotateY(180deg);
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.wml-tc-flip-card-back p {
    font-size: 12px;
    font-style: italic;
    color: var(--wml-tc-text-muted);
}

/* 6. The Floating Orbs */
.wml-tc-style-6 {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: 24px;
}

.wml-tc-orb {
    position: absolute;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #1e293b;
    border: 1px solid rgba(212, 175, 55, 0.4);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.wml-tc-orb:hover {
    width: 256px;
    height: auto;
    border-radius: 12px;
    z-index: 50;
    padding: 20px;
}

.wml-tc-orb-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    transition: all 0.3s;
}

.wml-tc-orb-img .wml-tc-card-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.wml-tc-orb:hover .wml-tc-orb-img {
    display: none;
}

.wml-tc-orb-content {
    display: none;
    width: 100%;
    margin-top: 12px;
    text-align: center;
}

.wml-tc-orb:hover .wml-tc-orb-content {
    display: block;
}

.wml-tc-orb-content .wml-tc-stars {
    justify-content: center;
}

.wml-tc-orb-content p {
    font-size: 12px;
    font-style: italic;
    color: var(--wml-tc-text-muted);
}

.wml-tc-orb-content span {
    font-size: 12px;
    font-weight: 700;
    color: var(--wml-tc-star);
    display: block;
    margin-top: 8px;
}

/* 7. Parallax Masonry Waterfall */
.wml-tc-style-7 {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 24px;
    height: 700px;
    overflow: hidden;
}

@media (min-width: 768px) {
    .wml-tc-style-7 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.wml-tc-masonry-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* 8. The Spotlight Fade */
.wml-tc-style-8 {
    position: relative;
    width: 100%;
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.wml-tc-spotlight-card {
    position: absolute;
    width: 100%;
    max-width: 672px;
    transition: all 1s;
    opacity: 0;
    transform: scale(0.95);
    z-index: 0;
}

.wml-tc-spotlight-card.wml-tc-active {
    opacity: 1;
    transform: scale(1);
    z-index: 10;
}

.wml-tc-spotlight-card .wml-tc-card {
    background: transparent;
    border: none;
    box-shadow: none;
    text-align: center;
    align-items: center;
}

/* 9. Cyber Glow Reveal */
.wml-tc-style-9 {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 24px;
}

@media (min-width: 768px) {
    .wml-tc-style-9 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.wml-tc-glow-card {
    position: relative;
    overflow: hidden;
    background: var(--wml-tc-bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.wml-tc-glow-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), var(--wml-tc-glow-color, rgba(212, 175, 55, 0.15)), transparent 40%);
    z-index: 0;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.wml-tc-glow-card:hover::before {
    opacity: 1;
}

.wml-tc-glow-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.wml-tc-glow-card .wml-tc-card-text {
    transition: color 0.3s;
}

.wml-tc-glow-card:hover .wml-tc-card-text {
    color: #f3f4f6;
}


/* 10. Diagonal Cascades */
.wml-tc-style-10 {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--wml-tc-cascade-gap, 40px);
    overflow: hidden;
    transform: rotate(var(--wml-tc-cascade-degree, -2deg)) scale(1.05);
}

.wml-tc-cascade-row {
    display: flex;
    width: max-content;
    gap: 32px;
}

.wml-tc-cascade-row-1 {
    animation: wml-tc-marquee 30s linear infinite;
}

.wml-tc-cascade-row-2 {
    animation: wml-tc-marquee 35s linear infinite reverse;
}

.wml-tc-cascade-item {
    width: 340px;
    max-width: 340px;
    flex-shrink: 0;
}
/* Read More / Read Less */
.wml-tc-read-more,
.wml-tc-read-less {
    display: inline;
    color: var(--wml-tc-star);
    text-decoration: none;
    font-size: 0.85em;
    cursor: pointer;
    white-space: nowrap;
    margin-left: 2px;
}
.wml-tc-read-more:hover,
.wml-tc-read-less:hover {
    text-decoration: underline;
}
