:root {
    --bg: #07090c;
    --navbar-bg: #0d1117;
    --sidebar-bg: #090c10;
    --card-bg: #161b22;
    --primary: #00ff88;
    --primary-dim: rgba(0, 255, 136, 0.1);
    --primary-grad: linear-gradient(135deg, #00ff88, #00bbff);
    --border: #30363d;
    --text: #f0f6fc;
    --text-muted: #8b949e;
    --accent: #238636;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

/* NAVBAR */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; height: 65px;
    background: var(--nav-bg); backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border); display: flex; align-items: center;
    justify-content: space-between; padding: 0 30px; z-index: 2000;
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--primary);
    font-size: 1.6rem;
    cursor: pointer;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-link {
    height: 45px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.logo-link:hover { opacity: 0.8; }

.brand-logo {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.logo-title {
    font-family: 'Audiowide', cursive;
    font-size: 1.35rem;
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
    letter-spacing: 2px;
}

.v-tag { font-size: 0.6rem; color: var(--text-muted); background: rgba(255,255,255,0.05); padding: 2px 8px; border-radius: 4px; }

.nav-right { display: flex; align-items: center; gap: 20px; }
.badge-stargate { font-size: 0.7rem; color: var(--primary); font-weight: 800; }

.lang-picker { display: flex; gap: 5px; background: #000; padding: 4px; border-radius: 8px; }
.lang-picker button { border: none; background: transparent; color: var(--text-muted); padding: 5px 15px; border-radius: 6px; cursor: pointer; font-size: 0.75rem; font-weight: 800; }
.lang-picker button.active { background: var(--primary-grad); color: #000; }

/* LAYOUT */
.app-layout { display: flex; margin-top: 65px; height: calc(100vh - 65px); }

/* SIDEBAR */
.sidebar {
    width: 280px; background: var(--sidebar-bg); border-right: 1px solid var(--border);
    position: fixed; height: calc(100vh - 65px); padding: 30px 15px; overflow-y: auto;
}

.nav-label { font-size: 0.65rem; color: var(--text-muted); font-weight: 800; letter-spacing: 2px; margin: 25px 15px 10px; }
.nav-btn { 
    width: 100%; border: none; background: transparent; text-align: left;
    color: var(--text-muted); padding: 12px 15px; border-radius: 8px; 
    display: flex; align-items: center; gap: 12px; transition: 0.2s; font-size: 0.95rem; font-weight: 500; cursor: pointer;
}
.nav-btn:hover { background: rgba(255,255,255,0.03); color: #fff; }
.nav-btn.active { background: var(--primary-dim); color: var(--primary); font-weight: 600; border: 1px solid var(--border); }

/* MAIN CONTENT */
.main-content { 
    margin-left: 280px; padding: 60px 5% 20px; width: 100%;
    display: flex; flex-direction: column; align-items: center; min-height: calc(100vh - 65px);
    opacity: 0; transition: opacity 0.3s ease-in-out;
}
.main-content.ready { opacity: 1; }

.page-view { display: none; width: 100%; max-width: 1300px; }
.page-view.active { display: flex; flex-direction: column; align-items: center; flex: 1; animation: slideIn 0.3s ease-out; }

@keyframes slideIn { from { opacity: 0; transform: translateX(5px); } to { opacity: 1; transform: translateX(0); } }

/* CARDS WITH GREEN GRADIENT */
.hero-card { 
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.15), rgba(0, 187, 255, 0.05)); 
    border: 1px solid var(--border); padding: 50px; border-radius: 12px; margin-bottom: 40px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); width: 100%; text-align: center;
}

.long-card, .table-card { background: var(--card-bg); border: 1px solid var(--border); padding: 40px; border-radius: 12px; margin-bottom: 30px; width: 100%; }

h1 { font-size: 3rem; margin-bottom: 20px; font-weight: 800; color: #fff; text-align: center; }
h2 { font-family: 'Audiowide', cursive; color: var(--primary); margin-bottom: 40px; font-size: 1.8rem; border-left: 5px solid var(--primary); padding-left: 20px; width: 100%; }
h3 { margin: 30px 0 15px; color: #fff; font-size: 1.3rem; }
h4 { color: var(--primary); margin-bottom: 15px; }

p { margin-bottom: 20px; color: var(--text-muted); font-size: 1.1rem; }

/* GRID ELEMENTS */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }
.info-box { 
    padding: 30px; border-radius: 12px; border: 1px solid var(--border); text-align: center; 
    background: rgba(255,255,255,0.01); transition: 0.3s;
}
.info-box:hover { border-color: var(--primary); transform: translateY(-5px); }
.info-box i { font-size: 2.5rem; margin-bottom: 20px; }
.info-box.green i { color: var(--primary); }
.info-box.blue i { color: #58a6ff; }
.info-box.purple i { color: #bc8cff; }

/* LISTS */
/* BADGES & STATUS */
.badge-status { font-size: 0.65rem; font-weight: 800; padding: 4px 10px; border-radius: 4px; text-transform: uppercase; letter-spacing: 1px; display: inline-block; min-width: 80px; text-align: center; }
.badge-status.pos { background: rgba(0, 255, 136, 0.1); color: #00ff88; border: 1px solid rgba(0, 255, 136, 0.3); }
.badge-status.neg { background: rgba(255, 68, 68, 0.1); color: #ff4444; border: 1px solid rgba(255, 68, 68, 0.3); }
.badge-status.op { background: rgba(187, 134, 252, 0.1); color: #bb86fc; border: 1px solid rgba(187, 134, 252, 0.3); }

.spec-list { background: #000; padding: 25px; border-radius: 8px; border: 1px solid var(--primary); margin: 20px 0; }
/* MOBILE RESPONSIVE */
.sidebar-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
    z-index: 1400; display: none;
}
.sidebar-overlay.active { display: block; }

@media (max-width: 950px) {
    .navbar { padding: 0 15px; }
    .mobile-menu-btn { display: flex; align-items: center; justify-content: center; }
    .logo-title { display: none; } /* Hide text on very small screens to save space */
    
    .sidebar { 
        left: -280px; transition: 0.3s ease-in-out; z-index: 1500;
        background: #0a0a0a;
    }
    .sidebar.open { left: 0; box-shadow: 10px 0 30px rgba(0,0,0,0.5); }
    
    .main-content { margin-left: 0; padding: 40px 20px; }
    
    .grid-3, .grid-2 { grid-template-columns: 1fr; gap: 15px; }
    .hero-card h1 { font-size: 1.8rem; }
    
    .v-tag { display: none; }
}

@media (min-width: 951px) {
    .logo-title { display: block !important; }
}

/* GUI Guide Styles */
.gui-explorer {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 1.5rem;
}

.gui-screen {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
}

.gui-screen h4 {
    margin-bottom: 1rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.2rem;
    width: 100%;
}

.slot-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    transition: transform 0.2s;
}

.slot-item:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.08);
}

.slot-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.slot-icon img {
    width: 32px;
    height: 32px;
    image-rendering: pixelated; /* Very important for MC sprites */
}

.slot-info h5 {
    margin: 0;
    font-size: 1rem;
    color: var(--text);
}

.slot-info p {
    margin: 0.2rem 0 0 0;
    font-size: 0.85rem;
    opacity: 0.7;
    line-height: 1.2;
}
.spec-item { margin-bottom: 10px; display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--primary); }

/* TABLES */
table { width: 100%; border-collapse: collapse; margin-top: 20px; }
th, td { text-align: left; padding: 20px; border-bottom: 1px solid var(--border); }
th { color: var(--primary); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; }
td code { background: rgba(255,255,255,0.04); padding: 4px 10px; border-radius: 6px; color: #00ff88; font-family: 'Fira Code', monospace; }

.cat-row { background: rgba(0,255,136,0.05); }
.cat-row td { color: var(--primary); font-size: 0.65rem; font-weight: 800; letter-spacing: 1.5px; padding: 10px 20px; border-bottom: 1px solid var(--primary-dim); }

.cmd-item { background: #000; padding: 20px; border-radius: 8px; margin-bottom: 10px; border: 1px solid var(--border); font-family: 'Fira Code', monospace; }

/* MATRIX TABLE */
.matrix-table th { text-align: center; }
.matrix-table th:first-child { text-align: left; }
.text-center { text-align: center; }
.text-pos { color: #00ff88; }
.text-neg { color: #ff4444; opacity: 0.5; }
.matrix-table i { font-size: 1.1rem; }

/* FOOTER */
.footer {
    margin-top: 50px;
    padding: 20px 0 30px 0;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
    width: 100%;
}

.footer strong { color: var(--primary); }

.download-section {
    margin-top: 40px;
    padding: 30px;
    background: rgba(0, 255, 136, 0.03);
    border: 1px dashed var(--primary-dim);
    border-radius: 12px;
    text-align: center;
}

.compat-badges {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 15px 0 25px 0;
}

.badge {
    background: rgba(255,255,255,0.05);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-muted);
}

.btn-modrinth {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #1bd96a;
    color: #000;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 800;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-modrinth:hover {
    background: #17bb5b;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(27, 217, 106, 0.2);
}

/* LANG LOGIC */
body.lang-en .es { display: none !important; }
body.lang-es .en { display: none !important; }
