/**
 * Native Share Social - Estilos CSS
 * Estilos para botones de compartir nativos
 */

/* Contenedor principal de botones */
.native-share-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
    margin: 10px 0;
}

/* Botón individual de share */
.native-share-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    color: white !important;
    background-color: #6c757d;
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 50px;
    min-height: 50px;
    font-family: inherit;
    font-size: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.native-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    text-decoration: none;
    color: white !important;
}

.native-share-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Iconos dentro de los botones */
.native-share-btn i {
    font-size: 16px;
    margin-bottom: 4px;
    display: block;
}

/* Texto dentro de los botones */
.native-share-btn span {
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
}

/* Estados específicos para el botón de copiar */
.native-share-btn.copy-url-btn {
    background-color: #6c757d;
}

.native-share-btn.copy-url-btn:hover {
    background-color: #5a6268;
}

.native-share-btn.copy-url-btn.copied {
    background-color: #28a745 !important;
    animation: pulse 0.6s ease-in-out;
}

/* Animación para feedback de copiado */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Estilo compacto para espacios pequeños */
.native-share-buttons.compact .native-share-btn {
    min-width: 40px;
    min-height: 40px;
    padding: 6px 8px;
}

.native-share-buttons.compact .native-share-btn i {
    font-size: 14px;
    margin-bottom: 2px;
}

.native-share-buttons.compact .native-share-btn span {
    font-size: 9px;
}

/* Estilo horizontal en línea */
.native-share-buttons.inline {
    gap: 4px;
}

.native-share-buttons.inline .native-share-btn {
    flex-direction: row;
    min-width: auto;
    padding: 6px 10px;
    border-radius: 20px;
}

.native-share-buttons.inline .native-share-btn i {
    margin-bottom: 0;
    margin-right: 6px;
    font-size: 14px;
}

.native-share-buttons.inline .native-share-btn span {
    font-size: 11px;
}

/* Estilo solo iconos (sin texto) */
.native-share-buttons.icons-only .native-share-btn span {
    display: none;
}

.native-share-buttons.icons-only .native-share-btn {
    min-width: 45px;
    min-height: 45px;
    border-radius: 50%;
    padding: 10px;
}

.native-share-buttons.icons-only .native-share-btn i {
    margin-bottom: 0;
    font-size: 18px;
}

/* Responsivo */
@media (max-width: 768px) {
    .native-share-buttons {
        gap: 6px;
    }
    
    .native-share-btn {
        min-width: 45px;
        min-height: 45px;
        padding: 6px 8px;
    }
    
    .native-share-btn i {
        font-size: 14px;
    }
    
    .native-share-btn span {
        font-size: 9px;
    }
}

@media (max-width: 480px) {
    .native-share-buttons {
        gap: 4px;
    }
    
    .native-share-btn {
        min-width: 40px;
        min-height: 40px;
        padding: 5px 6px;
    }
    
    .native-share-btn i {
        font-size: 13px;
        margin-bottom: 2px;
    }
    
    .native-share-btn span {
        font-size: 8px;
    }
}

/* Integración con el estilo existente de ShareThis */
.share-buttons-block .native-share-buttons {
    margin: 0;
    justify-content: flex-start;
}

.share-buttons-detail .native-share-buttons {
    align-items: center;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .native-share-btn {
        box-shadow: 0 2px 4px rgba(255,255,255,0.1);
    }
    
    .native-share-btn:hover {
        box-shadow: 0 4px 8px rgba(255,255,255,0.2);
    }
}

/* Animaciones de carga */
.native-share-buttons.loading .native-share-btn {
    pointer-events: none;
    opacity: 0.6;
}

.native-share-buttons.loading .native-share-btn i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Tooltips opcionales */
.native-share-btn[title] {
    position: relative;
}

.native-share-btn[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 5px;
}

.native-share-btn[title]:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: rgba(0,0,0,0.8);
    z-index: 1000;
}