@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600&family=Open+Sans:wght@400;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    background: linear-gradient(180deg, #f5f7fa, #e4ebf5);
    color: #333;
    line-height: 1.6;
}

/* ================= HEADER ================= */
header {
    background: linear-gradient(90deg, #2c3e50, #34495e);
    color: white;
    padding: 25px 15px;
    text-align: center;
}

header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
}

header p {
    font-size: 1rem;
    opacity: 0.9;
}
.container {
    max-width: 1000px;   /* largura máxima */
    margin: 0 auto;      /* centraliza */
    padding: 0 20px;     /* margem lateral */
    background: #fff;
    bottom: 10px;
    top: 10px;
    padding-top: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.103);
    text-align: justify;
}

/* ================= GRID LAYOUT ================= */
.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

/* === Layout para index: coluna principal maior e sidebar 'Veja também' === */
.two-columns {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
    align-items: start;
}

.main-col {
    /* mantém o card tradicional */
}

.sidebar {
    padding-top: 10px;
}

.sidebar h3 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 12px;
    color: #2c3e50;
}

.sidebar-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.sidebar-grid img,
.thumb-placeholder {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.thumb-item, .thumb-link {
    position: relative;
    display: block;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    background: #fbfdff; /* leve tom de fundo */
    border: 1px solid rgba(46,85,160,0.06);
    border-radius: 10px;
    padding: 8px 8px 12px 20px; /* espaço para a faixa colorida */
    box-shadow: 0 4px 12px rgba(21, 38, 90, 0.04);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s;
}

.thumb-item::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 8px;
    bottom: 12px;
    width: 4px;
    border-radius: 3px;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%); /* faixa colorida */
}

.thumb-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(21,38,90,0.09);
    border-color: rgba(41,128,185,0.12);
}

.thumb-item img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.thumb-title {
    margin-top: 8px;
    margin-left: 6px;
    font-family: 'Playfair Display', serif;
    font-size: 0.95rem;
    color: #2c3e50;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.thumb-placeholder {
    display:flex;
    align-items:center;
    justify-content:center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 1.5rem;
    height: 110px;
    border-radius: 8px;
}

@media (max-width: 500px){
    .sidebar{
        display: none;
    }

}

.grid-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.grid-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

.card-cover {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f0f0f0;
}

.card-cover a {
    display: block;
    width: 100%;
    height: 100%;
}

.cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card-cover a:hover .cover-image {
    transform: scale(1.05);
}

.cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-size: 3rem;
}

.card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    font-family: 'Playfair Display', serif;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 1.3rem;
    line-height: 1.3;
}

.card-content h3 a {
    color: #2c3e50;
}

.card-content h3 a:hover {
    color: #2980b9;
    text-decoration: none;
}

.card-date {
    color: #999;
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.card-excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 15px;
    flex-grow: 1;
}

.btn-small {
    display: inline-block;
    background: #2980b9;
   color: rgb(39, 39, 39,);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    width: fit-content;
    margin-top: auto;
}

.btn-small:hover {
    background: #ffffff;
    text-decoration: none;
}

/* ================= PAGINAÇÃO ================= */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 20px 0;
    margin-top: 40px;
}

.btn-pag {
    display: inline-block;
    padding: 8px 14px;
    background: #2980b9;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-pag:hover {
    background: #1f6391;
    transform: scale(1.05);
}

.btn-pag.active {
    background: #2c3e50;
    cursor: default;
}

.btn-pag.active:hover {
    transform: scale(1);
    background: #2c3e50;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .grid-container {
        grid-template-columns: 1fr;
    }
}
.card {
    padding-top: 10px;
    padding-bottom: 10px;
}
.card:hover {
    transform: translateY(-3px);
}

.card h2 {
    font-family: 'Playfair Display', serif;
    color: #2c3e50;
    margin-bottom: 8px;
    text-align: left;
}
.card h3{
    font-family: 'Playfair Display', serif;
}

.card small {
    color: #777;
    font-size: 0.9rem;
}

.card p {
    margin-top: 15px;
    font-size: 1.05rem;
}

/* ================= LINKS & BOTÕES ================= */
a {
    text-decoration: none;
    color: #2980b9;
    font-weight: 600;
}

a:hover {
    text-decoration: underline;
}

