/* Social Share Buttons - Dozi Blog */

.social-share-container {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 1.5rem;
    margin: 2.5rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    transition: all 0.3s ease;
}

.social-share-container:hover {
    border-color: #40E0D0;
    box-shadow: 0 10px 30px rgba(64, 224, 208, 0.1);
}

.share-label {
    font-weight: 700;
    color: #1e293b;
    font-size: 0.95rem;
    white-space: nowrap;
}

.share-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    flex: 1;
}

.share-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: visible;
}

.share-btn::before {
    content: attr(title);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(-5px);
    background: #0f172a;
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 100;
}

.share-btn::after {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%) translateY(-5px);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #0f172a;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 100;
}

.share-btn:hover::before,
.share-btn:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.share-btn svg {
    width: 20px;
    height: 20px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.share-btn:hover svg {
    transform: scale(1.1);
}

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

/* WhatsApp */
.share-btn.whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
}

.share-btn.whatsapp:hover {
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
    transform: translateY(-3px);
}

/* Telegram */
.share-btn.telegram {
    background: linear-gradient(135deg, #0088cc 0%, #006699 100%);
    color: white;
}

.share-btn.telegram:hover {
    box-shadow: 0 8px 20px rgba(0, 136, 204, 0.4);
    transform: translateY(-3px);
}

/* Twitter/X */
.share-btn.twitter {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    color: white;
}

.share-btn.twitter:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-3px);
}

/* Facebook */
.share-btn.facebook {
    background: linear-gradient(135deg, #1877F2 0%, #0d5dbf 100%);
    color: white;
}

.share-btn.facebook:hover {
    box-shadow: 0 8px 20px rgba(24, 119, 242, 0.4);
    transform: translateY(-3px);
}

/* LinkedIn */
.share-btn.linkedin {
    background: linear-gradient(135deg, #0A66C2 0%, #004182 100%);
    color: white;
}

.share-btn.linkedin:hover {
    box-shadow: 0 8px 20px rgba(10, 102, 194, 0.4);
    transform: translateY(-3px);
}

/* Email */
.share-btn.email {
    background: linear-gradient(135deg, #EA4335 0%, #c5221f 100%);
    color: white;
}

.share-btn.email:hover {
    box-shadow: 0 8px 20px rgba(234, 67, 53, 0.4);
    transform: translateY(-3px);
}

/* Copy Link */
.share-btn.copy {
    background: linear-gradient(135deg, #40E0D0 0%, #2dd4bf 100%);
    color: #0f172a;
}

.share-btn.copy:hover {
    box-shadow: 0 8px 20px rgba(64, 224, 208, 0.4);
    transform: translateY(-3px);
}

.copy-feedback {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    background: #10b981;
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 101;
}

.copy-feedback::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #10b981;
}

.copy-feedback.show {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

/* Hide tooltip when copy feedback is shown */
.share-btn.copy:has(.copy-feedback.show)::before,
.share-btn.copy:has(.copy-feedback.show)::after {
    opacity: 0 !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .social-share-container {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.25rem;
    }

    .share-label {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .share-buttons {
        width: 100%;
        justify-content: flex-start;
    }

    .share-btn {
        width: 40px;
        height: 40px;
    }

    .share-btn svg {
        width: 18px;
        height: 18px;
    }
    
    /* Disable tooltips on mobile (touch devices) */
    .share-btn::before,
    .share-btn::after {
        display: none;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    .social-share-container {
        background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
        border-color: #334155;
    }

    .share-label {
        color: #f1f5f9;
    }
}
