/* ================================================
   Binary 101 Standalone Black & White Theme
   Applied to all binary101 pages for independent branding
   ================================================ */

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --text-primary: #111111;
    --text-secondary: #333333;
    --text-muted: #666666;
    --accent: #000000;
    --accent-light: #333333;
    --border-color: #dddddd;
    --card-bg: #fafafa;
}

body {
    background: #ffffff;
    color: #111111;
}

/* Remove colorful backgrounds */
.edu-hero, .article-header {
    background: #ffffff;
    border-bottom: 2px solid #000000;
}

.edu-hero h1, .article-header h1 {
    color: #000000;
    text-shadow: none;
}

.edu-section h2, .article-content h2 {
    color: #000000;
}

/* Info cards - black and white */
.info-card {
    background: #ffffff;
    border: 1px solid #000000;
}

.info-card:hover {
    background: #f5f5f5;
    box-shadow: 4px 4px 0 #000000;
}

.info-card--link:hover {
    border-color: #000000;
}

/* Blog cards */
.blog-card {
    background: #ffffff;
    border: 1px solid #000000;
}

.blog-card:hover {
    box-shadow: 4px 4px 0 #000000;
}

.blog-card--featured {
    border-width: 2px;
}

.blog-category {
    background: #000000;
    color: #ffffff;
}

/* Bulb display - grayscale */
.bulb-display {
    background: #f5f5f5;
    border: 1px solid #000000;
}

.bulb.on {
    background: linear-gradient(180deg, #000000 0%, #333333 100%);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    border-color: #000000;
}

/* Tables */
.number-systems-table,
.place-value-table,
table {
    border-color: #000000;
}

.number-systems-table th,
.place-value-table th,
table th {
    background: #000000;
    color: #ffffff;
}

.highlight-row {
    background: #f0f0f0;
}

/* Converter */
.converter-box {
    background: #f5f5f5;
    border: 2px solid #000000;
}

.converter-tab.active {
    background: #000000;
    color: #ffffff;
}

/* Tools */
.tool-box {
    border: 1px solid #000000;
    background: #ffffff;
}

/* Quiz */
.quiz-option {
    border: 1px solid #000000;
    background: #ffffff;
}

.quiz-option:hover {
    background: #000000;
    color: #ffffff;
}

/* Timeline */
.timeline-item::before {
    background: #000000;
}

.timeline-year {
    background: #000000;
    color: #ffffff;
}

/* Exercises */
.exercise-box {
    border: 1px solid #000000;
}

.exercise-btn {
    background: #000000;
    color: #ffffff;
}

/* FAQ */
.faq-question {
    border: 1px solid #000000;
}

.faq-item.open .faq-question {
    background: #000000;
    color: #ffffff;
}

/* Navigation - Binary 101 standalone */
.section-nav, .binary101-nav {
    background: #ffffff;
    border-bottom: 1px solid #000000;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.page-nav-logo, .binary101-logo {
    font-family: 'Orbitron', monospace;
    font-weight: 900;
    font-size: 1.2rem;
    color: #000000;
    text-decoration: none;
}

.page-nav-links, .binary101-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.page-nav-links a, .binary101-links a {
    color: #000000;
    text-decoration: none;
    font-size: 0.9rem;
}

.page-nav-links a:hover, .binary101-links a:hover {
    text-decoration: underline;
}

/* Buttons */
.btn--primary {
    background: #000000;
    color: #ffffff;
    border: 2px solid #000000;
}

.btn--primary:hover {
    background: #ffffff;
    color: #000000;
}

/* Code highlights */
.code-highlight, code {
    background: #f0f0f0;
    border: 1px solid #cccccc;
    color: #000000;
}

.result-highlight {
    background: #000000;
    color: #ffffff;
    padding: 0.2em 0.5em;
}

/* Bit manipulator */
.bit-toggle {
    border: 1px solid #000000;
    background: #ffffff;
}

.bit-toggle.active {
    background: #000000;
    color: #ffffff;
}

/* Hide main site nav */
nav#nav:not(.section-nav):not(.binary101-nav) {
    display: none !important;
}

/* Adjust padding without main nav */
.edu-page, .edu-article {
    padding-top: 80px;
}

/* Footer */
.edu-footer, .binary101-footer {
    background: #000000;
    color: #ffffff;
    padding: 2rem;
    text-align: center;
}

.edu-footer p, .binary101-footer p {
    color: #ffffff;
    margin: 0.5rem 0;
}

.edu-footer a, .binary101-footer a {
    color: #ffffff;
    text-decoration: underline;
}

.edu-footer a:hover, .binary101-footer a:hover {
    color: #cccccc;
}

/* Article pages */
.article-content {
    background: #ffffff;
}

.article-content h2, .article-content h3 {
    color: #000000;
}

.article-content p, .article-content li {
    color: #333333;
}

/* Breadcrumb */
.breadcrumb {
    color: #666666;
}

.breadcrumb a {
    color: #000000;
}

/* Back link */
.back-link {
    color: #000000;
    border: 1px solid #000000;
    background: #ffffff;
}

.back-link:hover {
    background: #000000;
    color: #ffffff;
}

/* Key points / highlights boxes */
.key-point, .highlight-box, .note-box {
    background: #f5f5f5;
    border-left: 4px solid #000000;
}

/* Links in content */
.article-content a {
    color: #000000;
    text-decoration: underline;
}

/* Related articles */
.related-articles a {
    border: 1px solid #000000;
    background: #ffffff;
}

.related-articles a:hover {
    background: #f5f5f5;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .page-nav-links, .binary101-links {
        display: none;
    }

    .section-nav, .binary101-nav {
        justify-content: center;
    }
}
