/**
 * Modern Menu Styles
 * Replaces legacy Dreamweaver menu styling
 * Provides clean, accessible dropdown navigation
 */

/* Dropdown Container */
.modern-dropdown-menu {
    position: absolute;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
    background-color: #00907D;
    border: 1px solid #00907D;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 0;
}

.modern-dropdown-menu.show {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Dropdown List */
.modern-dropdown-menu .dropdown-list {
    list-style: none;
    margin: 0;
    padding: 0;
    min-width: 165px;
}

/* Dropdown Items */
.modern-dropdown-menu .dropdown-item {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #00907D;
}

.modern-dropdown-menu .dropdown-item:last-child {
    border-bottom: none;
}

/* Dropdown Links */
.modern-dropdown-menu .dropdown-link {
    display: block;
    padding: 8px 15px;
    color: #FFFFFF;
    text-decoration: none;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: normal;
    background-color: #2D7C76;
    transition: background-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
    cursor: pointer;
}

.modern-dropdown-menu .dropdown-link:hover,
.modern-dropdown-menu .dropdown-link:focus {
    background-color: #1F5853;
    color: #FFFFFF;
    outline: 2px solid #FFFFFF;
    outline-offset: -2px;
}

.modern-dropdown-menu .dropdown-link:active {
    background-color: #164440;
}

/* Accessibility improvements */
.modern-dropdown-menu .dropdown-link:focus {
    outline: 2px solid #FFFFFF;
    outline-offset: -2px;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .modern-dropdown-menu {
        min-width: 200px;
        left: 0 !important;
        right: auto;
    }
    
    .modern-dropdown-menu .dropdown-link {
        padding: 12px 15px;
        font-size: 14px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .modern-dropdown-menu .dropdown-link {
        border: 1px solid currentColor;
    }
    
    .modern-dropdown-menu .dropdown-link:focus {
        outline: 3px solid;
        outline-offset: 0;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .modern-dropdown-menu {
        transition: none;
    }
    
    .modern-dropdown-menu .dropdown-link {
        transition: none;
    }
}

/* Print styles */
@media print {
    .modern-dropdown-menu {
        display: none;
    }
}
