/* =================================================================
   Phase 3: Testimonials Carousel
   Client feedback slider with card design and navigation
   ================================================================= */

/* ===== TESTIMONIALS SECTION ===== */

#testimonials {
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

#testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle at 80% 50%, var(--platform-bg) 0%, transparent 50%);
    opacity: 0.3;
    pointer-events: none;
}

/* ===== TESTIMONIALS CAROUSEL ===== */

.testimonials-carousel {
    position: relative;
    max-width: 1100px;
    margin: 3rem auto 0;
    padding: 0 60px;
}

.testimonials-track {
    overflow: hidden;
    border-radius: 24px;
}

.testimonials-wrapper {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== TESTIMONIAL CARD ===== */

.testimonial-card {
    min-width: 100%;
    padding: 3rem 2.5rem;
    background: var(--card-bg);
    border: 2px solid var(--border-primary);
    border-radius: 24px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Quote icon decoration */
.testimonial-card::before {
    content: '\f10d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 80px;
    color: var(--accent-primary);
    opacity: 0.1;
    z-index: 0;
}

/* ===== TESTIMONIAL CONTENT ===== */

.testimonial-content {
    position: relative;
    z-index: 1;
}

.testimonial-text {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-primary);
    font-style: italic;
    margin-bottom: 2rem;
    position: relative;
}

.testimonial-text::before {
    content: '"';
    font-size: 3rem;
    color: var(--accent-primary);
    position: absolute;
    left: -20px;
    top: -10px;
    font-family: 'Georgia', serif;
}

/* ===== TESTIMONIAL METRICS ===== */

.testimonial-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 16px;
}

.metric-highlight {
    text-align: center;
}

.metric-highlight-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.metric-highlight-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===== AUTHOR INFO ===== */

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-primary);
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Avatar ring animation */
.author-avatar::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-primary);
    border-radius: 50%;
    z-index: -1;
    animation: avatarPulse 3s ease-in-out infinite;
}

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

.author-info {
    flex: 1;
}

.author-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.author-role {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.author-company {
    font-size: 0.9rem;
    color: var(--accent-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.author-company i {
    font-size: 14px;
}

/* ===== PROJECT TAG ===== */

.testimonial-project {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--strategy-bg);
    color: var(--strategy-accent);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 1rem;
}

.testimonial-project i {
    font-size: 14px;
}

/* ===== CAROUSEL NAVIGATION ===== */

.carousel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 2.5rem;
}

.carousel-arrow {
    width: 50px;
    height: 50px;
    background: var(--card-bg);
    border: 2px solid var(--border-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
    font-size: 20px;
}

.carousel-arrow:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
    transform: scale(1.1);
}

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

.carousel-arrow.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* ===== CAROUSEL DOTS ===== */

.carousel-dots {
    display: flex;
    gap: 12px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    background: var(--border-primary);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.carousel-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.carousel-dot:hover::after {
    border-color: var(--accent-primary);
}

.carousel-dot.active {
    background: var(--accent-primary);
    width: 32px;
    border-radius: 6px;
}

/* ===== STAR RATING ===== */

.testimonial-rating {
    display: flex;
    gap: 6px;
    margin-bottom: 1rem;
}

.star {
    color: #FFA500;
    font-size: 20px;
}

.star.empty {
    color: var(--border-primary);
}

/* ===== VERIFIED BADGE ===== */

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--platform-bg);
    color: var(--platform-accent);
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-left: 1rem;
}

.verified-badge i {
    font-size: 12px;
}

/* ===== CAROUSEL COUNTER ===== */

.carousel-counter {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 1.5rem;
}

.current-slide {
    color: var(--accent-primary);
    font-size: 1.1rem;
    font-weight: 700;
}

/* ===== AUTO-PLAY INDICATOR ===== */

.autoplay-indicator {
    width: 100%;
    height: 4px;
    background: var(--border-primary);
    border-radius: 2px;
    margin-top: 1.5rem;
    overflow: hidden;
    position: relative;
}

.autoplay-progress {
    height: 100%;
    background: var(--gradient-primary);
    width: 0%;
    transition: width 0.1s linear;
}

.autoplay-indicator.paused .autoplay-progress {
    animation-play-state: paused;
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 1024px) {
    .testimonials-carousel {
        padding: 0 50px;
    }

    .testimonial-text {
        font-size: 1.1rem;
    }

    .testimonial-metrics {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .testimonials-carousel {
        padding: 0 40px;
    }

    .testimonial-card {
        padding: 2rem 1.5rem;
    }

    .testimonial-card::before {
        font-size: 60px;
        top: 1.5rem;
        right: 1.5rem;
    }

    .testimonial-text {
        font-size: 1rem;
    }

    .testimonial-metrics {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .metric-highlight {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .metric-highlight-value {
        font-size: 1.5rem;
    }

    .author-avatar {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .author-name {
        font-size: 1.1rem;
    }

    .author-role {
        font-size: 0.9rem;
    }

    .carousel-arrow {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .testimonials-carousel {
        padding: 0 30px;
    }

    .testimonial-card {
        padding: 1.5rem 1rem;
    }

    .testimonial-text {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .testimonial-author {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .verified-badge {
        margin-left: 0;
        margin-top: 0.5rem;
    }

    .carousel-nav {
        gap: 1rem;
    }
}

/* ===== DARK THEME ADJUSTMENTS ===== */

[data-theme="dark"] .testimonial-card {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .testimonial-metrics {
    background: rgba(15, 23, 42, 0.8);
}

[data-theme="dark"] .carousel-arrow {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .carousel-dot {
    background: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .autoplay-indicator {
    background: rgba(255, 255, 255, 0.1);
}