.btn {
    display: inline-block;
    background: #bcceda;
    color: rgb(39, 39, 39);
    padding: 10px 18px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 1rem;
    border: 2px solid rgba(39, 39, 39, 0.034);
    position: relative;
    overflow: hidden;
    transition: 0.3s;
    box-shadow: #1f2f3f 0px 8px 20px rgba(0, 0, 0, 0.1);
}

/* Reflexo */
.btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.5),
        transparent
    );
    transition: 0.6s;
}

/* Movimento do reflexo */
.btn:hover::after {
    left: 130%;
}

.btn:hover {
    background: #e7e5e5;
}


/* ================= ADMIN ================= */
.admin-box {
    max-width: 500px;
    margin: 80px auto;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

input, textarea {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1rem;
}

button {
    background: #2c3e50;
    color: rgb(0, 0, 0);
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    margin-top: 15px;
    cursor: pointer;
    width: 100%;
}

button:hover {
    background: #1f2f3f;
}

/* ================= FOOTER ================= */
footer {
    background: linear-gradient(90deg, #58728b, #324961);
    color: #ffffff;
    padding: 28px 16px;
    margin-top: 40px;
}
footer a {
    color: #e6eef8;
}
footer a:hover {
    color: #ffffff;
    text-shadow: 0 0 6px rgba(255,255,255,0.5);
}
footer .footer-inner {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}
footer .footer-left p {
    margin: 6px 0;
}
footer .footer-right .cover {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}
footer .playing {
    margin-top: 8px;
    font-size: 0.95rem;
    opacity: 0.9;
}
@media (max-width: 768px) {
    footer .footer-inner {
        grid-template-columns: 1fr;
    }
}

/* ================= CITAÇÕES ================= */
blockquote {
    border-left: 5px solid #808080;
    padding: 12px 18px;
    margin: 18px 0;
    background: #f0f0f0;
    font-style: italic;
    color: #444;
    border-radius: 6px;
}

.ref-biblica {
    display: inline-block;
    margin-top: 10px;
    font-weight: bold;
    color: #2c3e50;
}

.highlight {
    background: #fff3a0;
    padding: 2px 4px;
    border-radius: 3px;
}

/* ================= EDITOR ================= */
#editor {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

.editor-box {
    background: #fff;
}

/* ===================================================
   MEDIA QUERIES – RESPONSIVIDADE
=================================================== */

/* 📱 Celulares */
@media (max-width: 600px) {
    header h1 {
        font-size: 1.5rem;
    }

    header p {
        font-size: 0.9rem;
    }

    .card {
        padding: 18px;
    }

    .card p {
        font-size: 1rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .admin-box {
        margin: 30px 15px;
        padding: 20px;
    }
}

/* ================= EMBEDS ================= */
.mensagem-conteudo .video-embed {
    margin: 15px 0;
    
}
.video-embed .video-wrapper {
    position: relative;
    padding-top: 56.25%;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
}
.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.mensagem-conteudo .link-card {
    margin: 12px 0;
}
.mensagem-conteudo ul,
.mensagem-conteudo ol {
    padding-left: 24px;
    margin: 12px 0;
    list-style-position: outside;
}
.mensagem-conteudo ul { list-style-type: disc; }
.mensagem-conteudo ul ul { list-style-type: circle; }
.mensagem-conteudo ul ul ul { list-style-type: square; }
.mensagem-conteudo ul ul ul ul { list-style-type: disc; }
.mensagem-conteudo ol { list-style-type: decimal; }
.mensagem-conteudo ol ol { list-style-type: lower-alpha; }
.mensagem-conteudo ol ol ol { list-style-type: lower-roman; }
.mensagem-conteudo ol ol ol ol { list-style-type: decimal; }
.mensagem-conteudo li { margin: 6px 0; text-indent: 0; }
#editor ul,
#editor ol {
    padding-left: 24px;
    margin: 12px 0;
    list-style-position: outside;
}
#editor ul { list-style-type: disc; }
#editor ul ul { list-style-type: circle; }
#editor ul ul ul { list-style-type: square; }
#editor ul ul ul ul { list-style-type: disc; }
#editor ol { list-style-type: decimal; }
#editor ol ol { list-style-type: lower-alpha; }
#editor ol ol ol { list-style-type: lower-roman; }
#editor ol ol ol ol { list-style-type: decimal; }
#editor li { margin: 6px 0; }
.link-card {
    border: 1px solid #e3e6ea;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}
.link-card > a {
    display: flex;
    gap: 12px;
    align-items: stretch;
    color: inherit;
}
.link-card img {
    width: 140px;
    height: 100%;
    max-height: 120px;
    object-fit: cover;
    flex-shrink: 0;
}
.link-card .meta {
    padding: 12px;
    flex: 1;
    min-width: 0;
}
.link-card .title {
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 6px;
}
.link-card .desc {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 8px;
}
.link-card .host {
    color: #5865f2;
    font-size: 0.85rem;
    word-break: break-all;
}

/* ================= SHARE BUTTONS ================= */
.share-buttons {
    display: flex;
    gap: 20px;
    margin: 10px 0 0 0;
}
.share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #2c3e50;
    font-weight: 700;
    font-size: 30px;
}
.share-btn:hover {
    background: transparent;
    text-decoration: none;
}

/* 📱📲 Tablets */
@media (max-width: 900px) {
    .container {
        padding: 0 20px;
    }

    .card {
        padding: 22px;
    }
}

 a {
    text-decoration: none;
    color: inherit;
}

a:hover {
    text-decoration: none;
}

/* HEADER */
header {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px;
}

/* LOGO */
.logo {
    position: absolute;
    left: 20px;
    width: 300px;
}

.logo img {
    width: 100%;
    height: auto;
    display: block;
}

/* TEXTO CENTRAL */
header h1,
header p {
    text-align: center;
    margin: 0;
}
/* MOBILE */
@media (max-width: 768px) {
    header {
        flex-direction: column;
    }

    .logo {
        position: relative;
        left: 0;
        margin-bottom: 10px;
        width: 300px;
    }
}

/* MENU */
.menu {
    position: absolute;
    right: 20px;
    display: flex;
    gap: 20px;
}

.menu a {
    font-weight: bold;
    color: #d6d6d6;
}

.menu a:hover{
    font-weight: bold;
    text-shadow: #fffdfd 1px 1px 5px;
    color: #fff;
    width: 100%;
   
}
/* EFEITO DE LINHA ANIMADA */

.link {
    position: relative;
    text-decoration: none;
    color: #000;
}

.link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background-color: currentColor;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.link:hover::after {
    opacity: 1;
}




/* OVERLAY */
.menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 998;
}

/* BOTÃO HAMBÚRGUER */
.menu-toggle {
    display: none;
    position: absolute;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #fff;
    z-index: 1000;
}

/* MOBILE */
@media (max-width: 768px) {

    .menu-toggle {
        display: block;
    }

    .menu {
        position: fixed;
        top: 90px;
        left: 50%;
        transform: translateX(-50%) scale(0.95);
        width: 90%;
        max-width: 320px;
        background: #2f3035;
        border-radius: 12px;
        box-shadow: 0 20px 40px rgba(0,0,0,0.4);
        display: none;
        flex-direction: column;
        z-index: 999;
        animation: fadeIn 0.3s ease;
        
    }

    .menu.active {
        display: flex;
        transform: translateX(-50%) scale(1);
    }

    .menu-overlay.active {
        display: block;
    }
}

/* ANIMAÇÃO */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateX(50%) scale(1);
    }
}

