/*
    TNT | Tool Time | Jackson's Iris — Shared Styles
    jacksonIrisStyles.css
    Created: 2026-10-25
    Used by: jacksonIrisOriginal.html + jacksonIrisChatlog.html
    Color identity: deep violet / iris palette
    Companion scripts: jacksonIrisScripts.js
*/

/* ── Design Tokens ────────────────────────────────────────── */
:root {
    --ji-violet:      #8B5CF6;
    --ji-violet-dark: #6D28D9;
    --ji-violet-glow: rgba(139, 92, 246, 0.22);
    --ji-dark:        #0d0a14;
    --ji-mid:         #1a1428;
    --ji-card:        #231d35;
    --ji-border:      rgba(139, 92, 246, 0.20);
    --ji-light-bg:    #f5f3ff;
    --ji-amber:       #E8862A;   /* Tool Time cross-link accent */
}

/* ── Base ─────────────────────────────────────────────────── */
body {
    background: var(--ji-dark);
    color: rgba(255, 255, 255, 0.88);
    font-family: 'Inter', sans-serif;
}

/* ── Hero ─────────────────────────────────────────────────── */
#hero {
    min-height: 38vh;
    background:
        linear-gradient(135deg, rgba(13,10,20,0.90) 0%, rgba(60,20,100,0.68) 100%),
        url('images/jacksonIris-web.gif') center / cover no-repeat;
    background-color: var(--ji-dark);
    padding: 4rem 1rem 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.hero-back {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--ji-violet);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 0.5rem;
}
.hero-back:hover { color: #fff; }

.hero-eyebrow {
    font-size: 0.74rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.42);
    margin-bottom: 0.4rem;
}

.hero-title {
    font-family: 'Boogaloo', cursive;
    font-size: clamp(2.2rem, 5.5vw, 3.4rem);
    color: #fff;
    line-height: 1.12;
    margin-bottom: 0.6rem;
}

.hero-title .ji-accent { color: var(--ji-violet); }

.hero-subtitle {
    font-size: clamp(0.92rem, 2.1vw, 1.1rem);
    color: rgba(255,255,255,0.72);
    line-height: 1.68;
}

/* ── Back bar (spark bar) ─────────────────────────────────── */
.ji-back-bar {
    background: var(--ji-mid);
    padding: 0.55rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    border-bottom: 2px solid var(--ji-violet);
    font-size: 0.88rem;
}

.ji-back-bar a {
    color: var(--ji-violet);
    font-weight: 700;
    text-decoration: none;
}

.ji-back-bar a:hover { color: #fff; }
.ji-back-bar span { color: rgba(255,255,255,0.28); font-size: 0.80rem; }

/* ── Main section container ───────────────────────────────── */
#mainSection {
    padding: 3rem 0 5rem;
}

/* ── Intro card ───────────────────────────────────────────── */
.intro-card {
    background: var(--ji-card);
    border: 1.5px solid var(--ji-border);
    border-top: 4px solid var(--ji-violet);
    border-radius: 16px;
    padding: 2rem 2.2rem;
    margin-bottom: 2rem;
    color: rgba(255,255,255,0.85);
}

.intro-card h2 {
    font-family: 'Boogaloo', cursive;
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    color: #fff;
    margin-bottom: 0.75rem;
}

.intro-card p {
    font-size: 0.95rem;
    line-height: 1.75;
    color: rgba(255,255,255,0.78);
}

.stage-badge {
    display: inline-block;
    background: rgba(139,92,246,0.16);
    border: 1px solid rgba(139,92,246,0.38);
    color: var(--ji-violet);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 0.2rem 0.75rem;
    border-radius: 50px;
    margin-bottom: 0.85rem;
}

/* ── Showcase card ────────────────────────────────────────── */
.showcase-card {
    background: #120e1c;
    border: 1.5px solid var(--ji-border);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 2rem;
}

