/* ========================================
   Social Share Buttons - HostingLab360
   ======================================== */

:root {
    --facebook-color: #1877f2;
    --twitter-color: #000000;
    --whatsapp-color: #25d366;
    --linkedin-color: #0a66c2;
    --copy-color: #64748b;
}

/* ==========================================
   Floating Sidebar Buttons (Desktop Only)
   ========================================== */

.social-share-floating {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 998;
    display: none;
    /* Hidden by default, shown on desktop */
}

@media (min-width: 1200px) {
    .social-share-floating {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
}

.social-share-floating .share-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-size: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    border: none;
    position: relative;
}

.social-share-floating .share-btn:hover {
    transform: translateX(5px) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.social-share-floating .share-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 60px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.social-share-floating .share-btn:hover::after {
    opacity: 1;
}

/* ==========================================
   Bottom Fixed Bar (Mobile Only)
   ========================================== */

.social-share-mobile {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 999;
    display: none;
    /* Hidden by default, shown on mobile */
    padding: 12px 0;
    border-top: 1px solid #e2e8f0;
}

@media (max-width: 1199px) {
    .social-share-mobile {
        display: block;
    }
}

.social-share-mobile .share-buttons-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    max-width: 100%;
    overflow-x: auto;
    padding: 0 16px;
}

.social-share-mobile .share-btn {
    width: 45px;
    height: 45px;
    min-width: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    border: none;
}

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

/* ==========================================
   Inline Share Buttons
   ========================================== */

.social-share-inline {
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.social-share-inline h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.social-share-inline h3 i {
    color: #4361ee;
}

.social-share-inline .share-buttons-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.social-share-inline .share-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-size: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    border: none;
}

.social-share-inline .share-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* ==========================================
   Button Colors
   ========================================== */

.share-btn.facebook,
.share-btn.share-facebook {
    background: var(--facebook-color);
}

.share-btn.facebook:hover,
.share-btn.share-facebook:hover {
    background: #1565c0;
}

.share-btn.twitter,
.share-btn.share-twitter {
    background: var(--twitter-color);
}

.share-btn.twitter:hover,
.share-btn.share-twitter:hover {
    background: #333333;
}

.share-btn.whatsapp,
.share-btn.share-whatsapp {
    background: var(--whatsapp-color);
}

.share-btn.whatsapp:hover,
.share-btn.share-whatsapp:hover {
    background: #1ebe57;
}

.share-btn.linkedin,
.share-btn.share-linkedin {
    background: var(--linkedin-color);
}

.share-btn.linkedin:hover,
.share-btn.share-linkedin:hover {
    background: #004182;
}

.share-btn.copy,
.share-btn.share-copy {
    background: var(--copy-color);
}

.share-btn.copy:hover,
.share-btn.share-copy:hover {
    background: #475569;
}

/* ==========================================
   Copy Notification
   ========================================== */

.copy-notification {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(16, 185, 129, 0.95);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 9999;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

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

@media (min-width: 1200px) {
    .copy-notification {
        bottom: 30px;
    }
}

/* ==========================================
   Accessibility
   ========================================== */

.share-btn:focus {
    outline: 3px solid #4361ee;
    outline-offset: 3px;
}

.share-btn:focus:not(:focus-visible) {
    outline: none;
}

/* ==========================================
   Animation for mobile bar entrance
   ========================================== */

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.social-share-mobile {
    animation: slideUp 0.3s ease-out;
}