/**
 * TNF Training - Google Reviews Section Styles
 * Modern, high-conversion Google Reviews UI component
 */

.tnf-google-reviews-section {
    padding-top: clamp(3.5rem, 6vw, 5.5rem);
    padding-bottom: clamp(3.5rem, 6vw, 5.5rem);
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.tnf-google-reviews-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(31, 43, 64, 0.12), transparent);
}

/* Header Area */
.tnf-gr-header {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 3rem;
}

.tnf-gr-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: #ffffff;
    border: 1px solid rgba(66, 133, 244, 0.25);
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #1a73e8;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.08);
    margin-bottom: 1rem;
}

.tnf-gr-eyebrow svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.tnf-gr-title {
    font-size: clamp(1.85rem, 3.2vw, 2.5rem);
    font-weight: 700;
    line-height: 1.25;
    color: #1e293b;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.tnf-gr-subtitle {
    font-size: clamp(1rem, 1.3vw, 1.125rem);
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Overall Rating Hero Badge Card */
.tnf-gr-summary-card {
    background: #ffffff;
    border: 1px solid rgba(31, 43, 64, 0.08);
    border-radius: 18px;
    padding: 1.5rem 2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
    margin-bottom: 2.5rem;
    position: relative;
}

.tnf-gr-summary-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 2rem;
    right: 2rem;
    height: 3px;
    background: linear-gradient(90deg, #4285f4 0%, #ea4335 33%, #fbbc05 66%, #34a853 100%);
    border-radius: 3px 3px 0 0;
}

.tnf-gr-summary-left {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.tnf-gr-google-badge {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tnf-gr-google-icon {
    width: 44px;
    height: 44px;
    padding: 6px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tnf-gr-google-icon svg {
    width: 28px;
    height: 28px;
}

.tnf-gr-score-wrap {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.tnf-gr-score-number {
    font-size: 2.25rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
}

.tnf-gr-score-out-of {
    font-size: 1.125rem;
    font-weight: 600;
    color: #94a3b8;
}

.tnf-gr-stars {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: #fbbc04;
    font-size: 1.1rem;
}

.tnf-gr-summary-meta {
    display: flex;
    flex-direction: column;
}

.tnf-gr-rating-label {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1e293b;
}

.tnf-gr-rating-count {
    font-size: 0.8125rem;
    color: #64748b;
}

.tnf-gr-summary-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.tnf-gr-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.6875rem 1.25rem;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.22s ease-in-out;
    cursor: pointer;
}

.tnf-gr-btn--primary {
    background: #1a73e8;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(26, 115, 232, 0.28);
}

.tnf-gr-btn--primary:hover {
    background: #1557b0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 115, 232, 0.35);
    color: #ffffff !important;
}

.tnf-gr-btn--outline {
    background: #ffffff;
    color: #334155 !important;
    border: 1px solid #cbd5e1;
}

.tnf-gr-btn--outline:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a !important;
    transform: translateY(-2px);
}

/* Reviews Grid */
.tnf-gr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

@media (min-width: 992px) {
    .tnf-gr-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Individual Review Card */
.tnf-gr-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 16px;
    padding: 1.75rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
    position: relative;
}

.tnf-gr-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
    border-color: rgba(66, 133, 244, 0.3);
}

.tnf-gr-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.tnf-gr-reviewer {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tnf-gr-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9375rem;
    color: #ffffff;
    flex-shrink: 0;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.tnf-gr-avatar--1 { background: linear-gradient(135deg, #4285f4, #1a73e8); }
.tnf-gr-avatar--2 { background: linear-gradient(135deg, #0d9488, #0f766e); }
.tnf-gr-avatar--3 { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.tnf-gr-avatar--4 { background: linear-gradient(135deg, #f59e0b, #d97706); }
.tnf-gr-avatar--5 { background: linear-gradient(135deg, #ec4899, #be185d); }
.tnf-gr-avatar--6 { background: linear-gradient(135deg, #10b981, #059669); }

.tnf-gr-reviewer-info {
    display: flex;
    flex-direction: column;
}

.tnf-gr-reviewer-name {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

.tnf-gr-reviewer-date {
    font-size: 0.75rem;
    color: #94a3b8;
}

.tnf-gr-card-g-badge {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    opacity: 0.9;
}

.tnf-gr-card-g-badge svg {
    width: 100%;
    height: 100%;
}

.tnf-gr-rating-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.75rem;
}

.tnf-gr-card-stars {
    display: inline-flex;
    gap: 2px;
    color: #fbbc04;
    font-size: 0.9375rem;
}

.tnf-gr-verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #16a34a;
    background: #f0fdf4;
    padding: 2px 7px;
    border-radius: 4px;
}

.tnf-gr-verified svg {
    width: 12px;
    height: 12px;
}

.tnf-gr-course-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #0284c7;
    background: #e0f2fe;
    padding: 3px 9px;
    border-radius: 6px;
    margin-bottom: 0.85rem;
    width: fit-content;
}

.tnf-gr-card-body {
    flex-grow: 1;
    margin-bottom: 1rem;
}

.tnf-gr-comment {
    font-size: 0.90625rem;
    line-height: 1.6;
    color: #334155;
    margin-bottom: 0;
    font-style: normal;
}

.tnf-gr-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.85rem;
    border-top: 1px solid #f1f5f9;
    font-size: 0.75rem;
    color: #64748b;
}

.tnf-gr-platform-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    color: #475569;
}

.tnf-gr-view-link {
    color: #1a73e8;
    text-decoration: none !important;
    font-weight: 600;
    transition: color 0.15s ease;
}

.tnf-gr-view-link:hover {
    color: #1557b0;
    text-decoration: underline !important;
}

/* Bottom Trust Bar */
.tnf-gr-bottom-bar {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 14px;
    padding: 1.25rem 2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.tnf-gr-trust-items {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.75rem;
}

.tnf-gr-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
}

.tnf-gr-trust-item svg {
    color: #1a73e8;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.tnf-gr-view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #1a73e8;
    text-decoration: none !important;
    transition: gap 0.2s ease, color 0.2s ease;
}

.tnf-gr-view-all-btn:hover {
    color: #1557b0;
    gap: 12px;
}

@media (max-width: 768px) {
    .tnf-gr-summary-card {
        padding: 1.25rem;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .tnf-gr-summary-actions {
        width: 100%;
    }
    
    .tnf-gr-summary-actions .tnf-gr-btn {
        flex: 1;
        justify-content: center;
    }
    
    .tnf-gr-bottom-bar {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.25rem;
    }
    
    .tnf-gr-trust-items {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}
