/* ==========================================================================
   Página: Quer publicar seu jogo com a Luz Negra?
   Layout Oficial Integrado ao Tema LuzNegra v2
   Tipografia: Barlow (em 100% da página)
   ========================================================================== */

/* Fundo Preto Oficial e Reset de Cores do Tema */
html, body {
    background-color: #000000 !important;
    color: #d7d7d7 !important;
}

/* Tipografia Barlow universal na página */
.ln-publish-page-wrap,
.ln-publish-page-wrap *,
.ln-modal,
.ln-modal * {
    font-family: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
    box-sizing: border-box;
}

/* Preservação explícita dos ícones Font Awesome do tema e Elementor */
.fab, .fab:before, i.fab, .elementor-social-icon i.fab {
    font-family: "Font Awesome 5 Brands" !important;
    font-weight: 400 !important;
    font-style: normal !important;
}
.fas, .fas:before, i.fas {
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
    font-style: normal !important;
}

/* Container Principal com Recuo de Segurança contra a Barra Lateral da Marca */
.ln-publish-page-wrap {
    padding-top: 50px;
    padding-bottom: 90px;
    max-width: 1011px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 10;
}

/* Em telas médias/desktop, garante que o texto nunca colida com a marca lateral e ícones sociais */
@media (min-width: 769px) and (max-width: 1300px) {
    .ln-publish-page-wrap {
        padding-left: 120px !important;
        padding-right: 30px !important;
    }
}

@media (min-width: 1301px) {
    .ln-publish-page-wrap {
        padding-left: 30px !important;
        padding-right: 30px !important;
    }
}

