/* Quick Action Buttons - Cyberpunk Design */

:root {
    --cyber-bg: #14141e;
    --cyber-accent: #aaff00;
    --cyber-accent-hover: #88cc00;
    --cyber-text: rgba(255, 255, 255, 0.95);
    --cyber-border: rgba(255, 255, 255, 0.1);
}

/* Quick Action Buttons Container */
.quick-action-buttons {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

/* Base Button Styles */
.quick-action-btn,
.scroll-to-top-btn {
    position: relative;
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    overflow: visible;
    padding: 0;
    margin: 0;
    font-family: inherit;
}

.quick-action-btn::before,
.scroll-to-top-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(170, 255, 0, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.quick-action-btn:hover::before,
.scroll-to-top-btn:hover::before {
    opacity: 1;
}

/* WhatsApp Button */
.whatsapp-btn {
    border-color: rgba(37, 211, 102, 0.3);
    color: #25d366;
}

.whatsapp-btn:hover {
    background: rgba(37, 211, 102, 0.15);
    border-color: rgba(37, 211, 102, 0.5);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 6px 20px rgba(37, 211, 102, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.whatsapp-btn .action-icon {
    filter: drop-shadow(0 0 8px rgba(37, 211, 102, 0.4));
}

/* Telegram Button */
.telegram-btn {
    border-color: rgba(37, 150, 190, 0.3);
    color: #2596be;
}

.telegram-btn:hover {
    background: rgba(37, 150, 190, 0.15);
    border-color: rgba(37, 150, 190, 0.5);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 6px 20px rgba(37, 150, 190, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.telegram-btn .action-icon {
    filter: drop-shadow(0 0 8px rgba(37, 150, 190, 0.4));
}

/* Mail Button */
.mail-btn {
    border-color: rgba(255, 107, 53, 0.3);
    color: #ff6b35;
}

.mail-btn:hover {
    background: rgba(255, 107, 53, 0.15);
    border-color: rgba(255, 107, 53, 0.5);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 6px 20px rgba(255, 107, 53, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.mail-btn .action-icon {
    filter: drop-shadow(0 0 8px rgba(255, 107, 53, 0.4));
}

/* Scroll to Top Button */
.scroll-to-top-btn {
    border-color: rgba(170, 255, 0, 0.3);
    color: var(--cyber-accent);
    margin-top: 0.5rem;
}

.scroll-to-top-btn:hover {
    background: rgba(170, 255, 0, 0.15);
    border-color: rgba(170, 255, 0, 0.5);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 6px 20px rgba(170, 255, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.scroll-to-top-btn .scroll-icon {
    filter: drop-shadow(0 0 8px rgba(170, 255, 0, 0.4));
}

.scroll-to-top-btn.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    pointer-events: none;
}

/* Icons */
.action-icon,
.scroll-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.quick-action-btn:hover .action-icon,
.scroll-to-top-btn:hover .scroll-icon {
    transform: scale(1.1);
}

/* Tooltips */
.tooltip {
    position: absolute;
    right: calc(100% + 1rem);
    top: 50%;
    transform: translateY(-50%);
    background: rgba(20, 20, 30, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    color: var(--cyber-text);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    z-index: 1001;
}

.tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: rgba(20, 20, 30, 0.95);
    filter: drop-shadow(1px 0 0 rgba(255, 255, 255, 0.1));
}

.quick-action-btn:hover .tooltip,
.scroll-to-top-btn:hover .tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(-5px);
}

/* WhatsApp tooltip accent */
.whatsapp-btn:hover .tooltip {
    border-left-color: rgba(37, 211, 102, 0.2);
}

.whatsapp-btn:hover .tooltip::after {
    border-left-color: rgba(20, 20, 30, 0.95);
}

/* Telegram tooltip accent */
.telegram-btn:hover .tooltip {
    border-left-color: rgba(37, 150, 190, 0.2);
}

.telegram-btn:hover .tooltip::after {
    border-left-color: rgba(20, 20, 30, 0.95);
}

/* Mail tooltip accent */
.mail-btn:hover .tooltip {
    border-left-color: rgba(255, 107, 53, 0.2);
}

.mail-btn:hover .tooltip::after {
    border-left-color: rgba(20, 20, 30, 0.95);
}

/* Scroll to top tooltip accent */
.scroll-to-top-btn:hover .tooltip {
    border-left-color: rgba(170, 255, 0, 0.2);
}

.scroll-to-top-btn:hover .tooltip::after {
    border-left-color: rgba(20, 20, 30, 0.95);
}

/* Active/Click Animation */
.quick-action-btn:active,
.scroll-to-top-btn:active {
    transform: translateY(-1px) scale(0.98);
}

/* Ripple Effect */
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(170, 255, 0, 0.3);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .quick-action-buttons {
        right: 1rem;
        bottom: 1rem;
        gap: 0.75rem;
    }

    .quick-action-btn,
    .scroll-to-top-btn {
        width: 3rem;
        height: 3rem;
    }

    .action-icon,
    .scroll-icon {
        width: 18px;
        height: 18px;
    }

    .tooltip {
        font-size: 0.75rem;
        padding: 0.375rem 0.625rem;
        right: calc(100% + 0.75rem);
    }
}

@media (max-width: 480px) {
    .quick-action-buttons {
        right: 0.75rem;
        bottom: 0.75rem;
        gap: 0.5rem;
    }

    .quick-action-btn,
    .scroll-to-top-btn {
        width: 2.75rem;
        height: 2.75rem;
    }

    .action-icon,
    .scroll-icon {
        width: 16px;
        height: 16px;
    }

    .tooltip {
        display: none; /* Hide tooltips on very small screens */
    }
}
