/* Quick Access Floating Menu Styles - quick-access.css */

.quick-access-menu {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.menu-toggle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
}

.menu-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.6);
}

.menu-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.2), transparent);
    border-radius: 50%;
}

.menu-icon {
    width: 24px;
    height: 24px;
    position: relative;
    transition: transform 0.3s ease;
}

.menu-icon span {
    display: block;
    width: 24px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
    position: absolute;
}

.menu-icon span:nth-child(1) {
    top: 5px;
}

.menu-icon span:nth-child(2) {
    top: 11px;
}

.menu-icon span:nth-child(3) {
    top: 17px;
}

.menu-open .menu-icon span:nth-child(1) {
    transform: rotate(45deg);
    top: 11px;
}

.menu-open .menu-icon span:nth-child(2) {
    opacity: 0;
}

.menu-open .menu-icon span:nth-child(3) {
    transform: rotate(-45deg);
    top: 11px;
}

.menu-items {
    position: absolute;
    bottom: 80px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
}

.menu-open .menu-items {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.menu-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
    animation: menuItemSlide 0.5s ease forwards;
    transform: translateX(100px);
    opacity: 0;
}

.menu-item:nth-child(1) {
    animation-delay: 0.1s;
    background: linear-gradient(135deg, #25d366, #128c7e);
}

.menu-item:nth-child(2) {
    animation-delay: 0.2s;
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.menu-item:nth-child(3) {
    animation-delay: 0.3s;
    background: linear-gradient(135deg, #fa709a, #fee140);
}

.menu-item:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}

.menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.2), transparent);
    border-radius: 50%;
}

.menu-item i {
    color: white;
    font-size: 20px;
    z-index: 1;
    position: relative;
}

.menu-item img {
    z-index: 1;
    position: relative;
}

.menu-tooltip {
    position: absolute;
    right: 65px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.menu-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: rgba(0,0,0,0.8);
}

.menu-item:hover .menu-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(-5px);
}

@keyframes menuItemSlide {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Pulse animation for the main button */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    }
    50% {
        box-shadow: 0 8px 35px rgba(102, 126, 234, 0.7);
    }
}

.menu-toggle.pulse {
    animation: pulseGlow 2s ease-in-out infinite;
}

/* Dark mode support */
.dark .menu-tooltip {
    background: rgba(255,255,255,0.9);
    color: #1f2937;
}

.dark .menu-tooltip::after {
    border-left-color: rgba(255,255,255,0.9);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .quick-access-menu {
        bottom: 20px;
        right: 20px;
    }
    
    .menu-toggle {
        width: 55px;
        height: 55px;
    }
    
    .menu-item {
        width: 48px;
        height: 48px;
    }
    
    .menu-items {
        bottom: 70px;
        gap: 12px;
    }
    
    .menu-tooltip {
        display: none; /* Hide tooltips on mobile for better UX */
    }
}

/* Accessibility improvements */
.menu-toggle:focus,
.menu-item:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .menu-toggle,
    .menu-items,
    .menu-item {
        transition: none;
    }
    
    .menu-item {
        animation: none;
        opacity: 1;
        transform: translateX(0);
    }
}


