/* ==========================================================================
   MINIMAL BLOB INDEX - STORIES INTEGRATION EDITION
   --------------------------------------------------------------------------
   [text-styles]       - Narrative text, paragraphs, and chapter headings
   [toggle-styles]     - Custom checkbox frameworks (Nerd Mode master switch)
   [popup-styles]      - Translation tooltips and Clippy Easter Egg references
   [scroll-styles]     - In-line scroll asset lightbox reveal engine
   [transcript-styles] - Plaintext accessibility dropdown blocks
   ========================================================================== */

/* ==========================================================================
   [text-styles]
   ========================================================================== */

/* The main container wrapping your story chapters */
.story-text {
    max-width: 1100px;
    width: 100%;
    padding-left: 3rem;
}

/* Story Headings (Chapter Titles) - Aligned to strict Electric Cyan */
/* ! #workskin */ .story-text h3 {
    font-family: "Brush Script MT", "Lucida Handwriting", cursive;
    color: var(--neon-cyan); 
    font-size: 2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    text-shadow: 0 0 4px rgba(0, 243, 255, 0.4);
}

/* The actual narrative text blocks */
.story-text p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 0.8rem;
    color: #e6e6e6;
    text-rendering: optimizeLegibility;
    font-feature-settings: "kern" 1;
}

/* Shrinks the padding on mobile screens so the text doesn't look squished */
@media (max-width: 768px) {
    .story-text {
        padding-left: 1rem;
    }
}


/* ==========================================================================
   [toggle-styles]
   ========================================================================== */

/* Hides the ugly native browser checkbox from view, but keeps it functional */
/* ! #workskin */ .css-checkbox {
    position: absolute;
    overflow: hidden;
    clip: rect(0 0 0 0);
    height: 1px; width: 1px;
    margin: -1px; padding: 0; border: 0;
}

/* Styles the label text next to your hidden checkbox - Swapped to Yellow */
/* ! #workskin */ .css-checkbox + label { 
    position: relative;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    color: var(--neon-yellow); 
    font-family: sans-serif;
    margin-bottom: 1rem;
}

/* Creates the empty checkbox square frame - Cyan boundary outline */
/* ! #workskin */ .css-checkbox + label::before {
    content: " ";
    display: inline-block;
    margin-right: 0;
    width: 20px;
    height: 20px;
    background-color: var(--bg-wine-inkwell);
    border: 2px solid var(--neon-cyan); 
    border-radius: 3px;
}

/* Pushes the text label slightly right of the checkbox box */
/* ! #workskin */ .css-checkbox + label span {
    margin-left: 10px;
}

/* Drops your heavy-hitter purple star symbol directly into the box when checked */
/* ! #workskin */ .css-checkbox:checked + label::after {
    content: "★";
    position: absolute;
    left: 0; top: 0;
    font-size: 18px;
    color: var(--neon-purple); 
    display: flex;
    justify-content: center;
    align-items: center;
    width: 20px; height: 20px;
}

/* Swaps the visibility of "Show" and "Hide" text strings when toggled */
/* ! #workskin */ .css-checkbox + label .hide-text { display: none; }
/* ! #workskin */ .css-checkbox:checked + label .show-text { display: none; }
/* ! #workskin */ .css-checkbox:checked + label .hide-text { display: inline; }


/* ==========================================================================
   [popup-styles] - Windows 98 Retro Clippy Edition
   ========================================================================== */

/* Regular glossary words (dashed underline, shows a popup when hovered) */
/* ! #workskin */ .ref-term {
    position: relative;
    border-bottom: 2px dashed;
    color: inherit;
    transition: box-shadow 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: help;
}

/* Glowing neon animation when a glossary word is hovered */
/* ! #workskin */ .ref-term:hover {
    border-bottom-color: var(--neon-cyan);
    box-shadow: 0 5px 8px -3px var(--neon-cyan);
}

/* The actual hidden tooltip box for glossary/translation terms */
/* ! #workskin */ .ref-term-box {
    display: none;
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: var(--bg-wine-dark);
    color: #bcf7f4;
    font-size: 0.8em;
    padding: 4px 8px;
    border-radius: 4px;
    border-left: 3px solid var(--neon-pink); 
    font-family: sans-serif;
    width: max-content;
    max-width: 200px;
}

/* Makes the glossary tooltip visible on hover or mobile tap */
/* ! #workskin */ .ref-term:hover .ref-term-box,
/* ! #workskin */ .ref-term:active .ref-term-box {
    display: inline-block;
}

/* Hidden Easter Egg phrases (invisible until Nerd Mode is checked) */
/* ! #workskin */ .ref-egg {
    position: relative;
    border-bottom: 1px solid transparent;
    color: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
    cursor: help;
}

/* Reveals a cyan border under easter egg phrases if Nerd Mode is ON */
/* ! #workskin */ .css-checkbox:checked ~ .story-text .ref-egg {
    border-bottom: 2px solid var(--neon-cyan);
}

/* Glowing neon animation for Easter Eggs when hovered (Only works if Nerd Mode is ON) */
/* ! #workskin */ .css-checkbox:checked ~ .story-text .ref-egg:hover {
    border-bottom-color: var(--neon-cyan);
    box-shadow: 0 5px 8px -3px var(--neon-cyan);
}

