:root {
    --jornada-magica: #7452A2;
    --chegada-vibrante: #F60896;
    --voo-noturno: #190030;
    --sinal-verde: #C1FF72;
    --alvorada: #F1E2FF;
    --nuvem: #FBFAFF;
    --grafite: #625E6D;
}

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.font-cursive {
    font-family: 'Dancing Script', cursive;
}

.font-serif {
    font-family: 'Playfair Display', serif;
}

.gradient-text {
    background: linear-gradient(135deg, var(--jornada-magica), var(--chegada-vibrante));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Solução Robusta de Contraste para o Hero */
.hero-highlight-simples {
    display: inline-block;
    filter:
        /* Camada 1: Aura clara para "descolar" do fundo escuro da foto */
        drop-shadow(0 0 2px rgba(251, 250, 255, 0.9)) drop-shadow(0 0 8px rgba(251, 250, 255, 0.4))
        /* Camada 2: Sombra Voo Noturno para profundidade e autoridade */
        drop-shadow(0 12px 20px rgba(25, 0, 48, 1));
}

/* ============================================================
   GRID DE POSTS (12 COLUNAS) - CORRIGIDO
   ============================================================ */

.post-grid-container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
    align-items: start;
    /* Alinha ao topo para evitar esticar */
    /* REMOVIDO 'dense' para respeitar a ordem estrita e permitir espaços em branco */
    grid-auto-flow: row;
}

.block-full {
    grid-column: 1 / -1;
    /* Ocupa todas as 12 colunas */
}

/* Em Desktop (lg), forçamos a posição */
@media (min-width: 1024px) {
    .block-left {
        grid-column: 1 / span 6;
        /* Começa na 1, ocupa 6 */
    }

    .block-right {
        grid-column: 7 / span 6;
        /* Começa na 7, ocupa 6 */
    }
}

/* Em Mobile/Tablet, tudo vira coluna única */
@media (max-width: 1023px) {

    .block-left,
    .block-right {
        grid-column: 1 / -1;
    }

    .post-grid-container {
        gap: 1.5rem;
    }
}

/* ============================================================
   ESTILOS DOS MODELOS DE POST (TEMPLATES)
   ============================================================ */

.template-news #post-main-image {
    display: block;
    width: 100%;
    height: auto;
    border: 12px solid white;
    border-radius: 3rem;
    box-shadow: 0 25px 50px -12px rgba(25, 0, 48, 0.15);
    margin-bottom: 4rem;
}

.template-immersive {
    background-color: white;
}

.template-immersive #post-container {
    max-width: 1200px !important;
}

.template-immersive #post-main-image {
    display: block;
    width: 100%;
    height: 70vh;
    object-fit: cover;
    border-radius: 2.5rem;
    margin-bottom: 4rem;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.25);
}

.template-immersive #post-title {
    text-align: center;
    font-style: italic;
    letter-spacing: -0.05em;
}

.template-review #post-title {
    border-left: 12px solid var(--chegada-vibrante);
    padding-left: 2rem;
    text-align: left;
}

.template-review #post-main-image {
    width: 100%;
    height: auto;
    border-radius: 2.5rem;
    margin-bottom: 3rem;
}

.template-review .tip-card {
    background: white !important;
    border: 2px solid var(--jornada-magica);
    box-shadow: 12px 12px 0px var(--alvorada);
    transform: rotate(-0.5deg);
}

/* ============================================================
   COMPONENTE DO AUTOR E COMENTÁRIOS
   ============================================================ */

.author-info-container {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem 0;
    margin-bottom: 2.5rem;
    border-top: 1px solid rgba(25, 0, 48, 0.08);
    border-bottom: 1px solid rgba(25, 0, 48, 0.08);
}

.author-avatar-img {
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    min-height: 56px !important;
    max-width: 56px !important;
    max-height: 56px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 2px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    flex-shrink: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.author-text-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.comment-bubble {
    background: white;
    border-radius: 2rem;
    padding: 1.25rem 1.5rem;
    border: 1px solid rgba(25, 0, 48, 0.05);
    box-shadow: 0 10px 30px -10px rgba(25, 0, 48, 0.05);
    transition: transform 0.3s ease;
}

.comment-bubble:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px -15px rgba(25, 0, 48, 0.1);
}

