/* ══════════════════════════════════════════════════════════════════════
   seeTheCodeHomeStyles.css
   TNT | See the Code | Home
   Created: 11/06/2026
   Color identity: Matrix green #00b800 — the Cipher/reverse-engineering theme
   ══════════════════════════════════════════════════════════════════════ */

:root {
    --stc-green:       #00b800;
    --stc-green-dim:   rgba(0, 184, 0, 0.12);
    --stc-green-glow:  rgba(0, 184, 0, 0.28);
    --stc-bg:          #020a02;
    --stc-mid:         #061206;
    --stc-card:        #071a07;
    --stc-border:      rgba(0, 184, 0, 0.18);
    --stc-light:       rgba(200, 240, 200, 0.88);
    --stc-muted:       rgba(200, 240, 200, 0.45);
}

/* ── Base ─────────────────────────────────────────────────────────── */
body {
    background: var(--stc-bg);
    color: var(--stc-light);
    font-family: 'Inter', sans-serif;
}

/* ── Back bar ─────────────────────────────────────────────────────── */
.stc-back-bar {
    background: #010301;
    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(--stc-green);
    font-size: 0.88rem;
}

.stc-back-bar-inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.stc-back-bar a {
    color: var(--stc-green);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.15s;
}

.stc-back-bar a:hover { color: #fff; }

.stc-back-label {
    color: rgba(255, 255, 255, 0.28);
    font-size: 0.80rem;
    font-style: italic;
}

/* ── Hero ─────────────────────────────────────────────────────────── */
#stcHero {
    min-height: 55vh;
    background:
        linear-gradient(to right,
            rgba(2,10,2,0.98) 0%,
            rgba(2,10,2,0.82) 18%,
            rgba(0,30,0,0.68) 50%,
            rgba(2,10,2,0.82) 82%,
            rgba(2,10,2,0.98) 100%),
        url('../../images/cipherMatrix.jpg') center 65% / cover no-repeat;
    background-color: #010301;
    padding: 5.5rem 1rem 4.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.stc-hero-content { max-width: 860px; margin: 0 auto; }

.stc-eyebrow {
    display: block;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: var(--stc-green);
    opacity: 0.88;
    margin-bottom: 0.6rem;
}

.stc-hero-title {
    font-family: 'Boogaloo', cursive;
    font-size: clamp(2.6rem, 6.5vw, 4.2rem);
    color: #fff;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 30px rgba(0,184,0,0.25);
}

.stc-hero-title .stc-accent { color: var(--stc-green); }

.stc-cipher-quote {
    font-size: clamp(0.9rem, 2vw, 1.05rem);
    font-style: italic;
    color: rgba(180, 255, 180, 0.72);
    border-left: 3px solid var(--stc-green);
    padding: 0.5rem 1rem;
    margin: 1.2rem auto;
    max-width: 580px;
    text-align: left;
    line-height: 1.65;
}

.stc-cipher-quote cite {
    display: block;
    margin-top: 0.4rem;
    font-style: normal;
    font-size: 0.70rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--stc-green);
}

.stc-hero-sub {
    font-size: clamp(0.95rem, 2.2vw, 1.15rem);
    color: rgba(200, 240, 200, 0.72);
    margin-top: 0.9rem;
    line-height: 1.60;
}

.stc-hero-cta {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.75rem;
}

.btn-stc-primary {
    background: var(--stc-green);
    color: #010301;
    font-weight: 700;
    font-size: 0.92rem;
    padding: 0.62rem 1.4rem;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: background 0.15s, transform 0.12s;
}

.btn-stc-primary:hover {
    background: #00d600;
    color: #010301;
    text-decoration: none;
    transform: translateY(-2px);
}

.btn-stc-secondary {
    background: transparent;
    border: 2px solid var(--stc-green);
    color: var(--stc-green);
    font-weight: 700;
    font-size: 0.92rem;
    padding: 0.60rem 1.4rem;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: all 0.15s;
}

.btn-stc-secondary:hover {
    background: var(--stc-green-dim);
    color: #fff;
    text-decoration: none;
}