/* THE TRUE WINDOWS 98 CLIPPY BALLOON */
/* ! #workskin */ .ref-egg-box {
    display: none;
    position: absolute;
    bottom: 140%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    
    /* Authentic Win98 Tooltip Styles */
    background-color: #FFFFE1 !important; /* Flat classic tooltip yellow */
    color: #000000 !important;            /* Pure high-contrast black text */
    font-family: "MS Sans Serif", Tahoma, Arial, sans-serif !important;
    font-size: 11px !important;
    font-weight: normal !important;
    line-height: 1.3 !important;
    text-shadow: none !important;         /* Kill all neon glows */
    
    /* Classic 90s Border and Retronomic Box Shadow */
    border: 1px solid #000000 !important;
    border-radius: 0px !important;        /* Pure sharp corners */
    box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.9) !important; /* Flat pixel block shadow */
    
    /* Image Alignment Frame */
    width: max-content;
    max-width: 260px;
    background-image: url("https://i.postimg.cc/3NZcQJGj/pngaaa-com-393521.png") !important;
    background-repeat: no-repeat !important;
    background-size: 32px !important;
    background-position: 8px 10px !important;
    padding: 10px 12px 10px 48px !important;
    min-height: 52px;
}

/* Makes the Clippy popup appear when hovering/tapping an active egg phrase */
/* ! #workskin */ .ref-egg:hover .ref-egg-box,
/* ! #workskin */ .ref-egg:active .ref-egg-box {
    display: inline-block;
}


/* ==========================================================================
   [scroll-styles]
   ========================================================================== */

/* Hides the functional checkbox driving the scroll system */
/* ! #workskin */ .scroll-check {
    display: none;
}

/* The unexpanded, closed scroll graphic teaser */
/* ! #workskin */ .scroll-closed {
    display: block;
    cursor: pointer;
    width: 220px;
    margin: -65px 0 0 0;
    transition: transform 0.3s ease;
}

/* Keeps the responsive scale aspect ratio true for the scroll image asset */
/* ! #workskin */ .scroll-closed img {
    width: 100%;
    height: auto;
    display: block;
}

/* Gives the closed scroll a responsive jump effect when hovered */
/* ! #workskin */ .scroll-closed:hover {
    transform: scale(1.05);
}

/* The full-screen background overlay when the scroll is opened */
/* ! #workskin */ .scroll-open {
    display: block;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 0;
    opacity: 0;
    visibility: hidden;
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.8);
    overflow: auto;
    text-align: center;
    transition: height 0.8s ease-in-out, opacity 0.6s ease-in-out, visibility 0.8s;
}

/* Keeps interior content transparent until transition completes to prevent visual flashing */
/* ! #workskin */ .scroll-open * {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* High-res asset size control for the expanded reader image */
/* ! #workskin */ .scroll-full-image {
    min-width: 800px;
    margin: 50px auto;
    display: block;
}

/* The big persistent exit 'X' button inside the lightbox */
/* ! #workskin */ .scroll-close-x {
    position: fixed;
    top: 20px; right: 20px;
    font-size: 28px;
    color: #ffffff;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    width: 45px; height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: sans-serif;
    z-index: 10000;
}

/* Fully hides the initial thumbnail block when the scroll window is opened */
/* ! #workskin */ .scroll-check:checked ~ .scroll-closed {
    display: none;
}

/* Spreads the dark background over the entire screen when user clicks open */
/* ! #workskin */ .scroll-check:checked ~ .scroll-open {
    height: 100%;
    opacity: 1;
    visibility: visible;
}

/* Fades the text/image elements back into view nicely once the window is stretched open */
/* ! #workskin */ .scroll-check:checked ~ .scroll-open * {
    opacity: 1;
    transition: opacity 0.5s ease 0.4s;
}


/* ==========================================================================
   [transcript-styles]
   ========================================================================== */

/* Main wrapping framework for the hidden letter transcripts */
/* ! #workskin */ .transcript-box {
    width: 60%;
    max-width: 600px;
    margin: -65px 0 10px 0;
    position: relative;
    z-index: 10;
}

/* The clickable button that opens up the dropdown details panel panel */
/* ! #workskin */ .transcript-btn {
    cursor: pointer;
    font-weight: bold;
    font-family: sans-serif;
    font-size: 11px;
    padding: 8px 12px;
    background-color: var(--bg-wine-dark);
    color: var(--neon-yellow);
    border: 2px solid var(--neon-yellow);
    border-radius: 5px;
    text-align: left;
    transition: background-color 0.3s ease, color 0.3s ease;
    outline: none;
}

/* Color inversion feedback when hovering the transcript button */
/* ! #workskin */ .transcript-btn:hover {
    background-color: var(--neon-cyan);
    color: var(--bg-wine-dark);
    border-color: var(--neon-cyan);
}

/* Custom styling block for the text reading pane inside the transcript */
/* ! #workskin */ .transcript-text {
    margin-top: 1px;
    padding: 12px 16px;
    background-color: rgba(2, 0, 0, 0.9);
    color: #ffffff;
    border-radius: 5px;
    border-left: 3px solid var(--neon-pink);
    text-align: left;
    font-family: Georgia, serif;
    line-height: 1.5;
}

/* Size tweak to separate transcript descriptions from your standard story font size */
/* ! #workskin */ .transcript-text p {
    font-size: 0.95rem;
    margin-bottom: 0;
}