/**
 * Reviews Page Styles
 * Customer feedback and testimonials
 * Uses CSS variables from global.css
 */

/* ============================================
   Page Layout
   ============================================ */
.reviewsPage {
    padding: 40px 0 50px;
}

.reviewsPage .reviews-content h1 {
    font-weight: var(--font-semi);
    font-size: var(--text-3xl-lg);
    line-height: 150%;
    color: var(--text-tertiary);
    padding-bottom: var(--space-sm);
    text-align: center;
}

.reviews-subheadline {
        font-weight: 400;
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--text-gray-lighter);
    text-align: center;
    margin: 0;
}

.reviews-subheadline a {
    color: var(--primary-blue);
    text-decoration: underline;
}

.reviews-subheadline a:hover {
    text-decoration: none;
}

/* ============================================
   Review Tabs
   ============================================ */
.review-tabs {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
    justify-content: center;
    margin-top: 90px;
}

.review-tab {
    background: var(--bg-white);
    border: 2px solid var(--border-lighter);
    border-radius: var(--radius-md);
    padding: var(--space-sm) var(--space-lg);
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    height: 70px;
}

.review-tab:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 4px 12px rgba(6, 84, 230, 0.1);
    transform: translateY(-2px);
}

.review-tab.active {
    border-color: var(--primary-blue);
    background: var(--bg-light-blue);
    box-shadow: 0 4px 12px rgba(6, 84, 230, 0.15);
}

.tab-logo {
    transition: var(--transition-normal);
    object-fit: contain;
    max-width: 100%;
    height: auto;
}

/* ============================================
   Reviews Grid
   ============================================ */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    width: 100%;
    margin-bottom: var(--space-3xl);
}

.no-reviews {
    text-align: center;
    padding: var(--space-2xl) var(--space-md);
    color: var(--text-gray);
}

.no-reviews p {
    font-size: var(--text-base);
    margin: 0;
}

/* ============================================
   Review Card
   ============================================ */
.review-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    width: 100%;
    min-height: 274px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    flex-shrink: 0;
    border: 1px solid var(--border-lighter);
    display: flex;
    flex-direction: column;
}

.review-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: var(--space-sm);
}

.platform-name {
    flex-shrink: 0;
    font-size: var(--text-sm);
    font-weight: var(--font-semi);
    color: var(--text-tertiary);
}

/* ============================================
   Review Text
   ============================================ */
.review-text-wrapper {
    flex: 1;
    margin-bottom: var(--space-base);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.review-text {
    font-size: 12px;
    font-weight: var(--font-regular);
    line-height: 180%;
    color: var(--text-gray-light);
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    -webkit-box-orient: vertical;
}

.review-read-more {
    color: var(--primary-blue);
    font-weight: var(--font-semi);
    text-decoration: underline;
    white-space: nowrap;
    transition: var(--transition-fast);
    font-size: 12px;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.review-read-more:hover {
    color: var(--primary-blue-hover);
    text-decoration: none;
}

.review-read-more::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230654E6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.2s ease;
}

.review-read-more:hover::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231d4ed8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E");
    transform: translate(1px, -1px);
}

/* ============================================
   Review Footer
   ============================================ */
.review-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: var(--space-sm);
}

.author-info {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.author-avatar {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: var(--radius-circle);
    background: var(--primary-blue);
    color: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-semi);
    font-size: var(--text-sm);
}

.author-name {
    font-size: var(--text-sm);
    font-weight: var(--font-semi);
    line-height: 100%;
    color: var(--text-tertiary);
}

.review-date {
    font-size: 12px;
    font-weight: var(--font-regular);
    color: var(--text-gray);
}

/* ============================================
   CTA Section (Grades Matter)
   ============================================ */
.grades-matter {
    margin-top: 0;
    padding: 0;
}

.grades-matter-wrapper {
    padding: var(--space-2xl) 0;
    border-radius: var(--radius-md);
    background-color: var(--primary-blue);
    position: relative;
    overflow: hidden;
}

.grades-matter-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);
}

.grades-matter-wrapper p {
    font-weight: var(--font-semi);
    font-size: var(--text-2xl);
    line-height: 140%;
    color: var(--bg-white);
    text-align: center;
    margin: 0;
}

.grades-matter .custom-btn {
    background-color: var(--bg-white);
    color: var(--primary-blue);
    border-radius: var(--radius-full);
    padding: var(--space-sm) var(--space-lg);
    font-weight: var(--font-semi);
    font-size: var(--text-lg);
    transition: var(--transition-normal);
    white-space: nowrap;
}

.grades-matter .custom-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 991px) {
    .reviewsPage {
        padding: 50px 0;
    }

    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .grades-matter-inner {
        flex-wrap: wrap;
        gap: var(--space-lg);
    }
}

@media (max-width: 768px) {
    .review-tabs {
        gap: var(--space-xs);
        margin-top: var(--space-2xl);
    }

    .review-tab {
        padding: var(--space-sm) var(--space-md);
        min-width: 140px;
        height: 60px;
    }

    .tab-logo {
        max-width: 100px;
        height: auto;
    }

    .review-card {
        padding: var(--space-md);
        min-height: 260px;
    }

    .grades-matter-wrapper p {
        font-size: var(--text-xl);
    }
}

@media (max-width: 575px) {
    .reviewsPage .reviews-content h1 {
        font-size: var(--text-2xl);
    }

    .reviews-grid {
        grid-template-columns: 1fr;
        gap: var(--space-base);
    }

    .review-tabs {
        gap: 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
    }

    .review-tab {
        padding: var(--space-xs) var(--space-base);
        min-width: 120px;
        height: 55px;
    }

    .tab-logo {
        max-width: 90px;
        height: auto;
    }

    .review-card {
        padding: var(--space-base);
        min-height: 240px;
    }

    .grades-matter-inner {
        flex-direction: column;
        text-align: center;
    }

    .grades-matter-wrapper p {
        font-size: var(--text-lg);
    }
}