@media (max-width: 768px) {
    .ln-publish-page-wrap {
        padding-top: 30px;
        padding-bottom: 60px;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

/* Cabeçalho da Página */
.ln-publish-header {
    margin-bottom: 35px;
    border-bottom: 1px solid #333333;
    padding-bottom: 20px;
}

.ln-publish-main-title {
    font-family: 'Barlow', sans-serif !important;
    font-size: 32px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    text-transform: uppercase !important;
    letter-spacing: 0.03em !important;
    margin: 0 !important;
    line-height: 1.25 !important;
}

/* Conteúdo e Seções Editoriais */
.ln-publish-content {
    color: #d7d7d7 !important;
    font-family: 'Barlow', sans-serif !important;
    font-size: 17px !important;
    line-height: 1.8 !important;
}

.ln-publish-content p {
    margin-bottom: 22px !important;
    color: #d7d7d7 !important;
}

.ln-publish-content h2 {
    font-family: 'Barlow', sans-serif !important;
    font-size: 23px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin-top: 45px !important;
    margin-bottom: 18px !important;
    line-height: 1.3 !important;
    border-bottom: 1px solid #333333 !important;
    padding-bottom: 8px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.03em !important;
}

.ln-publish-section {
    margin-bottom: 35px;
}

/* Botão de Posicionamento Ético */
.ln-ethical-btn-wrap {
    margin: 25px 0 10px 0;
}

.ln-ethical-trigger-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #ffffff;
    border: 1px solid #555555;
    padding: 12px 22px;
    font-family: 'Barlow', sans-serif !important;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.ln-ethical-trigger-btn:hover {
    background-color: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

/* Notificações */
.ln-publish-notice {
    padding: 16px 20px;
    margin-bottom: 30px;
    font-family: 'Barlow', sans-serif !important;
    font-size: 15px;
    line-height: 1.6;
}

.ln-publish-notice-success {
    background-color: rgba(30, 215, 96, 0.12);
    border: 1px solid #1ed760;
    color: #ffffff;
}

.ln-publish-notice-error {
    background-color: rgba(235, 87, 87, 0.12);
    border: 1px solid #eb5757;
    color: #ffffff;
}

.ln-notice-top {
    margin-top: 20px;
    margin-bottom: 35px;
    border-width: 2px;
}

.ln-ajax-feedback {
    margin-top: 25px;
    animation: ln-fade-in 0.3s ease-in-out;
}

@keyframes ln-fade-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Formulário de Envio */
.ln-publish-form-wrap {
    background: #0a0a0a;
    border: 1px solid #2a2a2a;
    padding: 35px;
    margin-top: 25px;
    margin-bottom: 45px;
}

.ln-publish-form {
    width: 100%;
}

.ln-form-row-group {
    margin-bottom: 28px;
}

.ln-form-row-group:last-child {
    margin-bottom: 0;
}

.ln-field-label {
    display: block;
    font-family: 'Barlow', sans-serif !important;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 6px;
    line-height: 1.4;
}

.ln-required-star {
    color: #de0815;
    margin-left: 4px;
}

.ln-field-desc {
    display: block;
    font-family: 'Barlow', sans-serif !important;
    font-size: 14px;
    font-weight: 400;
    color: #a0a0a0;
    margin-bottom: 10px;
    line-height: 1.5;
}

.ln-publish-input,
.ln-publish-textarea {
    width: 100%;
    background-color: #121212;
    border: 1px solid #333333 !important;
    color: #ffffff;
    font-family: 'Barlow', sans-serif !important;
    font-size: 16px;
    padding: 12px 14px;
    box-sizing: border-box;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.ln-publish-input:focus,
.ln-publish-textarea:focus {
    outline: none;
    border-color: #ffffff;
    background-color: #161616;
}

.ln-publish-textarea {
    resize: vertical;
    min-height: 90px;
    line-height: 1.6;
}

/* Dropzone de Upload Múltiplo (até 10MB) */
.ln-file-dropzone {
    position: relative;
    border: 2px dashed #444444;
    background-color: #121212;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ln-file-dropzone:hover {
    border-color: #888888;
    background-color: #161616;
}

.ln-file-dropzone input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.ln-file-dropzone-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.ln-file-icon {
    width: 42px;
    height: 42px;
    fill: #888888;
    margin-bottom: 12px;
    transition: fill 0.2s ease;
}

.ln-file-dropzone:hover .ln-file-icon {
    fill: #ffffff;
}

.ln-file-text {
    font-family: 'Barlow', sans-serif !important;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 6px;
}

.ln-file-hint {
    font-family: 'Barlow', sans-serif !important;
    font-size: 13px;
    color: #888888;
}

.ln-file-selected-list {
    width: 100%;
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: auto;
}

.ln-file-item {
    background: #1c1c1c;
    border: 1px solid #383838;
    padding: 8px 14px;
    font-size: 14px;
    color: #ffffff;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 2px;
}

/* Caixa dos Termos & Checkbox Molotov */
.ln-terms-box {
    position: relative !important;
    margin-top: 35px;
    margin-bottom: 35px;
    padding: 22px 24px;
    background-color: #0d0d0d;
    border: 1px solid #333333;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.ln-terms-box.is-lit {
    border-color: rgba(222, 8, 21, 0.5);
    background-color: #120909;
}

.ln-checkbox-label {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    cursor: pointer !important;
    user-select: none !important;
}

.ln-checkbox-label.is-disabled {
    cursor: pointer !important;
    opacity: 0.65 !important;
}

/* Checkbox sobreposto exatamente ao indicador para evitar scroll ao topo no clique */
.ln-checkbox-input {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 44px !important;
    height: 44px !important;
    opacity: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    cursor: pointer !important;
    z-index: 2 !important;
}

/* Indicador SVG do Molotov */
.ln-molotov-indicator {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    transition: transform 0.2s ease;
}

.ln-checkbox-label:hover .ln-molotov-indicator {
    transform: scale(1.08);
}

.ln-molotov-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* Garrafa e Pavio do Molotov */
.ln-molotov-bottle {
    fill: #aaaaaa;
    transition: fill 0.3s ease;
}

.ln-checkbox-label:hover .ln-molotov-bottle {
    fill: #ffffff;
}

/* Chama do Molotov: Apagada por padrão */
.ln-molotov-flame {
    fill: transparent;
    opacity: 0;
    transition: opacity 0.3s ease, fill 0.3s ease, filter 0.3s ease;
    transform-origin: center;
}

/* Quando marcado: Chama ACENDE em vermelho com pulso */
.ln-checkbox-input:checked + .ln-molotov-indicator .ln-molotov-flame {
    fill: #de0815 !important;
    opacity: 1 !important;
    filter: drop-shadow(0 0 8px rgba(222, 8, 21, 0.85));
    animation: ln-fire-pulse 1.2s infinite alternate ease-in-out;
}

.ln-checkbox-input:checked + .ln-molotov-indicator .ln-molotov-bottle {
    fill: #ffffff;
}

@keyframes ln-fire-pulse {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 6px rgba(222, 8, 21, 0.7));
    }
    100% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 14px rgba(222, 8, 21, 1));
    }
}

.ln-checkbox-text {
    font-family: 'Barlow', sans-serif !important;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.5;
}

.ln-checkbox-hint {
    display: block;
    margin-top: -12px;
    margin-left: 60px;
    font-family: 'Barlow', sans-serif !important;
    font-size: 14px;
    color: #999999;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.ln-checkbox-hint.is-unlocked {
    color: #bbf7d0;
}

/* Link-botão do manifesto dentro do hint */
button#ln-link-open-manifesto.ln-checkbox-link-btn,
.ln-checkbox-link-btn {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    color: #ffffff !important;
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
    cursor: pointer !important;
    font-size: inherit !important;
    font-family: inherit !important;
    font-weight: 600 !important;
    display: inline !important;
    line-height: inherit !important;
    transition: color 0.2s ease !important;
}

