/* =========================================
   VARIABILI E RESET
   ========================================= */
:root {
    --primary: #8b5cf6;
    --primary-hover: #7c3aed;
    --bg-base: #06070a;
    --bg-surface: #151921;
    --bg-glass: rgba(21, 25, 33, 0.6);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.08);
    --radius: 16px;
    --radius-sm: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-base);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Outfit', sans-serif; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* =========================================
   NAVBAR (Uguale per tutte le pagine)
   ========================================= */
.main-header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(6, 7, 10, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.logo img { height: 45px; }

.nav-pill {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 8px 24px;
    display: flex;
    gap: 25px;
}

.nav-pill a {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.2s;
    position: relative;
}

.nav-pill a:hover, .nav-pill a.active { color: #fff; }
.nav-pill a.active::after {
    content: ''; position: absolute; bottom: -4px; left: 0; width: 100%; height: 2px; background: var(--primary); border-radius: 2px;
}

.btn-nav-entra {
    background: #fff;
    color: #000;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s;
}
.btn-nav-entra:hover { transform: scale(1.05); }

/* =========================================
   HERO SECTION (Home)
   ========================================= */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 10vw;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
    filter: brightness(0.3) blur(4px);
}

.hero-content {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    gap: 50px;
}

.hero-text { flex: 1; max-width: 600px; }

.server-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(139, 92, 246, 0.1);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 30px;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.server-badge .dot { width: 8px; height: 8px; background: var(--primary); border-radius: 50%; box-shadow: 0 0 10px var(--primary); }

.hero-text h1 { font-size: 5rem; line-height: 1.1; margin-bottom: 25px; color: var(--primary); }
.hero-text h1 span { color: #fff; }
.hero-text .desc { font-size: 1.1rem; color: #ccc; line-height: 1.8; border-left: 3px solid var(--primary); padding-left: 20px; margin-bottom: 40px; }

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary);
    color: #fff;
    padding: 16px 32px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 5px 20px rgba(139, 92, 246, 0.3);
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-3px); }

.hero-widget { flex: 1; display: flex; justify-content: flex-end; align-items: center; }

