/*
Theme Name: Ordem da Pena Negra
Theme URI: https://ordem.nandoautor.com.br
Author: Fernando Costa Slodkowski / Antigravity
Description: Tema minimalista gótico e imersivo para a academia e guilda de escritores Ordem da Pena Negra.
Version: 1.0.0
*/

body {
    background-color: #050000;
    color: #eaddcf;
}

/* Correção global para nomes extensos (Fase 3F) */
.break-words, 
.font-cinzel, 
.text-osso, 
table, 
tr, 
td, 
th, 
h1, 
h2, 
h3, 
h4, 
span, 
a {
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Estilos e Efeitos de Raridades das Conquistas (Fase 4A.4) */
.badge-rarity-comum {
    border-color: rgba(71, 85, 105, 0.4);
    background-color: rgba(15, 23, 42, 0.4);
    color: #94a3b8;
}
.badge-rarity-incomum {
    border-color: rgba(4, 120, 87, 0.4);
    background-color: rgba(2, 44, 34, 0.4);
    color: #34d399;
}
.badge-rarity-rara {
    border-color: rgba(2, 132, 199, 0.4);
    background-color: rgba(12, 74, 110, 0.4);
    color: #38bdf8;
}
.badge-rarity-epica {
    border-color: rgba(124, 58, 237, 0.4);
    background-color: rgba(76, 29, 149, 0.4);
    color: #c084fc;
    box-shadow: 0 0 10px rgba(124, 58, 237, 0.15);
}
.badge-rarity-lendaria {
    border-color: rgba(212, 175, 55, 0.6);
    background-color: rgba(69, 26, 3, 0.4);
    color: #fbbf24;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.badge-rarity-lendaria:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}
.badge-rarity-mitica {
    border-color: rgba(225, 29, 72, 0.8);
    background-color: rgba(76, 5, 25, 0.5);
    color: #fda4af;
    box-shadow: 0 0 15px rgba(225, 29, 72, 0.4);
    border-width: 2px;
    animation: mitica-glow 3s infinite alternate;
}
@keyframes mitica-glow {
    0% {
        box-shadow: 0 0 8px rgba(225, 29, 72, 0.3);
        border-color: rgba(225, 29, 72, 0.6);
    }
    100% {
        box-shadow: 0 0 20px rgba(225, 29, 72, 0.7);
        border-color: rgba(225, 29, 72, 1.0);
    }
}

/* Correção de quebra de linha para badges de moderação (Sentinela) */
.status-badge,
.action-badge,
.badge-moderacao {
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: fit-content !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
}

/* ==========================================================================
   FASE 4C.5: CHAMA DA ORDEM (NOTIFICAÇÕES TEMÁTICAS)
   ========================================================================== */

.chama-vela-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    padding: 0.5rem;
    z-index: 999;
}

.chama-vela {
    font-size: 1.35rem;
    transition: all 0.3s ease;
    display: inline-block;
}

/* Estado Apagado (Sem notificações) */
.chama-vela.chama-apagada {
    opacity: 0.3;
    filter: grayscale(100%) blur(0.2px);
}

/* Estado Vivo (Com notificações) */
.chama-vela.chama-viva {
    opacity: 1;
    filter: grayscale(0%) drop-shadow(0 0 5px rgba(212, 175, 55, 0.75));
    animation: tremular-chama 1.4s infinite alternate ease-in-out;
}

/* Estado Intenso (> 5 notificações) */
.chama-vela.chama-intensa {
    opacity: 1;
    filter: grayscale(0%) drop-shadow(0 0 12px rgba(212, 175, 55, 0.95));
    animation: tremular-agitado-chama 0.7s infinite alternate ease-in-out;
}

/* Contador de não lidas */
.chama-badge {
    position: absolute;
    top: 2px;
    right: 0px;
    background-color: #8b1e1e;
    color: #eaddcf;
    font-size: 9px;
    font-weight: bold;
    min-width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #1a0a0a;
    padding: 0 3px;
    box-shadow: 0 0 5px rgba(139, 30, 30, 0.6);
}

/* Painel Dropdown Flutuante */
.chama-panel {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    width: 320px;
    max-height: 480px;
    background-color: #0c0606;
    border: 1px solid rgba(212, 175, 55, 0.25);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.85);
    border-radius: 4px;
    display: none;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
}

