/* ==========================================================================
   TODAGAMES TEMPLATE V2 - STATIC PAGES & CALCULATORS
   File: assets/css/templates/v2-pages.css
   Layout Parent: templates/v2/template.php
   Tokens: var(--warna_2), var(--warna_4), var(--border-card),
           var(--text-title), var(--text-muted),
           var(--font-heading), var(--font-main)
   ========================================================================== */

.v2-pages-wrap {
    color: var(--text-title);
    font-family: var(--font-main, 'Plus Jakarta Sans', sans-serif);
    padding-top: 1.5rem;
    padding-bottom: 5rem;
    min-height: 70vh;
}

.v2-pages-card {
    background: var(--warna_2);
    border: 1px solid var(--border-card, rgba(255, 255, 255, 0.08));
    border-radius: 1.25rem;
    padding: 1.75rem;
    -webkit-border-radius: 1.25rem;
    -moz-border-radius: 1.25rem;
    -ms-border-radius: 1.25rem;
    -o-border-radius: 1.25rem;
}

.v2-pages-title {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-title);
    margin: 0 0 0.35rem 0;
    line-height: 1.3;
}

.v2-pages-sub {
    font-size: 0.875rem;
    color: var(--text-muted, #94a3b8);
    margin: 0 0 1.25rem 0;
    line-height: 1.6;
}

.v2-pages-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 1.25rem;
}

/* ---------- Legal / editorial body (sk, kp) ---------- */
.v2-legal-body {
    font-size: 0.925rem;
    line-height: 1.8;
    color: var(--text-title);
    word-break: break-word;
}

.v2-legal-body h1,
.v2-legal-body h2,
.v2-legal-body h3,
.v2-legal-body h4 {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    color: var(--text-title);
    font-weight: 700;
    line-height: 1.4;
    margin-top: 1.5rem;
    margin-bottom: 0.6rem;
}

.v2-legal-body h1 { font-size: 1.4rem; }
.v2-legal-body h2 { font-size: 1.25rem; }
.v2-legal-body h3 { font-size: 1.1rem; }

.v2-legal-body p { margin-bottom: 1rem; }

.v2-legal-body ul,
.v2-legal-body ol {
    margin-bottom: 1rem;
    padding-left: 1.4rem;
}

.v2-legal-body li { margin-bottom: 0.4rem; }

.v2-legal-body a {
    color: var(--warna_4, #ffb703);
    font-weight: 600;
}

.v2-legal-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0;
    display: block;
    overflow-x: auto;
}

.v2-legal-body table th,
.v2-legal-body table td {
    padding: 10px 14px;
    border: 1px solid var(--border-card);
    font-size: 13px;
}

.v2-legal-body table th {
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-title);
}

/* ---------- Calculator hub (kalkulator.php) ---------- */
.v2-calc-hub-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.v2-calc-hub-card {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-card, rgba(255, 255, 255, 0.08));
    border-radius: 1rem;
    padding: 1.25rem;
    text-align: center;
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.v2-calc-hub-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 183, 3, 0.4);
}

.v2-calc-hub-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 0.75rem;
    border: 1px solid var(--border-card);
    background: rgba(0, 0, 0, 0.3);
}

.v2-calc-hub-name {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-title);
    margin: 0;
}

