/* HeBi Jokes v1.0 — terminal treatment for the Jokes page.
   Scoped to .page-id-49 throughout. */

/* ================================ */
/* 1. Console bar                   */
/* ================================ */
.page-id-49 .hebi-jokes-bar {
    max-width: 900px;
    margin: 0 auto 2.5rem;
    padding: 14px 18px 16px;
    background: #0a0a0a;
    border: 1px solid rgba(255, 0, 51, 0.3);
    box-shadow: 0 0 24px rgba(255, 0, 51, 0.06), inset 0 0 24px rgba(0, 0, 0, 0.4);
    font-family: 'Geist Mono', 'Courier New', monospace;
}

.page-id-49 .hebi-jokes-prompt {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 0.9rem;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 0, 51, 0.12);
}

.page-id-49 .hebi-jokes-user   { color: #00ff41; font-weight: 700; }
.page-id-49 .hebi-jokes-sep    { color: rgba(224, 224, 224, 0.5); }
.page-id-49 .hebi-jokes-path   { color: #ff0033; font-weight: 700; }
.page-id-49 .hebi-jokes-dollar { color: rgba(224, 224, 224, 0.6); margin: 0 8px 0 2px; }
.page-id-49 .hebi-jokes-cmd    { color: rgba(224, 224, 224, 0.75); }

.page-id-49 .hebi-jokes-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
}

.page-id-49 .hebi-jokes-btn {
    padding: 4px 10px;
    border: 1px solid rgba(255, 0, 51, 0.35);
    border-radius: 0;
    background: rgba(255, 0, 51, 0.04);
    color: #ff0033;
    font-family: inherit;
    font-size: 0.79rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.page-id-49 .hebi-jokes-btn:hover,
.page-id-49 .hebi-jokes-btn:focus-visible {
    color: #00ff41;
    border-color: rgba(0, 255, 65, 0.6);
    background: rgba(0, 255, 65, 0.06);
    box-shadow: 0 0 14px rgba(0, 255, 65, 0.18);
}

.page-id-49 .hebi-jokes-progress {
    margin-top: 12px;
    font-size: 0.84rem;
    letter-spacing: 0.08em;
    color: rgba(0, 255, 65, 0.65);
    min-height: 1em;
}

/* ================================ */
/* 2. Joke cards                    */
/* ================================ */
.page-id-49 .wp-block-post-content {
    counter-reset: hebi-joke;
}

.page-id-49 .hebi-joke {
    position: relative;
    counter-increment: hebi-joke;
    padding: 30px 20px 20px !important;
    background: #0a0a0a;
    border: 1px solid rgba(255, 0, 51, 0.22);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.page-id-49 .hebi-joke:hover {
    border-color: rgba(255, 0, 51, 0.5);
    box-shadow: 0 0 26px rgba(255, 0, 51, 0.1);
}

/* [01] marker — renumbers itself after a shuffle */
.page-id-49 .hebi-joke::before {
    content: "[" counter(hebi-joke, decimal-leading-zero) "]";
    position: absolute;
    top: 9px;
    left: 11px;
    padding: 3px 8px;
    background: rgba(10, 10, 10, 0.9);
    border: 1px solid rgba(255, 0, 51, 0.4);
    color: #ff0033;
    font-family: 'Geist Mono', 'Courier New', monospace;
    font-size: 0.79rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    pointer-events: none;
}

.page-id-49 .hebi-setup {
    color: #e0e0e0 !important;
    font-weight: 600;
    line-height: 1.6;
    margin: 6px 0 16px !important;
}

/* ================================ */
/* 3. Reveal button / punchline     */
/* ================================ */
.page-id-49 .hebi-reveal-btn {
    display: block;
    width: 100%;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px dashed rgba(0, 255, 65, 0.35);
    border-radius: 0;
    color: rgba(0, 255, 65, 0.8);
    font-family: 'Geist Mono', 'Courier New', monospace;
    font-size: 0.84rem;
    letter-spacing: 0.12em;
    text-align: left;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.page-id-49 .hebi-reveal-btn:hover,
.page-id-49 .hebi-reveal-btn:focus-visible {
    color: #00ff41;
    border-color: rgba(0, 255, 65, 0.7);
    background: rgba(0, 255, 65, 0.05);
}

/* the redacted bar sitting where the punchline will land */
.page-id-49 .hebi-reveal-bar {
    display: block;
    margin-top: 8px;
    height: 10px;
    background: repeating-linear-gradient(
        90deg,
        rgba(224, 224, 224, 0.22) 0 14px,
        transparent 14px 18px
    );
}

.page-id-49 .hebi-reveal-btn:hover .hebi-reveal-bar {
    background: repeating-linear-gradient(
        90deg,
        rgba(0, 255, 65, 0.3) 0 14px,
        transparent 14px 18px
    );
}

.page-id-49 .hebi-punchline {
    margin: 0 !important;
    padding: 10px 12px;
    border-left: 3px solid #00ff41;
    background: rgba(0, 255, 65, 0.04);
    color: #00ff41 !important;
    line-height: 1.65;
    animation: hebi-joke-in 0.28s ease-out;
}

@keyframes hebi-joke-in {
    0%   { opacity: 0; transform: translateY(-4px); filter: blur(2px); }
    60%  { opacity: 1; filter: blur(0); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ================================ */
/* 4. The flag                      */
/* ================================ */
.page-id-49 .hebi-flag {
    max-width: 900px;
    margin: 0 auto 2rem;
    padding: 18px 20px;
    background: #0a0a0a;
    border: 1px solid #00ff41;
    text-align: center;
    font-family: 'Geist Mono', 'Courier New', monospace;
    opacity: 0;
    transform: scale(0.97);
    transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
}

.page-id-49 .hebi-flag.is-unlocked {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 34px rgba(0, 255, 65, 0.25), inset 0 0 26px rgba(0, 255, 65, 0.05);
}

.page-id-49 .hebi-flag-label {
    display: block;
    font-size: 0.79rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(0, 255, 65, 0.55);
    margin-bottom: 8px;
}

.page-id-49 .hebi-flag-value {
    display: block;
    font-size: clamp(1rem, 3.4vw, 1.5rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #00ff41;
    text-shadow: 0 0 16px rgba(0, 255, 65, 0.5);
}

/* ================================ */
/* 5. Header image                  */
/* ================================ */

/* was border-radius:100px with a hardcoded width:800px */
.page-id-49 .wp-block-post-content .wp-block-image img {
    border-radius: 0 !important;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    border: 1px solid rgba(255, 0, 51, 0.2);
}

/* ================================ */
/* 6. No-JS safety net              */
/* ================================ */

/* Until jokes.js confirms it is running, punchlines stay visible and the
   reveal controls stay hidden — so with JS off the page reads exactly as
   it does today rather than becoming 16 unopenable boxes. */
.page-id-49 .hebi-punchline[hidden] { display: block; }
.page-id-49 .hebi-reveal-btn,
.page-id-49 .hebi-jokes-actions { display: none; }

.page-id-49.hebi-jokes-ready .hebi-punchline[hidden] { display: none; }
.page-id-49.hebi-jokes-ready .hebi-reveal-btn { display: block; }
.page-id-49.hebi-jokes-ready .hebi-jokes-actions { display: flex; }
.page-id-49.hebi-jokes-ready .hebi-reveal-btn[hidden] { display: none; }

/* ================================ */
/* 7. Responsive                    */
/* ================================ */
@media (max-width: 600px) {
    .page-id-49 .hebi-jokes-bar { padding: 12px 14px 14px; }
    .page-id-49 .hebi-jokes-prompt { font-size: 0.90rem; flex-wrap: wrap; }
    .page-id-49 .hebi-joke { padding: 28px 14px 16px !important; }
}

/* ================================ */
/* 8. Reduced motion                */
/* ================================ */
@media (prefers-reduced-motion: reduce) {
    .page-id-49 .hebi-punchline { animation: none; }
    .page-id-49 .hebi-flag,
    .page-id-49 .hebi-joke,
    .page-id-49 .hebi-reveal-btn,
    .page-id-49 .hebi-jokes-btn {
        transition: none !important;
    }
}
