/**
 * Testimonials Page Styles
 * Page-specific styles only — shared styles come from me-shared-bg.css
 */

/* ==================== GRADIENT TEXT ==================== */
.me-gradient-text {
    background: var(--me-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==================== HERO SECTION ==================== */

.tm-hero {
    position: relative;
    z-index: 2;
    padding: 160px 40px 70px;
    text-align: center;
}

.tm-hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.tm-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    background: linear-gradient(135deg, rgba(59,130,246,0.15), rgba(139,92,246,0.15));
    border: 1px solid rgba(59,130,246,0.3);
    border-radius: 100px;
    margin-bottom: 28px;
    animation: tm-fade-up 0.8s ease both;
}

.tm-hero-badge svg {
    flex-shrink: 0;
    color: #60a5fa;
    stroke: #60a5fa;
}

.tm-hero-badge span {
    color: #60a5fa;
    font-weight: 600;
    font-size: 0.9rem;
}

.tm-hero-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    animation: tm-fade-up 0.8s ease 0.1s both;
}

.tm-hero-subtitle {
    font-size: 1.1rem;
    color: var(--me-text-gray);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.7;
    animation: tm-fade-up 0.8s ease 0.2s both;
}

.tm-hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    animation: tm-fade-up 0.8s ease 0.3s both;
}

.tm-stat {
    text-align: center;
}

.tm-stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    background: var(--me-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tm-stat-label {
    font-size: 0.85rem;
    color: var(--me-text-dim);
    font-weight: 500;
}

@keyframes tm-fade-up {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ==================== SCROLL REVEAL ==================== */

.tm-reveal {
    opacity: 0;
    transform: translateY(40px) scale(0.97);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.tm-reveal.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ==================== CIRCUIT DIVIDERS ==================== */

.tm-circuit-divider {
    position: relative;
    z-index: 2;
    height: 3px;
    max-width: 400px;
    margin: 50px auto;
    background: linear-gradient(90deg, transparent, rgba(59,130,246,0.3), rgba(139,92,246,0.3), transparent);
    border-radius: 2px;
}

.tm-circuit-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--me-gradient);
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(59,130,246,0.6);
    z-index: 1;
}

.tm-circuit-divider::after {
    content: '';
    position: absolute;
    top: 0;
    left: -10%;
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59,130,246,0.8), transparent);
    border-radius: 2px;
    animation: tm-circuit-sweep 3s ease-in-out infinite;
}

@keyframes tm-circuit-sweep {
    0%   { left: -10%; opacity: 0; }
    20%  { opacity: 1; }
    80%  { opacity: 1; }
    100% { left: 80%; opacity: 0; }
}

/* ==================== SECTIONS ==================== */

.tm-section-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.tm-section-header {
    text-align: center;
    margin-bottom: 50px;
}

.tm-section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 50px;
    color: var(--me-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.tm-section-badge svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.tm-section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.tm-section-subtitle {
    font-size: 1rem;
    color: var(--me-text-gray);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ==================== TRUSTPILOT CARD ==================== */

.tm-trustpilot-section {
    position: relative;
    z-index: 1;
    padding: 0 40px 20px;
}

.tm-trustpilot-card {
    display: block;
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 32px 40px;
    background: linear-gradient(145deg, rgba(0, 182, 122, 0.08), rgba(0, 182, 122, 0.03));
    border: 1px solid rgba(0, 182, 122, 0.25);
    border-radius: 20px;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.4s ease;
}

.tm-trustpilot-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 182, 122, 0.5);
    box-shadow: 0 20px 60px rgba(0, 182, 122, 0.15);
}

.tm-trustpilot-glow {
    position: absolute;
    top: -50%;
    left: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 182, 122, 0.2) 0%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
    transition: all 0.4s ease;
}

.tm-trustpilot-card:hover .tm-trustpilot-glow {
    transform: scale(1.2);
    opacity: 0.8;
}

.tm-trustpilot-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.tm-trustpilot-left { flex: 1; }

.tm-trustpilot-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.tm-trustpilot-star-icon {
    width: 32px;
    height: 32px;
}

.tm-trustpilot-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--me-text-white);
    letter-spacing: -0.5px;
}

