/* ============================================
   AJUSTES GERAIS
============================================ */
.escondido {
    display: none !important;
}

.tema-body .page-content {
    padding-top: 180px !important;
    background: transparent !important;
}

/* ============================================
   WRAPPER DO TEMA
============================================ */
.tema-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 20px 50px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    border-radius: 12px;
    backdrop-filter: blur(4px);
    overflow: hidden;
}

.tema-wrapper h2,
.tema-wrapper h3,
.tema-wrapper h4,
.tema-wrapper h5,
.tema-wrapper p,
.tema-wrapper ul,
.tema-wrapper li {
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ============================================
   BREADCRUMBS
============================================ */
.tema-breadcrumbs {
    margin-bottom: 25px;
    font-size: 0.95rem;
    opacity: 0.9;
}

.tema-breadcrumbs a {
    color: #fff;
    text-decoration: none;
}

.tema-breadcrumbs .sep {
    margin: 0 6px;
    opacity: 0.7;
}

/* ============================================
   TÍTULOS
============================================ */
.tema-titulo {
    background: rgba(255,255,255,0.15);
    padding: 10px 18px;
    border-radius: 10px;
    color: #fff;
    font-size: 1.9rem;
}

.tema-subtitulo {
    background: rgba(255,255,255,0.12);
    padding: 6px 14px;
    border-radius: 8px;
    color: #eee;
    margin-top: 6px;
}

/* ============================================
   PREVIEW
============================================ */
.tema-preview-bloco {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    margin-bottom: 25px;
    padding: 18px 20px;
    border-left: 4px solid rgba(255,255,255,0.25);
}

.tema-preview-header .preview-label {
    display: inline-block;
    background: rgba(255,255,255,0.18);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 10px;
}

.tema-preview-header {
    border-bottom: 1px solid rgba(255,255,255,0.18);
    padding-bottom: 8px;
    margin-bottom: 14px;
}

/* ============================================
   BOTÕES PREMIUM
============================================ */
.tema-acoes {
    text-align: center;
    margin: 35px 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-primario,
.btn-secundario {
    padding: 14px 28px;
    min-width: 240px;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    background: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
    transition: all 0.25s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primario:hover,
.btn-secundario:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.btn-primario:active,
.btn-secundario:active {
    transform: translateY(0);
    box-shadow: none;
}

/* ============================================
   BOTÕES DA PÁGINA COMPLETA
============================================ */
.btn-acoes {
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    background: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
    transition: all 0.25s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none !important;
}

.btn-acoes:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

/* ============================================
   MODAL DE SELEÇÃO DE TEMAS
============================================ */
.modal-temas {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.modal-temas-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(2px);
}

.modal-temas-content {
    position: relative;
    background: #ffffff;
    border-radius: 10px;
    padding: 20px 24px;
    max-width: 900px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    z-index: 1;
    animation: modalFadeIn 0.25s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}

/* ============================================
   OVERLAY DO FORMULÁRIO
============================================ */
#overlay-form {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

/* ============================================
   POPUP DO FORMULÁRIO
============================================ */
.tema-form-popup {
    background: rgba(255,255,255,0.10);
    backdrop-filter: blur(6px);
    border-left: 4px solid rgba(255,255,255,0.25);
    border-radius: 12px;
    padding: 28px 26px;
    width: 380px;
    max-width: 90%;
    color: #fff;
    box-shadow: 0 6px 20px rgba(0,0,0,0.35);
    animation: popupFade 0.25s ease;
}

@keyframes popupFade {
    from { transform: scale(0.9); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

.tema-form-popup h2 {
    margin-bottom: 20px;
    font-size: 1.4rem;
    font-weight: 600;
    text-align: center;
}

/* ============================================
   INPUTS
============================================ */
.tema-form-popup input {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 14px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(0,0,0,0.35);
    color: #fff;
    font-size: 0.95rem;
    font-family: "Inter", sans-serif;
    backdrop-filter: blur(8px);
    transition: all 0.25s ease;
}

.tema-form-popup input:focus {
    border-color: rgba(255,255,255,0.45);
    background: rgba(0,0,0,0.45);
    outline: none;
}

.tema-form-popup input::placeholder {
    color: rgba(255,255,255,0.7);
}

/* ============================================
   BOTÕES DO POPUP
============================================ */
.tema-form-popup button {
    width: 100%;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.tema-form-popup .btn-primario {
    background: #4ec9ff;
    color: #000;
    border: none;
}

.tema-form-popup .btn-primario:hover {
    background: #7ddcff;
    transform: translateY(-3px);
}

.tema-form-popup .btn-secundario {
    background: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
}

.tema-form-popup .btn-secundario:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

/* ============================================
   TEXTO DO TEMA (PÚBLICO)
============================================ */
.tema-wrapper p {
    margin: 0 0 18px 0;
    line-height: 1.6;
}

.tema-wrapper ul,
.tema-wrapper ol {
    margin: 0 0 20px 22px;
    line-height: 1.6;
}

.tema-wrapper li {
    margin-bottom: 10px;
}

.tema-wrapper h2,
.tema-wrapper h3 {
    margin: 28px 0 14px 0;
    line-height: 1.3;
}

/* ============================================
   CORREÇÃO DEFINITIVA DO RESUMO (tema.php)
============================================ */
.tema-preview-texto {
    white-space: normal !important;
    line-height: 1.7 !important;
}

.tema-preview-texto p {
    margin-bottom: 18px !important;
}

.tema-preview-texto ul {
    margin: 0 0 18px 22px !important;
}

.tema-preview-texto li {
    margin-bottom: 8px !important;
}

/* ============================================
   LINKS BRANCOS
============================================ */
.tema-links-brancos a {
    color: #ffffff !important;
    text-decoration: underline;
}

.tema-links-brancos a:hover {
    color: #e0e0e0 !important;
}

.tema-acoes {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 35px;
    flex-wrap: wrap;
}

.tema-btn {
    padding: 16px 32px;
    min-width: 240px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none !important;
}

.tema-btn.primario {
    background: #4ec9ff;
    color: #000;
    border: 2px solid #4ec9ff;
}

.tema-btn.primario:hover {
    background: #7ddcff;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.tema-btn.secundario {
    background: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
}

.tema-btn.secundario:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.tema-acoes {
    position: relative;
    z-index: 20;
}

.acoes-botoes {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 10px;
}

.acoes-botoes .acao-item {
    display: block;
    padding: 12px 18px;
    border-radius: 8px;
    text-align: center;
    background: var(--gc-primary);
    color: white !important;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
}

.acoes-botoes .acao-item:hover {
    background: var(--gc-primary-dark);
}

.acoes-botoes {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 10px;
}

.acoes-botoes .acao-item,
.acoes-botoes button.acao-item {
    display: block;
    padding: 12px 18px;
    border-radius: 8px;
    text-align: center;
    background: var(--gc-primary);
    color: white !important;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
    border: none;
    cursor: pointer;
}

.acoes-botoes .acao-item:hover {
    background: var(--gc-primary-dark);
}
