/* ═══════════════════════════════════════════════════════
   REVIEW PAGE STYLES — BetRankGH
   ═══════════════════════════════════════════════════════ */

/* ─── Loading state ─── */
.review-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    color: var(--muted);
}
.loading-spinner {
    width: 40px; height: 40px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Breadcrumb ─── */
.rv-breadcrumb {
    padding: 20px 0 8px;
    font-size: 0.85rem;
    color: var(--muted);
}
.rv-breadcrumb a { color: var(--accent); text-decoration: none; }
.rv-breadcrumb a:hover { text-decoration: underline; }
.rv-breadcrumb span { margin: 0 6px; }
.rv-breadcrumb .current { color: var(--text-primary); }

/* ═══════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════ */
.review-hero {
    background: linear-gradient(145deg, rgba(45,184,76,0.08) 0%, rgba(15,23,42,0) 60%);
    border-bottom: 1px solid var(--card-border);
    padding: 48px 0 40px;
}
.rv-hero-inner {
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.rv-hero-brand {
    display: flex;
    align-items: center;
    gap: 20px;
}
.rv-hero-logo {
    width: 72px; height: 72px;
    border-radius: 16px;
    object-fit: contain;
    background: rgba(255,255,255,0.06);
    padding: 6px;
}
.rv-hero-fallback {
    width: 72px; height: 72px;
    border-radius: 16px;
    background: var(--accent);
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}
.rv-hero-name {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
}
.rv-hero-tagline {
    color: var(--muted);
    font-size: 1rem;
    margin: 4px 0 0;
}

/* ─── Stats row ─── */
.rv-hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.rv-stat-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}
.rv-stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}
.rv-stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}
.rv-stat-bonus { color: var(--green); }

/* ─── Rating ring ─── */
.rv-rating-ring { position: relative; width: 56px; height: 56px; }
.rv-rating-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.rv-ring-bg {
    fill: none; stroke: rgba(255,255,255,0.08); stroke-width: 3;
}
.rv-ring-fill {
    fill: none; stroke: var(--green); stroke-width: 3;
    stroke-linecap: round;
    transition: stroke-dasharray 0.8s ease;
}
.rv-ring-text {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; font-weight: 800; color: var(--green);
}

/* ─── CTA ─── */
.rv-cta {
    display: inline-block;
    background: var(--green);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    padding: 16px 32px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}
.rv-cta:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(45,184,76,0.35);
}

/* ═══════════════════════════════════════════════════════
   TOC
   ═══════════════════════════════════════════════════════ */
.rv-toc {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 0;
    overflow-x: auto;
    border-bottom: 1px solid var(--card-border);
    margin-bottom: 32px;
    scrollbar-width: none;
}
.rv-toc::-webkit-scrollbar { display: none; }
.rv-toc-label {
    font-size: 0.8rem;
    color: var(--muted);
    white-space: nowrap;
    font-weight: 600;
}
.rv-toc a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 8px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--card-border);
    white-space: nowrap;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.rv-toc a:hover {
    background: rgba(45,184,76,0.1);
    color: var(--accent);
    border-color: var(--accent);
}

/* ═══════════════════════════════════════════════════════
   BODY LAYOUT (main + sidebar)
   ═══════════════════════════════════════════════════════ */
.rv-body {
    display: grid;
    grid-template-columns: 1fr 340px; /* Widened sidebar slightly */
    gap: 50px;
    padding-bottom: 80px;
}
.rv-main { min-width: 0; }

/* ─── Section base ─── */
.rv-section {
    margin-bottom: 50px;
    scroll-margin-top: 100px;
}
.rv-section h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 25px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--card-border);
}

/* ─── VERDICT CALLOUT ─── */
.verdict-callout {
    background: rgba(45,184,76,0.06);
    border: 1px solid rgba(45,184,76,0.3);
    border-radius: 14px;
    padding: 25px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.verdict-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}
.verdict-header i {
    color: var(--accent);
    font-size: 1.8rem;
}
.verdict-header h3 {
    margin: 0;
    color: white;
    font-size: 1.3rem;
}
.verdict-callout p {
    color: var(--text-primary);
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0;
    font-weight: 400;
}

/* ─── HANDS-ON TESTING GRID ─── */
.hands-on-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.hands-on-step {
    display: flex;
    gap: 20px;
    background: var(--card-bg);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    transition: transform 0.2s, border-color 0.2s;
}
.hands-on-step:hover {
    border-color: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}
