/**
 * Compartilhamento Social - Estilos
 * @version 1.0.0
 */

/* Container principal */
.cs-share-container {
    margin: 40px 0;
    padding: 30px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.cs-share-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Container dos botões */
.cs-share-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Estilo base dos botões */
.cs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    color: white;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.cs-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.cs-btn:active {
    transform: translateY(-1px);
}

.cs-btn svg {
    width: 20px;
    height: 20px;
}

.cs-btn span {
    font-weight: 600;
}

/* Efeito de brilho ao hover */
.cs-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.cs-btn:hover::before {
    left: 100%;
}

/* Botão Instagram */
.cs-btn-instagram {
    background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
}

.cs-btn-instagram:hover {
    background: linear-gradient(135deg, #a44bc5 0%, #ff3838 50%, #ffc266 100%);
}

/* Botão Facebook */
.cs-btn-facebook {
    background: #1877f2;
    color: white !important;
}

.cs-btn-facebook:hover {
    background: #0d65d9;
    color: white !important;
}

.cs-btn-facebook svg {
    fill: white !important;
    color: white !important;
}

/* Botão WhatsApp */
.cs-btn-whatsapp {
    background: #25d366;
}

.cs-btn-whatsapp:hover {
    background: #1ebd57;
}

/* Botão Imprimir */
.cs-btn-print {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.cs-btn-print:hover {
    background: linear-gradient(135deg, #7b8ff0 0%, #8a5bb5 100%);
}

/* Responsivo - Tablet */
@media (max-width: 768px) {
    .cs-share-container {
        padding: 20px;
        margin: 30px 0;
    }
    
    .cs-share-title {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .cs-share-buttons {
        gap: 10px;
    }
    
    .cs-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .cs-btn svg {
        width: 18px;
        height: 18px;
    }
}

/* Responsivo - Mobile */
@media (max-width: 480px) {
    .cs-share-container {
        padding: 15px;
        margin: 20px 0;
    }
    
    .cs-share-title {
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .cs-share-buttons {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    
    .cs-btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* Animação de entrada */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cs-share-container {
    animation: slideUp 0.5s ease-out;
}

/* Tooltip ao hover */
.cs-btn {
    position: relative;
}

.cs-btn:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 12px;
    border-radius: 5px;
    white-space: nowrap;
    margin-bottom: 5px;
    opacity: 0;
    animation: fadeIn 0.3s ease-in forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Contador de compartilhamentos (opcional) */
.cs-share-count {
    display: inline-block;
    background: rgba(255, 255, 255, 0.3);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    margin-left: 5px;
}

/* Loading state */
.cs-btn.loading {
    pointer-events: none;
    opacity: 0.6;
}

.cs-btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Feedback de sucesso */
.cs-btn.success {
    background: #10b981 !important;
}

.cs-btn.success::after {
    content: '✓';
    position: absolute;
    font-size: 20px;
    color: white;
}

/* Acessibilidade */
.cs-btn:focus {
    outline: 3px solid rgba(66, 153, 225, 0.5);
    outline-offset: 2px;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .cs-share-container {
        background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    }
    
    .cs-share-title {
        color: #e2e8f0;
    }
}
