:root{
    --bg:#0b1020;
    --sidebar:#202a3d;
    --card:#171f33;
    --card-hover:#1e2944;
    --border:#2b3654;
    --accent:#5dd4ff;
    --accent2:#8b5cf6;
    --text:#ffffff;
    --text-secondary:#d5dcee;
    --text-muted:#93a0bd;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    background:
        radial-gradient(circle at top,#111827,#0b1020);
    color:var(--text-secondary);
    font-family:"Segoe UI",sans-serif;
}

.layout{
    display:flex;
    min-height:100vh;
}

/* =========================
   SIDEBAR
========================= */

.sidebar{
    width:260px;
    height:100vh;
    position:fixed;
    top:0;
    left:0;
    background:var(--sidebar);
    border-right:1px solid #34425e;
    padding:30px 20px;
    overflow-y:auto;
}

.sidebar-logo{
    margin-bottom:40px;
}

.logo-title{
    font-size:26px;
    font-weight:bold;
    color:var(--accent);
    text-shadow:0 0 10px rgba(93,212,255,.25);
}

.logo-subtitle{
    color:#b8c7e6;
    margin-top:5px;
    font-size:13px;
}

.sidebar-nav{
    display:flex;
    flex-direction:column;
    gap:12px;
}

.sidebar-nav a{
    color:white;
    text-decoration:none;
    padding:12px 15px;
    border-radius:8px;
    transition:.2s;
}

.sidebar-nav a:hover{
    background:#2b3650;
}

.nav-category{
    margin-top:20px;
}

.category-title{
    color:#7dd3fc;
    font-size:13px;
    font-weight:bold;
    text-transform:uppercase;
    margin-bottom:8px;
    padding-left:15px;
}

.nav-group{
    display:flex;
    flex-direction:column;
}

.nav-parent{
    width:100%;
    display:flex;
    justify-content:space-between;
    align-items:center;
    background:none;
    border:none;
    color:white;
    padding:12px 15px;
    border-radius:8px;
    cursor:pointer;
    font-size:15px;
}

.nav-parent:hover{
    background:#2b3650;
    transform:none;
    box-shadow:none;
}

.nav-child{
    display:none;
    flex-direction:column;
    margin-left:20px;
}

.nav-child.open{
    display:flex;
}

.nav-child a{
    color:#9cb0d4;
    text-decoration:none;
    padding:10px 15px;
    font-size:14px;
    border-radius:8px;
}

.nav-child a:hover{
    background:#20293b;
    color:white;
}

.nav-child a.active,
a.active{
    background:#f5a623;
    color:#101010;
    font-weight:bold;
    pointer-events:none;
}

.mobile-menu-toggle{
    display:none;
}

/* =========================
   CONTENT / HEADER
========================= */

.content{
    flex:1;
    margin-left:260px;
    padding:35px;
}

.page-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    background:
        linear-gradient(
            135deg,
            rgba(93,212,255,.08),
            rgba(139,92,246,.08)
        );
    border:1px solid var(--border);
    border-radius:16px;
    padding:30px;
}

.page-header h1{
    color:white;
    font-size:42px;
    margin-bottom:6px;
}

.page-subtitle{
    color:var(--accent);
    font-size:13px;
    letter-spacing:2px;
    text-transform:uppercase;
}

.creator{
    color:var(--text-muted);
    font-size:14px;
}

/* =========================
   SECTIONS
========================= */

.section{
    margin-top:40px;
}

.section h2{
    color:white;
    font-size:18px;
    margin-bottom:15px;
    padding-left:12px;
    border-left:4px solid var(--accent);
}

.section p{
    color:var(--text-secondary);
    line-height:1.8;
}

.description p{
    font-size:18px;
    line-height:1.8;
    max-width:900px;
}

/* =========================
   NETHER CARDS
========================= */

.nether-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
    gap:15px;
}

