/**
 * Sidebar Compartir - Template Pesca Argentina
 * Componente específico para compartir contenido
 * 
 * Contextos: Noticias ampliadas, contenidos genéricos
 * Variables: Usa variables genéricas del framework
 */

/* ========================================
   CONTENEDOR SIDEBAR
   Contextos: noticia ampliada, contenidos genéricos
   ======================================== */

.sidebar-compartir {
    background: var(--blanco);
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    overflow: hidden;
}

.sidebar-compartir .sidebar-header {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    padding: 15px 20px;
    color: var(--blanco);
}

.sidebar-compartir .sidebar-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    font-family: var(--fuente);
}

.sidebar-compartir .sidebar-content {
    padding: 20px 15px;
}

/* ========================================
   GRID DE ÍCONOS
   ======================================== */

.sidebar-compartir .share-buttons-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

/* ========================================
   ESTILOS DE ÍCONOS
   ======================================== */

.sidebar-compartir .share-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none !important;
    transition: all 0.3s ease;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 18px;
    color: var(--blanco) !important;
    background-color: transparent;
    -webkit-tap-highlight-color: transparent;
}

.sidebar-compartir .share-icon:hover,
.sidebar-compartir .share-icon:focus,
.sidebar-compartir .share-icon:active {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    text-decoration: none !important;
    color: var(--blanco) !important;
    outline: none;
}

.sidebar-compartir .share-icon i {
    color: var(--blanco) !important;
    font-size: 18px;
}

/* ========================================
   COLORES POR RED SOCIAL
   ======================================== */

.sidebar-compartir .share-facebook {
    background: #1877f2 !important;
}

.sidebar-compartir .share-facebook:hover {
    background: #1465d8 !important;
}

.sidebar-compartir .share-x {
    background: #000000 !important;
}

.sidebar-compartir .share-x:hover {
    background: #1a1a1a !important;
}

.sidebar-compartir .share-whatsapp {
    background: #25d366 !important;
}

.sidebar-compartir .share-whatsapp:hover {
    background: #20bd5a !important;
}

.sidebar-compartir .share-linkedin {
    background: #0a66c2 !important;
}

.sidebar-compartir .share-linkedin:hover {
    background: #0952a5 !important;
}

.sidebar-compartir .share-telegram {
    background: #0088cc !important;
}

.sidebar-compartir .share-telegram:hover {
    background: #0077b3 !important;
}

.sidebar-compartir .share-email {
    background: #ea4335 !important;
}

.sidebar-compartir .share-email:hover {
    background: #d33426 !important;
}

.sidebar-compartir .share-copy {
    background: var(--gris-medio) !important;
}

.sidebar-compartir .share-copy:hover {
    background: var(--gris-oscuro) !important;
}

/* ========================================
   ESTADO COPIADO
   ======================================== */

.sidebar-compartir .share-copy.copiado {
    background: var(--success) !important;
}

.sidebar-compartir .share-copy.copiado i::before {
    content: "\f00c";
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .sidebar-compartir .share-buttons-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
    
    .sidebar-compartir .share-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .sidebar-compartir .share-buttons-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }
    
    .sidebar-compartir .share-icon {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}