.v2-calc-hub-card:hover .v2-calc-hub-name {
    color: var(--warna_4, #ffb703);
}

.v2-calc-hub-cta {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 12.5px;
    font-weight: 700;
    color: var(--warna_4, #ffb703);
}

/* ---------- Calculator form (kalkulatorwr) ---------- */
.v2-calc-form-grid {
    display: grid;
    gap: 1rem;
}

.v2-calc-field label {
    display: block;
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 12px;
    font-weight: 700;
    color: var(--text-title);
    margin-bottom: 6px;
}

.v2-calc-input {
    width: 100%;
    min-height: 44px;
    background: var(--warna);
    border: 2px solid var(--border-card, rgba(255, 255, 255, 0.12));
    border-radius: 1rem;
    color: var(--text-title);
    font-size: .75rem;
    padding-left: .75rem;
    padding-right: .75rem;
    height: 2.25rem;
    outline: none;
    transition: border-color 0.2s ease;
    -webkit-border-radius: 1rem;
    -moz-border-radius: 1rem;
    -ms-border-radius: 1rem;
    -o-border-radius: 1rem;
}

.v2-calc-input:focus {
    border-color: var(--warna_4);
}

.v2-calc-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 4px;
}

.v2-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--warna_4);
    color: var(--text-title) !important;
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: .75rem;
    font-weight: 600;
    padding-left: .75rem;
    padding-right: .75rem;
    height: 2.25rem;
    border-radius: 1rem;
    border: none;
    cursor: pointer;
    text-decoration: none !important;
    transition: opacity 0.15s ease, transform 0.15s ease;
    -webkit-border-radius: 1rem;
    -moz-border-radius: 1rem;
    -ms-border-radius: 1rem;
    -o-border-radius: 1rem;
    outline: none !important;
}

.v2-btn-primary:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.v2-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--warna_3);
    color: var(--text-title) !important;
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: .75rem;
    font-weight: 600;
    padding-left: .75rem;
    padding-right: .75rem;
    height: 2.25rem;
    border-radius: 1rem;
    border: none !important;
    cursor: pointer;
    text-decoration: none !important;
    transition: background 0.15s ease;
    -webkit-border-radius: 1rem;
    -moz-border-radius: 1rem;
    -ms-border-radius: 1rem;
    -o-border-radius: 1rem;
}

.v2-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
}

.v2-calc-result {
    margin-top: 1.25rem;
    background: var(--warna);
    border: 1px solid var(--border-card);
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    font-size: .75rem;
    line-height: 1.7;
    color: var(--text-title);
    min-height: 58px;
    -webkit-border-radius: 1rem;
    -moz-border-radius: 1rem;
    -ms-border-radius: 1rem;
    -o-border-radius: 1rem;
}

.v2-calc-result:empty::before {
    content: 'Hasil perhitungan akan tampil di sini.';
    color: var(--text-muted, #94a3b8);
    font-size: 0.85rem;
}

.v2-calc-result b {
    color: var(--warna_4, #ffb703);
}

/* ---------- Slider calculators (zodiac, magicwheel) ---------- */
.v2-slider-hero {
    text-align: center;
    margin-bottom: 1.5rem;
}

.v2-slider-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 1rem;
    border: 1px solid var(--border-card);
    background: rgba(0, 0, 0, 0.25);
    padding: 10px;
    margin-bottom: 1rem;
}

.v2-slider-readout {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-card, rgba(255, 255, 255, 0.08));
    border-radius: 12px;
    padding: 1.25rem;
    margin-top: 1.25rem;
    display: grid;
    gap: 8px;
}

.v2-slider-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
}

.v2-slider-row .k {
    color: var(--text-muted, #94a3b8);
}

.v2-slider-row .v {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-weight: 800;
    color: var(--text-title);
    font-size: 1.05rem;
}

.v2-slider-row .v.accent {
    color: var(--warna_4, #ffb703);
    font-size: 1.35rem;
}

.v2-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 12px;
    background: hsl(var(--warnahsl) / .5);
    outline: none;
    border-radius: 999px;
    cursor: pointer;
}

.v2-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    background: var(--warna_4);
    cursor: pointer;
    border-radius: 50%;
}

.v2-slider::-moz-range-thumb {
    width: 15px;
    height: 15px;
    background: var(--warna_4);
    cursor: pointer;
    border-radius: 50%;
}

.v2-slider-diamond {
    width: 15px;
    height: 15px;
    vertical-align: -4px;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .v2-pages-card {
        padding: 1.25rem 1rem;
    }

    .v2-pages-title {
        font-size: 1.25rem;
    }

    .v2-calc-hub-grid {
        grid-template-columns: 1fr;
    }

    .v2-calc-actions {
        grid-template-columns: 1fr;
    }
}
