@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;1,400&family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&family=Jost:wght@300;400;500&display=swap');

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

:root {
    --bg:          #f5f0e8;
    --bg2:         #ede7da;
    --card:        #faf7f2;
    --borda:       #ddd5c4;
    --texto:       #2e2a22;
    --texto-fraco: #9a8f7e;
    --dourado:     #a8843a;
    --dourado-claro: #c9a85c;
    --vermelho:    #8b3a3a;
}

body {
    background: var(--bg);
    color: var(--texto);
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 18px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── Nav ──────────────────────────────────────── */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem 2.5rem;
    border-bottom: 1px solid var(--borda);
    font-family: 'Jost', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--texto-fraco);
}

nav a {
    color: var(--texto-fraco);
    text-decoration: none;
    margin-left: 2rem;
    transition: color 0.2s;
}

nav a:hover { color: var(--dourado); }

.nav-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    font-style: italic;
    letter-spacing: 0.05em;
    color: var(--texto) !important;
    margin-left: 0 !important;
}

.nav-logo:hover { color: var(--dourado) !important; }

/* ── Main ─────────────────────────────────────── */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
}

.aviso {
    background: #f5ede0;
    border: 1px solid var(--dourado-claro);
    color: var(--texto);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    max-width: 460px;
    width: 100%;
    text-align: center;
    font-family: 'Jost', sans-serif;
}

/* ── Card ─────────────────────────────────────── */
.card {
    background: var(--card);
    border: 1px solid var(--borda);
    border-radius: 4px;
    padding: 3rem 2.5rem;
    width: 100%;
    max-width: 460px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 4px 32px rgba(100,80,40,0.07);
}

.card h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 300;
    color: var(--texto);
    letter-spacing: 0.06em;
    text-align: center;
}

.subtitulo {
    color: var(--texto-fraco);
    font-style: italic;
    font-size: 1rem;
    text-align: center;
}

/* ornamento dourado */
.card::before {
    content: '◆';
    color: var(--dourado);
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    opacity: 0.6;
}

/* ── Forms ────────────────────────────────────── */
form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

input, textarea {
    background: var(--bg);
    border: 1px solid var(--borda);
    border-radius: 3px;
    color: var(--texto);
    font-family: 'EB Garamond', serif;
    font-size: 1rem;
    padding: 0.7rem 1rem;
    width: 100%;
    outline: none;
    transition: border-color 0.2s;
}

input:focus, textarea:focus {
    border-color: var(--dourado);
    background: #fdfaf5;
}

input::placeholder, textarea::placeholder {
    color: var(--texto-fraco);
    font-style: italic;
}

button {
    background: var(--dourado);
    border: none;
    border-radius: 3px;
    color: #faf7f2;
    cursor: pointer;
    font-family: 'Jost', sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.85rem;
    transition: background 0.2s;
}

button:hover { background: var(--dourado-claro); }

.card a {
    color: var(--texto-fraco);
    font-size: 0.9rem;
    text-decoration: none;
    font-style: italic;
    transition: color 0.2s;
}

.card a:hover { color: var(--dourado); }

/* ── Mensagem do dia ──────────────────────────── */
.mensagem-dia {
    max-width: 680px;
    text-align: center;
    gap: 2rem;
    padding: 3.5rem 3rem;
}