button#ln-link-open-manifesto.ln-checkbox-link-btn:hover,
button#ln-link-open-manifesto.ln-checkbox-link-btn:focus,
button#ln-link-open-manifesto.ln-checkbox-link-btn:active,
.ln-checkbox-link-btn:hover,
.ln-checkbox-link-btn:focus,
.ln-checkbox-link-btn:active {
    background: transparent !important;
    background-color: transparent !important;
    color: #de0815 !important;
    text-decoration: underline !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Botão de Submissão */
.ln-publish-submit-row {
    margin-top: 30px;
}

.ln-publish-submit-btn {
    display: inline-block;
    width: 100%;
    background-color: #ffffff;
    color: #000000;
    border: 2px solid #ffffff;
    padding: 16px 24px;
    font-family: 'Barlow', sans-serif !important;
    font-size: 17px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ln-publish-submit-btn:hover:not(:disabled) {
    background-color: #000000;
    color: #ffffff;
}

.ln-publish-submit-btn:disabled {
    background-color: #262626;
    color: #666666;
    border-color: #262626;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Modal do Manifesto Ético */
.ln-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
}

.ln-modal.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ln-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(4px);
}

.ln-modal-dialog {
    position: relative;
    z-index: 2;
    background: #111111;
    border: 1px solid #333333;
    width: 90%;
    max-width: 680px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9);
}

.ln-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    border-bottom: 1px solid #222222;
    background-color: #121212;
}

.ln-modal-title {
    font-family: 'Barlow', sans-serif !important;
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0;
}

/* Botão "X" do topo */
button#ln-modal-close-btn.ln-modal-close-btn,
.ln-modal-header button#ln-modal-close-btn,
.ln-modal-header .ln-modal-close-btn {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    color: #888888 !important;
    font-size: 28px !important;
    line-height: 1 !important;
    cursor: pointer !important;
    padding: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    transition: color 0.2s ease !important;
}

button#ln-modal-close-btn.ln-modal-close-btn:hover,
button#ln-modal-close-btn.ln-modal-close-btn:focus,
button#ln-modal-close-btn.ln-modal-close-btn:active,
.ln-modal-header button#ln-modal-close-btn:hover,
.ln-modal-header button#ln-modal-close-btn:focus,
.ln-modal-header button#ln-modal-close-btn:active,
.ln-modal-header .ln-modal-close-btn:hover,
.ln-modal-header .ln-modal-close-btn:focus,
.ln-modal-header .ln-modal-close-btn:active {
    background: transparent !important;
    background-color: transparent !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.ln-modal-body {
    padding: 25px;
    overflow-y: auto;
    color: #d0d0d0;
    font-family: 'Barlow', sans-serif !important;
    font-size: 16px;
    line-height: 1.75;
}

.ln-modal-body p {
    margin-bottom: 16px;
}

.ln-modal-body ul {
    margin: 16px 0 20px 20px;
    padding: 0;
}

.ln-modal-body li {
    margin-bottom: 8px;
    color: #e0e0e0;
}

.ln-modal-footer {
    padding: 16px 25px;
    border-top: 1px solid #222222;
    background-color: #121212;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* Botão único de Fechar no Modal - Estilização Blindada com Cores Explícitas contra overrides de tema/Woo */
button#ln-modal-close-action-btn.ln-modal-close-action-btn,
.ln-modal-footer button#ln-modal-close-action-btn,
.ln-modal-footer .ln-modal-close-action-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #ffffff !important;
    background: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #ffffff !important;
    padding: 10px 28px !important;
    font-family: 'Barlow', sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    cursor: pointer !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    text-decoration: none !important;
    line-height: 1.4 !important;
    min-height: 42px !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
    margin: 0 !important;
}

button#ln-modal-close-action-btn.ln-modal-close-action-btn:hover,
button#ln-modal-close-action-btn.ln-modal-close-action-btn:focus,
button#ln-modal-close-action-btn.ln-modal-close-action-btn:active,
.ln-modal-footer button#ln-modal-close-action-btn:hover,
.ln-modal-footer button#ln-modal-close-action-btn:focus,
.ln-modal-footer button#ln-modal-close-action-btn:active,
.ln-modal-footer .ln-modal-close-action-btn:hover,
.ln-modal-footer .ln-modal-close-action-btn:focus,
.ln-modal-footer .ln-modal-close-action-btn:active {
    background-color: #000000 !important;
    background: #000000 !important;
    color: #ffffff !important;
    border: 1px solid #ffffff !important;
    border-color: #ffffff !important;
    box-shadow: none !important;
    outline: none !important;
    text-decoration: none !important;
}
