/* =========================================================
   MARKLARO Publicações
   style.css organizado e legível
   ========================================================= */


/* =========================================================
   1. Variáveis globais
   ========================================================= */

:root {
    --bg: #061922;
    --bg-dark: #04151b;
    --bg-soft: #0b3442;

    --card: rgba(255, 248, 232, 0.065);
    --card-strong: rgba(255, 248, 232, 0.09);
    --line: rgba(230, 194, 111, 0.22);

    --gold: #d8b45f;
    --gold-light: #f3d58c;
    --cream: #fff8e8;
    --muted: #d8cbb5;

    --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.16);
    --shadow-strong: 0 30px 90px rgba(0, 0, 0, 0.55);

    --radius-lg: 30px;
    --radius-md: 24px;
    --radius-sm: 12px;

    --container: 1180px;
}


/* =========================================================
   2. Reset e base
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--cream);
    font-family: Georgia, "Times New Roman", serif;
}

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

img {
    max-width: 100%;
    display: block;
}


/* =========================================================
   3. Navegação
   ========================================================= */

.nav {
    position: sticky;
    top: 0;
    z-index: 5;
    background: rgba(4, 21, 27, 0.86);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.nav-inner {
    width: min(var(--container), calc(100% - 32px));
    margin: auto;
    padding: 18px 0;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    color: var(--gold-light);
    font-weight: 800;
    letter-spacing: 0.2em;
}

.menu {
    display: flex;
    gap: 20px;
    color: var(--muted);
}

.menu a:hover {
    color: var(--gold-light);
}


/* =========================================================
   4. Hero da homepage
   ========================================================= */

.hero {
    min-height: 86vh;
    padding: 70px 16px;

    display: grid;
    place-items: center;
    text-align: center;

    background:
        radial-gradient(circle at 20% 15%, rgba(216, 180, 95, 0.18), transparent 30%),
        radial-gradient(circle at 85% 10%, rgba(122, 29, 32, 0.28), transparent 34%),
        linear-gradient(135deg, var(--bg-dark), var(--bg-soft) 58%, var(--bg));
}

.hero-logo {
    width: min(520px, 94%);
    margin: 0 auto 34px;
    border-radius: 20px;
    box-shadow: var(--shadow-strong);
}


/* =========================================================
   5. Tipografia
   ========================================================= */

.eyebrow {
    margin: 0 0 14px;

    color: var(--gold);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.08;
}

h1 {
    font-size: clamp(2.8rem, 7vw, 6.8rem);
}

h2 {
    margin: 10px 0 22px;
    font-size: clamp(2rem, 4vw, 3.8rem);
}

h3 {
    font-size: 1.35rem;
}

.lead {
    max-width: 760px;
    margin: 24px auto 34px;

    color: var(--muted);
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    line-height: 1.7;
}

.page-text,
.split p,
.book-card p,
.author-card p {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.75;
}


/* =========================================================
   6. Botões
   ========================================================= */

.btn,
.buy,
.ghost,
.author-card a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 13px 21px;
    border-radius: 999px;

    font-weight: 800;
}

.btn,
.buy {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: #06212b;
}

.ghost,
.author-card a {
    border: 1px solid var(--line);
    color: var(--gold-light);
}

.btn:hover,
.buy:hover {
    filter: brightness(1.07);
}

.ghost:hover,
.author-card a:hover {
    background: rgba(255, 248, 232, 0.06);
}

.disabled {
    opacity: 0.52;
    pointer-events: none;
}


/* =========================================================
   7. Secções gerais
   ========================================================= */

.section {
    width: min(var(--container), calc(100% - 32px));
    margin: auto;
    padding: 82px 0;
}

.split {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 46px;

    border-bottom: 1px solid var(--line);
}


/* =========================================================
   8. Pesquisa e filtros
   ========================================================= */

.toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;

    margin: 28px 0;
}

.search,
.filter {
    padding: 14px 18px;

    background: rgba(255, 248, 232, 0.08);
    border: 1px solid var(--line);
    border-radius: 999px;

    color: var(--cream);
    font-size: 1rem;
}

.search {
    flex: 1;
    min-width: 240px;
}

.filter option {
    color: var(--bg);
}