/* ── Section scaffolding ──────────────────────────────────────────── */
.stc-section-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: var(--stc-green);
    margin-bottom: 0.4rem;
}

.stc-section-title {
    font-family: 'Boogaloo', cursive;
    font-size: clamp(1.9rem, 4vw, 2.9rem);
    color: #fff;
    line-height: 1.15;
    margin-bottom: 1rem;
}

#stcWhat   { background: linear-gradient(180deg, var(--stc-bg) 0%, var(--stc-mid) 100%); padding: 4.5rem 1rem; }
#stcHow    { background: var(--stc-mid); padding: 4rem 1rem; border-top: 1px solid var(--stc-border); }
#stcEntries{ background: linear-gradient(180deg, var(--stc-mid) 0%, var(--stc-bg) 100%); padding: 4rem 1rem; border-top: 1px solid var(--stc-border); }
#stcRelated{ background: var(--stc-bg); padding: 4rem 1rem; border-top: 1px solid var(--stc-border); }

#stcWhat p, #stcHow p {
    font-size: 0.95rem;
    line-height: 1.80;
    color: var(--stc-muted);
}

/* ── Principle cards ──────────────────────────────────────────────── */
.stc-principle-card {
    background: var(--stc-card);
    border: 1px solid var(--stc-border);
    border-radius: 10px;
    padding: 1.25rem 1.4rem;
    height: 100%;
}

.stc-principle-icon { font-size: 2rem; margin-bottom: 0.55rem; }

.stc-principle-title {
    font-family: 'Boogaloo', cursive;
    font-size: 1.2rem;
    color: var(--stc-green);
    margin-bottom: 0.45rem;
}

.stc-principle-desc {
    font-size: 0.87rem;
    color: var(--stc-muted);
    line-height: 1.72;
    margin: 0;
}

.stc-callout {
    background: var(--stc-green-dim);
    border-left: 4px solid var(--stc-green);
    border-radius: 0 8px 8px 0;
    padding: 0.9rem 1.15rem;
    font-size: 0.92rem;
    color: rgba(180, 255, 180, 0.88);
    line-height: 1.68;
    margin-top: 1.4rem;
}

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

/* ── How It Works steps ───────────────────────────────────────────── */
.stc-step {
    background: var(--stc-card);
    border: 1px solid var(--stc-border);
    border-radius: 12px;
    padding: 1.6rem 1.6rem 1.4rem;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.stc-step-bg-num {
    font-family: 'Boogaloo', cursive;
    font-size: 5rem;
    color: rgba(0, 184, 0, 0.08);
    line-height: 1;
    position: absolute;
    top: 0.6rem;
    right: 1rem;
    pointer-events: none;
    user-select: none;
}

.stc-step-icon { font-size: 1.55rem; margin-bottom: 0.65rem; }

.stc-step-title {
    font-family: 'Boogaloo', cursive;
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.stc-step-desc {
    font-size: 0.88rem;
    color: var(--stc-muted);
    line-height: 1.72;
    margin: 0 0 0.75rem;
}

.stc-step-code {
    display: inline-block;
    font-family: 'Source Code Pro', monospace;
    font-size: 0.80rem;
    background: rgba(0, 184, 0, 0.10);
    color: #7dff7d;
    padding: 0.3em 0.65em;
    border-radius: 4px;
    border: 1px solid rgba(0, 184, 0, 0.22);
    word-break: break-all;
}

/* ── Entry cards ──────────────────────────────────────────────────── */
.stc-entry-link {
    display: block;
    text-decoration: none;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--stc-border);
    background: var(--stc-card);
    transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
    cursor: pointer;
    height: 100%;
}

.stc-entry-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.70), 0 0 20px var(--stc-green-glow);
    border-color: rgba(0,184,0,0.50);
    text-decoration: none;
}

.stc-entry-thumb {
    height: 210px;
    overflow: hidden;
    background: #000;
}

.stc-entry-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.35s;
    display: block;
}

.stc-entry-link:hover .stc-entry-thumb img { transform: scale(1.04); }

.stc-entry-body {
    padding: 1.1rem 1.25rem 1.3rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.stc-entry-num {
    font-size: 0.70rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--stc-green);
}

