/* Dropdown Menu Styles */

/* Dropdown Container */
.nav-menu .dropdown {
    position: relative;
}

.nav-menu .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.dropdown-arrow {
    transition: transform 0.3s ease;
    margin-left: 4px;
}

/* Rotate arrow when dropdown is open */
.dropdown:hover .dropdown-arrow,
.dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 280px;
    background: #fff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 10px;
    padding: 8px 0;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Dropdown Menu Items */
.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: #000;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.dropdown-menu a:hover {
    background: #f5f5f5;
    color: #000;
    padding-left: 24px;
}

/* Active state for dropdown items */
.dropdown-menu a.active {
    background: #fff3ef;
    color: #000;
    font-weight: 600;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-menu .dropdown {
        position: relative;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 0;
        margin-top: 0;
        padding: 0;
        min-width: auto;
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: max-height 0.3s ease;
    }

    .dropdown.active .dropdown-menu {
        max-height: 300px;
        padding: 8px 0;
    }

    .dropdown-menu a {
        padding: 12px 20px 12px 40px;
        color: #000;
        font-size: 0.9rem;
    }

    .dropdown-menu a:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #000;
        padding-left: 44px;
    }

    .dropdown-menu a.active {
        background: rgba(255, 107, 53, 0.2);
        color: #000;
    }

    /* Toggle dropdown on click for mobile */
    .dropdown-toggle {
        width: 100%;
        justify-content: space-between;
    }
}

/* Animation for dropdown appearance */
@keyframes dropdownSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown:hover .dropdown-menu {
    animation: dropdownSlideIn 0.3s ease;
}

/* Prevent dropdown from closing when clicking inside */
.dropdown-menu li {
    margin: 0;
}

/* Hover effect triangle/arrow (optional decorative element) */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 20px;
    width: 12px;
    height: 12px;
    background: #fff;
    transform: rotate(45deg);
    box-shadow: -2px -2px 4px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    .dropdown-menu::before {
        display: none;
    }
}

/* Accessibility improvements */
.dropdown-toggle:focus {
    outline: 2px solid #ff6b35;
    outline-offset: 2px;
}

.dropdown-menu a:focus {
    outline: 2px solid #ff6b35;
    outline-offset: -2px;
}

/* Smooth transitions */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