/* =========================================================
   9. Grelha de livros
   ========================================================= */

.books-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;

    margin-top: 28px;
}

.book-card {
    display: flex;
    flex-direction: column;

    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 26px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.book-card:hover {
    transform: translateY(-3px);
    transition: transform 0.2s ease;
}


/* =========================================================
   10. Capas dos livros
   ========================================================= */

/*
   A altura dos cartões foi aumentada para evitar cortes.
   object-fit: contain mostra a capa inteira.
*/

.cover-placeholder,
.book-cover-wrap {
    height: 520px;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    padding: 20px;
    overflow: hidden;

    background: linear-gradient(135deg, #092733, #134858);
    border-bottom: 1px solid var(--line);
}

.cover-placeholder span {
    color: var(--gold);
    font-size: 0.74rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.cover-placeholder strong {
    margin-top: 8px;

    color: var(--cream);
    font-size: 1.8rem;
}

.book-cover {
    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: center;

    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.36);
}


/* =========================================================
   11. Conteúdo dos cartões dos livros
   ========================================================= */

.book-content {
    flex: 1;

    display: flex;
    flex-direction: column;
    gap: 10px;

    padding: 24px;
}

.book-category {
    margin: 0;

    color: var(--gold) !important;
    font-size: 0.78rem !important;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.book-author {
    margin: 0 !important;
    color: var(--cream) !important;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;

    margin-top: auto;
}


/* =========================================================
   12. Autores
   ========================================================= */

.authors-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;

    margin-top: 30px;
}

.author-card {
    padding: 24px;

    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 26px;
    box-shadow: var(--shadow-soft);
}

.author-card h3 {
    color: var(--gold-light);
    font-size: 1.35rem;
}

.focus {
    color: var(--cream) !important;
    font-weight: 700;
}


/* =========================================================
   13. Página individual do livro
   ========================================================= */

.page-hero {
    padding: 80px 16px;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-dark), var(--bg-soft));
}

.page-wrap {
    width: min(1000px, calc(100% - 32px));
    margin: auto;
    padding: 70px 0;
}

.book-detail {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 42px;
}

.book-detail .book-cover-wrap,
.book-detail .cover-placeholder {
    height: auto;
    min-height: 520px;

    border: 1px solid var(--line);
    border-radius: var(--radius-md);
}

.notice {
    padding: 18px;

    background: rgba(255, 248, 232, 0.06);
    border: 1px solid var(--line);
    border-radius: 18px;

    color: var(--muted);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    margin: 22px 0;
}

.tags span {
    padding: 7px 11px;

    border: 1px solid var(--line);
    border-radius: 999px;

    color: var(--gold-light);
    font-size: 0.8rem;
}


/* =========================================================
   14. Contacto
   ========================================================= */

.contact {
    padding-left: 20px;
    padding-right: 20px;

    text-align: center;

    background: linear-gradient(135deg, rgba(255, 248, 232, 0.08), rgba(216, 180, 95, 0.08));
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
}

.email {
    color: var(--gold-light);
    font-size: 1.25rem;
    overflow-wrap: anywhere;
}


/* =========================================================
   15. Rodapé
   ========================================================= */

footer {
    padding: 32px 16px;

    background: var(--bg-dark);
    border-top: 1px solid var(--line);

    color: #b9ab91;
    text-align: center;
}
.footer-content{
    max-width:900px;
    margin:auto;
}

.footer-content p{
    margin:10px 0;
}

.affiliate-disclaimer{
    font-size:.9rem;
    line-height:1.7;
    color:var(--muted);
    opacity:.8;
}

/* =========================================================
   16. Responsividade
   ========================================================= */

@media (max-width: 980px) {
    .books-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .authors-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .split,
    .book-detail {
        grid-template-columns: 1fr;
    }

    .menu {
        flex-wrap: wrap;
    }
}

@media (max-width: 620px) {
    .books-grid,
    .authors-grid {
        grid-template-columns: 1fr;
    }

    .nav-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .actions a {
        width: 100%;
    }

    .cover-placeholder,
    .book-cover-wrap {
        height: 430px;
    }

    .book-detail .book-cover-wrap,
    .book-detail .cover-placeholder {
        min-height: 430px;
    }
}