.data-hoje {
    font-family: 'Jost', sans-serif;
    color: var(--dourado);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.divisor {
    width: 40px;
    height: 1px;
    background: var(--dourado);
    opacity: 0.5;
    margin: 0 auto;
}

blockquote {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.55rem;
    font-style: italic;
    font-weight: 300;
    line-height: 1.85;
    color: var(--texto);
    text-align: center;
}

.autor {
    font-family: 'Jost', sans-serif;
    color: var(--dourado);
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.sem-mensagem {
    font-style: italic;
    color: var(--texto-fraco);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
}

/* ── Botão de áudio ───────────────────────────── */
.btn-audio {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--card);
    border: 1px solid var(--borda);
    color: var(--dourado);
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(100,80,40,0.12);
    transition: background 0.2s, color 0.2s;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-audio:hover { background: var(--dourado); color: #faf7f2; }
.btn-audio.pausado { color: var(--texto-fraco); }

/* ── Página de rolagem ────────────────────────── */
main {
    padding: 0 !important;
    justify-content: flex-start !important;
}

.secao {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5rem 2rem;
    max-width: 680px;
    margin: 0 auto;
    width: 100%;
    gap: 2rem;
    border-bottom: 1px solid var(--borda);
    text-align: center;
}

.secao:last-child { border-bottom: none; }

.secao-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.secao-label {
    font-family: 'Jost', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--dourado);
}

.secao-next {
    margin-top: 1rem;
    color: var(--texto-fraco);
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
    text-decoration: none;
    animation: pulsar 2s infinite;
}

.secao-next:hover { opacity: 1; }

@keyframes pulsar {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

/* ── Bienvenida ───────────────────────────────── */
.bv-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.75rem;
    max-width: 640px;
    width: 100%;
    padding: 3rem 2rem;
}

.bv-modulo {
    font-family: 'Jost', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.3em;
    color: var(--dourado);
    text-transform: uppercase;
}

.bv-titulo {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.8rem, 8vw, 5rem);
    font-weight: 300;
    letter-spacing: 0.08em;
    line-height: 1.15;
    color: var(--texto);
}

.bv-ornamento {
    color: var(--dourado);
    font-size: 0.7rem;
    letter-spacing: 0.4em;
    opacity: 0.7;
}

.bv-subtitulo {
    font-family: 'EB Garamond', serif;
    font-style: italic;
    font-size: 1.15rem;
    color: var(--texto-fraco);
    line-height: 2;
}

.bv-scroll-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--borda);
    border-radius: 50%;
    color: var(--dourado);
    text-decoration: none;
    font-size: 1rem;
    transition: border-color 0.2s;
    animation: pulsar 2s infinite;
}

.bv-scroll-btn:hover { border-color: var(--dourado); }

.bv-pilares {
    display: flex;
    gap: 0;
    width: 100%;
    border-top: 1px solid var(--borda);
    margin-top: 1.5rem;
}

.pilar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    padding: 1.5rem 0.5rem;
    border-right: 1px solid var(--borda);
    font-family: 'Jost', sans-serif;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--texto-fraco);
}

.pilar:last-child { border-right: none; }

.pilar-icon {
    font-size: 1.3rem;
    color: var(--dourado);
    opacity: 0.7;
}

/* ── Semana wrap ──────────────────────────────── */
.semana-wrap {
    background: var(--card);
    border: 1px solid var(--borda);
    border-radius: 4px;
    padding: 2.5rem 3rem 3rem;
    width: 100%;
    max-width: 680px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    box-shadow: 0 4px 32px rgba(100,80,40,0.07);
}

/* ── Tabs ─────────────────────────────────────── */
.tabs {
    display: flex;
    gap: 0;
    border: 1px solid var(--borda);
    border-radius: 3px;
    overflow: hidden;
    width: 100%;
}

.tab {
    flex: 1;
    background: transparent;
    border: none;
    border-right: 1px solid var(--borda);
    color: var(--texto-fraco);
    cursor: pointer;
    font-family: 'Jost', sans-serif;
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.85rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    transition: background 0.2s, color 0.2s;
}

.tab:last-child { border-right: none; }

.tab-icon {
    font-size: 0.9rem;
    color: var(--borda);
    transition: color 0.2s;
}

.tab:hover {
    background: var(--bg2);
    color: var(--texto);
}

.tab.ativo {
    background: var(--dourado);
    color: #faf7f2;
}

.tab.ativo .tab-icon { color: rgba(250,247,242,0.7); }

/* ── Conteúdo das abas ────────────────────────── */
.aba-conteudo {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    animation: fadeIn 0.3s ease;
}

.aba-conteudo.oculto { display: none; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* select no admin */
select {
    background: var(--bg);
    border: 1px solid var(--borda);
    border-radius: 3px;
    color: var(--texto);
    font-family: 'EB Garamond', serif;
    font-size: 1rem;
    padding: 0.7rem 1rem;
    width: 100%;
    outline: none;
    cursor: pointer;
}

select:focus { border-color: var(--dourado); }

/* ── Cards de meditação ───────────────────────── */
.meditacoes-lista {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.meditacoes-lista::-webkit-scrollbar { width: 4px; }
.meditacoes-lista::-webkit-scrollbar-track { background: transparent; }
.meditacoes-lista::-webkit-scrollbar-thumb { background: var(--borda); border-radius: 2px; }

.med-card {
    background: var(--bg);
    border: 1px solid var(--borda);
    border-radius: 4px;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: border-color 0.2s;
}

.med-card:hover { border-color: var(--dourado-claro); }

.med-titulo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--texto);
}

