/* --- GLOBAL THEME SYSTEM VARIABLES --- */
:root {
    --bg-color: #050505;
    --term-green: #00ff41;
    --term-dark-green: #008f11;
    --neon-violet: #b026ff;
    --violet-glow: 0 0 10px var(--neon-violet), 0 0 20px var(--neon-violet);
    --green-glow: 0 0 5px var(--term-green), 0 0 10px var(--term-green);
    --warn-yellow: #ffbd2e;
    --terminal-bg: #0a0a0a;
}

/* --- STRUCTURE RESET & POSITION LOCK --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scrollbar-gutter: stable; 
}

body {
    background-color: var(--bg-color);
    color: var(--term-green);
    font-family: 'VT323', monospace;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    font-size: 1.2rem;
    line-height: 1.6;
}

/* CRT Scanline Layout Layer */
body::before {
    content: " ";
    display: block;
    position: fixed;
    top: 0; left: 0; bottom: 0; right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), 
                linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 999;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
}

/* --- GLOBAL STICKY NAVIGATION BAR --- */
nav.hacker-nav {
    background-color: rgba(10, 10, 10, 0.95);
    border-bottom: 2px solid var(--neon-violet);
    box-shadow: 0 0 15px var(--neon-violet);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 15px;
    padding: 0 20px;
    align-items: center;
    position: relative;
}

.nav-link {
    color: var(--term-green);
    text-decoration: none;
    text-transform: lowercase;
    font-size: 1.4rem;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 10px 0;
    display: inline-block;
}

.nav-link::before { content: "[ "; color: var(--neon-violet); opacity: 0; transition: opacity 0.3s; }
.nav-link::after { content: " ]"; color: var(--neon-violet); opacity: 0; transition: opacity 0.3s; }
.nav-link:hover { color: var(--neon-violet); text-shadow: var(--violet-glow); }
.nav-link:hover::before, .nav-link:hover::after { opacity: 1; }
.nav-link.active { color: #fff; text-shadow: 0 0 10px #fff; }

/* --- NAVIGATION TERMINAL DROPDOWN --- */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    left: 0; 
    top: 100%;
    transform: translateY(10px);
    background-color: rgba(5, 5, 5, 0.98);
    border: 1px solid var(--neon-violet);
    box-shadow: 0 10px 30px rgba(176, 38, 255, 0.3);
    padding: 20px;
    z-index: 1000; 
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    border-radius: 4px;
    width: max-content;
    max-width: 95vw;
    min-width: 600px;
}

.dropdown-content::before {
    content: "user@iR-Server:~/manifesto$ ls -la";
    position: absolute;
    top: -12px;
    left: 15px;
    background: #050505;
    padding: 0 5px;
    color: #ffbd2e;
    font-size: 1rem;
    white-space: nowrap;
}

