/* Bedots Multi-Level Menu Styles */

.bedots-menu-container {
    background-color: #1a202c;
    padding: 20px;
    border-radius: 8px;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.bedots-menu-wrapper {
    position: relative;
    overflow: hidden;
}

.bedots-menu-columns {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: all 0.3s ease;
}

.bedots-menu-column {
    min-width: 250px;
    flex-shrink: 0;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s ease;
    position: relative;
}

.bedots-menu-column.active,
.bedots-menu-column.level-1-column {
    opacity: 1;
    transform: translateX(0);
}

.bedots-menu-level {
    list-style: none;
    margin: 0;
    padding: 0;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    overflow: hidden;
}

.bedots-menu-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.bedots-menu-item:last-child {
    border-bottom: none;
}

.bedots-menu-item a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.2s ease;
    position: relative;
}

.bedots-menu-item a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #4299e1;
    transform: translateX(5px);
}

.bedots-menu-item.active a {
    background-color: rgba(66, 153, 225, 0.2);
    color: #4299e1;
    font-weight: 500;
}

.bedots-menu-item.level-1-item a {
    font-weight: 500;
    font-size: 15px;
}

.menu-arrow {
    font-size: 10px;
    transition: transform 0.2s ease;
    color: rgba(255, 255, 255, 0.6);
}

.bedots-menu-item.has-children:hover .menu-arrow {
    transform: rotate(180deg);
}

.bedots-menu-item.active .menu-arrow {
    transform: rotate(180deg);
    color: #4299e1;
}

/* Level-specific styling */
.bedots-menu-level.level-1 {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.bedots-menu-level.level-2 {
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.bedots-menu-level.level-3 {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.bedots-menu-level.level-4 {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Column positioning - Level 2 adjacent to Level 1 */
.bedots-menu-column.level-2 {
    margin-left: 0;
}

.bedots-menu-column.level-3 {
    margin-left: 0;
}

.bedots-menu-column.level-4 {
    margin-left: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .bedots-menu-container {
        padding: 15px;
    }
    
    .bedots-menu-column {
        min-width: 200px;
    }
    
    .bedots-menu-columns {
        gap: 15px;
    }
    
    .bedots-menu-item a {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .bedots-menu-item.level-1-item a {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .bedots-menu-container {
        padding: 10px;
    }
    
    .bedots-menu-column {
        min-width: 180px;
    }
    
    .bedots-menu-columns {
        gap: 10px;
    }
}

/* Animation for smooth transitions */
.bedots-menu-column.slide-in {
    animation: slideInRight 0.3s ease forwards;
}

.bedots-menu-column.slide-out {
    animation: slideOutLeft 0.3s ease forwards;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutLeft {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-20px);
    }
}

/* Loading state */
.bedots-menu-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #ffffff;
}

.bedots-menu-loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #4299e1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* No menu message */
.bedots-menu-no-menu {
    padding: 20px;
    text-align: center;
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    border: 1px dashed rgba(255, 255, 255, 0.3);
}

/* Hover effects for better UX */
.bedots-menu-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background-color: #4299e1;
    transform: scaleY(0);
    transition: transform 0.2s ease;
}

.bedots-menu-item.active::before,
.bedots-menu-item:hover::before {
    transform: scaleY(1);
}

/* Focus states for accessibility */
.bedots-menu-item a:focus {
    outline: 2px solid #4299e1;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .bedots-menu-container {
        border: 2px solid #ffffff;
    }
    
    .bedots-menu-item a {
        border: 1px solid transparent;
    }
    
    .bedots-menu-item a:hover,
    .bedots-menu-item.active a {
        border-color: #4299e1;
    }
}
