/* =========================================================
   8-bit Portfolio Theme – Readable + Badges + Dark Mode
   ========================================================= */

/* -------------------------
   COLOR VARIABLES
-------------------------- */
:root {
    --8bit-primary: #2d5016;
    --8bit-secondary: #8bbc0f;
    --8bit-bg: #ffffff;
    --8bit-text: #000000;

    --badge-new: #00aa00;
    --badge-active: #8bbc0f;
    --badge-coming: #b58900;
}

/* Dark mode overrides */
#dark-toggle:checked ~ * {
    --8bit-bg: #121212;
    --8bit-text: #e0e0e0;
}

/* -------------------------
   BASE TYPOGRAPHY
-------------------------- */
body {
    background-color: var(--8bit-bg);
    color: var(--8bit-text);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1rem;
    line-height: 1.75;
    margin: 0;
}

/* -------------------------
   CONTAINER
-------------------------- */
.container {
    background-color: rgba(0,0,0,0.03);
    border: 4px solid var(--8bit-primary);
    padding: 2rem;
    margin: 1rem auto;
    max-width: 900px;
}

/* -------------------------
   HEADINGS – 8-BIT
-------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Press Start 2P', cursive;
    color: var(--8bit-primary);
    text-shadow: 2px 2px 0 var(--8bit-secondary);
    margin: 1.5rem 0 1rem;
}

h1 {
    font-size: 2rem;
    border-bottom: 3px solid var(--8bit-primary);
    padding-bottom: 0.5rem;
}

h2 { font-size: 1.4rem; }
h3 { font-size: 1rem; }

/* -------------------------
   PARAGRAPHS – READABLE
-------------------------- */
p, ul, ol {
    font-family: Georgia, serif;
    font-size: 1rem;
    line-height: 1.8;
}

/* -------------------------
   LINKS
-------------------------- */
a {
    color: var(--8bit-primary);
    text-decoration: none;
    border-bottom: 2px solid var(--8bit-secondary);
}

a:hover {
    background-color: rgba(139,188,15,0.2);
}

/* -------------------------
   BUTTONS – NES STYLE
-------------------------- */
.nes-btn {
    font-family: 'Press Start 2P', cursive;
    background-color: var(--8bit-primary);
    color: #fff;
    border: 4px outset #dfdfdf;
    padding: 0.75rem 1.5rem;
    font-size: 0.75rem;
    cursor: pointer;
    box-shadow: inset -4px -4px #1a1a1a,
                inset 4px 4px #dfdfdf;
}

.nes-btn:hover {
    background-color: var(--8bit-secondary);
    color: #000;
}

/* -------------------------
   SOCIAL LINKS – 8-BIT UI
-------------------------- */
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.social-links a {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.7rem;
    padding: 0.5rem;
    border: 2px solid var(--8bit-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* -------------------------
   PROJECT SECTIONS – 8-BIT UI
-------------------------- */
.project-section {
    border-left: 4px solid var(--8bit-secondary);
    padding-left: 1rem;
    margin: 2rem 0;
}

.project-item {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.7rem;
    line-height: 1.6;
    background-color: rgba(139,188,15,0.1);
    border: 1px solid var(--8bit-primary);
    padding: 0.75rem;
    margin: 0.75rem 0;
    position: relative;
}

/* -------------------------
   AUTOMATIC STATUS BADGES
-------------------------- */
.project-item::after {
    position: absolute;
    top: 6px;
    right: 6px;
    padding: 0.25rem 0.5rem;
    font-size: 0.55rem;
    font-family: 'Press Start 2P', cursive;
    color: #fff;
    border: 2px solid #fff;
}

/* Explicit classes */
.status-new::after {
    content: "NEW";
    background-color: var(--badge-new);
}

.status-active::after {
    content: "ACTIVE";
    background-color: var(--badge-active);
}

.status-coming::after {
    content: "COMING";
    background-color: var(--badge-coming);
}

/* Attribute-based auto badges */
.project-item[data-status="new"]::after {
    content: "NEW";
    background-color: var(--badge-new);
}

.project-item[data-status="active"]::after {
    content: "ACTIVE";
    background-color: var(--badge-active);
}

.project-item[data-status="coming"]::after {
    content: "COMING";
    background-color: var(--badge-coming);
}

/* -------------------------
   BLOCKQUOTES & CODE
-------------------------- */
blockquote {
    font-family: 'VT323', monospace;
    font-size: 1.15rem;
    background-color: rgba(0,0,0,0.05);
    padding: 1rem 1.5rem;
    border-left: 5px solid var(--8bit-primary);
}

code {
    font-family: 'Courier New', monospace;
    background-color: rgba(0,0,0,0.6);
    color: #00ff00;
    padding: 0.25rem 0.5rem;
}

/* -------------------------
   DARK MODE TOGGLE BUTTON
-------------------------- */
.dark-toggle {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.6rem;
    cursor: pointer;
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.4rem 0.6rem;
    border: 2px solid var(--8bit-secondary);
}

/* -------------------------
   FOOTER
-------------------------- */
.site-footer {
    text-align: center;
    font-size: 0.75rem;
    border-top: 3px solid var(--8bit-secondary);
    margin-top: 3rem;
    padding-top: 1rem;
}

/* -------------------------
   RESPONSIVE
-------------------------- */
@media (max-width: 768px) {
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.2rem; }
}


.edu-8bit {
    font-family: 'Press Start 2P', cursive;
}

.edu-8bit p {
    font-size: 0.65rem;
    line-height: 1.8;
}

.edu-8bit strong {
    font-weight: normal; /* Press Start 2P has no real bold */
}

/* =========================================================
   FORCE 8-BIT FONT FOR SPECIFIC NES CONTAINERS
   ========================================================= */

.nes-8bit,
.nes-8bit p,
.nes-8bit ul,
.nes-8bit ol,
.nes-8bit li,
.nes-8bit a,
.nes-8bit strong,
.nes-8bit span {
    font-family: 'Press Start 2P', cursive !important;
}

.nes-8bit p,
.nes-8bit li {
    font-size: 0.65rem !important;
    line-height: 1.7;
}

.nes-8bit ul {
    list-style: none;
    padding-left: 0;
}

.nes-8bit li {
    margin: 0.75rem 0;
}

.nes-8bit strong {
    font-weight: normal; /* Press Start 2P has no true bold */
}

.nes-8bit a {
    border-bottom: 2px solid var(--8bit-secondary);
}
