/* Social Share Styles */
.social-share-container {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

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

.social-share-title {
    color: #333;
    font-size: 18px;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    font-weight: 600;
}

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

.social-share-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #333;
    background: #fff;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.social-share-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: #333;
    transition: all 0.4s ease;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.social-share-btn:hover {
    border-color: #000;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.social-share-btn:hover::before {
    width: 100%;
    height: 100%;
}

.social-share-btn:hover svg {
    color: #fff;
    transform: scale(1.1);
}

.social-share-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Platform specific colors (optional hover effects) */
.social-share-btn[data-platform="facebook"]:hover {
    border-color: #1877f2;
}

.social-share-btn[data-platform="facebook"]:hover::before {
    background: #1877f2;
}

.social-share-btn[data-platform="twitter"]:hover {
    border-color: #000;
}

.social-share-btn[data-platform="twitter"]:hover::before {
    background: #000;
}

.social-share-btn[data-platform="reddit"]:hover {
    border-color: #ff4500;
}

.social-share-btn[data-platform="reddit"]:hover::before {
    background: #ff4500;
}

.social-share-btn[data-platform="whatsapp"]:hover {
    border-color: #25d366;
}

.social-share-btn[data-platform="whatsapp"]:hover::before {
    background: #25d366;
}

.social-share-btn[data-platform="copylink"]:hover {
    border-color: #666;
}

.social-share-btn[data-platform="copylink"]:hover::before {
    background: #666;
}

/* Copy Notification */
.copy-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #333;
    color: #fff;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    font-size: 14px;
    font-weight: 500;
    z-index: 10000;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
}

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

.copy-notification.success {
    background: #27ae60;
}

.copy-notification.error {
    background: #e74c3c;
}

.copy-notification::before {
    content: '✓';
    margin-right: 8px;
    font-size: 16px;
    font-weight: bold;
}

.copy-notification.error::before {
    content: '✗';
}

/* Responsive Design */
@media (max-width: 768px) {
    .social-share-container {
        padding: 20px 15px;
    }

    .social-share-title {
        font-size: 16px;
        margin-bottom: 15px;
    }

    .social-share-buttons {
        gap: 12px;
    }

    .social-share-btn {
        width: 45px;
        height: 45px;
    }

    .social-share-btn svg {
        width: 20px;
        height: 20px;
    }

    .copy-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        text-align: center;
        padding: 12px 20px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .social-share-buttons {
        gap: 10px;
    }

    .social-share-btn {
        width: 42px;
        height: 42px;
    }

    .social-share-btn svg {
        width: 18px;
        height: 18px;
    }
}

/* Animation for share button click */
@keyframes shareClick {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
    }
}

.social-share-btn.clicked {
    animation: shareClick 0.3s ease;
}

/* Page-level share section styling */
.page-share-section {
    background: #f8f9fa;
    margin: 20px auto;
    border-top: 1px solid #e9ecef;
}

.page-share-section .social-share-container {
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-share-section .social-share-title {
    font-size: 20px;
    color: #333;
    text-align: center;
}

/* Info pages specific styling */
.main+.page-share-section {
    background: #f5f5f5;
    padding: 30px 20px;
}

.main+.page-share-section .social-share-container {
    max-width: 500px;
    padding: 20px;
}

@media (max-width: 768px) {
    .page-share-section {
        padding: 30px 15px;
    }

    .page-share-section .social-share-container {
        padding: 20px 15px;
    }
}