/* --- Reviews Section (Exact Top.gg Style) --- */
.reviews {
    padding: 2rem 0;
    margin-top: 7rem;
    overflow: hidden;
    background: #1a1b2e;
    position: relative;
    border-top: 1px solid #000000;
}

.reviews-container {
    width: 100%;
    position: relative;
    padding: 1.5rem 0;
    --mask-width: 250px;
}

/* Edge Fades */
.reviews-container::before,
.reviews-container::after {
    content: "";
    position: absolute;
    top: 0;
    width: var(--mask-width);
    height: 100%;
    z-index: 5;
    pointer-events: none;
}

.reviews-container::before {
    left: 0;
    background: linear-gradient(to right, #1a1b2e, transparent);
}

.reviews-container::after {
    right: 0;
    background: linear-gradient(to left, #1a1b2e, transparent);
}

.reviews-track {
    display: flex;
    width: fit-content;
    gap: 2.5rem;
    will-change: transform;
}

.review-card {
    flex-shrink: 0;
    width: 500px;
    background: #1f2129;
    /* Lighter charcoal gray for better contrast */
    border: 1.5px solid #ff3c5c;
    border-radius: 15px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    cursor: default;
}

/* Hover feedback matching feature slots */
.review-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
}

.review-author {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.author-pfp {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.author-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    /* Pure white */
}

.review-stars {
    color: #ff3c5c;
    /* Exact Top.gg Pink/Red */
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.review-date {
    font-size: 0.85rem;
    color: #9ca3af;
    /* Muted gray */
    margin-left: 0.5rem;
}

.review-text {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #ffffff;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.review-footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #9ca3af;
    font-size: 0.9rem;
}

.like-icon {
    width: 18px;
    height: 18px;
}

/* --- Top.gg Button Style (Shared but placed here for containment) --- */
.btn-topgg {
    background: #ff3c5c !important;
    border: none !important;
    color: #ffffff !important;
    box-shadow: 0 10px 20px rgba(255, 60, 92, 0.3) !important;
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 2.2rem;
    font-weight: 700;
    border-radius: 12px;
    border: 1.5px solid #000000 !important;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    text-decoration: none;
}

.btn-topgg:hover {
    background-color: #e03551 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(255, 60, 92, 0.4) !important;
}

.topgg-logo-mini {
    height: 28px;
    width: 28px;
    object-fit: contain;
    margin-right: 12px;
    flex-shrink: 0;
}

/* Reviews banner */
.reviews-banner {
    display: flex;
    justify-content: center;
    padding: 0 0 1.5rem;
}

.reviews-banner img {
    height: 80px;
    width: auto;
    max-width: 400px;
}

/* Reviews CTA (Top.gg button centered below marquee) */
.reviews-cta {
    display: flex;
    justify-content: center;
    padding: 1rem 0 0;
    position: relative;
    z-index: 10;
}

.reviews-cta .btn-topgg {
    background: #ff3c5c !important;
    color: #ffffff !important;
    box-shadow: 0 10px 30px rgba(255, 60, 92, 0.3) !important;
}

.reviews-cta .btn-topgg:hover {
    background-color: #e03551 !important;
    box-shadow: 0 8px 25px rgba(255, 60, 92, 0.4) !important;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

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

@media (max-width: 768px) {
    .reviews {
        padding: 6rem 0;
    }

    .reviews-track {
        gap: 1rem;
    }

    .review-card {
        width: 250px;
        padding: 1rem;
    }

    .review-text {
        font-size: 0.9rem;
    }

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

    .author-pfp {
        width: 40px;
        height: 40px;
    }

    .reviews-container {
        --mask-width: 60px;
    }
}