/* Checkbox oculto */
.share-toggle-checkbox {
    display: none;
}

/* Botón flotante grande y visible en esquina inferior derecha */
.share-float-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    background-color: #E91E63;
    border-radius: 50%;
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
    cursor: pointer;
    z-index: 1001;

    /* Ícono de compartir blanco */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='18' cy='5' r='3'/%3E%3Ccircle cx='6' cy='12' r='3'/%3E%3Ccircle cx='18' cy='19' r='3'/%3E%3Cline x1='8.59' y1='13.51' x2='15.42' y2='17.49'/%3E%3Cline x1='15.41' y1='6.51' x2='8.59' y2='10.49'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 34px 34px;
    transition: transform 0.3s ease, background-color 0.3s;
}

.share-float-btn:hover {
    background-color: #d41656;
    transform: scale(1.1);
}

/* Botón cerrar (X) dentro del panel */
.share-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    z-index: 1002;
    display: none; /* Se muestra solo cuando el panel está abierto */
}

/* Panel con los botones */
.share-buttons {
    position: fixed;
    bottom: 110px;
    right: 30px;
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
    max-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

/* Cuando el checkbox está checked → abre el panel */
.share-toggle-checkbox:checked ~ .share-buttons {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.share-toggle-checkbox:checked ~ .share-close-btn {
    display: block;
}

/* Tus botones (compactos para que no ocupen mucho) */
.share-btn {
    padding: 12px 16px;
    color: white;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    font-size: 14px;
    text-align: center;
}

.share-btn:hover { opacity: 0.9; }

.share-btn.x { background-color: #000000; }
.share-btn.reddit { background-color: #FF4500; }
.share-btn.sharesome { background-color: #E91E63; }
.share-btn.telegram { background-color: #0088CC; }
.share-btn.mastodon { background-color: #6364FF; }
.share-btn.tumblr { background-color: #35465C; }

/* En móvil más pequeño */
@media (max-width: 768px) {
    .share-float-btn {
        width: 60px;
        height: 60px;
        bottom: 20px;
        right: 20px;
        background-size: 30px;
    }
    .share-buttons {
        bottom: 90px;
        right: 20px;
        padding: 16px;
    }
}