.comment-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-google-login {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: white;
    color: var(--voo-noturno);
    border: 1px solid #e2e8f0;
    border-radius: 1.5rem;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.btn-google-login:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

/* ============================================================
   HEADER E NAVEGAÇÃO DINÂMICA
   ============================================================ */

site-header header {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

site-header header nav a,
site-header header #mobile-toggle {
    color: white;
    transition: all 0.3s ease;
}

.hub-anchor-link {
    color: var(--sinal-verde) !important;
    position: relative;
    padding-right: 1.5rem;
    margin-right: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    filter: drop-shadow(0 0 8px rgba(193, 255, 114, 0.2));
}

.hub-anchor-link::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    bottom: 20%;
    width: 1px;
    background: rgba(255, 255, 255, 0.2);
}

header.light-mode:not(.scrolled) .hub-anchor-link::after {
    background: rgba(25, 0, 48, 0.1);
}

header.light-mode:not(.scrolled) .hub-anchor-link {
    color: var(--jornada-magica) !important;
    filter: none;
}

site-header header.scrolled {
    background: var(--voo-noturno);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    padding: 0.75rem 0;
}

/* Header Sólido - Para páginas que precisam de fundo escuro inicial (ex: Blog) */
site-header header.header-solid {
    background: var(--voo-noturno) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Correção: Aplica cor escura APENAS para links no nav Desktop */
header.light-mode:not(.scrolled) .hidden.xl\:flex nav a,
header.light-mode:not(.scrolled) #mobile-toggle {
    color: var(--voo-noturno);
}

/* Logo do Blog - Ajustes de Tamanho e Transição */
.header-logo-blog {
    height: 10rem !important;
    /* Muito maior inicialmente no desktop para ser imponente */
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: left center;
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.1));
}

@media (max-width: 1280px) {
    .header-logo-blog {
        height: 5rem !important;
        /* h-20 equivalente no mobile/tablet */
    }
}

header.scrolled .header-logo-blog {
    height: 3.5rem !important;
    /* h-14 equivalente ao scrollar */
    filter: none;
}

/* Pílulas de Ação */
.action-pill {
    padding: 0.55rem 1.25rem;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.action-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Cores das Pílulas - ATUALIZADO 2 */
.pill-blog {
    background-color: var(--sinal-verde);
    color: var(--voo-noturno) !important;
}

.pill-contact {
    background-color: var(--chegada-vibrante) !important;
    color: white !important;
}

.pill-user {
    background-color: #625E6D;
    color: white !important;
}

/* Globalmente alterado para #625E6D */

/* Menu Blog Específico */
.pill-site {
    background-color: #7452A2;
    color: white !important;
}

/* Simples Travel */
.pill-orlando {
    background-color: #190030;
    color: white !important;
}

/* Orlando */
.pill-shop {
    background-color: #F1E2FF;
    color: #7452A2 !important;
}

/* Compre Agora */

/* Ajustes Scrolled (Apenas no Site Principal, no Blog as cores são fixas) */
header.scrolled:not(.context-blog) .pill-blog {
    background-color: var(--sinal-verde);
    color: var(--voo-noturno) !important;
}

header.scrolled:not(.context-blog) .pill-contact {
    background-color: var(--chegada-vibrante);
    color: white !important;
}

header.scrolled:not(.context-blog) .pill-site {
    background-color: #7452A2;
    color: white !important;
}

header.scrolled:not(.context-blog) .pill-orlando {
    background-color: #190030;
    color: white !important;
}

header.scrolled:not(.context-blog) .pill-shop {
    background-color: #F1E2FF;
    color: #7452A2 !important;
}

/* In Blog context, maintain original branding colors even on scroll */
header.context-blog .pill-contact {
    background-color: #F60896 !important;
    color: white !important;
}

/* Critical visibility for Orlando pils on dark scrolled headers */
header.scrolled .pill-orlando {
    border: 1.5px solid #FBFAFF !important;
}

/* ============================================================
   COOKIE BANNER E MODAIS
   ============================================================ */

.cookie-banner {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    z-index: 100;
    background: rgba(25, 0, 48, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(241, 226, 255, 0.1);
    color: white;
    padding: 1.5rem;
    border-radius: 2rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    display: none;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-banner.show {
    display: flex;
    flex-direction: column;
    transform: translateY(0);
    opacity: 1;
}

@media (min-width: 768px) {
    .cookie-banner.show {
        flex-direction: row;
        align-items: center;
        max-width: 1000px;
        left: 50%;
        transform: translateX(-50%);
    }
}

.park-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    padding: 2rem 1rem;
    background: rgba(25, 0, 48, 0.85);
    backdrop-filter: blur(12px);
    overflow-y: auto;
    /* Correção de Scroll Mobile */
    align-items: flex-start;
    justify-content: center;
}

.park-modal.active {
    display: flex;
}

.park-modal-content {
    background: white;
    width: 100%;
    max-width: 800px;
    /* margin: auto garante centralização vertical automática quando há espaço, e scroll quando não há */
    margin: auto;
    border-radius: 2.5rem;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* Garante que conteúdo longo não quebre bordas */
    flex-shrink: 0;
}

.park-modal.active .park-modal-content {
    transform: scale(1);
    opacity: 1;
}

.modal-compact-content {
    font-size: 0.9rem;
    /* Approximating 90% of base size */
    transform-origin: top center;
    line-height: 1.4;
}

.modal-compact-content .p-8 {
    padding: 1.5rem !important;
    /* Reducing padding */
}

.modal-compact-content h3 {
    font-size: 1.5rem !important;
    margin-bottom: 1rem !important;
}

.modal-compact-content p {
    font-size: 0.85rem !important;
    margin-bottom: 1rem !important;
}

.modal-compact-content .grid {
    gap: 1rem !important;
}

.modal-compact-content .mt-12 {
    margin-top: 1.5rem !important;
}

/* Evolved Modal Components */
.modal-hero {
    position: relative;
    height: 300px;
    width: 100%;
    overflow: hidden;
    border-radius: 2.5rem 2.5rem 0 0;
}

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

.modal-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(25, 0, 48, 0.9), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 3rem;
}

.modal-complex-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
    /* Assume logos are dark, force white for hero */
}

