/* public/css/reviews.css */

/* ═══════════════════════════════
   REVIEWS HERO SECTION
═══════════════════════════════ */
.reviews-hero {
    position: relative;
    padding: 50px 0 60px;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
    overflow: hidden;
    min-height: 50vh;
    display: flex;
    align-items: center;
    text-align: center;
}

/* Background Elements */
.rh-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}
.rh-blob-1 {
    width: 600px;
    height: 600px;
    background: rgba(40, 120, 255, 0.15);
    top: -200px;
    left: -100px;
    animation: rhFloat 15s ease-in-out infinite alternate;
}
.rh-blob-2 {
    width: 500px;
    height: 500px;
    background: rgba(16, 185, 129, 0.15);
    bottom: -150px;
    right: -100px;
    animation: rhFloat 12s ease-in-out infinite alternate-reverse;
}

@keyframes rhFloat {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

.rh-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(#cbd5e1 1.5px, transparent 1.5px);
    background-size: 30px 30px;
    opacity: 0.4;
    z-index: 1;
}

/* Content */
.rh-container {
    position: relative;
    z-index: 5;
    display: flex;
    justify-content: center;
}
.rh-content {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rh-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 24px;
    background: #ffffff;
    color: #2878FF;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(40, 120, 255, 0.1);
}
.rh-badge .badge-dot {
    width: 6px;
    height: 6px;
    background: #2878FF;
    border-radius: 50%;
}

.rh-title {
    font-size: 4rem;
    font-weight: 900;
    color: #111827;
    margin-bottom: 20px;
    line-height: 1.1;
}
.rh-title span {
    color: #2878FF;
}

.rh-subtitle {
    font-size: 1.15rem;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 650px;
}

/* Glassmorphic Rating Box */
.rh-rating-box.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 100px;
    padding: 15px 35px;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
    animation: rhSlideUp 1s ease forwards 0.3s;
    opacity: 0;
    transform: translateY(20px);
}

.rh-stars {
    display: flex;
    gap: 4px;
}
.rh-stars svg {
    width: 24px;
    height: 24px;
    filter: drop-shadow(0 2px 4px rgba(245, 158, 11, 0.3));
}
.rh-rating-text {
    font-size: 1.05rem;
    color: #475569;
}
.rh-rating-text strong {
    color: #111827;
    font-weight: 800;
    margin-right: 4px;
}

@keyframes rhSlideUp {
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .reviews-hero { padding: 80px 0 60px; }
    .rh-title { font-size: 2.8rem; }
    .rh-rating-box.glass-card { flex-direction: column; border-radius: 20px; padding: 20px; }
}

/* ═══════════════════════════════
   REVIEWS GRID SECTION
═══════════════════════════════ */
.reviews-grid-section {
    padding: 80px 0;
    background: #ffffff;
}
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}
.review-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f1f5f9;
}
.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.1);
}

/* ── Video Testimonials ── */
.video-review-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #000;
}
.rv-video-wrapper {
    position: relative;
    width: 100%;
    /* Square ratio */
    padding-top: 100%; 
    background: #000;
}
.rv-video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.rv-content {
    padding: 15px 20px;
    text-align: center;
    background: linear-gradient(135deg, #0b5edd 20%, #16b67c 100%);
    width: 100%;
    z-index: 10;
}
.rv-name {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ── Text Testimonials ── */
.text-review-card {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.rt-header {
    display: flex;
    align-items: center;
    gap: 15px;
}
.rt-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e2e8f0;
}
.rt-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2878FF, #60a5fa);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    border: 3px solid #e2e8f0;
}
.rt-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.rt-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}
.rt-stars {
    display: flex;
    gap: 2px;
}
.rt-stars svg {
    width: 16px;
    height: 16px;
}
.rt-content {
    flex-grow: 1;
}
.rt-desc {
    color: #475569;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    font-style: italic;
}
.no-reviews {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: #f8fafc;
    border-radius: 20px;
    color: #64748b;
    font-size: 1.2rem;
}