.dropdown:hover .dropdown-content {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.dir-col {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.dir-name {
    color: #fff;
    font-weight: bold;
    border-bottom: 1px dashed var(--term-dark-green);
    margin-bottom: 8px;
    padding-bottom: 3px;
    text-shadow: 0 0 5px #fff;
    font-size: 1rem;
}

.file-link {
    color: var(--term-green);
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
}

.file-link::before {
    content: "├── ";
    color: var(--term-dark-green);
    margin-right: 5px;
    white-space: pre;
}

.file-link.last-file::before {
    content: "└── ";
}

.file-link:hover {
    color: var(--neon-violet);
    transform: translateX(5px);
    text-shadow: var(--violet-glow);
}

/* --- CENTRAL CONTENT CONTAINER --- */
main {
    flex: 1;
    max-width: 900px; 
    margin: 40px auto; /* Changed from 60px to 40px to reduce the violet line gap */
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* Modifier for broader fluid dashboard/grid pages */
main.wide-layout {
    max-width: 95vw;
    z-index: 2;
}

/* --- STANDARD TERMINAL BOX FRAME --- */
.terminal-box {
    background-color: #0a0a0a;
    border: 1px solid var(--term-dark-green);
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.2);
    position: relative;
    overflow: hidden;
}

.terminal-header {
    background-color: var(--term-dark-green);
    color: #000;
    padding: 5px 10px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
}

.terminal-controls span {
    display: inline-block; width: 12px; height: 12px; border-radius: 50%;
    margin-left: 5px; background-color: #000;
}
.terminal-controls span:nth-child(1) { background-color: #ff5f56; }
.terminal-controls span:nth-child(2) { background-color: #ffbd2e; }
.terminal-controls span:nth-child(3) { background-color: #27c93f; }

.terminal-body {
    padding: 30px;
}

/* --- STDOUT PAGE VIEW STYLES --- */
.stdout-page-body {
    padding: 50px 30px;
    text-align: center;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.status-title {
    font-size: 3rem;
    color: var(--warn-yellow);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(255, 189, 46, 0.6);
    border: 2px dashed var(--warn-yellow);
    padding: 10px 20px;
    display: inline-block;
}

.description {
    color: #fff;
    font-size: 1.5rem;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto 40px auto;
}

.dynamic-text-container {
    font-size: 1.8rem;
    color: var(--term-green);
    font-weight: bold;
    min-height: 1.8rem;
    text-shadow: var(--green-glow);
}

.cursor {
    display: inline-block;
    width: 10px;
    height: 1.2em;
    background-color: var(--term-green);
    vertical-align: middle;
    animation: blink 1s step-end infinite;
}

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

/* --- ABOUT US PAGE VIEW STYLES --- */
.readme-content h2 {
    color: var(--term-green);
    font-size: 2rem;
    margin-bottom: 20px;
    text-shadow: var(--green-glow);
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    text-transform: uppercase;
}

.readme-content p {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.3rem;
    line-height: 1.8;
}

.readme-content ul {
    list-style: none;
    margin-bottom: 20px;
    padding-left: 10px;
}

.readme-content li {
    color: #fff;
    margin-bottom: 15px;
    padding-left: 20px;
    position: relative;
    font-size: 1.3rem;
}

.readme-content li::before {
    content: "->";
    position: absolute;
    left: 0;
    color: var(--neon-violet);
    font-weight: bold;
}

.partner-name {
    color: var(--neon-violet);
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.purpose-item { margin-bottom: 25px; }
.purpose-title {
    color: var(--term-green);
    font-weight: bold;
    font-size: 1.4rem;
    margin-bottom: 5px;
}

/* --- COMPONENT: SHARED FILTERS & HEADERS --- */
.page-header, .market-header {
    text-align: center;
    margin-bottom: 0px;
}

.page-title, .market-title {
    font-family: 'Sedgwick Ave Display', cursive;
    font-size: 3.5rem;
    color: #fff;
    text-shadow: 3px 3px 0 var(--neon-violet);
    margin-bottom: 10px;
}

.page-subtitle, .market-subtitle {
    font-family: 'VT323', monospace;
    font-size: 1.4rem;
    color: var(--neon-violet);
    text-shadow: 0 0 5px var(--neon-violet);
}

.controls-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    background: var(--terminal-bg);
    border: 1px solid var(--term-dark-green);
    padding: 15px;
    margin-bottom: 40px;
    gap: 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.search-container {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.search-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--term-dark-green);
    color: #fff;
    font-family: 'VT323', monospace;
    font-size: 1.4rem;
    padding: 5px 10px;
    outline: none;
    transition: 0.3s;
}

.search-input:focus {
    border-color: var(--neon-violet);
    box-shadow: 0 5px 10px -5px var(--neon-violet);
}

.search-input::placeholder { color: #555; }

.categories {
    display: flex;
    gap: 10px;
}

.cat-btn {
    background: transparent;
    border: 1px solid var(--term-dark-green);
    color: var(--term-dark-green);
    padding: 5px 15px;
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
}

.cat-btn:hover, .cat-btn.active {
    background: var(--term-green);
    color: #000;
    box-shadow: 0 0 10px var(--term-green);
}

/* --- COMPONENT: MANIFESTO ARTICLE CARDS --- */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 380px); 
    gap: 30px;
    justify-content: center; 
}

.article-card {
    background: var(--terminal-bg);
    border: 1px solid var(--term-dark-green);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    position: relative;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 255, 65, 0.15);
    border-color: var(--neon-violet);
}

.article-header-bar {
    background-color: rgba(0, 20, 0, 0.3);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #222;
}

.article-cat {
    font-size: 0.9rem;
    color: var(--neon-violet);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
}

.article-date {
    font-size: 0.9rem;
    color: #666;
}

.article-body {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-title {
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 10px;
    font-weight: bold;
}

.article-desc {
    color: #aaa;
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.article-link-text {
    margin-top: auto;
    color: var(--term-green);
    font-weight: bold;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.article-link-text::after {
    content: "->";
    font-family: monospace;
    transition: transform 0.3s;
}

.article-card:hover .article-link-text {
    color: var(--neon-violet);
    text-shadow: var(--violet-glow);
}

.article-card:hover .article-link-text::after { transform: translateX(5px); }

/* --- COMPONENT: BLACKMARKET PRODUCTS VIEW --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 340px);
    gap: 30px;
    justify-content: center;
}

.product-card {
    background: var(--terminal-bg);
    border: 1px solid var(--term-dark-green);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 255, 65, 0.15);
    border-color: var(--neon-violet);
}

.img-container {
    width: 100%;
    height: 250px;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid var(--term-dark-green);
    position: relative;
    overflow: hidden;
}

.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.3s, transform 0.5s;
}

.product-card:hover img {
    opacity: 1;
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 0.9rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    display: block;
}

.product-name {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 10px;
    font-weight: bold;
}

.price-row {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px dashed #333;
}

.price {
    font-size: 1.5rem;
    color: var(--neon-violet);
    text-shadow: 0 0 5px rgba(176, 38, 255, 0.5);
}

.buy-link {
    background: transparent;
    border: 1px solid var(--term-green);
    color: var(--term-green);
    padding: 5px 20px;
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.2s;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
}

.buy-link:hover {
    background: var(--term-green);
    color: #000;
    box-shadow: var(--green-glow);
    text-decoration: none;
}

/* --- COMPONENT: IMPRESSUM LEGAL CONTENT --- */
.article-content h2 {
    color: var(--term-green);
    font-size: 2rem;
    margin-bottom: 18px;
    text-shadow: var(--green-glow);
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.article-content p {
    color: #fff;
    margin-bottom: 18px;
    font-size: 1.35rem;
    line-height: 1.8;
}

.article-content .info-box {
    border: 1px dashed var(--neon-violet);
    padding: 18px;
    background: rgba(176, 38, 255, 0.06);
    box-shadow: inset 0 0 15px rgba(176, 38, 255, 0.08);
}

.mono-line {
    color: #fff;
    display: block;
    margin-bottom: 6px;
    font-size: 1.3rem;
}

.hero-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.logo-wrapper img {
    display: block;
    max-width: 350px;
    height: auto;
    filter: drop-shadow(0 0 8px rgba(0,0,0,0.8));
}

.logo-subtitle {
    font-family: 'VT323', monospace;
    font-size: 1.1rem;
    color: #fff;
    text-transform: capitalize;
    letter-spacing: 1px;
    margin-top: 8px;
    text-shadow: 0 0 5px var(--neon-violet);
}

.slogan-container {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.graffiti-text {
    font-family: 'Sedgwick Ave Display', cursive;
    font-size: 4rem;
    color: #fff;
    text-transform: uppercase;
    text-shadow: 2px 2px 0 var(--neon-violet), -2px -2px 0 var(--term-green), 0 0 20px var(--term-green);
    transform: rotate(-3deg);
    line-height: 1.2;
    letter-spacing: 2px;
}

.movement-tag {
    margin-top: 15px;
    font-size: 1.5rem;
    color: var(--neon-violet);
    text-shadow: var(--violet-glow);
    transform: rotate(-3deg);
}


#quote-terminal {
    min-height: 250px;
    font-size: 1.4rem;
    line-height: 1.6;
}

.console-line {
    display: block;
    margin-bottom: 5px;
}

.sys-log { color: #888; }
.sys-warn { color: #ffbd2e; }
.sys-success { color: var(--term-green); text-shadow: var(--green-glow); }

.sys-quote { 
    color: var(--neon-violet); 
    font-style: italic; 
    margin-top: 20px;
    text-shadow: 0 0 8px rgba(176, 38, 255, 0.6);
    border-left: 3px solid var(--neon-violet);
    padding-left: 15px;
}

.sys-author {
    color: var(--term-green);
    margin-top: 10px;
    text-align: right;
    display: block;
    font-weight: bold;
}

/* Custom highlight overlay when selecting text with mouse cursor */
::selection {
    background: var(--neon-violet);
    color: #fff;
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 10px var(--neon-violet), inset 0 0 10px var(--neon-violet); }
    100% { box-shadow: 0 0 30px var(--neon-violet), inset 0 0 30px var(--neon-violet); }
}


/* --- SYSTEM FOOTER LAYER --- */
footer {
    text-align: center;
    padding: 40px;
    color: #555;
    font-size: 1rem;
    border-top: 1px solid #222;
    margin-top: auto;
}

/* --- DYNAMIC RESPONSIVE BREAKPOINTS --- */
@media (max-width: 768px) {
    .status-title { font-size: 2rem; }
    .description { font-size: 1.2rem; }
    .readme-content h2, .article-content h2 { font-size: 1.5rem; }
    .readme-content p, .readme-content li, .article-content p, .mono-line { font-size: 1.15rem; }
    .page-title, .market-title { font-size: 2.5rem; }
    .controls-bar { flex-direction: column; align-items: stretch; }
    .categories { overflow-x: auto; padding-bottom: 5px; }
    
    .dropdown-content {
        grid-template-columns: 1fr;
        gap: 15px;
        left: 0;
        right: 0;
        width: auto;
        max-width: none;
        min-width: auto;
    }
}