.modal-park-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 3rem;
}

.modal-park-button {
    position: relative;
    height: 120px;
    border-radius: 1.5rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(25, 0, 48, 0.1);
}

.modal-park-button img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    /* Bastante transparência conforme solicitado */
    transition: transform 0.6s ease;
}

.modal-park-button:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.modal-park-button:hover img {
    opacity: 0.5;
    transform: scale(1.1);
}

.modal-park-button span {
    position: relative;
    z-index: 2;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--voo-noturno);
    font-size: 0.9rem;
    text-align: center;
    padding: 0 1rem;
}

.modal-presentation-text {
    padding: 0 3rem;
    margin-top: 2rem;
    font-size: 1.1rem;
    color: var(--grafite);
    line-height: 1.6;
}

/* ============================================================
   FORMATACAO RICA DE POSTS (QUILL + SANITY)
   ============================================================ */

.post-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--grafite);
    font-weight: 300;
    font-size: 1.15rem;
}

.post-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.25rem;
    font-weight: 900;
    margin: 3rem 0 1.5rem;
    color: var(--voo-noturno);
    line-height: 1.2;
}

.post-content h3 {
    font-family: 'Fira Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2.5rem 0 1rem;
    color: var(--jornada-magica);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.post-content img {
    width: 100%;
    height: auto;
    border-radius: 2.5rem;
    margin: 0 0 1rem 0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.post-content ul,
.post-content ol {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.post-content ul li {
    list-style-type: disc;
    margin-bottom: 0.75rem;
}

.post-content ol li {
    list-style-type: decimal;
    margin-bottom: 0.75rem;
}

.post-content blockquote {
    font-size: 1.5rem;
    font-style: italic;
    border-left: 6px solid var(--chegada-vibrante);
    padding-left: 2rem;
    margin: 3rem 0;
    color: var(--voo-noturno);
}

/* Alinhamento e Recuo */
.text-center {
    text-align: center !important;
}

.text-right {
    text-align: right !important;
}

.text-justify {
    text-align: justify !important;
}

/* Classes de recuo para Portable Text */
.indent-1 {
    padding-left: 3rem !important;
}

.indent-2 {
    padding-left: 6rem !important;
}

.indent-3 {
    padding-left: 9rem !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.reveal-hidden {
    opacity: 0;
}

.park-nav-container {
    background: white;
    border-top: 1px solid var(--alvorada);
    padding: 5rem 0;
}

.park-nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--nuvem);
    color: var(--jornada-magica);
    transition: all 0.3s ease;
    border: 1px solid rgba(116, 82, 162, 0.1);
}

.park-nav-link:hover {
    background: var(--jornada-magica);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(116, 82, 162, 0.2);
}

/* ============================================================
   EDITOR CROPPER (MODAL CUSTOM)
   ============================================================ */
.cropper-modal {
    background: #000000 !important;
}

.cropper-view-box,
.cropper-face {
    border-radius: 0;
}

.cropper-line,
.cropper-point {
    background-color: var(--chegada-vibrante);
}

.cropper-bg {
    background-image: none !important;
    background-color: #000 !important;
}