/* Magic UI Floating Share Button Styles */
.magic-share-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

/* Main Share Button */
.magic-share-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B5CF6, #F97316);
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.4);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    backdrop-filter: blur(10px);
}

.magic-share-button:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 50px rgba(139, 92, 246, 0.6);
}

.magic-share-button:active {
    transform: scale(0.95);
}

/* Pulse Animation */
.magic-share-button::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B5CF6, #F97316);
    z-index: -1;
    animation: pulse 2s infinite;
    opacity: 0.5;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 0.5;
    }
}

/* Share Options Container */
.magic-share-options {
    position: absolute;
    bottom: 80px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.5) translateY(20px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Individual Share Option */
.magic-share-option {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    opacity: 0;
    transform: translateY(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* Platform-specific colors on hover */
.magic-share-option[data-platform="twitter"]:hover {
    background: #000000;
    border-color: #000000;
    transform: translateX(-5px) scale(1.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.magic-share-option[data-platform="reddit"]:hover {
    background: #FF4500;
    border-color: #FF4500;
    transform: translateX(-5px) scale(1.1);
    box-shadow: 0 10px 30px rgba(255, 69, 0, 0.4);
}

.magic-share-option[data-platform="facebook"]:hover {
    background: #1877F2;
    border-color: #1877F2;
    transform: translateX(-5px) scale(1.1);
    box-shadow: 0 10px 30px rgba(24, 119, 242, 0.4);
}

.magic-share-option[data-platform="instagram"]:hover {
    background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF, #515BD4);
    border-color: #DD2A7B;
    transform: translateX(-5px) scale(1.1);
    box-shadow: 0 10px 30px rgba(221, 42, 123, 0.4);
}

/* Active State - When share menu is open */
.magic-share-container.active .magic-share-button {
    transform: rotate(90deg);
    background: linear-gradient(135deg, #F97316, #8B5CF6);
}

.magic-share-container.active .magic-share-button::before {
    animation: none;
    opacity: 0;
}

.magic-share-container.active .magic-share-options {
    opacity: 1;
    pointer-events: all;
    transform: scale(1) translateY(0);
}

/* Staggered animation for share options */
.magic-share-container.active .magic-share-option {
    opacity: 1;
    transform: translateY(0);
}

.magic-share-container.active .magic-share-option:nth-child(1) {
    transition-delay: 0.05s;
}

.magic-share-container.active .magic-share-option:nth-child(2) {
    transition-delay: 0.1s;
}

.magic-share-container.active .magic-share-option:nth-child(3) {
    transition-delay: 0.15s;
}

.magic-share-container.active .magic-share-option:nth-child(4) {
    transition-delay: 0.2s;
}

/* Toast Notification */
.magic-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(26, 11, 46, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.3);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
    z-index: 10000;
}

.magic-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .magic-share-container {
        bottom: 20px;
        right: 20px;
    }
    
    .magic-share-button {
        width: 56px;
        height: 56px;
    }
    
    .magic-share-option {
        width: 44px;
        height: 44px;
    }
    
    .magic-share-options {
        bottom: 70px;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .magic-share-button::before {
        animation: none;
    }
    
    .magic-share-button,
    .magic-share-option,
    .magic-share-options,
    .magic-toast {
        transition: opacity 0.3s ease;
    }
}

/* Dark Mode Enhancement */
@media (prefers-color-scheme: dark) {
    .magic-share-option {
        background: rgba(255, 255, 255, 0.05);
    }
    
    .magic-toast {
        background: rgba(0, 0, 0, 0.95);
    }
}