/* ===========================================================
   Carioca Travels — Tema Publii
   Identidade: indigo -> roxo, Raleway (títulos) + Inter (texto)
   =========================================================== */

:root {
    --primary: #4F46E5;
    --primary-dark: #4338CA;
    --primary-light: #6366F1;
    --secondary: #9333EA;
    --brand-gradient: linear-gradient(135deg, #4F46E5 0%, #9333EA 100%);
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-700: #374151;
    --black: #111827;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--gray-700);
    background: var(--gray-50);
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--black);
    font-weight: 600;
    letter-spacing: -0.5px;
    line-height: 1.25;
}

a { color: inherit; text-decoration: none; transition: all 0.3s ease; }
img { max-width: 100%; display: block; }

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

/* ===== NAVBAR ===== */
.navbar {
    position: sticky;
    top: 0;
    background: var(--white);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    z-index: 100;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 18px;
    color: var(--primary);
}

.logo-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--brand-gradient);
    display: inline-block;
}

.logo-text { letter-spacing: 1px; }
.logo-icon { height: 36px; width: auto; display: block; }

/* ===== BARRA DE CATEGORIAS (tags) ===== */
.blog-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 36px;
}

.blog-cat {
    padding: 8px 18px;
    border: 2px solid var(--gray-200);
    border-radius: 24px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    background: var(--white);
    transition: all 0.2s ease;
}

.blog-cat:hover { border-color: var(--primary); color: var(--primary); }
.blog-cat.is-current { background: var(--primary); border-color: var(--primary); color: #fff; }

.navbar-menu { display: flex; gap: 28px; }

.nav-link {
    color: var(--gray-700);
    font-weight: 500;
}

.nav-link:hover { color: var(--primary); }

.btn-primary-navbar {
    background: var(--primary);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
}

.btn-primary-navbar:hover { background: var(--primary-dark); transform: translateY(-2px); }

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 26px;
    color: var(--primary);
    line-height: 1;
}

/* ===== PAGE HERO ===== */
.page-hero {
    background: var(--brand-gradient);
    color: var(--white);
    text-align: center;
    padding: 70px 20px;
}

.page-hero h1 { color: var(--white); font-size: 40px; margin-bottom: 12px; }
.page-hero p { font-size: 17px; opacity: 0.95; }

/* ===== LISTAGEM DE POSTS ===== */
.main-content { padding-top: 60px; padding-bottom: 70px; }

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}

.post-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
}

.post-card-link { display: flex; flex-direction: column; height: 100%; }

.post-card-image {
    height: 200px;
    background: var(--brand-gradient);
}

.post-card-image img { width: 100%; height: 100%; object-fit: cover; }

.post-card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }

.post-card-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 12px;
    color: var(--gray-400);
    margin-bottom: 12px;
}

.post-card-tag {
    background: var(--gray-100);
    color: var(--primary);
    padding: 2px 10px;
    border-radius: 20px;
    font-weight: 600;
}

.post-card-body h2 { font-size: 19px; margin-bottom: 10px; color: var(--black); }

.post-card-body p { font-size: 14px; color: var(--gray-700); margin-bottom: 16px; flex: 1; }

.post-card-readmore { color: var(--primary); font-weight: 600; font-size: 14px; }

/* ===== PAGINAÇÃO ===== */
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    align-items: center;
    margin: 48px auto 0;
    max-width: 1100px;
    padding: 0 20px;
}

.pagination__item {
    min-width: 40px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--gray-200);
    color: var(--gray-700);
    font-size: 14px;
    text-align: center;
    background: var(--white);
    transition: all 0.2s ease;
}

.pagination__item:hover { border-color: var(--primary); color: var(--primary); }

.pagination__item.is-current {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    font-weight: 700;
}

.pagination__nav { font-weight: 600; }

/* ===== POST / PÁGINA ===== */
.post { max-width: 760px; padding-top: 60px; padding-bottom: 40px; }

.post-header { text-align: center; margin-bottom: 32px; }

.post-meta {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    font-size: 13px;
    color: var(--gray-400);
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.post-header h1 { font-size: 38px; }

.post-cover {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 36px;
    max-height: 460px;
}

.post-cover img { width: 100%; height: 100%; object-fit: cover; }

.post-content { font-size: 17px; color: #1f2937; }

.post-content p { margin-bottom: 22px; }
.post-content h2 { font-size: 28px; margin: 40px 0 16px; }
.post-content h3 { font-size: 22px; margin: 32px 0 14px; }
.post-content ul, .post-content ol { margin: 0 0 22px 24px; }
.post-content li { margin-bottom: 8px; }
.post-content img { border-radius: 12px; margin: 24px 0; }
.post-content a { color: var(--primary); text-decoration: underline; }
.post-content blockquote {
    border-left: 4px solid var(--primary);
    background: var(--gray-50);
    padding: 16px 20px;
    margin: 24px 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

/* ===== CTA FINAL ===== */
.post-cta-wrap { padding-bottom: 70px; }

.final-cta {
    background: var(--brand-gradient);
    color: var(--white);
    text-align: center;
    border-radius: 16px;
    padding: 50px 30px;
}

.final-cta h2 { color: var(--white); font-size: 30px; margin-bottom: 22px; }

.btn-cta, .btn-primary {
    display: inline-block;
    background: var(--white);
    color: var(--primary);
    padding: 16px 40px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 17px;
}

.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(0,0,0,0.2); }

.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); }

