/**
 * IB Math Master — Reviews
 * Page-specific CSS (sections unique to reviews page)
 *
 * Requires: tokens.css, shared.css
 * Astra owns: body, headings, links, primary buttons, container
 */

/* =========================================
   HERO — Reviews Variant
   (Grid structure in shared.css)
   ========================================= */
.ib-hero {
    background: linear-gradient(135deg, var(--ib-navy) 0%, var(--ib-navy-light) 50%, #1e4a7a 100%);
    overflow: hidden;
    padding: var(--ib-section-pad-hero);
    position: relative;
}
.ib-hero::before {
    background: radial-gradient(circle, rgba(56, 189, 248, 0.08) 0%, transparent 65%);
    border-radius: var(--ib-radius-circle);
    content: '';
    height: 400px;
    position: absolute;
    right: -60px;
    top: -100px;
    width: 400px;
}
.ib-hero::after {
    background: radial-gradient(circle, rgba(56, 189, 248, 0.05) 0%, transparent 65%);
    border-radius: var(--ib-radius-circle);
    bottom: -40px;
    content: '';
    height: 250px;
    left: 8%;
    position: absolute;
    width: 250px;
}
.ib-hero h1 {
    color: var(--ib-white);
    margin-bottom: var(--ib-space-16);
}
.ib-hero h1 span {
    color: var(--ib-accent);
}
.ib-hero-badge {
    background: rgba(56, 189, 248, 0.12);
    border-radius: var(--ib-space-6);
    color: #7dd3fc;
    display: inline-block;
    font-size: var(--ib-font-size-sm);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: var(--ib-space-20);
    padding: var(--ib-space-6) var(--ib-space-16);
    text-transform: uppercase;
}
.ib-hero-text {
    color: rgba(255, 255, 255, 0.72);
    font-size: var(--ib-font-size-body);
    line-height: 1.65;
    margin-bottom: 0;
}
.ib-hero-text a {
    color: var(--ib-accent);
}
.ib-hero-text a:hover {
    color: var(--ib-white);
}

/* Hero proof card */
.ib-proof-card {
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--ib-radius-md);
    grid-column: 2;
    grid-row: 1 / 3;
    padding: var(--ib-space-28) var(--ib-space-24);
}
.ib-proof-row {
    align-items: center;
    display: flex;
    justify-content: space-between;
    padding: var(--ib-space-14) 0;
}
.ib-proof-row:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.ib-proof-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    font-weight: 500;
}
.ib-proof-value {
    color: var(--ib-white);
    font-size: var(--ib-font-size-base);
    font-weight: 700;
}
.ib-proof-value.ib-accent {
    color: var(--ib-accent);
}

/* =========================================
   CASE STUDIES
   ========================================= */
.ib-cases {
    background: var(--ib-light);
    padding: var(--ib-section-pad) 0;
}
.ib-cases-header {
    margin-bottom: var(--ib-space-48);
}
.ib-cases-header h2 {
    margin-bottom: var(--ib-space-10);
}
.ib-cases-header p {
    color: var(--ib-text-muted);
    font-size: var(--ib-font-size-md);
    max-width: 560px;
}
.ib-cases-stack {
    display: flex;
    flex-direction: column;
    gap: var(--ib-space-24);
}
.ib-case-card {
    background: var(--ib-white);
    border: 1px solid var(--ib-border);
    border-radius: var(--ib-space-14);
    overflow: hidden;
}
.ib-case-inner {
    display: grid;
    gap: 0;
    grid-template-columns: 1fr 260px;
}
.ib-case-content {
    padding: var(--ib-space-32) var(--ib-space-28);
}
.ib-case-tag {
    background: rgba(28, 64, 112, 0.06);
    border-radius: var(--ib-space-4);
    color: var(--ib-navy-light);
    display: inline-block;
    font-size: var(--ib-font-size-xs);
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: var(--ib-space-12);
    padding: var(--ib-space-4) var(--ib-space-12);
    text-transform: uppercase;
}
.ib-case-content h3 {
    font-size: var(--ib-font-size-xl);
    font-weight: 700;
    margin-bottom: var(--ib-space-4);
}
.ib-case-detail {
    color: var(--ib-text-muted);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: var(--ib-space-16);
}
.ib-case-content p {
    color: var(--ib-text-secondary);
    font-size: var(--ib-font-size-base);
    line-height: 1.7;
    margin-bottom: var(--ib-space-12);
}
.ib-case-content p:last-of-type {
    margin-bottom: 0;
}

/* Case sidebar — grade variant */
.ib-case-sidebar {
    align-items: center;
    background: linear-gradient(135deg, var(--ib-navy-light), #225484);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--ib-space-32) var(--ib-space-24);
    text-align: center;
}
.ib-case-grade {
    align-items: center;
    display: flex;
    gap: var(--ib-space-12);
    margin-bottom: var(--ib-space-16);
}
.ib-case-grade-num {
    color: var(--ib-white);
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
}
.ib-case-grade-arrow {
    color: rgba(255, 255, 255, 0.4);
    font-size: 24px;
}
.ib-case-grade-num.ib-highlight {
    color: var(--ib-accent);
}
.ib-case-grade-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-weight: 500;
}
.ib-case-quote {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    font-style: italic;
    line-height: 1.6;
    margin-top: var(--ib-space-8);
    padding-top: var(--ib-space-16);
}
.ib-case-quote cite {
    color: rgba(255, 255, 255, 0.5);
    display: block;
    font-size: var(--ib-font-size-sm);
    font-style: normal;
    font-weight: 600;
    margin-top: var(--ib-space-6);
}

