/* Floating Share Buttons Styles */
.floating-share-buttons {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.share-toggle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    margin-bottom: 15px;
    animation: pulse 2s infinite;
}

.share-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.6);
}

.share-toggle i {
    font-size: 20px;
}

@keyframes pulse {
    0% { box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4); }
    50% { box-shadow: 0 4px 20px rgba(102, 126, 234, 0.8); }
    100% { box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4); }
}

.share-buttons-container {
    display: none;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.share-buttons-container.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.share-btn {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
    font-size: 18px;
}

.share-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.share-linkedin {
    background: #0077b5;
}

.share-linkedin:hover {
    background: #005885;
}

.share-twitter {
    background: #1da1f2;
}

.share-twitter:hover {
    background: #0d8bd9;
}

.share-facebook {
    background: #4267b2;
}

.share-facebook:hover {
    background: #365899;
}

.share-whatsapp {
    background: #25d366;
}

.share-whatsapp:hover {
    background: #128c7e;
}

.share-email {
    background: #ea4335;
}

.share-email:hover {
    background: #c23321;
}

.share-copy {
    background: #6c757d;
}

.share-copy:hover {
    background: #545b62;
}

/* Success animation for copy button */
.share-copy.copied {
    background: #28a745 !important;
    animation: checkmark 0.6s ease;
}

@keyframes checkmark {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .floating-share-buttons {
        right: 15px;
    }
    
    .share-toggle {
        width: 50px;
        height: 50px;
    }
    
    .share-toggle i {
        font-size: 16px;
    }
    
    .share-btn {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
}

/* Hide on very small screens */
@media (max-width: 480px) {
    .floating-share-buttons {
        display: none;
    }
}

/* Print mode - hide share buttons */
@media print {
    .floating-share-buttons {
        display: none !important;
    }
}

/* Fix z-index conflict with high z-index templates like Prestige */
.template-prestige .floating-share-buttons,
.cv-preview-wrapper.template-prestige ~ .floating-share-buttons,
body:has(.template-prestige) .floating-share-buttons {
    z-index: 10000 !important;
}

/* Ensure share buttons work properly with full-screen templates */
body:has(.template-prestige) .floating-share-buttons .share-toggle,
.template-prestige ~ .floating-share-buttons .share-toggle {
    z-index: 10001 !important;
}

body:has(.template-prestige) .floating-share-buttons .share-buttons-container,
.template-prestige ~ .floating-share-buttons .share-buttons-container {
    z-index: 10001 !important;
} 