/* Dropdown Menu Styles */
.nav-links li {
    position: relative;
    /* Context for absolute dropdown */
}

.has-dropdown>a {
    display: flex;
    align-items: center;
    gap: 5px;
}

.has-dropdown ion-icon {
    font-size: 0.8em;
    transition: 0.3s;
}

.has-dropdown:hover ion-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(15, 15, 25, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px 0;
    min-width: 160px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);

    /* Animation State: Hidden by default */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
    pointer-events: none;
    /* Prevent clicking when hidden */
}

/* Show on Hover */
.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
    /* Enable clicking when visible */
}

/* Arrow indicator on top of dropdown */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid rgba(15, 15, 25, 0.95);
}

.dropdown-menu li {
    display: block;
    width: 100%;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: #e0e0e0;
    font-size: 0.95rem;
    white-space: nowrap;
    transition: 0.2s;
    font-family: 'Zen Maru Gothic', sans-serif;
    text-align: center;
    text-decoration: none;
}

.dropdown-menu a:hover {
    background: rgba(255, 153, 0, 0.1);
    /* Maple Orange tint */
    color: #fff;
    padding-left: 25px;
    /* Slide effect */
}