.status-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    width: 380px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.status-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; }
.status-top h2 { font-size: 3.5rem; color: #fff; }
.status-dot { width: 12px; height: 12px; background: #22c55e; border-radius: 50%; box-shadow: 0 0 15px #22c55e; }
.status-label { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 2px; display: block; margin-bottom: 30px; border-bottom: 1px solid var(--border); padding-bottom: 20px; }

.ip-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    padding: 15px 20px;
    border-radius: var(--radius-sm);
    display: flex; justify-content: space-between; align-items: center; cursor: pointer; transition: background 0.3s;
}
.ip-box:hover { background: rgba(255, 255, 255, 0.1); }
.ip-box span { font-weight: 600; font-size: 1.1rem; }

/* =========================================
   LAYOUT PAGINE INTERNE (Staff, Store, ecc.)
   ========================================= */
.page-container {
    padding-top: 120px;
    padding-bottom: 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-header { text-align: center; margin-bottom: 60px; }
.page-header h1 { font-size: 3.5rem; color: #fff; margin-bottom: 10px; }
.page-header h1 span { color: var(--primary); }
.page-header p { color: var(--text-muted); font-size: 1.1rem; }

/* =========================================
   GRIGLIA STAFF
   ========================================= */
.staff-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 25px; }
.staff-card { 
    background: var(--bg-glass); 
    border: 1px solid var(--border); 
    border-radius: var(--radius); 
    padding: 30px 20px; 
    text-align: center;
    transition: all 0.3s; 
}
.staff-card:hover { transform: translateY(-5px); border-color: var(--primary); box-shadow: 0 10px 30px rgba(139, 92, 246, 0.2); }
.staff-card img { height: 180px; margin-bottom: 15px; filter: drop-shadow(0 10px 10px rgba(0,0,0,0.5)); image-rendering: pixelated; }
.staff-card h4 { color: #fff; font-size: 1.3rem; margin-bottom: 5px; }
.staff-card .role { font-size: 11px; text-transform: uppercase; color: var(--primary); font-weight: 700; letter-spacing: 1px; }

/* =========================================
   GRIGLIA STORE
   ========================================= */
.store-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 25px; }
.store-card { background: var(--bg-glass); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; transition: transform 0.3s; }
.store-card:hover { transform: translateY(-8px); box-shadow: 0 15px 30px rgba(0,0,0,0.5); }
.store-card.vip { border-top: 3px solid #eab308; }
.store-card.vip-plus { border-top: 3px solid #f97316; }
.store-card.mvp { border-top: 3px solid #06b6d4; }
.store-card.mvp-plus { border-top: 3px solid #8b5cf6; }
.store-card h3 { font-size: 1.5rem; color: #fff; margin-bottom: 20px; }
.store-card ul { flex: 1; margin-bottom: 30px; }
.store-card ul li { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 12px; display: flex; align-items: flex-start; gap: 10px; }
.store-card ul li::before { content: '•'; color: var(--primary); font-size: 1.5rem; line-height: 1; }

.btn-store { display: block; text-align: center; padding: 14px; border-radius: var(--radius-sm); font-weight: 700; cursor: pointer; border: none; width: 100%; transition: 0.3s; color: #fff; }
.btn-vip { background: #eab308; color: #000; }
.btn-vip:hover { background: #ca8a04; }
.btn-vip-plus { background: #f97316; }
.btn-vip-plus:hover { background: #ea580c; }
.btn-disabled { background: #2a2e38; color: #64748b; cursor: not-allowed; }

/* =========================================
   LAYOUT REGOLAMENTO
   ========================================= */
.rules-layout { display: flex; max-width: 1400px; margin: 0 auto; padding: 40px; gap: 60px; padding-top: 120px; }
.sidebar { width: 280px; flex-shrink: 0; position: sticky; top: 100px; height: calc(100vh - 120px); overflow-y: auto; }
.sidebar h3 { color: #64748b; font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 15px; padding-left: 10px; }
.sidebar a { display: flex; align-items: center; gap: 12px; padding: 10px 15px; color: var(--text-muted); border-radius: 8px; margin-bottom: 4px; font-size: 14px; font-weight: 500; transition: all 0.2s; cursor: pointer; }
.sidebar a:hover { background: rgba(255,255,255,0.05); color: #fff; }
.sidebar a.active { background: rgba(139, 92, 246, 0.15); color: var(--primary); font-weight: 600; border-left: 3px solid var(--primary); }

.rules-content { flex: 1; max-width: 900px; }
.rule-section { display: none; animation: fadeIn 0.4s ease-in-out; }
.rule-section.active { display: block; }
.rule-section h1 { font-size: 3rem; color: #fff; margin-bottom: 20px; }
.rule-section h3 { font-size: 1.3rem; color: #e2e8f0; margin: 30px 0 15px; }
.rule-section p, .rule-section li { color: var(--text-muted); margin-bottom: 12px; }
.rule-section ul { padding-left: 20px; margin-bottom: 20px; }
.rule-section strong { color: #fff; }
.rule-section code { background: var(--bg-surface); padding: 2px 6px; border-radius: 4px; color: var(--primary); font-family: monospace; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* =========================================
   TOAST (Notifiche)
   ========================================= */
.toast { position: fixed; bottom: -100px; left: 50%; transform: translateX(-50%); background: var(--primary); color: #fff; padding: 15px 30px; border-radius: 8px; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,0.5); transition: all 0.4s; z-index: 2000; display: flex; align-items: center; gap: 10px; }
.toast.show { bottom: 30px; }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
    .hero-content { flex-direction: column; text-align: center; }
    .hero-text .desc { border-left: none; padding-left: 0; }
    .hero-text h1 { font-size: 3.5rem; }
    .hero-widget { justify-content: center; }
    .rules-layout { flex-direction: column; padding: 20px; padding-top: 120px; }
    .sidebar { width: 100%; height: auto; position: relative; top: 0; display: flex; flex-wrap: wrap; gap: 10px; }
    .sidebar h3 { width: 100%; }
    .sidebar a { padding: 8px 12px; background: var(--bg-surface); border: 1px solid var(--border); }
}