* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    background: #0a0b0f;
    color: #f0caa1;
}

header {
    position: relative;
    z-index: 10;
}

/* ===== Background ===== */
.bg {
    position: fixed;
    inset: 0;
    background: url("../img/mu-bg.jpg") center/cover no-repeat;
    filter: brightness(.25);
    z-index: -2;
}

/* ===== Header ===== */
header {
    height: 90px;
    display: flex;
    align-items: center;
    padding: 0 40px;
    background: linear-gradient(90deg,#0b0b0f,#2a1607,#0b0b0f);
    border-bottom: 1px solid #ff7a18;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: #ff7a18;
}

.logo span {
    color: #fff;
}

.drop-search-box {
    position: relative;
    margin-left: auto;
}

.drop-search-box .search {
    width: 450px;
    margin-left: auto;
    background: #120a05;
    border: 1px solid #ff7a18;
    padding: 10px 14px;
    color: #ffcf9c;
}

/* ===== Layout ===== */
.container {
    display: flex;
    align-items: flex-start;
    padding: 25px;
    gap: 25px;
}

/* ===== Menu ===== */
.menu-wrapper{
    width:300px;
    flex-shrink:0;
}

.menu {
    height: fit-content;
    align-self: flex-start;
    width: 300px;
    background: rgba(15,10,6,.85);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 0 30px rgba(255,122,24,.15);
}

.menu.fixed{
    position:fixed;
    top:20px;
    width:300px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior:smooth;
    -webkit-mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        black 5%,
        black 95%,
        transparent 100%
    );
}

.menu.fixed::-webkit-scrollbar{
    width:6px;
}

.menu.fixed::-webkit-scrollbar-track{
    background:#0b0f1a;
}

.menu.fixed::-webkit-scrollbar-thumb{
    background:linear-gradient(#ff7a18,#ffb347);
    border-radius:10px;
}


.menu-title {
    font-size: 20px;
    margin-bottom: 15px;
    color: #ff7a18;
}

.menu ul {
    list-style: none;
}

.menu li {
    margin-bottom: 8px;
    position:relative;
}

.menu li span,
.menu li ul li {
    display: block;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
}

.menu li span:hover,
.menu li ul li:hover {
    background: rgba(255,122,24,.15);
}

.menu li.active > span {
    background: rgba(255,122,24,.35);
    margin-bottom: 8px;
}

.menu ul ul li.active {
    background: rgba(255,122,24,.35);
    box-shadow: inset 0 0 10px rgba(255,122,24,.4);
    color: #ffcf9c;
}

.menu ul ul li.active {
    animation: glow 2s infinite;
}

.menu ul ul li.active::before {
    content: "▶";
    color: #ff7a18;
    margin-right: 6px;
}

.menu ul ul {
    display: none;
    padding-left: 10px;
}

.menu li.has-sub > span {
    position: relative;
    padding-right: 30px;
}

/* стрелка */
.menu li.has-sub > span::after {
    content: "";
    position: absolute;
    right: 12px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid #ff7a18;
    border-bottom: 2px solid #ff7a18;
    transform: translateY(-50%) rotate(45deg);
    transition: transform .3s ease;
}

/* при открытии */
.menu li.has-sub.open > span::after {
    transform: translateY(-50%) rotate(-135deg);
}

.menu li.has-sub > span::after {
    box-shadow: 0 0 6px rgba(255,122,24,.8);
}


/* ===== Content ===== */
.content {
    align-self: flex-start;
    background: rgba(15,10,6,.8);
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 0 40px rgba(0,0,0,.6);
    width: 100%;
    flex:1;
}

.content h1 {
    color: #ff7a18;
    margin-bottom: 25px;
}

/* ===== Cards ===== */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(220px,1fr));
    gap: 20px;
}