/* ===== RELACIONADOS ===== */
.related-wrap { padding-bottom: 70px; }
.related-title { font-size: 24px; margin-bottom: 24px; text-align: center; }

/* ===== 404 ===== */
.error-content { text-align: center; padding: 90px 20px; }
.error-content h1 { font-size: 72px; color: var(--primary); }
.error-content p { margin: 12px 0 24px; }

/* ===== FOOTER ===== */
.site-footer {
    background: var(--black);
    color: var(--white);
    padding: 48px 20px 24px;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto 28px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.footer-section h4 {
    color: var(--white);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}

.footer-section p { color: var(--gray-300); font-size: 13px; margin-bottom: 6px; }

.footer-menu { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.footer-menu .nav-link { color: var(--gray-300); font-size: 13px; }
.footer-menu .nav-link:hover { color: var(--primary-light); }

.footer-bottom {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
    padding-top: 22px;
    border-top: 1px solid var(--gray-700);
    font-size: 12px;
    color: var(--gray-400);
}

/* ===== WHATSAPP FLUTUANTE ===== */
.floating-whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.45);
    z-index: 999;
    transition: transform 0.3s ease;
}

.floating-whatsapp::before {
    content: "";
    width: 32px;
    height: 32px;
    background-color: var(--white);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M.057 24l1.687-6.163c-1.041-1.804-1.588-3.849-1.587-5.946.003-6.556 5.338-11.891 11.893-11.891 3.181.001 6.167 1.24 8.413 3.488 2.245 2.248 3.481 5.236 3.48 8.414-.003 6.557-5.338 11.892-11.893 11.892-1.99-.001-3.951-.5-5.688-1.448l-6.305 1.654zm6.597-3.807c1.676.995 3.276 1.591 5.392 1.592 5.448 0 9.886-4.434 9.889-9.885.002-5.462-4.415-9.89-9.881-9.892-5.452 0-9.887 4.434-9.889 9.884-.001 2.225.651 3.891 1.746 5.634l-.999 3.648 3.742-.981zm11.387-5.464c-.074-.124-.272-.198-.57-.347-.297-.149-1.758-.868-2.031-.967-.272-.099-.47-.149-.669.149-.198.297-.768.967-.941 1.165-.173.198-.347.223-.644.074-.297-.149-1.255-.462-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.297-.347.446-.521.151-.172.2-.296.3-.495.099-.198.05-.372-.025-.521-.075-.148-.669-1.611-.916-2.206-.242-.579-.487-.501-.669-.51l-.57-.01c-.198 0-.52.074-.792.372s-1.04 1.016-1.04 2.479 1.065 2.876 1.213 3.074c.149.198 2.095 3.2 5.076 4.487.709.306 1.263.489 1.694.626.712.226 1.36.194 1.872.118.571-.085 1.758-.719 2.006-1.413.248-.695.248-1.29.173-1.414z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M.057 24l1.687-6.163c-1.041-1.804-1.588-3.849-1.587-5.946.003-6.556 5.338-11.891 11.893-11.891 3.181.001 6.167 1.24 8.413 3.488 2.245 2.248 3.481 5.236 3.48 8.414-.003 6.557-5.338 11.892-11.893 11.892-1.99-.001-3.951-.5-5.688-1.448l-6.305 1.654zm6.597-3.807c1.676.995 3.276 1.591 5.392 1.592 5.448 0 9.886-4.434 9.889-9.885.002-5.462-4.415-9.89-9.881-9.892-5.452 0-9.887 4.434-9.889 9.884-.001 2.225.651 3.891 1.746 5.634l-.999 3.648 3.742-.981zm11.387-5.464c-.074-.124-.272-.198-.57-.347-.297-.149-1.758-.868-2.031-.967-.272-.099-.47-.149-.669.149-.198.297-.768.967-.941 1.165-.173.198-.347.223-.644.074-.297-.149-1.255-.462-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.297-.347.446-.521.151-.172.2-.296.3-.495.099-.198.05-.372-.025-.521-.075-.148-.669-1.611-.916-2.206-.242-.579-.487-.501-.669-.51l-.57-.01c-.198 0-.52.074-.792.372s-1.04 1.016-1.04 2.479 1.065 2.876 1.213 3.074c.149.198 2.095 3.2 5.076 4.487.709.306 1.263.489 1.694.626.712.226 1.36.194 1.872.118.571-.085 1.758-.719 2.006-1.413.248-.695.248-1.29.173-1.414z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.floating-whatsapp:hover { transform: scale(1.1); }

/* ===== RESPONSIVO ===== */
@media (max-width: 768px) {
    .navbar-toggle { display: block; }

    .navbar-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: var(--white);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
        padding: 8px 0;
    }

    .navbar-menu.open { display: flex; }
    .navbar-menu .nav-link { padding: 14px 20px; border-bottom: 1px solid var(--gray-100); }

    .btn-primary-navbar { display: none; }

    .page-hero { padding: 50px 16px; }
    .page-hero h1 { font-size: 30px; }

    .main-content { padding-top: 40px; padding-bottom: 50px; }
    .posts-grid { grid-template-columns: 1fr; gap: 20px; }

    .post-header h1 { font-size: 28px; }
    .post-content { font-size: 16px; }

    .footer-content { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 480px) {
    .floating-whatsapp { width: 50px; height: 50px; font-size: 0; bottom: 16px; right: 16px; }
}
