/* ==========================================================================
   Perfect Game - stats guide (Stats/StatsGuide.aspx).
   Shares the tokens declared in StatsV2.css.
   ========================================================================== */

/* ── Base tokens ── */
.sg-page { font-family: 'Source Sans 3', -apple-system, sans-serif; color: var(--sg-text); }
.sg-page h1, .sg-page h2, .sg-page h3, .sg-page h4 { font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: 0.02em; }

/* ── Hero ── */
.sg-hero {
    background: var(--sg-dark);
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(64,168,76,0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(64,168,76,0.08) 0%, transparent 60%);
    padding: 80px 0 70px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.sg-hero::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--sg-green), transparent);
}
.sg-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(64,168,76,0.15);
    border: 1px solid rgba(64,168,76,0.3);
    border-radius: 50px;
    padding: 8px 24px;
    color: var(--sg-green);
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 28px;
}
.sg-hero-badge i { font-size: 16px; }
.sg-hero h1 {
    color: #fff;
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    margin: 0 0 16px;
    line-height: 1.1;
}
.sg-hero h1 span { color: var(--sg-green); }
.sg-hero-sub {
    color: rgba(255,255,255,0.65);
    font-size: 18px;
    font-weight: 300;
    max-width: 540px;
    margin: 0 auto 36px;
    line-height: 1.6;
}
.sg-btn-primary {
    display: inline-block;
    background: var(--sg-green);
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 14px 40px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.25s ease;
}
.sg-btn-primary:hover { background: var(--sg-green-hover); color: #fff; transform: translateY(-2px); box-shadow: 0 4px 16px rgba(64,168,76,0.35); text-decoration: none; }
.sg-btn-outline {
    display: inline-block;
    border: 2px solid var(--sg-green);
    color: var(--sg-green);
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 12px 40px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.25s ease;
}
.sg-btn-outline:hover { background: var(--sg-green); color: #fff; text-decoration: none; transform: translateY(-2px); }

/* ── Section commons ── */
.sg-section { padding: 70px 0; }
.sg-section-alt { background: var(--sg-light); }
.sg-section-title {
    text-align: center;
    font-size: clamp(26px, 3.5vw, 36px);
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--sg-dark);
}
.sg-section-subtitle {
    text-align: center;
    color: var(--sg-muted);
    font-size: 16px;
    font-weight: 400;
    max-width: 560px;
    margin: 0 auto 48px;
    line-height: 1.6;
}

/* ── Feature cards ── */
.sg-feature-card {
    background: #fff;
    border-radius: var(--sg-radius);
    box-shadow: var(--sg-shadow);
    padding: 36px 28px 28px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}
.sg-feature-card:hover { box-shadow: var(--sg-shadow-hover); transform: translateY(-4px); }
.sg-feature-card.sg-plus-feature::before {
    content: 'DK+';
    position: absolute;
    top: 12px; right: 12px;
    background: var(--sg-green);
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    padding: 3px 10px;
    border-radius: 4px;
}
.sg-feature-icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
    color: #fff;
}
.sg-icon-green { background: linear-gradient(135deg, var(--sg-green), #2d8a38); }
.sg-icon-dark { background: linear-gradient(135deg, var(--sg-dark), #555); }
.sg-icon-blue { background: linear-gradient(135deg, #2b7ccc, #1a5fa0); }
.sg-icon-amber { background: linear-gradient(135deg, #d4930a, #b07a08); }
.sg-feature-card h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--sg-dark);
}
.sg-feature-card p {
    font-size: 14px;
    color: var(--sg-muted);
    line-height: 1.65;
    flex-grow: 1;
}
.sg-card-action { margin-top: 16px; padding-top: 16px; border-top: 1px solid #eee; }
.sg-card-action a {
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.2s;
}
.sg-tryit { color: var(--sg-green); }
.sg-tryit:hover { color: var(--sg-green-hover); text-decoration: none; }
.sg-tryit i { margin-left: 6px; transition: transform 0.2s; }
.sg-tryit:hover i { transform: translateX(3px); }
.sg-locked { color: var(--sg-muted); }
.sg-locked:hover { color: var(--sg-green); text-decoration: none; }
.sg-locked i.fa-lock { margin-right: 6px; font-size: 12px; }

/* ── Accordion ── */
.sg-accordion .accordion-item {
    border: none;
    border-bottom: 1px solid #e5e5e5;
    background: transparent;
}
.sg-accordion .accordion-button {
    font-family: 'Oswald', sans-serif;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: var(--sg-dark);
    background: transparent;
    padding: 20px 0;
    box-shadow: none;
}
.sg-accordion .accordion-button:not(.collapsed) { color: var(--sg-green); background: transparent; }
.sg-accordion .accordion-button::after { filter: none; }
.sg-accordion .accordion-body {
    padding: 0 0 24px;
    font-size: 15px;
    color: #555;
    line-height: 1.75;
}
.sg-accordion .accordion-body strong { color: var(--sg-dark); font-weight: 600; }
.sg-accordion .sg-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
}
.sg-step-num {
    flex-shrink: 0;
    width: 28px; height: 28px;
    background: var(--sg-green);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    font-weight: 600;
}
.sg-stat-glossary { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.sg-stat-item { background: var(--sg-lighter); border-radius: 6px; padding: 14px 16px; }
.sg-stat-item strong { display: block; color: var(--sg-green); font-size: 15px; margin-bottom: 2px; }
.sg-stat-item span { font-size: 13px; color: #666; }
@media (max-width: 576px) { .sg-stat-glossary { grid-template-columns: 1fr; } }

/* ── Nav cards ── */
.sg-nav-card {
    display: flex;
    align-items: center;
    gap: 18px;
    background: #fff;
    border-radius: var(--sg-radius);
    box-shadow: var(--sg-shadow);
    padding: 22px 24px;
    text-decoration: none;
    color: var(--sg-text);
    transition: all 0.25s ease;
    border: 1px solid rgba(0,0,0,0.05);
    height: 100%;
}
.sg-nav-card:hover { box-shadow: var(--sg-shadow-hover); transform: translateY(-3px); text-decoration: none; color: var(--sg-text); border-color: var(--sg-green); }
.sg-nav-icon {
    flex-shrink: 0;
    width: 48px; height: 48px;
    border-radius: 12px;
    background: var(--sg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--sg-green);
    transition: all 0.25s;
}
.sg-nav-card:hover .sg-nav-icon { background: var(--sg-green); color: #fff; }
.sg-nav-card h4 { font-size: 16px; font-weight: 600; margin: 0 0 4px; color: var(--sg-dark); }
.sg-nav-card p { font-size: 13px; color: var(--sg-muted); margin: 0; line-height: 1.4; }
.sg-nav-arrow { margin-left: auto; color: #ccc; font-size: 16px; transition: all 0.25s; flex-shrink: 0; }
.sg-nav-card:hover .sg-nav-arrow { color: var(--sg-green); transform: translateX(4px); }

/* Informational tile variant — for cards that describe a destination users reach
   via context elsewhere (player ID, team ID, event ID), not a navigable link.
   No hover-lift, no chevron, lighter icon, makes the 2 real links stand out. */
.sg-nav-card--info {
    background: var(--sg-light);
    box-shadow: none;
    cursor: default;
}
.sg-nav-card--info:hover { box-shadow: none; transform: none; border-color: rgba(0,0,0,0.05); }
.sg-nav-card--info .sg-nav-icon { background: rgba(64, 168, 76, 0.10); color: var(--sg-green); opacity: 0.85; }
.sg-nav-card--info:hover .sg-nav-icon { background: rgba(64, 168, 76, 0.10); color: var(--sg-green); }
.sg-nav-card--info h4 { color: var(--sg-muted); font-weight: 500; }

/* ── FAQ ── */
.sg-faq .accordion-item { border: none; border-bottom: 1px solid #e5e5e5; background: transparent; }
.sg-faq .accordion-button {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--sg-dark);
    background: transparent;
    padding: 20px 0;
    box-shadow: none;
}
.sg-faq .accordion-button:not(.collapsed) { color: var(--sg-green); background: transparent; }
.sg-faq .accordion-body { padding: 0 0 20px; font-size: 15px; color: #555; line-height: 1.7; }

/* ── Animations ── */
@keyframes sg-fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.sg-animate { opacity: 0; animation: sg-fadeUp 0.5s ease forwards; }
.sg-delay-1 { animation-delay: 0.1s; }
.sg-delay-2 { animation-delay: 0.2s; }
.sg-delay-3 { animation-delay: 0.3s; }
.sg-delay-4 { animation-delay: 0.4s; }
.sg-delay-5 { animation-delay: 0.5s; }
.sg-delay-6 { animation-delay: 0.6s; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .sg-hero { padding: 50px 0 45px; }
    .sg-section { padding: 50px 0; }
    .sg-hero-sub { font-size: 16px; }
}

/* ── Hash-anchor scroll offset (breathing room above section header) ── */
.sg-page :target { scroll-margin-top: 90px; }

/* ── Sticky TOC (desktop right rail) ── */
.sg-toc {
    position: fixed;
    top: 50%;
    right: 24px;
    transform: translateY(-50%);
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--sg-radius);
    box-shadow: var(--sg-shadow);
    padding: 14px 16px;
    font-family: 'Source Sans 3', -apple-system, 'Helvetica Neue', Arial, sans-serif;
    font-size: 13px;
    max-width: 220px;
    opacity: 0;
    transform: translateY(-50%) translateX(12px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}
.sg-toc.is-visible {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
    pointer-events: auto;
}
.sg-toc-label {
    font-family: 'Oswald', 'Helvetica Neue', Arial, sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--sg-muted);
    margin: 0 0 8px;
}
.sg-toc ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.sg-toc a {
    display: block;
    padding: 6px 10px;
    margin: 2px 0;
    border-radius: 6px;
    color: var(--sg-dark);
    text-decoration: none;
    border-left: 2px solid transparent;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    line-height: 1.3;
}
.sg-toc a:hover {
    background: var(--sg-light);
    color: var(--sg-green);
    text-decoration: none;
}
.sg-toc a.is-active {
    background: rgba(64, 168, 76, 0.10);
    color: var(--sg-green);
    font-weight: 600;
    border-left-color: var(--sg-green);
}
@media (max-width: 1399px) {
    .sg-toc { display: none; }
}

/* ── Hover anchor-link affordance for How It Works headers ── */
.sg-accordion .accordion-item { position: relative; }
.sg-anchor-link {
    position: absolute;
    top: 22px;
    right: 56px; /* sit left of the bootstrap chevron */
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
    color: var(--sg-muted);
    font-family: 'Source Sans 3', monospace;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(-2px);
    transition: opacity 0.18s ease, transform 0.18s ease, color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
    text-decoration: none;
    z-index: 2;
}
.sg-accordion .accordion-item:hover .sg-anchor-link,
.sg-anchor-link:focus-visible {
    opacity: 1;
    transform: translateY(0);
}
.sg-anchor-link:hover,
.sg-anchor-link:focus-visible {
    color: var(--sg-green);
    border-color: var(--sg-green);
    background: rgba(64, 168, 76, 0.08);
    text-decoration: none;
    outline: none;
}
.sg-anchor-link.is-copied {
    color: var(--sg-green);
    border-color: var(--sg-green);
    background: rgba(64, 168, 76, 0.15);
    opacity: 1;
    transform: translateY(0);
}
@media (max-width: 575px) {
    .sg-anchor-link { display: none; } /* tap-friendly UI doesn't fit; deep links still work */
}

