/* ============================================================
   site-additions.css
   Phase 1 / Section A site-wide template additions.
   Brand tokens (kept consistent with existing inline CSS):
     --accent-purple: #503AA8
     --accent-yellow: #FFEE58
     --light-bg:      #F8F7FC
     --border:        #E8E5F0
   ============================================================ */

/* ---------- Trust ribbon (guides / reviews / legal) ---------- */
.trust-ribbon {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 6px;
    max-width: 1100px;
    margin: 1.2rem auto 1.8rem auto;
    padding: 16px 22px 14px 22px;
    background: linear-gradient(135deg, #ffffff 0%, #fbfaff 100%);
    border: 1px solid #e8e5f0;
    border-radius: 14px;
    box-shadow:
        0 1px 0 rgba(80, 58, 168, 0.04),
        0 4px 18px rgba(80, 58, 168, 0.07);
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.86rem;
    color: #2b2440;
    line-height: 1.5;
    overflow: hidden;
}

/* Animated gradient accent strip on top edge */
.trust-ribbon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #503AA8 0%, #7c5dd6 35%, #FFEE58 70%, #ffd93d 100%);
    opacity: 0.92;
}

.trust-ribbon .tr-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 8px;
    transition: background 0.18s ease, transform 0.18s ease;
}

.trust-ribbon .tr-item:hover {
    background: rgba(80, 58, 168, 0.06);
}

.trust-ribbon .tr-divider {
    color: #d4ccea;
    font-weight: 300;
    margin: 0 -1px;
    user-select: none;
}

.trust-ribbon .tr-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow:
        0 0 0 2px #503AA8,
        0 2px 8px rgba(80, 58, 168, 0.28);
    margin-right: 4px;
    transition: transform 0.2s ease;
}

.trust-ribbon .tr-item:hover .tr-avatar {
    transform: scale(1.05);
}