.nether-card{
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
    background:var(--card);
    border:1px solid var(--border);
    border-radius:14px;
    padding:20px;
    transition:.25s;
}

.nether-image{
    width:100px;
    height:100px;
    object-fit:cover;
    margin-bottom:12px;
}

.nether-title{
    color:white;
    font-weight:600;
    font-size:16px;
}

.nether-level{
    color:var(--text-muted);
    font-size:13px;
    margin-top:4px;
}

.details-link{
    margin-top:12px;
    color:var(--accent);
    text-decoration:none;
    font-size:14px;
    font-weight:600;
    cursor:pointer;
}

.details-link:hover{
    text-decoration:underline;
    color:#7dd3fc;
}

.nether-card:hover{
    transform:translateY(-4px);
    background:var(--card-hover);
    border-color:var(--accent);
}

.nether-card span{
    display:block;
    margin-top:8px;
    color:var(--text-muted);
    font-size:13px;
}

/* =========================
   MONSTERS
========================= */

.monster-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
    gap:15px;
}

.monster-card{
    background:var(--card);
    border:1px solid var(--border);
    border-radius:14px;
    padding:20px;
    text-align:center;
    transition:.25s;
}

.monster-card:hover{
    transform:translateY(-5px);
    border-color:var(--accent);
    background:var(--card-hover);
    box-shadow:0 0 25px rgba(93,212,255,.15);
}

.monster-card img{
    width:90px;
    height:90px;
    object-fit:cover;
}

.monster-card span{
    display:block;
    margin-top:10px;
    color:white;
}

/* =========================
   TABLES
========================= */

.guide-table,
.equipment-table{
    width:100%;
    border-collapse:collapse;
    overflow:hidden;
    border-radius:14px;
    background:var(--card);
}

.guide-table th,
.equipment-table th{
    background:#202b46;
    color:white;
    padding:15px;
    font-weight:600;
    border:1px solid var(--border);
}

.guide-table td,
.equipment-table td{
    border:1px solid var(--border);
    text-align:center;
    padding:15px;
}

.guide-table tr:hover,
.equipment-table tr:hover{
    background:rgba(255,255,255,.02);
}

.weapon-image{
    width:90px;
    height:90px;
    object-fit:cover;
    transition:opacity 1s ease;
}

.equipment-table img{
    width:64px;
    height:64px;
    object-fit:cover;
}

.weapon-images{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    align-items:center;
    gap:4px;
}

/* =========================
   PRIZES
========================= */

.prize-table-wrap{
    width:100%;
    overflow-x:auto;
    margin-top:20px;
    border:1px solid var(--border);
    border-radius:14px;
    background:var(--card);
}

.prize-table{
    width:100%;
    border-collapse:collapse;
    background:var(--card);
}

.prize-table th{
    background:#202b46;
    color:white;
    padding:12px 15px;
    text-align:left;
    font-weight:600;
    border-bottom:1px solid var(--border);
}

.prize-table td{
    padding:8px 15px;
    border-bottom:1px solid var(--border);
    color:var(--text-secondary);
    vertical-align:middle;
}

.prize-table tbody tr:last-child td{
    border-bottom:none;
}

.prize-table tbody tr:hover{
    background:rgba(255,255,255,.025);
}

.prize-item{
    display:flex;
    align-items:center;
    gap:10px;
    min-width:180px;
}

.prize-item img{
    width:36px;
    height:36px;
    object-fit:contain;
    flex-shrink:0;
}

.prize-item span{
    color:white;
    font-weight:600;
    font-size:14px;
}

/* =========================
   BUTTONS
========================= */

button{
    background:
        linear-gradient(135deg,var(--accent),var(--accent2));
    color:white;
    border:none;
    padding:10px 18px;
    border-radius:10px;
    cursor:pointer;
    font-weight:600;
    transition:.25s;
}

button:hover{
    transform:translateY(-2px);
    box-shadow:0 0 20px rgba(93,212,255,.25);
}

