/* CSS do Componente de Compartilhamento SIGA-O */

:root {
    --share-btn-bg: rgba(255, 255, 255, 0.03);
    --share-btn-border: rgba(255, 255, 255, 0.08);
    --share-btn-hover-bg: rgba(197, 168, 128, 0.1);
    --share-btn-hover-border: var(--gold);
}

.share-widget-container {
    margin: 30px auto;
    width: 100%;
    max-width: 800px;
}

/* Estilos dos Botões Individuais */
.share-btn-item {
    background: var(--share-btn-bg);
    border: 1px solid var(--share-btn-border);
    color: #E0E0E0;
    padding: 10px 18px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
}

.share-btn-item:hover,
.share-btn-item:focus-visible {
    background: var(--share-btn-hover-bg);
    border-color: var(--share-btn-hover-border);
    color: var(--gold);
    outline: none;
    box-shadow: 0 0 10px rgba(197, 168, 128, 0.2);
}

/* Foco Acessível */
.share-btn-item:focus-visible,
.share-modal-close:focus-visible,
.share-modal-body button:focus-visible,
.share-modal-body a:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* Cores específicas no Hover se desejado, mantendo a sobriedade */
.share-whatsapp:hover { color: #25D366; }
.share-facebook:hover { color: #1877F2; }
.share-telegram:hover { color: #0088cc; }
.share-x:hover { color: #ffffff; }
.share-instagram:hover { color: #E1306C; }

/* Botão de compartilhamento nativo destacado no Celular */
.btn-share-native {
    background: var(--gold) !important;
    color: #0A0A0A !important;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 12px 20px;
    border-radius: 4px;
}
.btn-share-native:hover,
.btn-share-native:focus-visible {
    background: #d4b890 !important;
    box-shadow: 0 4px 15px rgba(197, 168, 128, 0.4);
}

/* Modal de Compartilhamento do Instagram */
.share-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.share-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.share-modal-dialog {
    background: #111;
    border: 1px solid #222;
    border-radius: 8px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.share-modal-overlay.active .share-modal-dialog {
    transform: translateY(0);
}

.share-modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #222;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.share-modal-title {
    color: var(--gold);
    font-size: 1rem;
    margin: 0;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.share-modal-close {
    background: none;
    border: none;
    color: #888;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.2s ease;
}

.share-modal-close:hover {
    color: #fff;
}

.share-modal-body {
    padding: 25px 20px;
}

.share-instructions-list {
    padding-left: 20px;
    font-size: 0.85rem;
    line-height: 1.7;
}

.share-instructions-list li {
    margin-bottom: 12px;
}

/* Toast de Feedback de Cópia */
.share-toast-feedback {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--gold);
    color: #0A0A0A;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 1100;
    opacity: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
    pointer-events: none;
}

.share-toast-feedback.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Suporte para prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .share-btn-item,
    .share-modal-overlay,
    .share-modal-dialog,
    .share-toast-feedback {
        transition: none !important;
        transform: none !important;
    }
}

/* Botões de Compartilhamento Nativo das Lojas */
.share-platform-native-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #888;
    border-radius: 4px;
    padding: 10px 12px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.share-platform-native-btn:hover,
.share-platform-native-btn:focus-visible {
    color: var(--gold);
    border-color: var(--gold);
    background: rgba(197, 168, 128, 0.1);
    outline: none;
}
