/* Social Media Share Buttons */

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: white;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Manrope', sans-serif;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.share-btn svg {
    flex-shrink: 0;
}

/* Platform-specific colors */
.share-btn-facebook:hover {
    background: #1877F2;
    border-color: #1877F2;
    color: white;
}

.share-btn-whatsapp:hover {
    background: #25D366;
    border-color: #25D366;
    color: white;
}

.share-btn-twitter:hover {
    background: #000000;
    border-color: #000000;
    color: white;
}

.share-btn-instagram:hover {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
    border-color: #dc2743;
    color: white;
}

.share-btn-copy:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Share Loading Overlay */
#shareLoadingOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.share-loading-content {
    background: white;
    padding: 2rem 3rem;
    border-radius: 12px;
    text-align: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#shareLoadingMessage {
    color: var(--text);
    font-weight: 500;
    margin: 0;
}

/* Share Notification */
.share-notification {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--success);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 10001;
    transition: top 0.3s ease;
}

.share-notification.show {
    top: 2rem;
}

/* Share Instructions Modal */
.share-instructions-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-instructions-modal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.share-instructions-modal .modal-content {
    position: relative;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 10001;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.share-instructions-modal .modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
}

.share-instructions-modal .modal-close:hover {
    color: var(--text);
}

.share-instructions-modal h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-family: 'DM Serif Display', serif;
}

.instructions-content p {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.instructions-content p:empty {
    margin-bottom: 0.5rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        width: 100%;
        justify-content: center;
    }
    
    .share-btn span {
        display: inline;
    }
    
    .share-loading-content {
        padding: 1.5rem 2rem;
        margin: 0 1rem;
    }
    
    .share-notification {
        width: 90%;
        max-width: 300px;
    }
}

@media (min-width: 769px) {
    /* Hide text on larger screens for compact buttons */
    .share-btn span {
        display: none;
    }
    
    .share-btn:hover span {
        display: inline;
    }
    
    .share-btn {
        padding: 0.5rem;
    }
    
    .share-btn:hover {
        padding: 0.5rem 1rem;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .share-btn {
        font-size: 0.85rem;
        padding: 0.6rem 0.8rem;
    }
    
    .share-btn svg {
        width: 18px;
        height: 18px;
    }
}