/* =========================
   TEXT / ITEMS
========================= */

.item-name{
    margin-top:10px;
    color:white;
    font-weight:600;
}

.item-stat{
    margin-top:4px;
    color:var(--text-muted);
    font-size:13px;
}

/* =========================
   POPUPS
========================= */

.monster-popup{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.75);
    display:none;
    justify-content:center;
    align-items:center;
    z-index:9999;
}

.monster-popup-content{
    width:700px;
    max-height:90vh;
    overflow-y:auto;
    background:var(--card);
    border:1px solid var(--border);
    border-radius:16px;
    padding:25px;
    position:relative;
}

.monster-popup-image{
    width:120px;
    height:120px;
    object-fit:contain;
    display:block;
    margin:auto;
}

.monster-popup-name{
    text-align:center;
    color:white;
    margin-top:10px;
}

.monster-popup-close{
    position:absolute;
    right:15px;
    top:15px;
    width:35px;
    height:35px;
    padding:0;
    background:#29314a;
    border:1px solid var(--border);
    border-radius:50%;
    color:white;
    font-size:22px;
    cursor:pointer;
}

.monster-popup-close:hover{
    background:#f44336;
    border-color:#f44336;
    transform:none;
    box-shadow:none;
}

.monster-level-tabs{
    display:flex;
    justify-content:center;
    gap:10px;
    margin:20px 0;
}

.monster-level-btn{
    background:#202b46;
    color:white;
    border:1px solid var(--border);
    transition:.2s;
}

.monster-level-btn:hover{
    border-color:var(--accent);
    background:var(--card-hover);
}

.monster-level-btn.active{
    background:linear-gradient(135deg,var(--accent),var(--accent2));
    border-color:var(--accent);
    color:white;
    box-shadow:0 0 15px rgba(93,212,255,.3);
}

.monster-section{
    margin-top:25px;
}

.monster-section h3{
    color:white;
    margin-bottom:10px;
}

.monster-table{
    width:100%;
    border-collapse:collapse;
    table-layout:fixed;
    background:var(--card);
}

.monster-table td{
    padding:10px;
    border:1px solid var(--border);
}

.monster-table td:first-child{
    font-weight:600;
}

.fire-row{background:rgba(255,80,80,.12);}
.water-row{background:rgba(80,120,255,.12);}
.air-row{background:rgba(80,255,255,.12);}
.earth-row{background:rgba(80,255,120,.12);}
.dark-row{background:rgba(180,80,255,.12);}
.light-row{background:rgba(255,255,120,.12);}

.monster-close-btn{
    width:100%;
    margin-top:25px;
}

/* =========================
   OTHER WEAPONS
========================= */

