/* Arcanthea Navigation Panel Styling - Fixed to bottom left */
.arcanthea-nav {
    position: fixed;
    left: 20px;
    bottom: 20px;
    width: 250px;
    background-color: rgba(0, 0, 0, 0.8);
    border: 2px solid #e75480;
    border-radius: 8px;
    padding: 1rem;
    z-index: 100;
    max-height: 70vh;
    overflow-y: auto;
    box-shadow: 0 0 20px rgba(231, 84, 128, 0.4);
    backdrop-filter: blur(3px);
    transition: all 0.3s ease;
}

/* Hover effect to make it pop more */
.arcanthea-nav:hover {
    box-shadow: 0 0 25px rgba(231, 84, 128, 0.6);
    transform: translateX(5px);
}

.arcanthea-nav h4 {
    color: #00ced1;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 5px #00ced1;
    border-bottom: 1px solid #e75480;
    padding-bottom: 0.5rem;
}

.arcanthea-nav ul {
    list-style: none;
    padding: 0;
}

.arcanthea-nav li {
    margin-bottom: 0.5rem;
}

.arcanthea-nav a {
    color: #AAC1CB;
    text-decoration: none;
    display: block;
    padding: 0.4rem 0.6rem;
    border-left: 2px solid transparent;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.arcanthea-nav a:hover, .arcanthea-nav a.active {
    color: #00ced1;
    border-left: 2px solid #00ced1;
    background-color: rgba(0, 206, 209, 0.1);
    transform: translateX(3px);
    text-shadow: 0 0 5px #00ced1;
}

.has-submenu {
    position: relative;
}

.has-submenu > a::after {
    content: " +";
    color: #e75480;
    margin-left: 5px;
    font-weight: bold;
}

.arcanthea-submenu {
    display: none;
    margin-left: 1rem;
    margin-top: 0.3rem;
}

.has-submenu:hover .arcanthea-submenu {
    display: block;
}

/* When submenu is hovered, make parent glow too */
.has-submenu:hover > a {
    color: #00ced1;
    border-left: 2px solid #00ced1;
    background-color: rgba(0, 206, 209, 0.1);
    transform: translateX(3px);
    text-shadow: 0 0 5px #00ced1;
}

/* When a child submenu item is active, make parent glow */
.arcanthea-submenu a.active ~ a,
.arcanthea-submenu a.active + a,
.has-submenu:has(.arcanthea-submenu a.active) > a {
    color: #00ced1;
    border-left: 2px solid #00ced1;
    background-color: rgba(0, 206, 209, 0.1);
    text-shadow: 0 0 5px #00ced1;
}

/* Add a minimize/maximize button */
.arcanthea-nav-minimize {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #e75480;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    line-height: 1;
}

.arcanthea-nav.minimized {
    width: 40px;
    height: 40px;
    overflow: hidden;
    padding: 0;
}

.arcanthea-nav.minimized h4,
.arcanthea-nav.minimized ul {
    display: none;
}

.arcanthea-nav.minimized .arcanthea-nav-minimize {
    width: 40px;
    height: 40px;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Update mobile styles */
@media (max-width: 992px) {
    .arcanthea-nav {
        display: none; /* Hide on smaller screens by default */
        left: 15px;
        width: 250px;
        bottom: 70px;
    }
}

/* Mobile navigation toggle button */
.arcanthea-nav-toggle {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #e75480;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 10px 15px;
    font-size: 14px;
    box-shadow: 0 0 15px rgba(231, 84, 128, 0.7);
    z-index: 999;
    cursor: pointer;
    transition: all 0.3s ease;
}

.arcanthea-nav-toggle:hover {
    background-color: #00ced1;
    box-shadow: 0 0 15px rgba(0, 206, 209, 0.7);
}

@media (max-width: 992px) {
    .arcanthea-nav-toggle {
        display: block;
    }
}