@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;500;700&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
    --bg-dark: #050a08;
    --sidebar-bg: rgba(10, 20, 15, 0.6);
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-hover: rgba(255, 255, 255, 0.07);
    
    /* Palette Cyber-Christmas */
    --neon-red: #ff3344;
    --neon-green: #00ff9d;
    --gold: #ffbd2e;
    --text-main: #e0e0e0;
    --text-dim: #94a3b8;
    
    --font-ui: 'Outfit', sans-serif;
    --font-code: 'JetBrains Mono', monospace;
    
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    --radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; outline: none; }

body {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(255, 51, 68, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(0, 255, 157, 0.05), transparent 25%);
    color: var(--text-main);
    font-family: var(--font-ui);
    height: 100vh;
    display: flex;
    overflow: hidden; /* Gestito internamente */
}

/* --- SIDEBAR --- */
.sidebar {
    width: 280px;
    height: 100vh;
    background: var(--sidebar-bg);
    backdrop-filter: blur(20px);
    border-right: var(--glass-border);
    display: flex;
    flex-direction: column;
    padding: 2rem;
    z-index: 10;
}

.brand {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text-main);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.brand span { color: var(--neon-red); }

.nav-menu { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }

.nav-item {
    padding: 1rem 1.2rem;
    border-radius: 12px;
    cursor: pointer;
    color: var(--text-dim);
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-item:hover { background: rgba(255,255,255,0.05); color: var(--text-main); }
.nav-item.active { 
    background: rgba(0, 255, 157, 0.1); 
    color: var(--neon-green); 
    border: 1px solid rgba(0, 255, 157, 0.2);
}

.server-status-mini {
    margin-top: auto;
    background: rgba(0,0,0,0.3);
    padding: 1rem;
    border-radius: 12px;
    border: var(--glass-border);
}
.status-dot { width: 8px; height: 8px; background: var(--neon-green); border-radius: 50%; display: inline-block; margin-right: 8px; box-shadow: 0 0 10px var(--neon-green); }

/* --- MAIN CONTENT --- */
.main-content {
    flex: 1;
    overflow-y: auto;
    padding: 3rem 4rem;
    position: relative;
    scroll-behavior: smooth;
}

/* Sezioni (Tab Logic) */
.section { display: none; animation: fadeIn 0.4s ease; }
.section.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Headers */
h1 { font-size: 3.5rem; font-weight: 700; margin-bottom: 0.5rem; background: linear-gradient(to right, #fff, #aaa); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
h2 { font-size: 2rem; margin-bottom: 1.5rem; color: var(--text-main); display: flex; align-items: center; gap: 1rem;}
h2::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--glass-border), transparent); opacity: 0.3; }
.subtitle { color: var(--text-dim); font-size: 1.1rem; margin-bottom: 3rem; max-width: 600px; }

/* Cards Grid */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; margin-bottom: 3rem; }

.card {
    background: var(--card-bg);
    border: var(--glass-border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: var(--transition);
}
.card:hover { transform: translateY(-4px); background: var(--card-hover); border-color: rgba(255,255,255,0.2); }

.card-icon { font-size: 2rem; margin-bottom: 1rem; display: block; }
.card h3 { margin-bottom: 0.5rem; color: var(--text-main); }
.card p { color: var(--text-dim); font-size: 0.95rem; line-height: 1.6; }

/* IP Copy Component */
.ip-wrapper {
    display: inline-flex;
    align-items: center;
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--neon-green);
    border-radius: 12px;
    padding: 0.5rem 0.5rem 0.5rem 1.5rem;
    margin-bottom: 2rem;
    gap: 1rem;
    transition: var(--transition);
}
.ip-text { font-family: var(--font-code); color: var(--neon-green); font-size: 1.1rem; }
.copy-btn {
    background: var(--neon-green);
    color: #000;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-ui);
    transition: var(--transition);
}
.copy-btn:hover { box-shadow: 0 0 15px rgba(0, 255, 157, 0.4); }

/* ACCORDION (Per le mod) */
.mod-detail {
    background: var(--card-bg);
    border: var(--glass-border);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    overflow: hidden;
}
.mod-summary {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background 0.2s;
}
.mod-summary:hover { background: rgba(255,255,255,0.02); }
.mod-summary::marker { content: ''; } /* Rimuove il triangolo default */
.chevron { transition: transform 0.3s; opacity: 0.5; }
details[open] .chevron { transform: rotate(180deg); color: var(--neon-red); opacity: 1; }

.mod-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--text-dim);
    line-height: 1.7;
    font-size: 0.95rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.tag { display: inline-block; font-size: 0.75rem; padding: 2px 8px; border-radius: 4px; background: rgba(255,255,255,0.1); margin-right: 8px; margin-bottom: 10px; margin-top: 10px;}
.pro-tip { margin-top: 1rem; padding: 1rem; background: rgba(255, 189, 46, 0.1); border-left: 3px solid var(--gold); border-radius: 0 8px 8px 0; color: var(--text-main); }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* Mobile */
@media (max-width: 900px) {
    body { flex-direction: column; overflow: auto; height: auto; }
    .sidebar { width: 100%; height: auto; padding: 1.5rem; position: sticky; top: 0; border-bottom: var(--glass-border); border-right: none; }
    .nav-menu { flex-direction: row; overflow-x: auto; padding-bottom: 5px; }
    .nav-item { white-space: nowrap; }
    .main-content { padding: 2rem 1.5rem; }
    h1 { font-size: 2.5rem; }
}

/* --- STILI GUIDA MOD --- */
.mod-guide-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
}

@media (min-width: 768px) {
    .mod-guide-grid { grid-template-columns: 1fr 1fr; }
}

.guide-block {
    background: rgba(0,0,0,0.2);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
}

.guide-title {
    font-family: var(--font-code);
    color: var(--neon-green);
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    border-bottom: 1px dashed rgba(255,255,255,0.1);
    padding-bottom: 5px;
}

.step-list {
    list-style: none;
    padding: 0;
}

.step-list li {
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    display: flex;
    gap: 10px;
    color: var(--text-dim);
}

.step-num {
    color: var(--gold);
    font-weight: bold;
    font-family: var(--font-code);
}

.key-bind {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    padding: 0 4px;
    font-family: var(--font-code);
    color: #fff;
    font-size: 0.8rem;
}


/* --- DOWNLOAD BUTTONS --- */
.btn-group {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--neon-green);
    color: #000;
}
.btn-primary:hover {
    box-shadow: 0 0 15px rgba(0, 255, 157, 0.3);
    transform: translateY(-2px);
}

.btn-outline {
    background: rgba(255,255,255,0.05);
    color: var(--text-main);
    border: 1px solid rgba(255,255,255,0.2);
}
.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--text-main);
}