/**
 * Stili per i pulsanti di condivisione social delle immagini
 * 
 * @package TS_Image_Social_Share
 */

/* Container principale */
.ts-image-share-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 0;
    margin: 10px 0;
}

.ts-image-share-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

/* Stili per i pulsanti */
.ts-image-share-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-decoration: none !important;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    font-size: 18px;
    font-family: inherit;
    line-height: 1;
    box-sizing: border-box;
    padding: 0 !important;
    vertical-align: middle;
}

/* Rimuove pseudo-elementi ereditati */
.ts-image-share-btn::before,
.ts-image-share-btn::after {
    display: none !important;
}

/* Fix per i button elements (Instagram) */
button.ts-image-share-btn {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 0;
    margin: 0;
    outline: none;
}

/* Centratura icone */
.ts-image-share-btn i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 18px;
}

/* Colori specifici per ogni social network */
.ts-share-facebook {
    background-color: #1877f2;
    color: #ffffff;
}

.ts-share-facebook:hover {
    background-color: #166fe5;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(24, 119, 242, 0.3);
}

.ts-share-twitter {
    background-color: #000000;
    color: #ffffff;
}

.ts-share-twitter:hover {
    background-color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.ts-share-linkedin {
    background-color: #0077b5;
    color: #ffffff;
}

.ts-share-linkedin:hover {
    background-color: #006097;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 119, 181, 0.3);
}

.ts-share-pinterest {
    background-color: #bd081c;
    color: #ffffff;
}

.ts-share-pinterest:hover {
    background-color: #a50718;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(189, 8, 28, 0.3);
}

.ts-share-whatsapp {
    background-color: #25d366;
    color: #ffffff;
}

.ts-share-whatsapp:hover {
    background-color: #22c35e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.ts-share-telegram {
    background-color: #0088cc;
    color: #ffffff;
}

.ts-share-telegram:hover {
    background-color: #0077b3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 136, 204, 0.3);
}

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

.ts-share-instagram:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 39, 67, 0.3);
    opacity: 0.9;
}

/* Colore testo bianco al hover */
.ts-image-share-btn:hover {
    color: #ffffff !important;
}

/* Posizionamento sopra l'immagine */
.ts-image-share-top {
    margin-bottom: 15px;
}

/* Posizionamento sotto l'immagine */
.ts-image-share-bottom {
    margin-top: 15px;
}

/* Responsive design */
@media (max-width: 768px) {
    .ts-image-share-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .ts-image-share-container {
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .ts-image-share-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .ts-image-share-container {
        gap: 6px;
    }

    .ts-image-share-wrapper {
        padding: 10px 0;
    }
}

/* Stile per figure processate */
.ts-image-share-processed {
    position: relative;
}

/* Animazione di entrata */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.ts-image-share-wrapper {
    animation: fadeInUp 0.5s ease-out;
}

/* Stile per il modal di Instagram */
.ts-image-share-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    max-width: 400px;
    text-align: center;
}

.ts-image-share-modal h3 {
    margin-top: 0;
    color: #333;
}

.ts-image-share-modal p {
    color: #666;
    line-height: 1.6;
}

.ts-image-share-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

.ts-image-share-modal button {
    margin: 10px 5px;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

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

.ts-image-share-modal .ts-btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.ts-image-share-modal .ts-btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.ts-image-share-modal .ts-btn-secondary:hover {
    background: #e0e0e0;
}