/* Case sidebar — IA variant */
.ib-case-sidebar-ia {
    background: linear-gradient(135deg, var(--ib-navy-light), #225484);
    display: flex;
    flex-direction: column;
    gap: var(--ib-space-16);
    justify-content: center;
    padding: var(--ib-space-28) var(--ib-space-24);
}
.ib-ia-metric {
    text-align: center;
}
.ib-ia-metric-label {
    color: rgba(255, 255, 255, 0.45);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: var(--ib-space-4);
    text-transform: uppercase;
}
.ib-ia-metric-value {
    color: var(--ib-white);
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
}
.ib-ia-metric-value span {
    color: var(--ib-accent);
}
.ib-case-sidebar-ia .ib-case-quote {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--ib-space-14);
}

/* Case sidebar — quote variant */
.ib-case-sidebar-quote {
    background: linear-gradient(135deg, var(--ib-navy-light), #225484);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--ib-space-32) var(--ib-space-24);
    text-align: center;
}
.ib-case-sidebar-quote .ib-case-quote {
    border-top: none;
    font-size: var(--ib-font-size-base);
    margin-top: 0;
    padding-top: 0;
}
.ib-case-pass {
    color: var(--ib-accent);
    font-size: var(--ib-font-size-md);
    font-weight: 700;
    margin-bottom: var(--ib-space-12);
}

/* =========================================
   REVIEWS GRID
   ========================================= */
.ib-reviews {
    background: var(--ib-white);
    padding: var(--ib-section-pad) 0;
}
.ib-reviews-header {
    margin-bottom: var(--ib-space-48);
}
.ib-reviews-header h2 {
    margin-bottom: var(--ib-space-10);
}
.ib-reviews-header p {
    color: var(--ib-text-muted);
    font-size: var(--ib-font-size-md);
    max-width: 560px;
}
.ib-reviews-grid {
    display: grid;
    gap: var(--ib-space-20);
    grid-template-columns: repeat(3, 1fr);
}
.ib-review-card {
    background: var(--ib-white);
    border: 1px solid var(--ib-border);
    border-radius: var(--ib-radius-sm);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: var(--ib-space-28) var(--ib-space-24);
    position: relative;
    transition: box-shadow var(--ib-transition-fast);
}
.ib-review-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 20px rgba(15, 42, 92, 0.08);
}
.ib-review-card::before {
    color: rgba(28, 64, 112, 0.045);
    content: '\201C';
    font-family: Georgia, serif;
    font-size: 72px;
    font-weight: 800;
    line-height: 1;
    pointer-events: none;
    position: absolute;
    right: 18px;
    top: 10px;
}
.ib-review-card.ib-ai::before {
    color: rgba(99, 102, 241, 0.045);
}
.ib-review-card.ib-pre::before {
    color: rgba(148, 163, 184, 0.06);
}
.ib-review-subject {
    background: rgba(28, 64, 112, 0.06);
    border-radius: 5px;
    color: var(--ib-navy-light);
    display: inline-block;
    font-size: var(--ib-font-size-xs);
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: var(--ib-space-14);
    padding: 5px var(--ib-space-14);
    text-transform: uppercase;
    width: fit-content;
}
.ib-review-card.ib-ai .ib-review-subject {
    background: rgba(99, 102, 241, 0.07);
    color: var(--ib-course-ai-hl);
}
.ib-review-card.ib-pre .ib-review-subject {
    background: rgba(100, 116, 139, 0.07);
    color: var(--ib-text-muted);
}
.ib-review-text {
    color: var(--ib-text-secondary);
    flex: 1;
    font-size: var(--ib-font-size-base);
    line-height: 1.7;
    margin-bottom: 18px;
}
.ib-review-footer {
    align-items: center;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    padding-top: var(--ib-space-14);
}
.ib-review-name {
    color: var(--ib-navy);
    font-size: 14px;
    font-weight: 700;
}
.ib-review-meta {
    color: var(--ib-text-muted);
    font-size: var(--ib-font-size-sm);
    font-weight: 600;
}


/* =========================================
   FAQ — shared.css handles entirely
   ========================================= */

/* =========================================
   FINAL CTA — shared.css handles entirely
   ========================================= */

/* =========================================
   RESPONSIVE — 1024px
   ========================================= */
@media (max-width: 1024px) {
    .ib-proof-card {
        grid-column: 1;
        grid-row: 2;
        max-width: 380px;
    }
    .ib-reviews-grid {
        grid-template-columns: 1fr 1fr;
    }
    .ib-case-inner {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   RESPONSIVE — 768px
   ========================================= */
@media (max-width: 768px) {
    .ib-hero-grid {
        display: flex;
        flex-direction: column;
    }
    .ib-hero-content-top {
        order: 1;
    }
    .ib-proof-card {
        order: 2;
    }
    .ib-reviews-grid {
        grid-template-columns: 1fr;
    }
    .ib-case-grade-num {
        font-size: 36px;
    }
}