.trust-ribbon strong {
    color: #6e63a8;
    font-weight: 600;
    font-size: 0.72rem;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.trust-ribbon a {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 700;
    border-bottom: 2px solid transparent;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.trust-ribbon a:hover {
    color: #503AA8;
    border-bottom-color: #FFEE58;
}

.trust-ribbon time {
    font-weight: 700;
    color: #1a1a1a;
    font-variant-numeric: tabular-nums;
}

.trust-ribbon .tr-age {
    background: linear-gradient(135deg, #FFEE58 0%, #ffd93d 100%);
    color: #1a1a1a;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 0.76rem;
    letter-spacing: 0.6px;
    box-shadow: 0 2px 4px rgba(255, 215, 0, 0.25);
}

.trust-ribbon .tr-helpline {
    color: #503AA8;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* Inline icons via pseudo-elements (subtle, monochrome) */
.trust-ribbon .tr-item:nth-child(3) strong::before,
.trust-ribbon .tr-item:nth-child(5) strong::before {
    content: '✓';
    display: inline-block;
    color: #503AA8;
    font-weight: 800;
    margin-right: 4px;
    font-size: 0.85em;
}

.trust-ribbon .tr-item:nth-child(7) strong::before {
    content: '🕒';
    margin-right: 4px;
    font-size: 0.9em;
    filter: grayscale(0.4);
}

@media (max-width: 760px) {
    .trust-ribbon {
        font-size: 0.8rem;
        padding: 14px 14px 12px 14px;
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
    .trust-ribbon .tr-item {
        padding: 4px 6px;
        width: 100%;
    }
    .trust-ribbon .tr-divider {
        display: none;
    }
    .trust-ribbon::before {
        height: 2px;
    }
}

/* ---------- Te Reo / Pasifika / Asian helpline footer band ---------- */
.te-reo-block {
    background: linear-gradient(180deg, #15102b 0%, #0f0a22 100%);
    color: #efeaff;
    padding: 28px 0 26px 0;
    border-top: 1px solid #2a2440;
    border-bottom: 1px solid #2a2440;
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    position: relative;
}

.te-reo-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #FFEE58 50%, transparent 100%);
    opacity: 0.5;
}

.te-reo-block .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.te-reo-block h4 {
    color: #FFEE58;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 6px 0;
    letter-spacing: 0.2px;
}

.te-reo-block .te-reo-quote {
    font-style: italic;
    color: #c4b8e8;
    margin: 0 0 12px 0;
    font-size: 0.95rem;
}

.te-reo-block p {
    margin: 5px 0;
    font-size: 0.9rem;
    color: #d8d4e8;
    line-height: 1.65;
}

.te-reo-block strong {
    color: #fff;
}

.te-reo-block a {
    color: #FFEE58;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px dashed transparent;
    transition: border-color 0.15s;
}

.te-reo-block a:hover {
    border-bottom-color: #FFEE58;
}

/* ---------- Publisher / NZBN block (inside footer-bottom) ---------- */
.publisher-block {
    max-width: 1100px;
    margin: 14px auto 0 auto;
    padding: 14px 2rem 0 2rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.12);
    font-size: 0.78rem;
    color: #9990b8;
    line-height: 1.6;
    text-align: center;
}

.publisher-block strong {
    color: #efeaff;
    font-weight: 600;
}

.publisher-block a {
    color: #c4b8e8;
}

/* ============================================================
   Phase 1 / Section B — Homepage targeted additions
   ============================================================ */

/* ---------- Latest Playtest hero card ---------- */
.playtest-card {
    max-width: 760px;
    margin: 1.4rem auto 0 auto;
    padding: 18px 24px;
    background: linear-gradient(135deg, #1a1a2e, #15102b);
    border: 1px solid rgba(255,238,88,0.30);
    border-radius: 14px;
    color: #ffffff !important;
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.94rem;
    line-height: 1.7;
    text-align: left;
    box-shadow: 0 6px 24px rgba(0,0,0,0.22);
}
.playtest-card p,
.playtest-card li,
.playtest-card em,
.playtest-card span {
    color: #ffffff !important;
    margin-bottom: 0.55rem;
}
.playtest-card p:last-child { margin-bottom: 0; }
.playtest-card .pt-tag {
    display: inline-block;
    background: linear-gradient(135deg, #FFEE58, #ffd93d);
    color: #1a1a1a !important;
    font-weight: 800;
    font-size: 0.72rem;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 6px;
}
.playtest-card strong { color: #FFEE58 !important; font-weight: 700; }
.playtest-card a {
    color: #FFEE58 !important;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px dashed rgba(255,238,88,0.5);
}
.playtest-card a:hover { border-bottom-style: solid; }
.playtest-card em { font-style: italic; opacity: 0.9; }

/* ---------- Kiwi Trust Score badge (inline, used in lists / cards) ---------- */
.kts-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #503AA8, #7c5dd6);
    color: #fff;
    font-weight: 800;
    font-size: 0.78rem;
    padding: 3px 10px;
    border-radius: 50px;
    letter-spacing: 0.3px;
    margin-right: 8px;
    box-shadow: 0 2px 6px rgba(80,58,168,0.25);
    vertical-align: 1px;
    white-space: nowrap;
}
.kts-badge::before {
    content: 'KTS';
    font-size: 0.62rem;
    font-weight: 900;
    background: rgba(255,255,255,0.25);
    padding: 1px 5px;
    border-radius: 50px;
    letter-spacing: 0.5px;
}
.kts-badge.kts-low { background: linear-gradient(135deg,#8e7bb8,#6e5ea3); }

/* ---------- Act 2025 / regulatory callout box ---------- */
.act-callout {
    background: linear-gradient(135deg, #fbfaff 0%, #f3eefe 100%);
    border: 1px solid #e0d9f5;
    border-left: 5px solid #503AA8;
    border-radius: 10px;
    padding: 1.4rem 1.6rem;
    margin: 1.5rem 0;
    position: relative;
}
.act-callout::before {
    content: 'ACT 2025';
    position: absolute;
    top: -10px;
    left: 18px;
    background: #503AA8;
    color: #FFEE58;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    padding: 3px 10px;
    border-radius: 50px;
}
.act-callout h3 { margin-top: 0 !important; color: #1a1a1a !important; }
.act-callout ul { margin: 0.6rem 0 0.8rem 1.3rem !important; }
.act-callout li strong { color: #503AA8; }

/* ---------- SkyCity / Class 4 bridge table ---------- */
.bridge-table th { background: #1a1a2e !important; }
.bridge-table .bridge-online { background: #f3eefe; font-weight: 600; }

/* ---------- Aristocrat games grid (homepage callout) ---------- */
.aristocrat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin: 1.2rem 0 1.8rem 0;
}
.aristocrat-card {
    background: #fff;
    border: 1px solid #E8E5F0;
    border-left: 4px solid #FFEE58;
    border-radius: 10px;
    padding: 12px 14px;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.aristocrat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(80,58,168,0.10);
}
.aristocrat-card .ar-title {
    font-weight: 800;
    color: #1a1a1a;
    font-size: 0.98rem;
    margin-bottom: 2px;
}
.aristocrat-card .ar-meta {
    font-size: 0.78rem;
    color: #6e63a8;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
.aristocrat-card .ar-rtp {
    display: inline-block;
    background: #F8F7FC;
    color: #503AA8;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 50px;
    font-size: 0.75rem;
    margin-top: 6px;
}

/* ---------- "Available at" cell helper for popular pokies table ---------- */
.avail-at {
    font-size: 0.82rem;
    color: #2b2440;
    line-height: 1.4;
}
.avail-at a {
    color: #503AA8;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dashed #e0d9f5;
}
.avail-at a:hover { border-bottom-color: #503AA8; }

/* ============================================================
   Phase 1 / Section C — Guide-page additions
   ============================================================ */

/* ---------- Bonus Value Calculator widget ---------- */
.bv-calc {
    background: linear-gradient(135deg, #fbfaff 0%, #f3eefe 100%);
    border: 1px solid #e0d9f5;
    border-radius: 12px;
    padding: 1.4rem 1.6rem;
    margin: 1.5rem 0;
    box-shadow: 0 4px 14px rgba(80,58,168,0.06);
}
.bv-calc h3 {
    margin: 0 0 0.4rem 0 !important;
    color: #503AA8 !important;
    font-size: 1.1rem !important;
}
.bv-calc .bv-formula {
    background: #fff;
    border: 1px solid #e8e5f0;
    border-radius: 6px;
    padding: 8px 12px;
    font-family: 'SF Mono', Menlo, Consolas, monospace;
    font-size: 0.86rem;
    color: #2b2440;
    margin: 0.6rem 0 1rem 0;
    display: inline-block;
}
.bv-calc .bv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin: 0.8rem 0;
}
.bv-calc label {
    display: flex;
    flex-direction: column;
    font-size: 0.78rem;
    font-weight: 600;
    color: #6e63a8;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    gap: 4px;
}
.bv-calc input[type="number"] {
    padding: 8px 10px;
    border: 1.5px solid #d4ccea;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    color: #1a1a1a;
    background: #fff;
    text-transform: none;
}
.bv-calc input[type="number"]:focus {
    outline: none;
    border-color: #503AA8;
    box-shadow: 0 0 0 3px rgba(80,58,168,0.15);
}
.bv-calc button {
    background: linear-gradient(135deg, #503AA8, #7c5dd6);
    color: #fff;
    border: none;
    padding: 9px 22px;
    border-radius: 8px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    margin-top: 0.4rem;
    transition: transform 0.15s, box-shadow 0.15s;
}
.bv-calc button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(80,58,168,0.3);
}
.bv-calc .bv-out {
    margin-top: 0.9rem;
    padding: 0.8rem 1rem;
    background: #fff;
    border-left: 4px solid #FFEE58;
    border-radius: 6px;
    font-size: 0.95rem;
    color: #1a1a1a;
    min-height: 1rem;
}
.bv-calc .bv-out strong { color: #503AA8; font-weight: 800; }
.bv-calc .bv-note {
    font-size: 0.82rem;
    color: #6e63a8;
    margin-top: 0.6rem;
    line-height: 1.5;
}

/* ---------- Spotlight box (Roby 35×, etc.) ---------- */
.spotlight-box {
    background: linear-gradient(135deg, #FFEE58 0%, #ffd93d 100%);
    border-radius: 14px;
    padding: 1.4rem 1.6rem;
    margin: 1.6rem 0;
    color: #1a1a1a;
    position: relative;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.18);
}
.spotlight-box::before {
    content: 'SPOTLIGHT';
    position: absolute;
    top: -10px;
    left: 18px;
    background: #1a1a1a;
    color: #FFEE58;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    padding: 3px 12px;
    border-radius: 50px;
}
.spotlight-box h3 {
    margin: 0 0 0.4rem 0 !important;
    color: #1a1a1a !important;
    font-size: 1.15rem !important;
}
.spotlight-box p {
    margin: 0.4rem 0 0 0;
    color: #1a1a1a !important;
    font-weight: 500;
}
.spotlight-box a {
    color: #503AA8 !important;
    font-weight: 800;
}

/* ---------- RTP-variant callout (in-line warning style) ---------- */
.rtp-variant-callout {
    background: #fff8d6;
    border: 1px solid #ffe070;
    border-left: 4px solid #f5a623;
    border-radius: 8px;
    padding: 1rem 1.2rem;
    margin: 1.2rem 0;
}
.rtp-variant-callout::before {
    content: '⚠ RTP VARIANT NOTICE';
    display: block;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    color: #b07900;
    margin-bottom: 6px;
}
.rtp-variant-callout p { margin: 0 !important; color: #5a4500 !important; font-size: 0.94rem; }

/* ---------- Latency / per-OS performance table tweaks ---------- */
.perf-table th, .latency-table th { font-size: 0.78rem; }
.perf-table .perf-good { color: #2e7d32; font-weight: 700; }
.perf-table .perf-warn { color: #f5a623; font-weight: 700; }
.perf-table .perf-bad  { color: #c62828; font-weight: 700; }

/* ---------- Te Reo whakatauki inline (non-footer use) ---------- */
.whakatauki {
    font-style: italic;
    color: #503AA8;
    font-size: 1.05rem;
    border-left: 4px solid #FFEE58;
    background: #fbfaff;
    padding: 12px 18px;
    margin: 1.4rem 0;
    border-radius: 0 8px 8px 0;
}
.whakatauki strong { color: #1a1a1a; font-style: normal; }

/* ---------- New-brand spotlight card ---------- */
.brand-spotlight {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin: 1.2rem 0 1.6rem 0;
}
.brand-spotlight-card {
    background: #fff;
    border: 1px solid #E8E5F0;
    border-radius: 10px;
    padding: 14px 16px;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.brand-spotlight-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(80,58,168,0.10);
}
.brand-spotlight-card .bs-name { font-weight: 800; color: #503AA8; font-size: 1.02rem; }
.brand-spotlight-card .bs-est { font-size: 0.74rem; color: #6e63a8; font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase; }
.brand-spotlight-card p { font-size: 0.86rem !important; color: #2b2440 !important; margin: 6px 0 0 0 !important; line-height: 1.5; }

/* ---------- Heading-hierarchy visual preservation overrides ----------
   After the heading audit, several H3/H4 were promoted to H2 (or demoted)
   to maintain semantic hierarchy. These rules keep the visual size and
   weight aligned with the original styling. */

/* "In This Guide" TOC card (was H3, now H2) */
h2.toc-h {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    margin-top: 0 !important;
    margin-bottom: 0.6rem !important;
    border: 0 !important;
    padding: 0 !important;
}

/* Te Reo block heading (was H4, now H2) */
.te-reo-block h2.te-reo-h {
    color: #FFEE58 !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    margin: 0 0 6px 0 !important;
    letter-spacing: 0.2px !important;
    border: 0 !important;
    padding: 0 !important;
    text-transform: none !important;
}

/* Reviews "At a Glance" injected H2 (above pros/cons) */
h2.ataglance-h {
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    margin-top: 1.6rem !important;
    margin-bottom: 0.8rem !important;
}

/* responsible-gambling .helpline title (was H3, now H2) */
.helpline h2.helpline-h {
    color: #503AA8 !important;
    font-size: 1.3rem !important;
    margin-bottom: 0.5rem !important;
    margin-top: 0 !important;
    font-weight: 700 !important;
    border: 0 !important;
    padding: 0 !important;
}

/* Footer columns (were H4, now H3) — keep the same compact look */
.footer h3 {
    color: #fff !important;
    margin-bottom: 1rem !important;
    margin-top: 0 !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    border: 0 !important;
    padding: 0 !important;
}

/* Homepage criteria-card heading (was H4, now H3) — keep the small card title */
.criteria-card h3 {
    font-size: 1rem !important;
    font-weight: 700 !important;
    margin-top: 0.4rem !important;
    margin-bottom: 0.6rem !important;
    color: #1a1a1a !important;
    border: 0 !important;
    padding: 0 !important;
}