.weapon-popup-list{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.weapon-popup-item{
    display:flex;
    align-items:center;
    gap:15px;
    padding:10px;
    border:1px solid var(--border);
    border-radius:10px;
    background:rgba(255,255,255,.03);
}

.weapon-popup-item img{
    width:50px;
    height:50px;
    object-fit:contain;
    flex-shrink:0;
}

.weapon-popup-info{
    flex:1;
}

.weapon-popup-name{
    font-weight:600;
    margin-bottom:4px;
    color:white;
}

.weapon-popup-output{
    opacity:.8;
    font-size:.9rem;
}

.weapon-popup-rank{
    font-weight:700;
    font-size:1.1rem;
    opacity:.7;
    min-width:30px;
    text-align:center;
}

/* =========================
   EQUIPMENT
========================= */

.equipment-set{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:8px;
    padding:10px;
}

.equipment-slot{
    width:48px;
    height:48px;
    transition:.2s;
}

.equipment-slot img{
    width:100%;
    height:100%;
    object-fit:contain;
}

.equipment-slot:hover{
    transform:scale(1.1);
}

/* =========================
   SCROLLBAR
========================= */

::-webkit-scrollbar{
    width:10px;
}

::-webkit-scrollbar-track{
    background:#0b1020;
}

::-webkit-scrollbar-thumb{
    background:#334155;
    border-radius:999px;
}

::-webkit-scrollbar-thumb:hover{
    background:#475569;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width:900px){

    .sidebar{
        width:100%;
        height:auto;
        position:fixed;
        top:0;
        left:0;
        z-index:1000;
        padding:15px 20px;
        border-right:none;
        border-bottom:1px solid #34425e;
    }

    .sidebar-nav{
        display:none;
    }

    .sidebar-nav.mobile-open{
        display:flex;
        margin-top:25px;
    }

    .sidebar-logo{
        margin-bottom:0;
    }

    .content{
        margin-left:0;
        padding-top:100px;
    }

    .mobile-menu-toggle{
        display:flex;
        align-items:center;
        justify-content:center;
        position:absolute;
        top:15px;
        right:20px;
        width:42px;
        height:42px;
        padding:0;
        border:1px solid var(--accent);
        border-radius:8px;
        background:#263653;
        color:var(--accent);
        font-size:22px;
        line-height:1;
        cursor:pointer;
    }

    .page-header{
        flex-direction:column;
        align-items:flex-start;
        gap:10px;
    }
}

@media (max-width:600px){

    html,
    body{
        width:100%;
        max-width:100%;
        overflow-x:hidden;
    }

    .layout{
        width:100%;
        max-width:100%;
    }

    .content{
        width:100%;
        max-width:100%;
        margin-left:0;
        padding:110px 15px 20px;
        overflow-x:hidden;
    }

    .page-header{
        width:100%;
        padding:22px;
    }

    .page-header h1{
        font-size:30px;
        line-height:1.2;
    }

    .page-subtitle{
        font-size:12px;
        letter-spacing:1.5px;
    }

    .creator{
        font-size:13px;
    }

    .section{
        width:100%;
        margin-top:30px;
    }

    .section h2{
        font-size:18px;
    }

    .description p{
        font-size:16px;
    }

    .prize-table th,
    .prize-table td{
        padding:8px 10px;
        font-size:12px;
    }

    .prize-item{
        gap:8px;
        min-width:145px;
    }

    .prize-item img{
        width:32px;
        height:32px;
    }

    .prize-item span{
        font-size:12px;
    }

    .nether-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:10px;
    }

    .nether-card{
        padding:12px;
        min-width:0;
    }

    .nether-image{
        width:75px;
        height:75px;
    }

    .nether-title{
        font-size:14px;
    }

    .nether-level{
        font-size:12px;
    }

    .monster-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:10px;
    }

    .monster-card{
        min-width:0;
        padding:12px;
    }

    .monster-card img{
        width:65px;
        height:65px;
    }

    .monster-card span{
        font-size:13px;
    }

    .guide-table,
    .equipment-table{
        width:100%;
        table-layout:fixed;
    }

    .guide-table th,
    .guide-table td,
    .equipment-table th,
    .equipment-table td{
        padding:8px 5px;
        font-size:12px;
        word-break:break-word;
    }

    .weapon-image{
        width:55px;
        height:55px;
    }

    .item-name{
        font-size:12px;
    }

    .monster-popup-content{
        width:calc(100% - 30px);
        max-width:700px;
        max-height:90vh;
        padding:20px;
    }

    .monster-popup-image{
        width:90px;
        height:90px;
    }

    .monster-level-tabs{
        flex-wrap:wrap;
        gap:6px;
    }

    .monster-level-btn{
        padding:8px 12px;
    }

    .monster-table{
        width:100%;
        table-layout:fixed;
    }

    .monster-table td{
        padding:8px;
        font-size:13px;
        word-break:break-word;
    }

    .weapon-popup-list{
        width:100%;
    }

    .weapon-popup-item{
        min-width:0;
    }

    .weapon-images{
        gap:2px;
    }
}