.stc-entry-title {
    font-family: 'Boogaloo', cursive;
    font-size: 1.3rem;
    color: #fff;
    line-height: 1.2;
    margin: 0;
}

.stc-entry-desc {
    font-size: 0.84rem;
    color: var(--stc-muted);
    line-height: 1.65;
    margin: 0.1rem 0 0.4rem;
}

.stc-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.2rem;
}

.stc-tier-badge {
    font-size: 0.70rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    padding: 0.2em 0.68em;
    border-radius: 20px;
}

.tier-haiku  { background: rgba(0,184,0,0.14); color: var(--stc-green); border: 1px solid rgba(0,184,0,0.28); }
.tier-sonnet { background: rgba(245,166,35,0.14); color: #f5a623; border: 1px solid rgba(245,166,35,0.28); }
.tier-epic   { background: rgba(239,68,68,0.13); color: #f87171; border: 1px solid rgba(239,68,68,0.26); }

.stc-lang-html { font-size: 0.70rem; font-weight: 700; padding: 0.18em 0.58em; border-radius: 12px; background: rgba(228,77,38,0.13); color: #f4814e; border: 1px solid rgba(228,77,38,0.24); }
.stc-lang-css  { font-size: 0.70rem; font-weight: 700; padding: 0.18em 0.58em; border-radius: 12px; background: rgba(38,116,228,0.13); color: #6fa8f5; border: 1px solid rgba(38,116,228,0.24); }

/* Coming soon card */
.stc-coming-soon {
    border: 2px dashed rgba(0,184,0,0.18);
    border-radius: 10px;
    background: var(--stc-card);
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    height: 100%;
}

.stc-coming-soon .cs-icon { font-size: 2rem; color: rgba(0,184,0,0.30); margin-bottom: 0.55rem; }
.stc-coming-soon .cs-title { font-family: 'Boogaloo', cursive; font-size: 1.1rem; color: rgba(0,184,0,0.40); margin-bottom: 0.3rem; }
.stc-coming-soon .cs-tier  { font-size: 0.78rem; color: rgba(0,184,0,0.28); }

/* ── Related links ────────────────────────────────────────────────── */
.stc-related-card {
    background: var(--stc-card);
    border: 1px solid var(--stc-border);
    border-radius: 10px;
    padding: 1.25rem 1.4rem;
    text-decoration: none;
    display: block;
    height: 100%;
    transition: border-color 0.15s, background 0.15s, transform 0.15s;
}

.stc-related-card:hover {
    border-color: rgba(0,184,0,0.50);
    background: rgba(0,184,0,0.07);
    text-decoration: none;
    transform: translateY(-3px);
}

.stc-related-icon { font-size: 1.9rem; margin-bottom: 0.5rem; }

.stc-related-title {
    font-family: 'Boogaloo', cursive;
    font-size: 1.12rem;
    color: var(--stc-green);
    margin-bottom: 0.35rem;
}

.stc-related-desc { font-size: 0.83rem; color: var(--stc-muted); line-height: 1.68; margin: 0; }

/* Featured chatlog — full-width prominent card */
.stc-chatlog-card {
    background: rgba(0,184,0,0.06);
    border: 1px solid rgba(0,184,0,0.28);
    border-radius: 10px;
    padding: 1.4rem 1.8rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
}

.stc-chatlog-card:hover {
    background: rgba(0,184,0,0.10);
    border-color: rgba(0,184,0,0.55);
    text-decoration: none;
}

.stc-chatlog-icon { font-size: 2.5rem; flex-shrink: 0; }

.stc-chatlog-title {
    font-family: 'Boogaloo', cursive;
    font-size: 1.25rem;
    color: var(--stc-green);
    margin-bottom: 0.3rem;
}

.stc-chatlog-desc { font-size: 0.85rem; color: var(--stc-muted); line-height: 1.65; margin: 0; }

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 575.98px) {
    .stc-back-bar    { justify-content: flex-start; }
    .stc-cipher-quote{ border-left: none; padding: 0.5rem 0; }
    .stc-chatlog-card{ flex-direction: column; gap: 0.75rem; }
}
