/*
Theme Name: Neuro-Brutalist Archive
Theme URI: https://github.com/stitch-terra/neuro-brutalist
Author: Stitch Terra
Author URI: https://stitch-terra.com
Description: A neuro-brutalist WordPress theme for hosting interactive HTML explainers. Upload self-contained HTML files and they automatically appear in the gallery. Black, white, blue (#0033ad) design system with Space Grotesk, Inter, and JetBrains Mono typography.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: neuro-brutalist
Tags: portfolio, grid-layout, custom-post-types, dark, brutalist

== Description ==
The Neural Monolith Laboratory - A personal archive of computational insights.
Upload interactive HTML explainers and they appear automatically in the gallery.
*/

/* ============================================
   NEURO-BRUTALIST DESIGN SYSTEM
   Colors: #131313 (bg), #ffffff (text), #0033ad (accent)
   Borders: 3-4px solid, hard shadows
   Border-radius: 0px everywhere
   ============================================ */

:root {
    --nb-black: #131313;
    --nb-white: #ffffff;
    --nb-blue: #0033ad;
    --nb-surface: #201f1f;
    --nb-surface-high: #2a2a2a;
    --nb-surface-low: #1c1b1b;
    --nb-outline: #8e9379;
    --nb-text-muted: #c4c9ad;
    --nb-error: #ffb4ab;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--nb-black);
    color: #e5e2e1;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background-color: var(--nb-blue);
    color: var(--nb-white);
}

/* Scrollbar */
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--nb-black); }
::-webkit-scrollbar-thumb { background: var(--nb-blue); border: 3px solid var(--nb-black); }

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.05em;
    line-height: 0.85;
}

.font-mono {
    font-family: 'JetBrains Mono', 'Space Mono', monospace;
}

.font-headline {
    font-family: 'Space Grotesk', sans-serif;
}

/* Links */
a {
    color: inherit;
    text-decoration: none;
    transition: none;
}

/* Brutalist Components */
.nb-border {
    border: 3px solid var(--nb-white);
}

.nb-hard-shadow {
    box-shadow: 8px 8px 0px 0px rgba(0, 0, 0, 1);
}

.nb-hard-shadow-blue {
    box-shadow: 12px 12px 0px 0px rgba(0, 0, 0, 1);
}

.nb-card {
    background: var(--nb-white);
    border: 3px solid #000;
    box-shadow: 12px 12px 0px 0px rgba(0, 0, 0, 1);
}

.nb-btn {
    display: inline-block;
    background: #000;
    color: var(--nb-white);
    padding: 1rem 3rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 900;
    font-size: 1.25rem;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
}

.nb-btn:hover {
    transform: translate(1px, -1px);
    box-shadow: 4px 4px 0px 0px var(--nb-blue);
}

.nb-btn-blue {
    background: var(--nb-blue);
    color: var(--nb-white);
}

/* Blueprint Grid Background */
.blueprint-grid {
    background-image: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 3rem;
}

/* Grayscale hover effect */
.nb-grayscale {
    filter: grayscale(100%) contrast(1.25);
    transition: filter 0.3s;
}
.nb-grayscale:hover {
    filter: grayscale(0%) contrast(1);
}

/* Status indicators */
.status-dot {
    width: 8px;
    height: 8px;
    background: var(--nb-blue);
    display: inline-block;
}

.status-dot.active {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* WordPress-specific overrides */
.wp-block-image img {
    border-radius: 0 !important;
}

.entry-content {
    max-width: none;
}

/* Explainer iframe container */
.explainer-frame-container {
    width: 100%;
    background: var(--nb-white);
    border: 3px solid var(--nb-white);
    box-shadow: 6px 6px 0px 0px #000;
    position: relative;
    overflow: hidden;
}

.explainer-frame-container iframe {
    width: 100%;
    min-height: 600px;
    border: none;
    display: block;
}

/* Admin bar fix */
body.admin-bar .nb-nav-fixed {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .nb-nav-fixed {
        top: 46px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    h1 {
        font-size: 3rem !important;
    }
}