.med-descricao {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--texto-fraco);
    line-height: 1.6;
}

.med-player {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.play-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--card);
    border: 1px solid var(--borda);
    color: var(--dourado);
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s;
    padding-left: 2px;
}

.play-btn:hover,
.play-btn.tocando {
    background: var(--dourado);
    color: #faf7f2;
    border-color: var(--dourado);
}

.progress-wrap {
    flex: 1;
    height: 3px;
    background: var(--borda);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: var(--dourado);
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s linear;
}

.tempo {
    font-family: 'Jost', sans-serif;
    font-size: 0.72rem;
    color: var(--texto-fraco);
    min-width: 32px;
    text-align: right;
}

/* ── Imagens ──────────────────────────────────── */
.secao-imagem {
    width: 100%;
    max-width: 480px;
    border-radius: 4px;
    object-fit: cover;
    max-height: 320px;
    border: 1px solid var(--borda);
}

.med-imagem {
    width: 100%;
    border-radius: 4px;
    object-fit: cover;
    max-height: 200px;
    border: 1px solid var(--borda);
}

/* ── Aguardando ───────────────────────────────── */
.mensagem-aguardo {
    text-align: center;
    color: var(--texto-fraco);
    font-style: italic;
    line-height: 2.2;
}

/* ── Admin ────────────────────────────────────── */
.admin-wrap {
    width: 100%;
    max-width: 960px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.admin-wrap h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 300;
    color: var(--texto);
    border-bottom: 1px solid var(--borda);
    padding-bottom: 0.6rem;
    letter-spacing: 0.04em;
}

.admin-section {
    background: var(--card);
    border: 1px solid var(--borda);
    border-radius: 4px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 2px 16px rgba(100,80,40,0.05);
}

.admin-section h3 {
    font-family: 'Jost', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--texto-fraco);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

th {
    text-align: left;
    font-family: 'Jost', sans-serif;
    font-size: 0.72rem;
    font-weight: 400;
    color: var(--texto-fraco);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--borda);
}

td {
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid var(--bg2);
    color: var(--texto);
}

td a {
    color: var(--dourado);
    text-decoration: none;
    font-family: 'Jost', sans-serif;
    font-size: 0.85rem;
}

td a:hover { opacity: 0.7; }

.ativo   { color: #6a8f5a; font-family: 'Jost', sans-serif; font-size: 0.85rem; }
.inativo { color: #9a6a4a; font-family: 'Jost', sans-serif; font-size: 0.85rem; }

.badge-pendente {
    background: #f5ede0;
    color: var(--dourado);
    font-family: 'Jost', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    border: 1px solid var(--dourado-claro);
    margin-left: 0.5rem;
}

@media (max-width: 600px) {
    /* Nav */
    nav { padding: 0.9rem 1.25rem; }
    .nav-logo { font-size: 0.9rem; }
    nav a { margin-left: 1rem; font-size: 0.72rem; }

    /* Seções */
    .secao { padding: 4rem 1.25rem; gap: 1.5rem; }

    /* Boas-vindas */
    .bv-titulo { font-size: clamp(2.2rem, 12vw, 3.5rem); }
    .bv-subtitulo { font-size: 1rem; }
    .bv-pilares { flex-wrap: wrap; }
    .pilar { flex: 1 1 50%; border-bottom: 1px solid var(--borda); }
    .pilar:nth-child(2) { border-right: none; }
    .pilar:nth-child(3), .pilar:nth-child(4) { border-bottom: none; }

    /* Citações */
    blockquote { font-size: 1.2rem; line-height: 1.75; }

    /* Cards de meditação */
    .med-card { padding: 1rem 1rem; }
    .med-titulo { font-size: 1rem; }

    /* Admin — esconde colunas menos importantes na tabela */
    th:nth-child(3), td:nth-child(3) { display: none; }

    /* Cards de login/cadastro */
    .card { padding: 2rem 1.25rem; }

    /* Botão de áudio */
    .btn-audio { bottom: 1rem; right: 1rem; width: 38px; height: 38px; }
}
