/* ── Full-width bar — sits directly under the nav menu ──────────────────── */
.sip-strip-bar {
    width: 100%;
    background: #ffffff;
    padding: 0 24px;
    box-sizing: border-box;
    font-family: 'Barlow', system-ui, sans-serif;
}

/* Home page only: grey background */
.sip-strip-bar--home {
    background: #F7F7F7;
}

/* ── Strip inner wrapper — constrained & centred ─────────────────────────── */
.sip-strip-wrap {
    max-width: 1200px;
    margin: 0 auto;
}

/* ── Two-column layout: left = text + cards · right = buttons ────────────── */
.sip-strip-layout {
    display: grid;
    grid-template-columns: 1fr 180px;
    gap: 24px;
    align-items: center;
    padding: 14px 0;
}

/* ── Left column ─────────────────────────────────────────────────────────── */
.sip-strip-main {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.sip-strip-head-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.sip-strip-title {
    font-family: 'Vidaloka', Georgia, serif;
    font-size: 18px;
    font-weight: 400;
    color: #0f1117;
    line-height: 1.2;
}

.sip-strip-subtitle {
    font-family: 'Barlow', system-ui, sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #5a6478;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

/* ── Right column: buttons stacked ──────────────────────────────────────── */
.sip-strip-btns {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-self: center;
}

.sip-strip-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px 20px;
    border-radius: 100px;
    font-family: 'Barlow', system-ui, sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: background 0.15s, box-shadow 0.15s, transform 0.13s;
    border: 1.5px solid #111111;
}
.sip-strip-btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

/* Outline — white bg normally, matches home bg on home */
.sip-strip-btn--outline {
    background: #ffffff;
    color: #111111 !important;
}
.sip-strip-bar--home .sip-strip-btn--outline {
    background: #F7F7F7;
}
.sip-strip-btn--outline:hover {
    background: #ebebeb;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    color: #111111 !important;
}

/* Filled — black bg, white text */
.sip-strip-btn--fill {
    background: #111111;
    border-color: #111111;
    color: #ffffff !important;
}
.sip-strip-btn--fill:hover {
    background: #333333;
    border-color: #333333;
    box-shadow: 0 3px 10px rgba(0,0,0,0.25);
    color: #ffffff !important;
}

/* ── Scroll container (enables mobile slider) ────────────────────────────── */
.sip-strip-scroll {
    /* nothing special on desktop — grid handles layout */
}

/* ── Cards grid ──────────────────────────────────────────────────────────── */
.sip-category-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 14px;
}

.sip-category-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px;
    min-height: 88px;
    font-family: 'Barlow', system-ui, sans-serif;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.sip-category-card:hover,
.sip-category-card:focus-within {
    transform: translateY(-2px);
    border-color: #94a3b8;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.1);
}

.sip-category-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.sip-category-card-title {
    font-size: 13px;
    line-height: 1.2;
    font-weight: 700;
    color: #0f172a;
    text-decoration: none;
}

.sip-category-card-title:hover {
    color: #1d4ed8;
}

.sip-category-card-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    border-radius: 999px;
    background: #0f172a;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
}

.sip-category-card-sub {
    text-decoration: none;
    font-size: 12px;
    line-height: 1.3;
    color: #475569;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sip-category-card-sub:hover {
    color: #1e293b;
}

.sip-category-card-cta {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    padding: 5px 12px;
    border-radius: 100px;
    border: 1.5px solid #0f172a;
    background: #ffffff;
    font-size: 11px;
    font-weight: 700;
    color: #0f172a !important;
    text-decoration: none;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: background 0.15s, box-shadow 0.15s, transform 0.13s;
}

.sip-category-card-cta:hover {
    background: #0f172a;
    border-color: #0f172a;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(15,23,42,0.2);
}

.sip-category-card a:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
    border-radius: 4px;
}

@media (max-width: 1024px) {
    .sip-category-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Tablet: collapse to single column, keep button row */
@media (max-width: 860px) {
    .sip-strip-layout {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 12px 0;
    }
    .sip-strip-btns {
        flex-direction: row;
        width: 100%;
    }
    .sip-strip-btn {
        flex: 1;
    }
}

/* Mobile: horizontal snap slider for cards */
@media (max-width: 640px) {
    .sip-strip-bar {
        padding: 0 16px;
    }
    /* Let the strip-main overflow so the next card peeks into the padding */
    .sip-strip-main {
        overflow: visible;
    }
    .sip-strip-scroll {
        /* Extend slightly into the bar's padding so first card aligns with text */
        margin-left: 0;
        overflow: visible;
    }
    .sip-category-strip {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 10px;
        margin: 0 -16px 10px 0;  /* bleed right only — left stays within bar padding */
        padding: 0 0 8px;        /* no extra padding needed; parent provides left space */
        scrollbar-width: none;
    }
    .sip-category-strip::-webkit-scrollbar { display: none; }
    .sip-category-strip .sip-category-card {
        flex: 0 0 76vw;
        max-width: 280px;
        scroll-snap-align: start;
    }
}

/* ── Phase 1: Nav Balance Pill ───────────────────────────────────────────────
   Used by:
     - wp_nav_menu_items hook (primary nav)
     - [sip_balance] shortcode
     - WordPress admin bar node
   The .sip-balance-val span is updated live by app.js after read-token
   awards and after placing a prediction.
──────────────────────────────────────────────────────────────────────────── */

.sip-nav-balance-item {
    display: flex;
    align-items: center;
}

.sip-nav-balance-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #ffffff;
    color: #0f1117 !important;
    border: 1.5px solid #d8dce8;
    border-radius: 100px;
    padding: 5px 13px 5px 9px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.15s ease;
    white-space: nowrap;
    line-height: 1;
    cursor: pointer;
}

.sip-nav-balance-pill:hover {
    background: #f4f5f8;
    border-color: #b0b8cc;
    color: #0f1117 !important;
    transform: translateY(-1px);
}

.sip-nav-balance-icon {
    font-size: 14px;
    line-height: 1;
    opacity: 0.9;
}

.sip-nav-balance-unit {
    font-size: 11px;
    opacity: 0.65;
    font-weight: 500;
    letter-spacing: 0.02em;
    margin-left: 1px;
}

/* Admin bar node */
#wpadminbar #wp-admin-bar-sip-balance > .ab-item {
    color: #e8c84a !important;
}

#wpadminbar #wp-admin-bar-sip-balance > .ab-item .sip-balance-val {
    font-weight: 700;
}

/* Logout link (Dilni) — injected by Phase 1 header.php block */
.sip-logout-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: inherit;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    opacity: 0.75;
    transition: opacity 0.15s ease;
}

.sip-logout-link:hover {
    opacity: 1;
    color: #e8c84a;
}
