/* =================================
   GOOGLE FONTS E VARIÁVEIS
================================= */

/* Importando Open Sans (texto) e Lora (títulos editoriais) */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,600;0,700;1,400&family=Open+Sans:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
:root {
    --bg-page: #f8f9fa; /* Clareado levemente para um visual mais clean */
    --text-navy: #0f1c2e;
    --font-sans: 'Inter', Arial, Helvetica, sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --font-heading: 'Open Sans', sans-serif; /* 'Lora', serif; */

    /* categorias */
    --cat-esporte: #0f6806;
    --cat-cultura: #e87132;
    --cat-eventos: #32aeec;
    --cat-historia: #43a931;
    --cat-talentos: #e51313;
}

.esporte { background: var(--cat-esporte); }
.cultura { background: var(--cat-cultura); }
.eventos { background: var(--cat-eventos); }
.historia { background: var(--cat-historia); }
.talentos { background: var(--cat-talentos); }

/* =================================
   BASE E TIPOGRAFIA
================================= */

body {
    font-family: var(--font-body);
    background: var(--bg-page);
    color: #4b5563;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased; /* Melhora a renderização da fonte */
}

/* =================================
   BASE E TIPOGRAFIA (CORRIGIDO)
================================= */

h1, h2, h3, h4, h5, h6,
.card-title-modern,
.card-title-premium,
.category-title,
.editorial-title, /* Adicionado aqui */
.post-content h2, /* Adicionado para títulos internos */
.post-content h3 {
    font-family: var(--font-heading) !important; /* !important garante a aplicação */
    font-weight: 800;
    letter-spacing: -0.02em; /* Ajuste opcional para a Inter ficar mais elegante */
}

.page-bg {
    background: var(--bg-page);
    min-height: 100vh;
}

a {
    color: var(--text-navy);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--cat-cultura);
}

img {
    max-width: 100%;
    height: auto;
}

/* =================================
   HEADER E NAVEGAÇÃO
================================= */

.bg-dark {
    background: linear-gradient(90deg, #0f172a, #1e293b) !important;
    font-size: 13px;
}

header {
    background: #fff;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 20px rgba(0,0,0,.03);
}

header .nav-link {
    font-family: var(--font-body);
    font-weight: 600;
    color: #1f2937;
    margin-left: 14px;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

header .nav-link:hover {
    color: var(--cat-cultura);
}

.navbar .form-control {
    width: 170px;
    border-radius: 30px; /* Bordas mais arredondadas (premium) */
    border: 1px solid #e5e7eb;
    padding-left: 1.2rem;
    transition: all 0.3s ease;
}

.navbar .form-control:focus {
    border-color: var(--cat-cultura);
    box-shadow: 0 0 0 0.2rem rgba(232, 113, 50, 0.15);
    width: 200px; /* Expande levemente ao focar */
}

/* =================================
   HERO (DESTAQUE PRINCIPAL)
================================= */

.hero-section {
    position: relative;
    width: 100%;
    height: 480px;
    overflow: hidden;
}

.hero-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 10s ease; /* Animação super lenta e premium */
}

.hero-section:hover img {
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.8));
}

/* =================================
   BOTÕES DE CATEGORIA
================================= */

.categoria-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    font-weight: 600;
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    transition: all 0.3s ease;
    border: none;
}

.categoria-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,.15);
    color: #fff;
    filter: brightness(1.1); /* Deixa a cor mais viva no hover */
}

.categoria-btn i {
    font-size: 18px;
}

/* =================================
   CARDS (HOME E CATEGORIAS)
================================= */

.card-modern, .card-category-premium, .card-search {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 6px rgba(0,0,0,.04);
}

.card-modern:hover, .card-category-premium:hover, .card-search:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,.1);
}

/* =================================
   IMAGENS (CORRIGIDO)
================================= */

/* REMOVE ZOOM E AJUSTA CORTE */
.card-modern img,
.card-category-premium img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center; /* 🔥 PRIORIDADE NO TOPO */
    transition: none; /* remove zoom */
}

/* REMOVE EFEITO ZOOM */
.card-modern:hover img,
.card-category-premium:hover img {
    transform: none;
}

/* WRAPPER MAIS INTELIGENTE */
.img-wrapper {
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    background: #e5e7eb; /* evita fundo feio caso imagem não preencha */
}

/* =================================
   ALTURAS DAS IMAGENS (AJUSTADAS)
================================= */

/* PRINCIPAL → mantém destaque sem cortar rosto */
.card-main img {
    height: 420px;
    object-position: top center;
}

/* LATERAIS → menos agressivo */
.card-side img {
    height: 180px;
    object-position: top center;
}

/* CARD VERTICAL */
.card-side-vertical img {
    height: 350px;
    object-position: top center;
}

/* CATEGORIA */
.card-category img {
    height: 160px;
    object-position: top center;
}

/* FEATURED */
.featured-card img {
    height: 420px;
    object-position: top center;
}

/* PADRÃO */
.standard-card img {
    height: 190px;
    object-position: top center;
}

/* =================================
   HERO (OPCIONAL MELHORIA)
================================= */

.hero-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top; /* 🔥 evita cortar topo importante */
    transition: none; /* remove zoom */
}

.hero-section:hover img {
    transform: none;
}

