/**
 * AIWIZ Testimonials Widget
 * Version: 1.0.0
 *
 * BEM block: .aiwiz-testimonials
 */

/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
    --aiwiz-navy: #002847;
    --aiwiz-bright-blue: #1EAEDB;
    --aiwiz-gold: #E6B94C;
    --aiwiz-gold-start: #FFD700;
    --aiwiz-gold-end: #FFC14D;
    --aiwiz-white: #FFFFFF;
    --aiwiz-white-80: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   Section
   ========================================================================== */
.aiwiz-testimonials {
    font-family: 'Raleway', sans-serif;
    padding: 5rem 0;
    background-color: var(--aiwiz-navy);
    position: relative;
    overflow: hidden;
}

/* ---- Glow orbs ---- */
.aiwiz-testimonials__orbs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.aiwiz-testimonials__orb {
    position: absolute;
    border-radius: 50%;
    animation: aiwiz-glow-pulse 6s ease-in-out infinite alternate;
}

.aiwiz-testimonials__orb--blue {
    background-color: rgba(30, 174, 219, 0.15);
    filter: blur(150px);
    width: 400px;
    height: 400px;
    top: 10%;
    left: 5%;
}

.aiwiz-testimonials__orb--gold {
    background-color: rgba(230, 185, 76, 0.10);
    filter: blur(150px);
    width: 350px;
    height: 350px;
    bottom: 5%;
    right: 10%;
    animation-delay: -3s;
}

@keyframes aiwiz-glow-pulse {
    from {
        opacity: 0.6;
        transform: scale(0.9);
    }
    to {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

/* ---- Content wrapper ---- */
.aiwiz-testimonials__wrapper {
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
    position: relative;
    z-index: 2;
}

/* ---- Heading ---- */
.aiwiz-testimonials__title {
    font-size: 2.8rem;
    font-weight: 600;
    color: var(--aiwiz-white);
    margin-bottom: 0.5rem;
    text-align: center;
    line-height: 1.25;
}

.aiwiz-testimonials__title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, var(--aiwiz-gold-start) 0%, var(--aiwiz-gold) 100%);
    margin: 1rem auto 2rem;
    border-radius: 2px;
}

.aiwiz-testimonials__subtitle {
    font-size: 1.2rem;
    color: var(--aiwiz-white-80);
    margin-bottom: 4rem;
    text-align: center;
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* ==========================================================================
   Slideshow card (glassmorphism)
   ========================================================================== */
.aiwiz-testimonials__slideshow {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 16px;
    padding: 3rem;
    position: relative;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* ---- Slide ---- */
.aiwiz-testimonials__slide {
    display: none;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    min-height: 320px;
}

.aiwiz-testimonials__slide--active {
    display: flex;
    animation: aiwiz-slide-fade 1.5s ease-in-out;
}

@keyframes aiwiz-slide-fade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---- Stars ---- */
.aiwiz-testimonials__stars {
    color: var(--aiwiz-gold);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

/* ---- Quote text ---- */
.aiwiz-testimonials__text {
    color: var(--aiwiz-white-80);
    font-weight: 400;
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    flex-grow: 1;
}

/* ---- Author ---- */
.aiwiz-testimonials__author {
    color: var(--aiwiz-white);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.aiwiz-testimonials__role {
    display: block;
    font-weight: 500;
    font-size: 0.9rem;
    margin-top: 0.25rem;
    background: linear-gradient(135deg, var(--aiwiz-gold-start) 0%, var(--aiwiz-gold-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================================================
   Navigation arrows
   ========================================================================== */
.aiwiz-testimonials__nav {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    line-height: 45px;
    text-align: center;
    color: var(--aiwiz-white) !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 10px;
    user-select: none;
    z-index: 3;
    text-decoration: none !important;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.aiwiz-testimonials__nav--prev {
    left: 15px;
}

.aiwiz-testimonials__nav--next {
    right: 15px;
}

.aiwiz-testimonials__nav:hover {
    transform: translateY(-51%);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    color: var(--aiwiz-white) !important;
}

/* ==========================================================================
   Dot indicators
   ========================================================================== */
.aiwiz-testimonials__dots {
    text-align: center;
    margin-top: 2.5rem;
}

.aiwiz-testimonials__dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 6px;
    background-color: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: inline-block;
    transition: all 0.4s ease;
}

.aiwiz-testimonials__dot--active,
.aiwiz-testimonials__dot:hover {
    background-color: var(--aiwiz-gold);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1200px) {
    .aiwiz-testimonials__wrapper {
        max-width: 960px;
    }
}

@media (max-width: 992px) {
    .aiwiz-testimonials__wrapper {
        max-width: 720px;
    }
}

@media (max-width: 768px) {
    .aiwiz-testimonials__title {
        font-size: 2.2rem;
    }

    .aiwiz-testimonials__slideshow {
        padding: 2.5rem 1rem 5rem 1rem;
    }

    .aiwiz-testimonials__text {
        font-size: 1rem;
    }

    .aiwiz-testimonials__author {
        margin-bottom: 2rem;
    }

    .aiwiz-testimonials__slide {
        min-height: 350px;
    }

    .aiwiz-testimonials__nav {
        width: 40px;
        height: 40px;
        line-height: 40px;
        top: auto;
        bottom: 20px;
        transform: none;
    }

    .aiwiz-testimonials__nav--prev {
        left: 20px;
    }

    .aiwiz-testimonials__nav--next {
        right: 20px;
    }

    .aiwiz-testimonials__nav:hover {
        transform: translateY(-1px);
    }

    .aiwiz-testimonials__dots {
        margin-top: 2rem;
    }
}

@media (max-width: 480px) {
    .aiwiz-testimonials__nav--prev {
        left: 10px;
    }

    .aiwiz-testimonials__nav--next {
        right: 10px;
    }

    .aiwiz-testimonials__slideshow {
        padding: 2rem 1rem 4.5rem 1rem;
    }
}
