/**
 * Timeline layout styles.
 */

.glowrev-testimonials-timeline {
    display: grid;
    gap: 20px;
}

.glowrev-timeline-item {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 14px;
    align-items: start;
}

.glowrev-timeline-rail {
    position: relative;
    min-height: 100%;
}

.glowrev-timeline-rail::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 13px;
    width: 2px;
    background: linear-gradient(180deg, rgba(148, 163, 184, 0.2), rgba(148, 163, 184, 0.6), rgba(148, 163, 184, 0.2));
}

.glowrev-timeline-dot {
    position: sticky;
    top: 16px;
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #2563eb;
    box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.12);
    margin-left: 7px;
    margin-top: 18px;
}

.glowrev-timeline-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 18px 18px 16px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.glowrev-timeline-head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    margin-bottom: 10px;
}

.glowrev-timeline-avatar {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    overflow: hidden;
    border: 2px solid #eef2ff;
    background: #f8fafc;
}

.glowrev-timeline-avatar img,
.glowrev-timeline-avatar .avatar,
.glowrev-timeline-avatar .glowrev-timeline-avatar-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.glowrev-timeline-name {
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.glowrev-timeline-company {
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.35;
}

.glowrev-timeline-rating {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    justify-content: flex-end;
}

.glowrev-timeline-rating .rating-star {
    width: 14px;
    height: 14px;
    display: inline-block;
    background: currentColor;
    color: #f59e0b;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    opacity: 0.25;
}

.glowrev-timeline-rating .rating-star.filled {
    opacity: 1;
}

.glowrev-timeline-rating .rating-star.empty {
    color: #cbd5e1;
    opacity: 0.7;
}

.glowrev-timeline-body .glowrev-testimonial-text {
    color: #334155;
    font-size: 1rem;
    line-height: 1.7;
}

.glowrev-timeline-meta {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 0.9rem;
}

@media (max-width: 767px) {
    .glowrev-timeline-item {
        grid-template-columns: 18px 1fr;
    }

    .glowrev-timeline-dot {
        margin-left: 3px;
    }

    .glowrev-timeline-head {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
    }

    .glowrev-timeline-rating {
        justify-content: flex-start;
    }
}

/* Timeline Entrance Animation */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.glowrev-timeline-item {
    animation: slideInRight 0.5s ease-out forwards;
}

.glowrev-timeline-item:nth-child(1) { animation-delay: 0s; }
.glowrev-timeline-item:nth-child(2) { animation-delay: 0.1s; }
.glowrev-timeline-item:nth-child(3) { animation-delay: 0.2s; }
.glowrev-timeline-item:nth-child(4) { animation-delay: 0.3s; }
.glowrev-timeline-item:nth-child(5) { animation-delay: 0.4s; }
.glowrev-timeline-item:nth-child(6) { animation-delay: 0.5s; }

/* Timeline Dot Pulse */
@keyframes dotPulse {
    0%, 100% { 
        box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.12);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 0 10px rgba(37, 99, 235, 0.2);
        transform: scale(1.1);
    }
}

.glowrev-timeline-dot {
    animation: dotPulse 2s ease-in-out infinite;
}

/* Card Hover Effect */
.glowrev-timeline-card {
    transition: all 0.3s ease;
}

.glowrev-timeline-card:hover {
    transform: translateX(5px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
}

/* Timeline Rail Gradient Animation */
@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.glowrev-timeline-rail::before {
    background: linear-gradient(180deg, #667eea, #764ba2, #667eea);
    background-size: 100% 200%;
    animation: gradientFlow 3s ease infinite;
}