.tm-trustpilot-rating {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.tm-trustpilot-stars {
    display: flex;
    gap: 4px;
}

.tm-tp-star {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.tm-tp-star.full { background: #00B67A; }
.tm-tp-star.half { background: linear-gradient(90deg, #00B67A 50%, #dcdce6 50%); }
.tm-tp-star.empty { background: #dcdce6; }

.tm-tp-star span {
    color: #fff;
    font-size: 14px;
    margin-top: 2px;
}

.tm-tp-star.empty span { color: #b3b3b3; }

.tm-trustpilot-score {
    font-size: 1rem;
    color: var(--me-text-gray);
}

.tm-trustpilot-score strong {
    color: #00B67A;
    font-size: 1.25rem;
}

.tm-trustpilot-text {
    font-size: 0.95rem;
    color: var(--me-text-gray);
    margin: 0;
}

.tm-trustpilot-text strong { color: #00B67A; }

.tm-trustpilot-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
}

.tm-trustpilot-badge-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0, 182, 122, 0.12);
    border: 1px solid rgba(0, 182, 122, 0.3);
    border-radius: 50px;
    color: #00B67A;
    font-size: 0.8rem;
    font-weight: 500;
}

.tm-tp-badge-icon {
    width: 18px;
    height: 18px;
}

.tm-tp-badge-icon svg {
    width: 100%;
    height: 100%;
}

.tm-trustpilot-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #00B67A;
    border-radius: 10px;
    color: #fff;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s;
}

.tm-trustpilot-card:hover .tm-trustpilot-cta {
    background: #00a06b;
    transform: translateX(4px);
}

.tm-trustpilot-cta svg { transition: transform 0.3s; }

.tm-trustpilot-card:hover .tm-trustpilot-cta svg {
    transform: translate(2px, -2px);
}

/* ==================== FEATURED SECTION ==================== */

.tm-featured-section {
    padding: 60px 0 20px;
}

/* ==================== ALL TESTIMONIALS SECTION ==================== */

.tm-testimonials-section {
    padding: 60px 0 80px;
}

/* ==================== TESTIMONIAL CARDS ==================== */

.tm-featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 28px;
}

.tm-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.tm-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--me-border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.tm-card:hover {
    transform: translateY(-6px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 30px rgba(59, 130, 246, 0.08);
}

.tm-card-featured {
    background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(139,92,246,0.05));
    border-color: rgba(139, 92, 246, 0.2);
}

.tm-card-featured:hover {
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 30px rgba(139, 92, 246, 0.1);
}

.tm-card-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(59,130,246,0.08) 0%, transparent 50%, rgba(139,92,246,0.08) 100%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.tm-card:hover .tm-card-glow { opacity: 1; }

.tm-card-body {
    position: relative;
    z-index: 1;
    padding: 28px;
}

.tm-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.tm-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.tm-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.tm-avatar-ring {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: linear-gradient(135deg, var(--me-primary), var(--me-secondary)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: tm-ring-rotate 4s linear infinite;
}

@keyframes tm-ring-rotate {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.tm-customer-info {
    flex: 1;
    min-width: 0;
}

.tm-customer-name {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: var(--me-text-white);
}

.tm-customer-username {
    font-size: 0.8rem;
    color: var(--me-text-dim);
}

.tm-featured-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: linear-gradient(135deg, rgba(251,191,36,0.15), rgba(251,191,36,0.08));
    border: 1px solid rgba(251,191,36,0.3);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fbbf24;
    white-space: nowrap;
}

.tm-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

.tm-card-text {
    font-size: 0.95rem;
    color: var(--me-text-gray);
    line-height: 1.7;
    margin-bottom: 20px;
}

.tm-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ==================== STAR RATINGS ==================== */

.tm-rating {
    display: flex;
    gap: 3px;
}

.tm-rating-sm { gap: 2px; }

.tm-rating-sm .tm-star { font-size: 0.875rem; }

.tm-star {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.1);
}

.tm-star.filled { color: #fbbf24; }

.tm-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--me-text-dim);
}

/* ==================== SCROLLABLE CONTAINER ==================== */

.tm-scroll-container {
    max-height: 800px;
    overflow-y: auto;
    padding-right: 10px;
    margin-right: -10px;
    -webkit-overflow-scrolling: touch;
}

.tm-scroll-container::-webkit-scrollbar { width: 6px; }

.tm-scroll-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
}

.tm-scroll-container::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--me-primary), var(--me-secondary));
    border-radius: 10px;
}

.tm-scroll-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #2563eb, #7c3aed);
}

.tm-scroll-container {
    scrollbar-width: thin;
    scrollbar-color: var(--me-primary) rgba(255, 255, 255, 0.03);
}

/* ==================== EMPTY STATE ==================== */

.tm-empty {
    text-align: center;
    padding: 80px 20px;
}

.tm-empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    color: var(--me-text-dim);
    opacity: 0.5;
}

.tm-empty h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.tm-empty p {
    color: var(--me-text-dim);
}

/* ==================== CTA SECTION ==================== */

.tm-cta-section {
    position: relative;
    z-index: 2;
    padding: 0 40px 120px;
}

.tm-cta-card {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 60px;
    background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(59,130,246,0.05));
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 24px;
    text-align: center;
    overflow: hidden;
}

.tm-cta-card:hover {
    border-color: rgba(59, 130, 246, 0.35);
}

.tm-cta-glow {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59,130,246,0.2) 0%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
}

.tm-cta-content {
    position: relative;
    z-index: 1;
}

.tm-cta-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.tm-cta-text {
    font-size: 1rem;
    color: var(--me-text-gray);
    max-width: 500px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.tm-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(135deg, rgba(59,130,246,0.15), rgba(139,92,246,0.15));
    border: 1px solid rgba(59,130,246,0.35);
    color: #e2e8f0;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
}

