/* =========================================================
   REVIEWS PAGE
========================================================= */

.reviews-page {
    min-height: 70vh;
    padding: 70px 20px 90px;
    background:
        linear-gradient(
            180deg,
            #f8fafc 0%,
            var(--tc-bg) 60%
        );
}

.reviews-container {
    width: min(100%, 1100px);
    margin: 0 auto;
}


/* =========================================================
   REVIEWS HERO
========================================================= */

.reviews-hero {
    max-width: 720px;
    margin: 0 auto 45px;
    text-align: center;
}

.reviews-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--tc-primary);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.reviews-hero h1 {
    margin: 0 0 12px;
    color: var(--tc-text);
    font-size: 2.6rem;
}

.reviews-hero p {
    margin: 0;
    color: var(--tc-text-secondary);
    line-height: 1.7;
}


/* =========================================================
   REVIEW GRID
========================================================= */

.public-review-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 24px;
}


/* =========================================================
   REVIEW CARD
========================================================= */

.public-review-card {
    display: flex;
    flex-direction: column;
    min-height: 280px;
    padding: 28px;
    background: var(--tc-surface);
    border: 1px solid var(--tc-border);
    border-radius: 18px;
    box-shadow: var(--tc-shadow);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.public-review-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--tc-shadow-lg);
}


/* =========================================================
   STARS
========================================================= */

.public-review-stars {
    display: flex;
    gap: 3px;
    margin-bottom: 18px;
}

.public-review-stars span {
    color: var(--tc-border-strong);
}

.public-review-stars span.filled {
    color: #f59e0b;
}


/* =========================================================
   REVIEW CONTENT
========================================================= */

.public-review-card blockquote {
    flex: 1;
    margin: 0 0 25px;
    color: var(--tc-text-secondary);
    line-height: 1.75;
}


/* =========================================================
   REVIEW AUTHOR
========================================================= */

.public-review-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 18px;
    border-top: 1px solid var(--tc-border);
}

.public-review-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 50%;
    background: #dbeafe;
    color: #2563eb;
    font-weight: 700;
}

.public-review-author strong,
.public-review-author span {
    display: block;
}

.public-review-author strong {
    color: var(--tc-text);
}

.public-review-author span {
    margin-top: 3px;
    color: var(--tc-text-muted);
    font-size: 0.78rem;
}


/* =========================================================
   EMPTY STATE
========================================================= */

.reviews-empty {
    max-width: 650px;
    margin: 0 auto;
    padding: 50px 30px;
    text-align: center;
    background: var(--tc-surface);
    border: 1px dashed var(--tc-border-strong);
    border-radius: 20px;
    box-shadow: var(--tc-shadow);
}

.reviews-empty h2 {
    margin: 0 0 10px;
    color: var(--tc-text);
}

.reviews-empty p {
    margin: 0 auto 22px;
    color: var(--tc-text-secondary);
    line-height: 1.7;
}


/* =========================================================
   BUTTON
========================================================= */

.reviews-btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 9999px;
    background: var(--tc-primary);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.reviews-btn:hover {
    background: var(--tc-primary-dark);
    transform: translateY(-2px);
}


/* =========================================================
   BOTTOM LINK
========================================================= */

.reviews-bottom {
    margin-top: 35px;
    text-align: center;
}

.reviews-bottom p {
    display: inline;
    color: var(--tc-text-secondary);
}

.reviews-bottom a {
    margin-left: 5px;
    color: var(--tc-primary);
    font-weight: 700;
    text-decoration: none;
}

.reviews-bottom a:hover {
    color: var(--tc-primary-dark);
}


/* =========================================================
   DARK THEME
========================================================= */

html[data-theme="dark"] .reviews-page {
    background:
        linear-gradient(
            180deg,
            #111827 0%,
            var(--tc-bg) 60%
        );
}

html[data-theme="dark"] .public-review-avatar {
    background: rgba(96, 165, 250, 0.16);
    color: #60a5fa;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 992px) {

    .public-review-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 700px) {

    .reviews-page {
        padding: 55px 16px 70px;
    }

    .reviews-hero h1 {
        font-size: 2rem;
    }

    .public-review-grid {
        grid-template-columns: 1fr;
    }

}