/* ./assets/css/engagement.css */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 10px 20px;
    color: white;
    border-radius: 5px;
    z-index: 1000;
}
.toast.success {
    background-color: #28a745;
}
.toast.error {
    background-color: #dc3545;
}

/* ./assets/css/engagement.css */
.share-buttons {
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    gap: 12px; /* Consistent spacing */
    justify-content: center; /* Center buttons on mobile */
    align-items: center;
}

.share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px; /* Increased padding for better touch targets */
    font-size: 16px;
    font-weight: 600;
    color: #fff !important; /* Ensure text is white */
    background-color: #28a745; /* Default green */
    border: none;
    border-radius: 8px; /* Softer corners */
    cursor: pointer;
    text-decoration: none !important; /* Remove underlines */
    transition: background-color 0.3s ease, transform 0.2s ease, opacity 0.2s ease;
    opacity: 1; /* Ensure buttons are not faint */
    min-width: 120px; /* Prevent buttons from being too small */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

.share-button:hover {
    background-color: #218838; /* Darker green on hover */
    transform: translateY(-2px); /* Slight lift effect */
    opacity: 0.9; /* Slight fade on hover */
}

.share-button:active {
    transform: translateY(0); /* Reset lift on click */
}

.share-button i {
    margin-right: 8px; /* Space between icon and text */
    font-size: 18px; /* Slightly larger icon */
}

.share-button[data-platform="whatsapp"] {
    background-color: #25D366; /* WhatsApp green */
}

.share-button[data-platform="whatsapp"]:hover {
    background-color: #20BA56;
}

.share-button[data-platform="facebook"] {
    background-color: #3B5998; /* Facebook blue */
}

.share-button[data-platform="facebook"]:hover {
    background-color: #2F477A;
}

.share-button[data-platform="x"] {
    background-color: #000000; /* X black */
}

.share-button[data-platform="x"]:hover {
    background-color: #333333;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .share-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 10px;
    }

    .share-button {
        width: 100%; /* Full width on smaller screens */
        max-width: 300px; /* Prevent buttons from being too wide */
        padding: 10px 20px; /* Slightly smaller padding */
        font-size: 14px; /* Smaller font for mobile */
    }

    .share-button i {
        font-size: 16px; /* Adjust icon size */
    }
}

@media (max-width: 480px) {
    .share-button {
        padding: 8px 16px;
        font-size: 13px;
        min-width: 100px;
    }

    .share-button i {
        font-size: 14px;
    }
}

/* Ensure toast notifications are responsive */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 10px 20px;
    background: #28a745;
    color: #fff;
    border-radius: 5px;
    z-index: 1000;
    max-width: 90%; /* Prevent overflow on mobile */
    box-sizing: border-box;
}

.toast-notification.error {
    background: #dc3545;
}