/* ============================================================================
   InternetPlumbers.com — Shared Neo-80s Retro Cyber Stylesheet
   Supports both standard content pages (.container) and quiz pages
   (.site-container / .quiz-app-shell) without colliding with Tailwind CSS.
   ============================================================================ */

* {
    box-sizing: border-box;
}

:root {
    --bg-color: #0b0213;
    --grid-color: rgba(0, 255, 255, 0.15);
    --neon-pink: #ff00ff;
    --neon-cyan: #00ffff;
    --neon-yellow: #fcee0a;
    --text-main: #e0e0e0;
}

body,
body.cyber-body {
    background-color: var(--bg-color);
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center center;
    color: var(--text-main);
    font-family: 'Share Tech Mono', monospace;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* Focus Accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--neon-cyan);
    outline-offset: 2px;
}

/* Main Centered Containers */
.container,
.site-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(11, 2, 19, 0.88);
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.2);
    border-left: 2px solid var(--neon-pink);
    border-right: 2px solid var(--neon-pink);
    min-height: 100vh;
}

/* Standard Page Typography */
.container h1,
.container h2,
.container h3,
.container h4,
.container h6 {
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.container h1,
.site-title {
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--neon-pink);
    text-shadow: 0 0 5px var(--neon-pink), 0 0 10px var(--neon-pink);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    text-align: center;
}

.container h2,
.site-section-title {
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--neon-cyan);
    border-bottom: 2px solid var(--neon-cyan);
    box-shadow: 0 5px 5px -5px var(--neon-cyan);
    padding-bottom: 5px;
    text-shadow: 0 0 5px var(--neon-cyan);
    margin: 35px 0 20px 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.container h3 {
    color: var(--neon-yellow);
    margin-bottom: 8px;
}

.container h4 {
    color: var(--text-main);
    margin-top: 12px;
    margin-bottom: 8px;
    font-size: 1rem;
    font-style: italic;
}

.container h6 {
    color: var(--neon-cyan);
    font-size: 0.9rem;
    margin: 4px 0 12px 0;
}

.site-header p,
.container header p {
    margin: 0 0 10px 0;
}

.highlight-pink,
.highlight-magenta { color: var(--neon-pink); text-shadow: 0 0 3px var(--neon-pink); }
.highlight-cyan { color: var(--neon-cyan); }
.highlight-yellow { color: var(--neon-yellow); }

.container hr,
.site-hr {
    border: 0;
    border-top: 1px solid var(--neon-pink);
    box-shadow: 0 0 8px var(--neon-pink);
    margin: 20px 0;
}

.container a,
.site-link {
    color: var(--neon-yellow);
    text-decoration: none;
    transition: all 0.25s ease;
}

.container a:hover,
.site-link:hover {
    color: #fff;
    text-shadow: 0 0 10px var(--neon-yellow);
}

/* Unified Navigation Bar */
.container nav,
.site-nav {
    text-align: center;
    margin-bottom: 30px;
    padding: 14px 12px;
    border: 1px solid var(--neon-cyan);
    background: rgba(0, 255, 255, 0.05);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 20px;
}

.container nav a,
.site-nav a {
    margin: 0;
    color: var(--neon-yellow);
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    font-size: 0.9rem;
    transition: all 0.25s ease;
    padding: 2px 6px;
}

.container nav a:hover,
.site-nav a:hover {
    color: #fff;
    text-shadow: 0 0 10px var(--neon-yellow);
}

.container nav a.nav-active,
.site-nav a.nav-active {
    color: var(--neon-cyan);
    text-shadow: 0 0 8px var(--neon-cyan);
    border-bottom: 2px solid var(--neon-pink);
}

/* Content Cards */
.container article,
.site-article {
    background: rgba(255, 255, 255, 0.03);
    border-left: 4px solid var(--neon-cyan);
    padding: 25px;
    margin-bottom: 20px;
    transition: background 0.25s ease, box-shadow 0.25s ease;
    font-size: 1.08rem;
    overflow-x: hidden;
}

.container article:hover {
    background: rgba(0, 255, 255, 0.05);
    box-shadow: inset 0 0 15px rgba(0, 255, 255, 0.2);
}

.site-article {
    padding: 20px;
}

.container article p {
    margin-bottom: 18px;
}

.container article ul,
.container article ol {
    padding-left: 22px;
    margin-bottom: 18px;
    color: var(--neon-cyan);
}

.container article li span {
    color: var(--text-main);
}

.container img {
    max-width: 100%;
    height: auto;
    border: 2px solid var(--neon-pink);
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.3);
    background: #000;
    display: block;
    margin: 20px auto;
}

.local-link-btn {
    display: inline-block;
    padding: 8px 15px;
    border: 1px solid var(--neon-yellow);
    color: var(--neon-yellow);
    background: rgba(252, 238, 10, 0.1);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    margin-top: 10px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s ease;
}

.local-link-btn:hover {
    background: var(--neon-yellow);
    color: #000;
    text-shadow: none;
}

/* Unified Footer */
.container footer,
.site-footer {
    text-align: center;
    margin-top: 50px;
    padding: 20px;
    border-top: 2px dashed var(--neon-pink);
    font-size: 0.9rem;
    color: var(--text-main);
}

.container footer p,
.site-footer p {
    margin: 10px 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 16px;
    margin: 12px 0;
    font-size: 0.85rem;
}

.footer-links a {
    color: var(--neon-cyan);
    text-decoration: none;
}

.footer-links a:hover {
    color: #fff;
    text-shadow: 0 0 8px var(--neon-cyan);
}

.terminal-box {
    display: inline-block;
    padding: 10px 20px;
    background: #000;
    border: 1px solid #333;
    color: #0f0;
    text-shadow: 0 0 5px #0f0;
    border-radius: 4px;
    margin-top: 10px;
}

/* Scoped Quiz Typography Reset (protects Tailwind & quiz cards) */
.quiz-app-shell {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    text-transform: none;
    letter-spacing: normal;
    line-height: 1.5;
}

.quiz-app-shell pre {
    background-color: #f1f5f9;
    color: #0f172a;
    padding: 0.85rem 1rem;
    border-radius: 0.65rem;
    margin-top: 0.75rem;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.88rem;
    line-height: 1.5;
    border: 1px solid #cbd5e1;
}

.dark .quiz-app-shell pre,
.quiz-app-shell.dark pre {
    background-color: #0f172a;
    color: #e2e8f0;
    border-color: #334155;
}

.quiz-app-shell code.inline-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.88em;
    background-color: rgba(148, 163, 184, 0.22);
    padding: 0.12em 0.38em;
    border-radius: 0.35rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .container,
    .site-container {
        padding: 12px;
        border-left: none;
        border-right: none;
    }
    .container h1,
    .site-title {
        font-size: 2.15rem;
    }
    .container h2,
    .site-section-title {
        font-size: 1.25rem;
    }
    .container nav,
    .site-nav {
        gap: 8px 14px;
        padding: 10px;
    }
    .container article,
    .site-article {
        padding: 14px;
        font-size: 1rem;
    }
}