/* CONTEÚDO COM ALTURA LIMITADA */
.conteudo-limitado {
    position: relative;
    max-height: 200px;
    overflow: hidden;
    line-height: 1.6;
    margin: 15px 0;
}

/* EFEITO FUMÊ NO FINAL */
.conteudo-limitado .fade-text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0),
        rgba(255,255,255,1)
    );
    pointer-events: none;
}
.texto-justificado {
    text-align: justify;
}

/* ===== CORREÇÃO LISTAS DENTRO DO EDITOR ===== */
.editor-box ul,
.editor-box ol {
    margin: 8px 0;
    padding-left: 28px;
    list-style-position: outside;
    text-indent: 5px;
}

/* Remove margem lateral extra dos itens */
.editor-box li {
    margin-left: 0;
    padding-left: 0;
    text-indent: 5px;
}

/* Block indentation levels for Tab/Shift+Tab */
.editor-box [data-indent="1"] { margin-left: 24px; }
.editor-box [data-indent="2"] { margin-left: 48px; }
.editor-box [data-indent="3"] { margin-left: 72px; }
.editor-box [data-indent="4"] { margin-left: 96px; }

/* Small transition for smooth visual feedback */
.editor-box p, .editor-box h1, .editor-box h2, .editor-box h3, .editor-box blockquote, .editor-box pre {
    transition: margin-left 0.06s ease;
}

