:root {
    --bg-dark: #04090e;
    --bg-card-dark: #07131d;
    --accent: #1edadc;
    --accent-dark: #00b4b8;
    --text-white: #ffffff;
    --text-body: #c3d2d9;
    --text-muted: #95afba;
    --border-dark: rgba(255, 255, 255, 0.08);
    --border-teal: rgba(40, 202, 184, 0.28);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg-dark);
    color: var(--text-body);
    font-family: 'Kanit', Arial, sans-serif;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }

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

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- NAVBAR --- */
.navbar-wrap {
    position: sticky;
    top: 16px;
    z-index: 50;
    display: flex;
    justify-content: center;
    padding: 0 16px;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    max-width: 1100px;
    padding: 10px 12px 10px 24px;
    background: rgba(7, 9, 14, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
    border-radius: 9999px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}

.nav-logo img { height: 34px; width: auto; }

.nav-actions { display: flex; align-items: center; gap: 18px; }

.nav-back {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    transition: color 0.25s ease;
}

.nav-back:hover { color: var(--text-white); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-links a {
    font-family: 'Sora', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    padding: 6px 0;
    transition: color 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active { color: var(--accent); }

.nav-toggle {
    display: none;
    padding: 6px;
    background: none;
    border: none;
    color: var(--text-white);
    cursor: pointer;
}

.nav-toggle svg { display: block; }

@media (max-width: 960px) {
    .nav-links { display: none; }
    .nav-toggle { display: block; }
    .navbar { flex-wrap: wrap; row-gap: 0; border-radius: 28px; }

    .navbar.menu-open .nav-links {
        order: 3;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
        margin: 6px 0 4px;
        padding: 8px 0 0;
        border-top: 1px solid #232d33;
    }

    .navbar.menu-open .nav-links a {
        display: block;
        padding: 13px 4px;
        font-size: 16px;
        color: var(--text-white);
    }

    .navbar.menu-open .nav-links a.active { color: var(--accent); }

    .nav-toggle .icon-close { display: none; }
    .navbar.menu-open .nav-toggle .icon-open { display: none; }
    .navbar.menu-open .nav-toggle .icon-close { display: block; }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 26px;
    border-radius: 9999px;
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    background: linear-gradient(135deg, #1edadc 0%, #00b4b8 100%);
    color: #031518;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

/* --- CABEÇALHO DO POST --- */
.post-header {
    max-width: 820px;
    margin: 0 auto;
    padding: 90px 20px 40px;
}

.post-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.post-breadcrumb a { color: var(--text-muted); text-decoration: none; }
.post-breadcrumb a:hover { color: var(--accent); }

.post-tag {
    display: block;
    font-family: 'Sora', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 16px;
}

.post-title {
    font-family: 'Sora', sans-serif;
    font-size: clamp(30px, 4.6vw, 50px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: var(--text-white);
    margin: 0 0 22px;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    font-size: 15px;
    color: var(--text-muted);
}

.post-cover {
    max-width: 1000px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

.post-cover img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 22px;
    border: 1px solid var(--border-dark);
}

/* --- CORPO DO POST --- */
.post-body {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 20px 80px;
    font-size: 18px;
    line-height: 1.8;
}

.post-body p { margin: 0 0 1.3em; }

.post-body strong { color: var(--text-white); font-weight: 500; }

.post-body h2,
.post-body h3 {
    font-family: 'Sora', sans-serif;
    color: var(--text-white);
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.post-body h2 { font-size: clamp(24px, 3vw, 30px); margin: 1.6em 0 0.7em; }
.post-body h3 { font-size: clamp(19px, 2.4vw, 22px); margin: 1.5em 0 0.6em; }

.post-body ul,
.post-body ol { margin: 0 0 1.4em; padding-left: 1.3em; }

.post-body li { margin-bottom: 0.55em; }
.post-body li::marker { color: var(--accent); }

.post-body hr {
    border: none;
    height: 1px;
    background: var(--border-dark);
    margin: 2.4em 0;
}

/* --- CTA --- */
.post-cta {
    max-width: 820px;
    margin: 0 auto 90px;
    padding: 0 20px;
}

.post-cta-box {
    padding: 44px 40px;
    border-radius: 22px;
    background: linear-gradient(135deg, #0a333e 0%, #07131d 100%);
    border: 1px solid var(--border-teal);
}

.post-cta-box h2 {
    font-family: 'Sora', sans-serif;
    font-size: clamp(22px, 3vw, 30px);
    color: var(--text-white);
    line-height: 1.2;
    margin: 0 0 12px;
}

.post-cta-box p { font-size: 17px; margin: 0 0 26px; }

/* --- LEIA TAMBÉM --- */
.related {
    padding: 80px 0 100px;
    border-top: 1px solid var(--border-dark);
}

.related-title {
    font-family: 'Sora', sans-serif;
    font-size: clamp(24px, 3vw, 32px);
    color: var(--text-white);
    margin: 0 0 32px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card-dark);
    border: 1px solid var(--border-dark);
    border-radius: 22px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.related-card:hover { transform: translateY(-4px); border-color: var(--border-teal); }

.related-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

.related-card-body { padding: 20px 22px 24px; }

.related-card .post-tag { font-size: 12px; margin-bottom: 10px; }

.related-card h3 {
    font-family: 'Sora', sans-serif;
    font-size: 17px;
    line-height: 1.35;
    color: var(--text-white);
    margin: 0;
}

/* --- FOOTER --- */
.footer {
    border-top: 1px solid var(--border-dark);
    padding: 32px 0;
    font-size: 14px;
    color: var(--text-muted);
}

.footer .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
}

.footer a { color: var(--text-muted); text-decoration: none; }
.footer a:hover { color: var(--accent); }

@media (max-width: 860px) {
    .related-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .navbar { padding: 8px 8px 8px 18px; }
    .nav-logo img { height: 28px; }
    .nav-back { display: none; }
    .btn { padding: 10px 18px; font-size: 13px; }
    .post-header { padding-top: 60px; }
    .post-body { font-size: 17px; }
    .post-cta-box { padding: 32px 24px; }
}
