/* ==================================================
   VARIÁVEIS
================================================== */
:root {
    --bg-dark: #020617;
    --bg-card: rgba(255,255,255,0.04);
    --text-main: #e5e7eb;
    --text-muted: #9ca3af;
    --blue-main: #2563eb;
}

/* ==================================================
   RESET
================================================== */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
}

/* ==================================================
   LINKS
================================================== */
a {
    color: var(--blue-main);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ==================================================
   CONTAINER
================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ==================================================
   HEADER
================================================== */
.site-header {
    background: var(--bg-dark);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--text-main);
}

.nav a {
    margin-left: 20px;
    color: var(--text-muted);
}

.nav a:hover {
    color: var(--text-main);
}

/* ==================================================
   CONTEÚDO PRINCIPAL
================================================== */
main.container h1 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 12px;
}

main.container p {
    max-width: 720px;
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* ==================================================
   IMAGENS
================================================== */
main.container img {
    max-width: 100%;
    border-radius: 12px;
    margin: 16px 0;
}

/* ==================================================
   CARDS (posts, ebooks, etc)
================================================== */
.card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

/* ==================================================
   FOOTER
================================================== */
.site-footer {
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: auto;
}

.site-footer p,
.site-footer a {
    color: var(--text-muted);
}

.site-footer a:hover {
    color: var(--text-main);
}
/* ===============================
   POSTS / NOTÍCIAS – IMAGENS
================================ */
.post-content img,
.news-content img,
main.container img {
    max-width: 720px;      /* largura máxima no desktop */
    width: 100%;
    height: auto;
    display: block;
    margin: 24px auto;     /* centraliza */
    border-radius: 12px;
}

/* ===============================
   EBOOKS – CAPAS
================================ */
.ebook-cover img {
    max-width: 220px;     /* tamanho ideal de capa */
    width: 100%;
    height: auto;
    margin: 0 auto 16px;
    display: block;
    border-radius: 10px;
}

/* ===============================
   EBOOKS – GRID PRINCIPAL
================================ */
.ebooks-section {
    margin-top: 48px;
}

.ebooks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
}

/* Card do ebook */
.ebook-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ebook-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 40px rgba(0,0,0,0.4);
}

/* Capa */
.ebook-card .ebook-cover img {
    max-width: 180px;
    margin: 0 auto 16px;
}

/* Título */
.ebook-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

/* Preço */
.ebook-price {
    font-weight: 600;
    color: var(--blue-main);
    margin-bottom: 12px;
}

/* ===============================
   EBOOKS – LANÇAMENTOS
================================ */
.ebooks-featured {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-bottom: 64px;
}

.ebook-featured {
    display: flex;
    gap: 24px;
    align-items: center;
    background: linear-gradient(135deg, #020617, #020617);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 24px;
}

.ebook-featured img {
    max-width: 160px;
}

.ebook-featured h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}
/* ===============================
   EBOOK HERO (LAYOUT PRINCIPAL)
================================ */
.ebook-featured {
    max-width: 720px;
    margin: 0 auto 64px;
    text-align: center;
    padding: 40px;
}

.ebook-featured .ebook-cover img {
    max-width: 220px;
    margin: 0 auto 24px;
}

.ebook-featured h3 {
    font-size: 1.6rem;
    margin-bottom: 12px;
}

.ebook-featured p {
    max-width: 560px;
    margin: 0 auto 20px;
}

.ebook-price {
    font-size: 1.2rem;
    margin-bottom: 20px;
}
/* ===============================
   HOME – CARROSSEL
================================ */
.home-carousel {
    margin-bottom: 64px;
}

.home-carousel .swiper {
    width: 100%;
    height: 480px;
    border-radius: 20px;
    overflow: hidden;
}

.slide-dark {
    position: relative;
}

.slide-dark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4);
}

.slide-content {
    position: absolute;
    bottom: 48px;
    left: 48px;
    max-width: 520px;
}

.slide-tag {
    display: inline-block;
    background: var(--blue-main);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    margin-bottom: 12px;
}

.slide-content h2 {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.slide-content p {
    margin-bottom: 20px;
}

/* ===============================
   HOME – SEÇÕES
================================ */
.home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.home-card {
    background: var(--bg-card);
    padding: 28px;
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-main);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}
/* ===============================
   BADGE "NOVO"
================================ */
.badge-new {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #22c55e; /* verde moderno */
    color: #020617;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 10;
}
/* Layout em Grid para o Topo */
.hero-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr; /* Carrossel maior que o vídeo */
    gap: 30px;
    align-items: stretch;
    margin-top: 40px;
}

/* Container do Vídeo */
.video-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 480px; /* Mesma altura do carrossel */
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(34, 197, 94, 0.8);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    color: #fff;
    font-weight: bold;
}