/* Highlight the first step (Withdrawals) */
.highlight-step {
    border-color: rgba(45,184,76,0.4);
    background: linear-gradient(145deg, rgba(45,184,76,0.05) 0%, rgba(15,23,42,0) 100%);
}
.step-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    background: rgba(0,0,0,0.3);
    border: 2px solid var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.step-icon i {
    color: var(--accent);
    font-size: 1.5rem;
}
.step-text h3 {
    color: white;
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.15rem;
}
.step-text p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ─── Pros & Cons ─── */
.rv-proscons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.rv-pros-block, .rv-cons-block {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 20px;
}
.rv-pros-block h3, .rv-cons-block h3 {
    font-size: 1rem;
    margin: 0 0 16px;
}
.rv-procon-item {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.rv-procon-item:last-child { border-bottom: none; }
.rv-procon-item strong {
    display: block;
    margin-bottom: 4px;
    font-size: 0.95rem;
}
.rv-pro strong { color: var(--green); }
.rv-con strong { color: #f87171; }
.rv-procon-item p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ─── Bonus card ─── */
.rv-bonus-card {
    background: linear-gradient(135deg, rgba(45,184,76,0.1), rgba(15,23,42,0.5));
    border: 1px solid rgba(45,184,76,0.3);
    border-radius: 16px;
    padding: 28px;
}
.rv-bonus-headline {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--green);
    margin-bottom: 20px;
    text-align: center;
}
.rv-bonus-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.rv-bonus-grid > div {
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
    padding: 12px;
}
.rv-bl {
    display: block;
    font-size: 0.75rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}
.rv-bonus-grid strong {
    font-size: 0.9rem;
    color: var(--text-primary);
}

/* ═══════════════════════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════════════════════ */
.rv-sidebar-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.rv-sidebar-sticky { 
    position: sticky; 
    top: 100px; 
}
.rv-sidebar-logo {
    width: 64px; height: 64px;
    border-radius: 12px;
    object-fit: contain;
    background: rgba(255,255,255,0.06);
    padding: 6px;
    margin-bottom: 15px;
}
.rv-sidebar-rating {
    font-size: 2rem;
    font-weight: 800;
    color: var(--green);
    margin-bottom: 10px;
}
.rv-sidebar-facts {
    list-style: none;
    padding: 0;
    width: 100%;
    text-align: left;
}
.rv-sidebar-facts li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 0.9rem;
}
.rv-sidebar-facts li:last-child { border-bottom: none; }
.rv-sidebar-facts li span { 
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 6px;
}
.rv-sidebar-facts li span i {
    color: var(--accent);
}
.rv-sidebar-facts li strong { color: white; }

/* ─── Error hero ─── */
.review-hero--error {
    text-align: center;
    padding: 80px 0;
}
.review-hero--error h1 { font-size: 2rem; margin-bottom: 12px; }
.review-hero--error p { margin-bottom: 24px; color: var(--muted); }

/* ═══════════════════════════════════════════════════════
   AUTHOR BYLINE
   ═══════════════════════════════════════════════════════ */
.rv-author {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid var(--card-border);
    margin-bottom: 0;
}
.rv-author-avatar {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green), #1a7a3a);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.rv-author-info {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
    font-size: 0.88rem;
}
.rv-author-label { color: var(--muted); font-size: 0.8rem; }
.rv-author-name { color: var(--text-primary); font-weight: 700; font-size: 0.92rem; }
.rv-author-meta { color: var(--muted); font-size: 0.8rem; }

/* ═══════════════════════════════════════════════════════
   SCREENSHOT CAROUSEL
   ═══════════════════════════════════════════════════════ */
.rv-carousel-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
}
.rv-carousel-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 15px 0;
    scrollbar-width: none;
}
.rv-carousel-track::-webkit-scrollbar { display: none; }