.chama-panel.active {
    display: flex;
}

.chama-panel-header {
    padding: 0.75rem 1rem;
    background-color: #120909;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chama-panel-header h5 {
    margin: 0;
    font-family: 'Cinzel', Georgia, serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #fbbf24;
    font-weight: bold;
}

.chama-panel-actions {
    display: flex;
    gap: 8px;
}

.chama-panel-btn-action {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 9px;
    cursor: pointer;
    font-family: 'Cinzel', Georgia, serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 4px;
    transition: color 0.2s ease;
}

.chama-panel-btn-action:hover {
    color: #fbbf24;
}

.chama-panel-body {
    overflow-y: auto;
    max-height: 380px;
}

/* Notificações Individuais */
.chama-item {
    position: relative;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(26, 10, 10, 0.5);
    display: flex;
    gap: 12px;
    transition: background-color 0.2s ease;
    align-items: flex-start;
    text-decoration: none !important;
}

.chama-item:hover {
    background-color: rgba(212, 175, 55, 0.03);
}

.chama-item.nao-lida {
    background-color: rgba(139, 30, 30, 0.02);
}

.chama-item.nao-lida:hover {
    background-color: rgba(139, 30, 30, 0.05);
}

.chama-item-icone {
    font-size: 1.1rem;
    line-height: 1;
}

.chama-item-content {
    flex-grow: 1;
    min-width: 0;
}

.chama-item-texto {
    font-size: 11px;
    color: #eaddcf;
    line-height: 1.4;
    font-family: 'Georgia', serif;
}

.chama-item-texto strong {
    color: #fbbf24;
}

.chama-item-tempo {
    display: block;
    font-size: 9px;
    color: #64748b;
    margin-top: 4px;
}

.chama-item-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-self: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.chama-item:hover .chama-item-actions {
    opacity: 1;
}

.chama-item-btn {
    background: none;
    border: none;
    color: #64748b;
    font-size: 10px;
    cursor: pointer;
    padding: 4px;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.chama-item-btn:hover {
    color: #fbbf24;
    background-color: rgba(255, 255, 255, 0.05);
}

/* Indicador de não lido */
.chama-item-unread-dot {
    width: 6px;
    height: 6px;
    background-color: #fbbf24;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 4px;
    transform: translateY(-50%);
    box-shadow: 0 0 4px #fbbf24;
}

.chama-panel-footer {
    padding: 0.6rem 1rem;
    background-color: #0c0606;
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    text-align: center;
}

.chama-panel-footer-link {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 10px;
    color: #fbbf24;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: bold;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.chama-panel-footer-link:hover {
    color: #eaddcf;
}

/* Notificação vazia */
.chama-vazia {
    padding: 2.5rem 1rem;
    text-align: center;
    color: #64748b;
    font-style: italic;
    font-family: 'Georgia', serif;
    font-size: 11px;
}

/* Micro-animações */
@keyframes tremular-chama {
    0% { transform: rotate(-1deg) scale(1); }
    50% { transform: rotate(1deg) scale(1.02); }
    100% { transform: rotate(-0.5deg) scale(0.99); }
}

@keyframes tremular-agitado-chama {
    0% { transform: rotate(-2deg) scale(1) translate(0, 0); }
    33% { transform: rotate(2deg) scale(1.05) translate(0.5px, -0.5px); }
    66% { transform: rotate(-1.5deg) scale(0.97) translate(-0.5px, 0.5px); }
    100% { transform: rotate(1.5deg) scale(1.07) translate(0, -1px); }
}