.standard-card .card-title-premium, .card-title-modern {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.meta-text {
    font-size: 0.85rem;
    color: #6B7280;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =================================
   BADGES (ETIQUETAS)
================================= */

.badge, .badge-category {
    font-family: var(--font-body);
    font-size: 11px;
    padding: 6px 12px;
    border-radius: 20px; /* Estilo pílula */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-category {
    color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* =================================
   CABEÇALHOS DE SEÇÃO E EDITORIAL
================================= */

.category-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #111827;
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 2rem;
}

.category-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background: var(--category-color, var(--cat-cultura));
    border-radius: 2px;
}

.category-header-editorial {
    padding: 5rem 0 4rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    text-align: center;
    background: #fff; /* Destaca o cabeçalho se o fundo da página for cinza */
}

.editorial-label {
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 700;
    color: #6B7280;
    margin-bottom: 1.5rem;
    display: block;
}

.editorial-title {
    font-size: 3.8rem;
    font-weight: 700;
    color: var(--text-navy);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.editorial-title .accent-dot {
    color: var(--cat-color-dynamic, var(--cat-cultura));
}

.editorial-desc {
    font-family: var(--font-body);
    font-size: 1.25rem;
    color: #4B5563;
    max-width: 750px;
    margin: 0 auto;
    font-weight: 300;
}

/* =================================
   PÁGINA INTERNA DO POST
================================= */

.post-subtitle {
    font-size: 1.25rem;
    color: #4B5563;
    line-height: 1.7;
    font-weight: 300;
    margin-bottom: 2rem;
}

.post-content {
    font-size: 1.15rem;
    color: #1f2937;
    line-height: 1.9;
    font-family: var(--font-body);
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content h2,
.post-content h3,
.post-content h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-navy);
}

.post-content img {
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 8px 25px rgba(0,0,0,.08);
}

/* =================================
   RODAPÉ PREMIUM (TURISMO/NOTÍCIAS)
================================= */

.footer-premium {
    background: linear-gradient(to right, #111827, #1f2937) !important;
    color: #9ca3af;
    font-family: var(--font-body);
    position: relative;
    border-top: 4px solid var(--cat-cultura); /* Linha de destaque no topo do footer */
}

.footer-premium h6 {
    font-family: var(--font-body); /* Mantém sans-serif para UI do footer */
    color: #f3f4f6;
}

.footer-premium p.text-light {
    color: #d1d5db !important;
}

.footer-premium .footer-link {
    color: #9ca3af;
    transition: color 0.3s ease, padding-left 0.3s ease;
    display: inline-block;
}

.footer-premium .footer-link:hover {
    color: #ffffff !important;
    padding-left: 6px;
    text-decoration: none;
}

.tracking-wider {
    letter-spacing: 1.5px;
}

.footer-premium .btn-outline-secondary {
    border-color: #4b5563;
    transition: all 0.3s ease;
}

.footer-premium .btn-outline-secondary:hover {
    background-color: #f59e0b; /* Amarelo/Laranja Cultura */
    border-color: #f59e0b;
    transform: translateY(-3px);
}

.footer-premium .btn-outline-secondary:hover i {
    color: #111827 !important;
}

.footer-premium form .form-control:focus {
    border-color: #f59e0b;
    box-shadow: none;
}

/* =================================
   RESPONSIVIDADE
================================= */

@media(max-width: 992px) {
    .card-modern img, .card-category-premium img {
        height: 220px;
    }
    .hero-section {
        height: 400px;
    }
}

@media(max-width: 768px) {
    .hero-section {
        height: 350px;
        border-radius: 0;
    }

    .category-title {
        font-size: 1.8rem;
    }

    .editorial-title {
        font-size: 2.5rem;
    }

    .editorial-desc {
        font-size: 1.1rem;
    }
}

.group-hover:hover .transition-transform {
    transform: scale(1.1);
}
.transition-transform {
    transition: transform 0.4s ease;
}

/* GALERIA */
.gallery-item {
    overflow: hidden;
    border-radius: 12px;
    background: #f3f4f6;
    cursor: pointer;
}

.gallery-thumb {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-thumb {
    transform: scale(1.03);
}

/* MODAL FULLSCREEN */
.gallery-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

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

.gallery-modal img {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 12px;
}

/* BOTÕES */
.gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: #fff;
    background: rgba(0,0,0,0.4);
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
}

.gallery-prev { left: 20px; }
.gallery-next { right: 20px; }

.gallery-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: #fff;
    background: none;
    border: none;
}

/* CONTADOR */
.gallery-counter {
    position: absolute;
    bottom: 20px;
    color: #fff;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* =================================
   BLOCKQUOTE (ESTILO JORNALÍSTICO PREMIUM)
================================= */

.post-content blockquote {
    position: relative;
    margin: 2.5rem 0;
    padding: 1.5rem 1.5rem 1.5rem 2rem;

    background: #f9fafb;
    border-left: 4px solid var(--cat-cultura);

    border-radius: 8px;

    font-size: 1.15rem;
    line-height: 1.8;
    font-style: italic;
    color: #374151;

    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

/* ASPAS DECORATIVA */
.post-content blockquote::before {
    content: "“";
    position: absolute;
    top: -10px;
    left: 10px;

    font-size: 3.5rem;
    color: var(--cat-cultura);
    opacity: 0.2;
    font-weight: 800;
}

/* TEXTO INTERNO */
.post-content blockquote p {
    margin: 0;
}

/* AUTOR DA CITAÇÃO */
.post-content blockquote footer {
    margin-top: 1rem;
    font-size: 0.85rem;
    font-style: normal;
    color: #6b7280;
    font-weight: 600;
}

/* LINHA ANTES DO AUTOR */
.post-content blockquote footer::before {
    content: "— ";
}

/* VARIAÇÃO: DESTAQUE FORTE */
.post-content blockquote.highlight {
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    border-left: 4px solid #f97316;
}

/* VARIAÇÃO: ESCURO (opcional) */
.post-content blockquote.dark {
    background: #111827;
    color: #e5e7eb;
    border-left: 4px solid var(--cat-cultura);
}

.post-content blockquote.dark::before {
    color: #fff;
    opacity: 0.1;
}