.card {
    position: relative;
    z-index: 1;
    background: linear-gradient(145deg,#120a05,#1f1208);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(255,122,24,.25);
    transition: transform .3s ease, box-shadow .3s ease;
    opacity: 1;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 25px rgba(255,122,24,.4);
}

.card h3 {
    color: #ffb45c;
    margin-bottom: 8px;
}

.card p {
    font-size: 14px;
    color: #d2a679;
}


/* ===== Glow Animations ===== */
@keyframes glow {
    0%   { box-shadow: 0 0 10px rgba(255,122,24,.3); }
    50%  { box-shadow: 0 0 25px rgba(255,122,24,.6); }
    100% { box-shadow: 0 0 10px rgba(255,122,24,.3); }
}

/* Active menu glow */
.menu li.active > span {
    animation: glow 2s infinite;
}

/* Logo glow */
.logo {
    text-shadow: 
        0 0 10px rgba(255,122,24,.6),
        0 0 20px rgba(255,122,24,.4);
}

/* Card glow on hover */
.card:hover {
    animation: glow 1.5s infinite;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content {
    animation: fadeUp .8s ease-out;
}

.card {
    /*opacity: 0;
    animation: fadeUp .8s ease-out forwards;*/
}

.card:nth-child(1) { animation-delay: .1s; }
.card:nth-child(2) { animation-delay: .2s; }
.card:nth-child(3) { animation-delay: .3s; }
.card:nth-child(4) { animation-delay: .4s; }

.burger {
    display: none;
    font-size: 28px;
    margin-right: 20px;
    cursor: pointer;
    color: #ff7a18;
}

/* ===== Mobile ===== */
@media (max-width: 900px) {

    .burger {
        display: block;
    }

    .container {
        display: block;
    }

    .menu {
    	display: none;
        width: 100%;
        margin-bottom: 20px;
    }

    .menu.open {
        display: block;
        left: 0;
        box-shadow: 0 0 40px rgba(0,0,0,.8);
    }

    .content {
	width: 100%;
        margin: 0;
        padding: 25px;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .drop-search-box .search {
        width: 300px;
    }
}
@media only screen and (max-width: 550px) {
    .drop-search-box .search {
        width: 150px;
    }
}
@media only screen and (max-width: 416px) {
    .drop-search-box .search {
        width: 160px;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-thumb {
    background: #ff7a18;
    border-radius: 10px;
}

/* Hover pulse */
.menu li span:hover {
    box-shadow: inset 0 0 15px rgba(255,122,24,.3);
}

/* CKEDITOR */
.mu-content {
    color: #e8caa1;
    line-height: 1.7;
    font-size: 15px;
}

.mu-content p {
    margin-bottom: 14px;
}

.mu-content h1,
.mu-content h2,
.mu-content h3,
.mu-content h4 {
    color: #ff7a18;
    margin: 30px 0 15px;
    text-shadow: 0 0 10px rgba(255,122,24,.35);
}

.mu-content h1 { font-size: 26px; }
.mu-content h2 { font-size: 22px; }
.mu-content h3 { font-size: 18px; }
.mu-content h4 { font-size: 16px; }

.mu-content ul,
.mu-content ol {
    margin: 15px 0 15px 20px;
}

.mu-content li {
    margin-bottom: 8px;
}

.mu-content ul li::marker {
    color: #ff7a18;
}

.mu-content strong {
    color: #ffb45c;
    font-weight: 600;
}

.mu-content em {
    color: #ffd8a8;
}

.mu-content a {
    color: #ff7a18;
    text-decoration: none;
    border-bottom: 1px dashed rgba(255,122,24,.5);
}

.mu-content a:hover {
    color: #ffd18b;
    border-bottom-color: #ffd18b;
}

.mu-content blockquote {
    margin: 20px 0;
    padding: 15px 20px;
    border-left: 4px solid #ff7a18;
    background: rgba(255,122,24,.08);
    border-radius: 10px;
}

.mu-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.mu-content th,
.mu-content td {
    padding: 10px;
    border: 1px solid rgba(255,122,24,.25);
}

.mu-content th {
    background: rgba(255,122,24,.15);
    color: #ffb45c;
}

.mu-content tr:nth-child(even) {
    background: rgba(255,255,255,.03);
}

.mu-content img {
    max-width: 100%;
    border-radius: 14px;
    margin: 15px 0;
    box-shadow: 0 0 25px rgba(0,0,0,.6);
}

.mu-content pre {
    background: #120a05;
    padding: 15px;
    border-radius: 12px;
    overflow-x: auto;
    border: 1px solid rgba(255,122,24,.25);
}

.mu-content code {
    color: #ffb45c;
}




.mu-box {
    padding: 15px 20px;
    border-radius: 14px;
    margin: 20px 0;
}

.mu-box.warning {
    background: rgba(255,0,0,.1);
    border: 1px solid rgba(255,0,0,.4);
}

.mu-title {
    font-size: 22px;
    margin: 30px 0 20px;
    padding-left: 14px;
    color: #ff7a18;
    border-left: 4px solid #ff7a18;
    text-shadow: 0 0 10px rgba(255,122,24,.4);
}

.mu-lore {
    padding: 18px 22px;
    border-radius: 16px;
    background: linear-gradient(145deg,#120a05,#1f1208);
    border: 1px solid rgba(255,122,24,.25);
    box-shadow: inset 0 0 20px rgba(255,122,24,.15);
}

.mu-alert {
    padding: 16px 20px;
    border-radius: 14px;
    margin: 20px 0;
    font-weight: 600;
}

.mu-alert.danger {
    background: rgba(255,0,0,.12);
    border: 1px solid rgba(255,0,0,.4);
    color: #ff9a9a;
}

.mu-alert.info {
    background: rgba(0,122,255,.12);
    border: 1px solid rgba(0,122,255,.4);
}

.mu-rarity {
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 12px;
    margin-right: 6px;
    display: inline-block;
}

.mu-rarity.excellent {
    color: #00ff9c;
    box-shadow: 0 0 10px rgba(0,255,156,.8);
}

.mu-rarity.ancient {
    color: #3cff00;
    box-shadow: 0 0 10px rgba(60,255,0,.8);
}

.mu-rarity.socket {
    color: #ff6b00;
    box-shadow: 0 0 10px rgba(255,107,0,.8);
}

.mu-items {
    margin-top: 15px;
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(200px,1fr));
    gap: 20px;
}

.mu-item {
    background: linear-gradient(145deg,#120a05,#1f1208);
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(255,122,24,.25);
    transition: .3s;
}

.mu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(255,122,24,.4);
}

.mu-table {
    width: 100%;
    border-collapse: collapse;
}

.mu-table th {
    background: rgba(255,122,24,.2);
    color: #ffb45c;
}

.mu-table th,
.mu-table td {
    padding: 10px;
    border: 1px solid rgba(255,122,24,.25);
}

.mu-divider {
    height: 2px;
    margin: 30px 0;
    background: linear-gradient(90deg,transparent,#ff7a18,transparent);
    box-shadow: 0 0 10px rgba(255,122,24,.8);
}

.mu-tip {
    padding: 14px 18px;
    background: rgba(0,255,156,.1);
    border-left: 4px solid #00ff9c;
    border-radius: 12px;
}

.mu-frame {
    margin-top: 20px;
    padding: 20px;
    border-radius: 20px;
    border: 2px solid rgba(255,122,24,.4);
    box-shadow:
        inset 0 0 25px rgba(255,122,24,.2),
        0 0 25px rgba(255,122,24,.4);
}

.autocomplete-box {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;

    background: linear-gradient(145deg,#120a05,#1f1208);
    border: 1px solid rgba(255,122,24,.3);
    border-radius: 14px;
    margin-top: 6px;

    display: none;
    z-index: 999;
}

.ac-item {
    padding: 10px 14px;
    cursor: pointer;
    display: flex;
    gap: 10px;
    align-items: center;
}

.ac-item:hover {
    background: rgba(255,122,24,.15);
}

.ac-item.guide .icon::before { content: "📜"; }
.ac-item.monster .icon::before { content: "👹"; }
.ac-item.item .icon::before { content: "⚔️"; }

.ac-item .text {
    font-size: 14px;
    color: #ffb45c;
}









/* === SEARCH ITEM BASE === */
.search-item{
    display:flex;
    gap:16px;
    padding:16px;
    margin-bottom:14px;

    background: rgba(15,15,25,.85);
    border:1px solid rgba(255,122,24,.25);
    border-radius:14px;

    box-shadow:0 0 18px rgba(0,0,0,.6);
    backdrop-filter: blur(6px);

    transition:.25s;
}

/* Hover */

.search-item:hover{
    transform: translateY(-4px);
    box-shadow:0 0 25px rgba(255,122,24,.35);
}

/* === GUIDE === */

.search-item.guide{
    border:1px solid rgba(120,170,255,.35);
    box-shadow:0 0 18px rgba(80,120,255,.25);
}

.search-item.guide:hover{
    box-shadow:0 0 28px rgba(80,120,255,.45);
}

.search-item.guide .icon{
    background: radial-gradient(circle,
        rgba(120,170,255,.35),
        rgba(0,0,0,.8)
    );

    border:1px solid rgba(120,170,255,.5);
    box-shadow:0 0 12px rgba(80,120,255,.5);
}

.guide-type{
    padding:2px 8px;
    font-size:12px;
    font-weight:600;

    border-radius:6px;

    background:linear-gradient(90deg,#6aa9ff,#9ad0ff);
    color:#000;
}

.guide-text{
    margin-top:6px;
    font-size:13px;
    line-height:1.4;
    color:#cfd8ff;

    max-height:42px;
    overflow:hidden;

    text-shadow:0 0 6px rgba(120,170,255,.25);
}

/* === ITEM BASE === */

.search-item.item{
    border:1px solid rgba(255,215,120,.35);
    box-shadow:0 0 18px rgba(229, 255, 80, 0.25);
}

.search-item.item:hover{
    box-shadow:0 0 28px rgba(229, 255, 80,.45);
}

.search-item.item .icon{
    background: radial-gradient(circle,
        rgba(215, 255, 120, 0.35),
        rgba(0,0,0,.8)
    );

    border:1px solid rgba(255,215,120,.55);
    box-shadow:0 0 12px rgba(255,200,80,.5);
}

.search-item.item .box-type{
    padding:2px 8px;
    font-size:12px;
    font-weight:600;

    border-radius:6px;

    background:linear-gradient(90deg,#94ff6ab6,#ffed47dc);
    color:#000;
}

.search-item.item .drop-list li{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:10px;
    padding:4px 0;
    border-bottom:1px solid rgba(255,255,255,.05);
}

.search-item.item .mob-name{
    color:#e6ecff;
}

.search-item.item .mob-map{
    font-size:12px;
    padding:2px 8px;
    background:rgba(80,120,255,.15);
    border:1px solid rgba(80,120,255,.4);
    border-radius:6px;
    box-shadow:0 0 8px rgba(80,120,255,.3);
    white-space:nowrap;
}


/* === BOX BASE === */

.search-item.box{
    border:1px solid rgba(255,215,120,.35);
    box-shadow:0 0 18px rgba(255,200,80,.25);
}

.search-item.box:hover{
    box-shadow:0 0 28px rgba(255,200,80,.45);
}

.search-item.box .icon{
    background: radial-gradient(circle,
        rgba(255,215,120,.35),
        rgba(0,0,0,.8)
    );

    border:1px solid rgba(255,215,120,.55);
    box-shadow:0 0 12px rgba(255,200,80,.5);
}

.box-type{
    padding:2px 8px;
    font-size:12px;
    font-weight:600;

    border-radius:6px;

    background:linear-gradient(90deg,#ffd36a,#ffb347);
    color:#000;
}

.search-item.event{
    border:1px solid rgba(200,120,255,.35);
    box-shadow:0 0 18px rgba(180,80,255,.25);
}

.search-item.event .icon{
    background: radial-gradient(circle,
        rgba(200,120,255,.35),
        rgba(0,0,0,.8)
    );

    border:1px solid rgba(200,120,255,.5);
}

/* === MONSTER === */

.search-item .icon{
    min-width:54px;
    height:54px;

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:28px;

    background: radial-gradient(circle,
        rgba(255,122,24,.35),
        rgba(0,0,0,.8)
    );

    border:1px solid rgba(255,122,24,.45);
    border-radius:12px;

    box-shadow:0 0 12px rgba(255,122,24,.4);
}

.search-item .info{
    flex:1;
    display:flex;
    flex-direction:column;
}

.search-item .info h4{
    display:flex;
    align-items:center;
    gap:10px;

    margin:0;
    font-size:18px;
    font-weight:700;
    color:#ffd9a3;
}

.mob-type{
    padding:2px 8px;
    font-size:12px;
    font-weight:600;

    border-radius:6px;

    background:rgba(255,255,255,.08);
    color:#ccc;
}

/* Boss */
.search-item.boss .mob-type{
    background:linear-gradient(90deg,#ff7a18,#ffb347);
    color:#000;
    box-shadow:0 0 10px rgba(255,122,24,.6);
}

.mob-map{
    margin-top:6px;
    font-size:13px;
    color:#9fb3ff;

    text-shadow:0 0 6px rgba(80,120,255,.4);
}

.drop-toggle{
    margin-top:6px;
    padding:6px 10px;
    background:rgba(80,120,255,.08);
    border:1px solid rgba(80,120,255,.25);
    border-radius:8px;
    font-size:13px;
    color:#9fb3ff;
    cursor:pointer;
    user-select:none;
    display:flex;
    align-items:center;
    gap:6px;
    transition:.2s;
}

.drop-toggle .toggle-icon{
    font-size:12px;
    transition:.2s;
}

.drop-toggle:hover{
    background:rgba(80,120,255,.18);
    box-shadow:0 0 10px rgba(80,120,255,.35);
}

.drop-list{
    display:none;

    margin: 10px 0 0 10px!important;
    padding:10px;

    background:rgba(0,0,0,.45);
    border:1px solid rgba(255,255,255,.08);
    border-radius:10px;

    list-style:none;
}

.drop-list li{
    margin-bottom: 0px!important;
    padding:4px 6px;
    font-size:14px;
    border-bottom:1px solid rgba(255,255,255,.05);
}

.drop-list li:last-child{
    border-bottom:none;
}

/* Excellent */
.drop-list li.excellent{
    color:#7cff7a;
    text-shadow:0 0 8px rgba(0,200,255,.6);
}

/* Ancient */
.drop-list li.ancient{
    color:#ffb109;
    text-shadow:0 0 8px rgba(0,255,120,.6);
}

/* Excellent + Ancient */
.drop-list li.excellent.ancient{
    color:#00ffd0;
    text-shadow:0 0 10px rgba(0,255,200,.8);
}

.search-item.boss{
    border:1px solid rgba(255,122,24,.6);
    box-shadow:0 0 22px rgba(255,122,24,.35);
}

.search-item.boss:hover{
    box-shadow:0 0 35px rgba(255,122,24,.6);
}

.search-item.monster{
    border:1px solid rgba(255,122,24,.6);
    box-shadow:0 0 22px rgba(255,122,24,.35);
}

.search-item.monster:hover{
    box-shadow:0 0 35px rgba(255,122,24,.6);
}

/* GROUP BLOCK */

.search-group{
    margin-bottom:18px;

    background:rgba(10,10,18,.85);
    border:1px solid rgba(255,122,24,.25);
    border-radius:14px;

    box-shadow:0 0 20px rgba(0,0,0,.6);
    overflow:hidden;
}

.search-group-header{
    padding:14px 16px;

    font-weight:700;
    font-size:16px;

    display:flex;
    align-items:center;
    gap:10px;

    cursor:pointer;
    user-select:none;

    background:linear-gradient(90deg,
        rgba(255,122,24,.25),
        rgba(0,0,0,.4)
    );

    border-bottom:1px solid rgba(255,122,24,.25);

    transition:.25s;
}

.search-group-header:hover{
    background:linear-gradient(90deg,
        rgba(255,122,24,.4),
        rgba(0,0,0,.6)
    );
}

.search-group-header .count{
    margin-left:auto;
    font-size:13px;
    color:#ffcf9c;
}

.search-group-body{
    padding:14px;
    display:block;
}

.search-group.closed .search-group-body{
    display:none;
}

.toggle-icon{
    font-size:12px;
    transition:.25s;
}

/* rotate when closed */
.search-group.closed .toggle-icon{
    transform:rotate(-90deg);
}

.search-group-body{
    animation: fadeIn .25s ease;
}

@keyframes fadeIn{
    from{
        opacity:0;
        transform:translateY(-6px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

@media (max-width:768px){
/*  .search-item.monster{
        flex-direction:column;
        align-items:flex-start;
    } */

    .search-item .icon{
        width:48px;
        height:48px;
        font-size:24px;
    }

    .search-item.item .drop-list li{
        flex-direction:column;
        align-items:flex-start;
    }

    .search-item.item .mob-map{
        margin-top:2px;
    }
}