.tm-cta-btn:hover {
    background: var(--me-gradient);
    color: #fff;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.4);
}

/* ==================== RESPONSIVE — 768px ==================== */

@media (max-width: 768px) {
    /* Fix navbar mobile sizes */
    .me-brand-text .me-name {
        font-size: 1.3rem !important;
    }

    .me-brand-text .me-trading {
        font-size: 0.9rem !important;
        letter-spacing: 0.15em !important;
    }

    .tm-hero {
        padding: 110px 20px 50px;
    }

    .tm-hero-title {
        font-size: 1.8rem;
    }

    .tm-hero-subtitle {
        font-size: 1rem;
    }

    .tm-hero-stats {
        flex-wrap: wrap;
        gap: 30px;
    }

    .tm-stat-number {
        font-size: 1.8rem;
    }

    .tm-section-container {
        padding: 0 20px;
    }

    .tm-section-title {
        font-size: 1.6rem;
    }

    .tm-trustpilot-section {
        padding: 0 20px 20px;
    }

    .tm-trustpilot-card {
        padding: 24px;
    }

    .tm-trustpilot-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .tm-trustpilot-right {
        align-items: flex-start;
        width: 100%;
    }

    .tm-trustpilot-cta {
        width: 100%;
        justify-content: center;
    }

    .tm-tp-star {
        width: 24px;
        height: 24px;
    }

    .tm-featured-grid,
    .tm-testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .tm-scroll-container {
        max-height: 500px;
        padding-right: 5px;
        margin-right: -5px;
    }

    .tm-card-body {
        padding: 22px 18px;
    }

    .tm-cta-section {
        padding: 0 20px 80px;
    }

    .tm-cta-card {
        padding: 40px 24px;
    }

    .tm-cta-title {
        font-size: 1.5rem;
    }

    .tm-circuit-divider {
        max-width: 300px;
    }
}

/* ==================== RESPONSIVE — 480px ==================== */

@media (max-width: 480px) {
    .tm-hero {
        padding: 95px 16px 40px;
    }

    .tm-hero-title {
        font-size: 1.5rem;
    }

    .tm-hero-stats {
        gap: 20px;
    }

    .tm-stat-number {
        font-size: 1.5rem;
    }

    .tm-section-container {
        padding: 0 16px;
    }

    .tm-section-title {
        font-size: 1.3rem;
    }

    .tm-cta-section {
        padding: 0 16px 60px;
    }

    .tm-cta-card {
        padding: 32px 20px;
    }

    .tm-tp-star {
        width: 20px;
        height: 20px;
    }
}

/* ==================== PERF-LITE ==================== */

.perf-lite .tm-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

.perf-lite .tm-hero-badge,
.perf-lite .tm-hero-title,
.perf-lite .tm-hero-subtitle,
.perf-lite .tm-hero-stats {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
}

.perf-lite .tm-circuit-divider::after {
    animation: none !important;
    display: none;
}

.perf-lite .tm-avatar-ring {
    animation: none !important;
}

/* ==================== PRINT ==================== */

@media print {
    body {
        background: #fff !important;
        color: #000 !important;
    }

    .me-bg-grid, .me-bg-glow, .me-bg-glow-1, .me-bg-glow-2, .me-bg-glow-3,
    .me-floating-orb, .me-orb-1, .me-orb-2, .me-orb-3, .me-orb-4, .me-orb-5,
    .me-glow-lines, .me-cursor-glow, .ind-market-canvas,
    #me-glitch-numbers, #me-smoke-canvas,
    .me-navbar, .me-mobile-menu, .me-footer,
    .tm-circuit-divider, .tm-cta-section,
    .tm-card-glow, .tm-trustpilot-glow, .tm-cta-glow,
    .tm-avatar-ring {
        display: none !important;
    }

    .tm-hero,
    .tm-trustpilot-section,
    .tm-featured-section,
    .tm-testimonials-section {
        padding: 20px 0 !important;
    }

    .tm-card,
    .tm-trustpilot-card,
    .tm-cta-card {
        background: transparent !important;
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }

    .tm-card:hover,
    .tm-trustpilot-card:hover {
        transform: none !important;
    }

    .tm-hero-title,
    .tm-section-title,
    .tm-customer-name,
    .tm-card-title {
        color: #000 !important;
        -webkit-text-fill-color: #000 !important;
        background: none !important;
    }

    .tm-stat-number {
        -webkit-text-fill-color: #333 !important;
        background: none !important;
    }

    .tm-hero-subtitle,
    .tm-section-subtitle,
    .tm-card-text,
    .tm-trustpilot-text,
    .tm-date,
    .tm-customer-username,
    .tm-stat-label {
        color: #555 !important;
    }

    .tm-scroll-container {
        max-height: none !important;
        overflow: visible !important;
    }

    .tm-reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}