/* ── Terminal header ──────────────────────────────────────── */
.code-terminal-header {
    background: #1c1630;
    border-bottom: 1px solid rgba(139,92,246,0.18);
    padding: 0.55rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.terminal-dots { display: flex; gap: 5px; }
.td { width: 12px; height: 12px; border-radius: 50%; }
.td-red    { background: #ff5f57; }
.td-yellow { background: #febc2e; }
.td-green  { background: #28c840; }

.terminal-filename {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.60);
}

.terminal-tag {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.30);
    margin-left: 0.25rem;
}

.copy-btn {
    margin-left: auto;
    background: rgba(139,92,246,0.10);
    border: 1px solid rgba(139,92,246,0.28);
    color: var(--ji-violet);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.28rem 0.85rem;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: background 0.18s, border-color 0.18s, color 0.18s;
}

.copy-btn:hover {
    background: rgba(139,92,246,0.22);
    border-color: var(--ji-violet);
    color: #fff;
}

/* ── Greenbar code display ────────────────────────────────── */
.code-paper {
    overflow-x: auto;
    overflow-y: auto;
    max-height: 480px;
    background: #0d0a18;
    border-right: 1px solid rgba(139,92,246,0.10);
}

.code-paper ol {
    margin: 0;
    padding: 0.6rem 0;
    list-style-type: decimal;
    counter-reset: li;
    font-family: 'Source Code Pro', 'Noto Sans Mono', monospace;
    font-size: 0.82rem;
    line-height: 1.65;
}

.code-paper ol li {
    padding: 0 1.1rem 0 0.5rem;
    color: rgba(255,255,255,0.80);
    white-space: nowrap;
}

.code-paper ol li:nth-child(even) { background: rgba(255,255,255,0.025); }

.code-paper ol li code {
    background: transparent;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    padding: 0;
}

/* ── JS syntax colors ─────────────────────────────────────── */
.js-keyword { color: #c792ea; font-weight: 600; }  /* violet-pink */
.js-number  { color: #f78c6c; }                    /* warm orange */
.js-comment { color: rgba(255,255,255,0.35); font-style: italic; }
.js-string  { color: #c3e88d; }                    /* green */

/* ── Live canvas panel ────────────────────────────────────── */
.canvas-panel {
    background: #0a0812;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    border-left: 1px solid rgba(139,92,246,0.10);
}

.canvas-label {
    font-size: 0.72rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--ji-violet);
    font-weight: 700;
    margin-bottom: 0.65rem;
}

.canvas-caption {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.32);
    text-align: center;
    margin-top: 0.65rem;
    line-height: 1.55;
}

.canvas-caption code {
    background: rgba(139,92,246,0.12);
    padding: 1px 4px;
    border-radius: 3px;
    color: var(--ji-violet);
    font-size: 0.85em;
}

/* ── Attribution strip ────────────────────────────────────── */
.attr-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1.1rem;
    background: rgba(255,255,255,0.02);
    border-top: 1px solid rgba(139,92,246,0.10);
    font-size: 0.78rem;
    color: rgba(255,255,255,0.40);
}

.attr-name { color: rgba(255,255,255,0.70); font-weight: 600; }

/* ── Your Turn card ───────────────────────────────────────── */
.your-turn-card {
    background: var(--ji-card);
    border: 1.5px solid var(--ji-border);
    border-radius: 16px;
    padding: 2rem 2.2rem;
    margin-bottom: 2rem;
}

.your-turn-card h3 {
    font-family: 'Boogaloo', cursive;
    font-size: clamp(1.3rem, 3vw, 1.75rem);
    color: #fff;
    margin-bottom: 1rem;
}

.your-turn-card p {
    font-size: 0.93rem;
    line-height: 1.72;
    color: rgba(255,255,255,0.75);
}

/* ── CRAFT callout ────────────────────────────────────────── */
.craft-callout {
    background: rgba(232,134,42,0.07);
    border-left: 4px solid var(--ji-amber);
    border-radius: 0 8px 8px 0;
    padding: 0.9rem 1.15rem;
    font-size: 0.92rem;
    color: rgba(255,255,255,0.80);
    margin-top: 1.25rem;
    line-height: 1.68;
}

.craft-callout a { color: var(--ji-amber); font-weight: 700; text-decoration: none; }
.craft-callout a:hover { color: #fff; }

/* ── Language idea badges ─────────────────────────────────── */
.lang-idea-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.lang-idea {
    background: rgba(139,92,246,0.10);
    border: 1px solid rgba(139,92,246,0.28);
    color: #C4B5FD;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 0.22rem 0.8rem;
    border-radius: 50px;
}

/* ═══════════════════════════════════════════════════════════
   CHATLOG-SPECIFIC STYLES
   (used by jacksonIrisChatlog.html)
═══════════════════════════════════════════════════════════ */

.log-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 1rem 4rem;
}

/* SPARK banners — violet palette */
.spark-banner {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 0.9rem 1.1rem;
    border-radius: 10px;
    margin: 1.8rem 0 0.7rem;
    font-size: 0.9rem;
}

.spark-banner .spark-icon { font-size: 1.6rem; flex-shrink: 0; line-height: 1.2; }
.spark-banner strong { display: block; font-size: 1rem; margin-bottom: 0.2rem; }

.spark-s { background: rgba(139,92,246,0.10); border-left: 5px solid var(--ji-violet); color: rgba(255,255,255,0.85); }
.spark-p { background: rgba(39,174,96,0.08);  border-left: 5px solid #27AE60; color: rgba(255,255,255,0.85); }
.spark-a { background: rgba(241,196,15,0.08);  border-left: 5px solid #F1C40F; color: rgba(255,255,255,0.85); }
.spark-r { background: rgba(232,134,42,0.07);  border-left: 5px solid var(--ji-amber); color: rgba(255,255,255,0.85); }
.spark-k { background: rgba(139,92,246,0.08);  border-left: 5px solid var(--ji-violet); color: rgba(255,255,255,0.85); }

/* Chat bubbles */
.chat-turn { margin: 0.5rem 0 1.2rem; }
.chat-speaker { font-size: 0.72rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 0.3rem; }
.chat-speaker.user    { color: #C4B5FD; text-align: right; }
.chat-speaker.copilot { color: #6EE7B7; }

.chat-bubble {
    display: inline-block;
    max-width: 90%;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.92rem;
    line-height: 1.6;
}
.chat-bubble p:last-child { margin-bottom: 0; }

.bubble-user {
    background: rgba(139,92,246,0.14);
    border: 1px solid rgba(139,92,246,0.30);
    color: rgba(255,255,255,0.90);
    border-bottom-right-radius: 3px;
    float: right; clear: both;
}

.bubble-copilot {
    background: rgba(110,231,183,0.07);
    border: 1px solid rgba(110,231,183,0.18);
    color: rgba(255,255,255,0.88);
    border-bottom-left-radius: 3px;
    float: left; clear: both;
}

.bubble-user-wrap { text-align: right; }
.bubble-user-wrap .chat-bubble { text-align: left; }
.chat-turn::after { content: ""; display: table; clear: both; }

/* Info boxes */
.decision-box {
    background: rgba(139,92,246,0.06);
    border-left: 5px solid var(--ji-violet);
    border-radius: 0 8px 8px 0;
    padding: 0.9rem 1.1rem;
    margin: 1rem 0;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.82);
}

.decision-label {
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--ji-violet);
    margin-bottom: 0.3rem;
}

.aside-box {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 8px;
    padding: 0.9rem 1.1rem;
    margin: 1rem 0;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.80);
}

.aside-label {
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.50);
    margin-bottom: 0.3rem;
}

.log-divider {
    text-align: center;
    margin: 2rem 0 0.5rem;
    color: rgba(139,92,246,0.60);
    font-size: 0.78rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.log-divider::before, .log-divider::after {
    content: "";
    display: inline-block;
    width: 60px;
    height: 1px;
    background: rgba(139,92,246,0.22);
    vertical-align: middle;
    margin: 0 0.7rem;
}

/* Code spans in chatlog boxes */
.decision-box code,
.aside-box code,
.chat-bubble code {
    background: rgba(139,92,246,0.14);
    padding: 1px 5px;
    border-radius: 3px;
    font-family: 'Source Code Pro', 'Noto Sans Mono', monospace;
    font-size: 0.85em;
    color: #C4B5FD;
}
