/**
 * MW Shortcodes - Estilos CSS
 * Plugin: MW Shortcodes - Alertas e Detalhes
 * Version: 1.0.0
 */

/* ========================================
   Caixas de Alerta
   ======================================== */

.mw-alerta {
    background-color: #e9ebee;
    color: #58606B;
    padding: 10px;
    margin: 20px 0;
    border: 1px solid #dddfe2;
    border-radius: 5px;
}

.mw-alerta a {
    color: #1E2326;
    font-weight: bold;
}

/* Alerta Verde */
.mw-alerta.verde {
    color: #145724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
}

.mw-alerta.verde a {
    color: #0A2E12;
}

/* Alerta Azul */
.mw-alerta.azul {
    color: #014286;
    background-color: #CBE5FE;
    border: 1px solid #b8daff;
}

.mw-alerta.azul a {
    color: #0A315A;
}

/* Alerta Vermelho */
.mw-alerta.vermelho {
    color: #7A2930;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}

.mw-alerta.vermelho a {
    color: #491217;
}

/* Alerta Amarelo */
.mw-alerta.amarelo {
    color: #856404;
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
}

.mw-alerta.amarelo a {
    color: #554104;
}

/* ========================================
   Bloco de Detalhes Interativos
   ======================================== */

details.sp {
    padding: 16px 20px;
    background: var(--contentB, #f8f9fa);
    box-shadow: 0 5px 35px rgba(0,0,0,0.07);
    border: 1px solid rgba(230,230,230,1);
    border-radius: 10px;
    margin: 20px 0;
}

/* Modo Escuro */
.drK details.sp, .drK details.ac {
    background: #2d2d30;
}

details.sp summary {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    cursor: pointer;
    list-style: none;
    outline: none;
}

/* Remove marcador padrão do summary em diferentes navegadores */
details.sp summary::-webkit-details-marker {
    display: none;
}

details.sp summary::after {
    content: attr(data-show);
    padding: 4px 10px;
    background: #ff0000;
    color: #fffdfc;
    font-size: 12px;
    border-radius: var(--buttonR, 4px);
    flex-shrink: 0;
    margin-left: 10px;
}

/* Modo Escuro - Botão */
.drK details.sp summary::after {
    background: #ff0000;
}

/* Estado Aberto - Muda o texto do botão */
details.sp[open] summary::after {
    content: attr(data-hide);
}

/* Conteúdo do bloco de detalhes */
details.sp .sp-content {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.drK details.sp .sp-content {
    border-top-color: rgba(255,255,255,0.1);
}