/* Global marker formatting for front-end posts */
.mensagem-conteudo li.bold-marker::marker,
.mensagem-conteudo li.italic-marker::marker {
    font-weight: 700; /* bold marker for bold-marker */
}
.mensagem-conteudo li.italic-marker::marker {
    font-weight: 400;
    font-style: italic;
}
.mensagem-conteudo li.bold-marker.italic-marker::marker {
    font-weight: 700;
    font-style: italic;
}
/* also add safe fallbacks using :has() where supported */
.mensagem-conteudo li:has(strong)::marker,
.mensagem-conteudo li:has(b)::marker {
    font-weight: 700;
}
.mensagem-conteudo li:has(em)::marker,
.mensagem-conteudo li:has(i)::marker {
    font-style: italic;
}
 
.editor-box h1:empty:before,
.editor-box h1:has(br:only-child):before {
    content: "Título 1";
    color: #aaa;
    pointer-events: none;
}
.editor-box h2:empty:before,
.editor-box h2:has(br:only-child):before {
    content: "Título 2";
    color: #aaa;
    pointer-events: none;
}
.editor-box h3:empty:before,
.editor-box h3:has(br:only-child):before {
    content: "Título 3";
    color: #aaa;
    pointer-events: none;
}
.editor-box p:empty:before,
.editor-box p:has(br:only-child):before {
    content: "Digite '/' para comandos...";
    color: #aaa;
    pointer-events: none;
}
.editor-box blockquote:empty:before,
.editor-box blockquote:has(br:only-child):before {
    content: "Citação";
    color: #aaa;
    pointer-events: none;
}
.editor-box ul li:empty:before,
.editor-box ul li:has(br:only-child):before {
    content: "Lista";
    color: #aaa;
    pointer-events: none;
}
.editor-box ol li:empty:before,
.editor-box ol li:has(br:only-child):before {
    content: "Lista numerada";
    color: #aaa;
    pointer-events: none;
}
.editor-box pre:empty:before,
.editor-box pre:has(br:only-child):before {
    content: "Código";
    color: #aaa;
    pointer-events: none;
}
.editor-box ul.todo li span:empty:before,
.editor-box ul.todo li span:has(br:only-child):before {
    content: "Tarefa";
    color: #aaa;
    pointer-events: none;
}

.slash-menu {
    position: absolute;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    display: none;
    z-index: 1000;
    width: 220px;
}
.slash-menu button {
    background: none;
    border: none;
    padding: 10px 12px;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
    width: 100%;
}
.slash-menu button:hover {
    background: #f5f5f7;
}

.emoji-panel {
    position: absolute;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 10px;
    padding: 8px;
    display: none;
    width: 200px;
    max-height: 160px;
    overflow-y: auto;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    z-index: 1000;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
}
.emoji-panel.active {
    display: grid;
}
.emoji-panel button {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.emoji-panel button:hover {
    background: #f5f5f7;
}

.editor-box img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin: 8px 0;
}
.salvar{
    color: #fff;
}
.header-content{
    margin: 0 auto;
}


/*================= CAPA sobre ================= */

/* CAPA */

.cover img {
    max-width: 100px;
    border-radius: 5px;
    margin-bottom: 20px;

    /* preto e branco */
    filter: grayscale(100%);
    transition: filter 0.4s ease;
}

.cover img:hover {
    /* volta à cor original */
    filter: grayscale(0%);
}

/* NOME DA MÚSICA */

.music-name {
    margin-left: 12px;
    font-family: Century Gothic, sans-serif;
    font-size: 20px;
    color: #fff;
}

/* ================= EMBED LINKS ================= */

.embed-link {
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    margin: 10px 0;
    background: #fff;
}

.embed-link iframe {
    width: 100%;
    height: 315px;
    border: none;
}

.embed-link .embed-content {
    display: flex;
    gap: 12px;
    padding: 12px;
}

.embed-link img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
}

.embed-link h4 {
    margin: 0;
    font-size: 16px;
    color: #222;
}

.embed-link p {
    margin: 4px 0;
    font-size: 14px;
    color: #666;
}

.embed-link small {
    color: #999;
    font-size: 12px;
}

.embed-link .remove {
    position: absolute;
    top: 6px;
    right: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #fff;
    background: rgba(0,0,0,.6);
    padding: 4px 8px;
    border-radius: 4px;
}