.rv-carousel-slide {
    flex: 0 0 220px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.rv-phone-frame {
    width: 220px;
    height: 400px;
    border-radius: 28px;
    border: 4px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.5);
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.rv-phone-frame::before {
    content: '';
    position: absolute;
    top: 10px; left: 50%;
    transform: translateX(-50%);
    width: 50px; height: 6px;
    background: rgba(255,255,255,0.2);
    border-radius: 6px;
    z-index: 2;
}
.rv-phone-frame img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.rv-carousel-caption {
    font-size: 0.9rem;
    color: var(--muted);
    text-align: center;
    margin: 0;
}

.rv-carousel-btn {
    flex-shrink: 0;
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    color: var(--accent);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 2;
}
.rv-carousel-btn:hover {
    background: var(--accent);
    color: var(--dark-bg);
    border-color: var(--accent);
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */
@media (max-width:1024px) {
    .rv-body {
        grid-template-columns: 1fr;
    }
    .rv-sidebar-sticky { position: static; }
}
@media (max-width:768px) {
    .rv-hero-stats { grid-template-columns: repeat(2, 1fr); }
    .rv-proscons-grid { grid-template-columns: 1fr; }
    .rv-bonus-grid { grid-template-columns: 1fr; }
    .rv-hero-name { font-size: 1.5rem; }
    .hands-on-step { flex-direction: column; gap: 15px; }
}
@media (max-width:480px) {
    .rv-hero-stats { grid-template-columns: 1fr 1fr; }
    .rv-carousel-btn { display: none; }
    .rv-carousel-slide { flex: 0 0 180px; }
    .rv-phone-frame { width: 180px; height: 320px; }
}
/* ═══════════════════════════════════════════════════════
   DEEP-DIVE TESTING CARDS
   ═══════════════════════════════════════════════════════ */
.deep-dive-grid {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.dd-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    overflow: hidden; /* Keeps the bottom experience box neatly contained */
    transition: transform 0.2s, border-color 0.2s;
}

.dd-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.dd-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.dd-header i {
    font-size: 1.6rem;
    color: var(--accent);
}

.dd-header h3 {
    margin: 0;
    font-size: 1.3rem;
    color: white;
}

/* ─── Facts vs Image Layout ─── */
.dd-body {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Split Facts and Image 50/50 */
    gap: 25px;
    padding: 25px;
}

.dd-facts h4 {
    margin: 0 0 15px 0;
    font-size: 1rem;
    color: white;
}

.dd-fact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dd-fact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.dd-fact-list i {
    color: var(--green);
    font-size: 1.1rem;
    margin-top: 2px;
}

.dd-image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

.dd-image-wrap img {
    width: 100%;
    max-height: 250px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* ─── Our Experience Box (At the bottom) ─── */
.dd-experience {
    background: linear-gradient(145deg, rgba(45,184,76,0.08) 0%, rgba(15,23,42,0) 100%);
    border-top: 1px solid rgba(45,184,76,0.2);
    padding: 20px 25px;
}

.dd-exp-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.dd-exp-head i {
    color: var(--green);
    font-size: 1.2rem;
}

.dd-exp-head strong {
    color: var(--green);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dd-experience p {
    margin: 0;
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 1rem;
}

/* ─── Mobile Adjustments for Deep Dive ─── */
@media (max-width: 768px) {
    .dd-body {
        grid-template-columns: 1fr; /* Stacks image under facts on mobile */
    }
    .dd-image-wrap img {
        max-height: 200px;
    }
}
/* ─── MOBILE STICKY CLAIM BONUS BAR ─── */
@media (max-width: 768px) {
    .rv-mobile-sticky-cta {
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translate3d(-50%, 150%, 0);
        z-index: 900;
        width: 92%;
        max-width: 480px;
        background: #0b1210;
        border: 1px solid var(--accent);
        border-radius: 50px;
        padding: 10px 16px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        box-shadow: 0 10px 30px rgba(0,0,0,0.8);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        visibility: hidden;
        backface-visibility: hidden;
        -webkit-font-smoothing: antialiased;
    }
    .rv-mobile-sticky-cta.visible {
        transform: translate3d(-50%, 0, 0);
        visibility: visible;
    }
    .rv-sticky-cta-content {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    .rv-sticky-cta-icon {
        background: #fff;
        width: 38px;
        height: 38px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        padding: 4px;
        overflow: hidden;
    }
    .rv-sticky-cta-text {
        display: flex;
        flex-direction: column;
    }
    .rv-sticky-cta-text strong {
        color: #fff;
        font-size: 0.95rem;
        line-height: 1.2;
        white-space: nowrap;
    }
    .rv-sticky-cta-text span {
        color: var(--accent);
        font-size: 0.8rem;
        font-weight: 700;
        white-space: nowrap;
    }
    .rv-sticky-cta-button {
        background: var(--accent);
        color: #fff;
        text-decoration: none;
        padding: 10px 20px;
        border-radius: 30px;
        font-weight: 800;
        font-size: 0.9rem;
        white-space: nowrap;
    }
    
    /* Give the page some extra padding at the bottom so text isn't hidden behind the button */
    .rv-body {
        padding-bottom: 80px; 
    }

    /* Push the Jump-to-Top button up slightly so it doesn't overlap the new green bar */
    #jumpTop {
        bottom: 90px !important;
    }
}

/* Hide the mobile CTA on desktop */
@media (min-width: 769px) {
    .rv-mobile-sticky-cta {
        display: none !important;
    }
}