/*
Theme Name: Reportagem Global — Reportagem Global 3D
Theme URI: https://wordpress.org/themes/
Author: Reportagem Global
Description: Tema WordPress de notícias com planeta Terra 3D interativo na primeira seção (hero), iluminação direcional sincronizada com reflexos especulares oceânicos, objetos jornalísticos em órbita, cartões em perspectiva 3D, títulos em EB Garamond e texto em Montserrat.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: reportagem-global
Tags: news, 3d-hero, editorial, custom-logo, custom-colors, featured-images
*/

:root {
  --global-bg: #04153b;
  --global-card: #071a45;
  --global-navy: #04153B;
  --global-panel: rgba(4, 21, 59, 0.86);
  --global-border: rgba(56, 189, 248, 0.18);
  --global-ink: #f8fafc;
  --global-muted: #cbd5e1;
  --global-accent: #0077E6;
  --global-bright: #22D3EE;
  --global-crimson: #DC2626;
  --global-font-display: 'EB Garamond', Georgia, serif;
  --global-font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: var(--global-bg);
  color: var(--global-ink);
  font-family: var(--global-font-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.global-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.global-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Cabeçalho com identidade da logo */
.global-header {
  background: #ffffff;
  color: var(--global-navy);
}

.global-header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.75rem 0;
}

.global-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.global-brand-wordmark {
  height: 54px;
  width: auto;
  object-fit: contain;
}

.global-brand-logo {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(4, 21, 59, 0.15);
}

.global-brand-title {
  font-family: var(--global-font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--global-navy);
}

.global-brand-tagline {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  color: #475569;
}

.global-header .search-form {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.global-header .search-field {
  min-width: 190px;
  padding: 0.48rem 0.75rem;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: var(--global-navy);
  font-size: 0.8rem;
  font-family: inherit;
}

.global-header .search-field:focus {
  outline: 2px solid rgba(0, 87, 184, 0.28);
  border-color: var(--global-accent);
}

.global-header .search-submit {
  padding: 0.48rem 0.85rem;
  border-radius: 6px;
  border: none;
  background: var(--global-navy);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.global-header .search-submit:hover {
  background: var(--global-accent);
}

.global-signature-bar {
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--global-accent) 0%, var(--global-bright) 74%, var(--global-crimson) 74%, var(--global-crimson) 100%);
}

.global-nav {
  background: var(--global-navy);
  color: #ffffff;
  padding: 0.6rem 0;
}

.global-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #e2e8f0;
}

.global-nav a:hover {
  color: var(--global-bright);
}

/* PRIMEIRA SEÇÃO (Hero integrado ao tema) */
.global-hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(circle at 66% 44%, rgba(0, 87, 184, 0.22) 0%, rgba(56, 189, 248, 0.10) 36%, #020b24 74%);
  border-bottom: 1px solid var(--global-border);
}

.global-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

#global-3d-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.global-hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, #020b24 0%, rgba(2, 11, 36, 0.78) 38%, transparent 62%),
    linear-gradient(to top, #04153b 0%, transparent 18%);
}

.global-hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 3.5rem 0;
  pointer-events: none;
}

.global-hero-panel {
  max-width: 460px;
  pointer-events: auto;
}

.global-hero-panel h1 {
  font-family: var(--global-font-display);
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  line-height: 1.08;
  margin: 0.5rem 0 0.85rem;
}

/* Seções seguintes em fundo sólido editorial */
.global-grid-section {
  padding: 3rem 0 4rem;
  background-color: var(--global-bg);
}

.global-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.global-card {
  background: var(--global-card);
  border: 1px solid var(--global-border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1), border-color 180ms ease;
}

.global-card:hover {
  border-color: rgba(255, 255, 255, 0.32);
}

.global-card-thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #0a1120;
}

.global-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms ease;
}

.global-card:hover .global-card-thumb img {
  transform: scale(1.04);
}

.global-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.global-card-title {
  font-family: var(--global-font-display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.22;
  margin: 0.4rem 0 0.5rem;
}

.global-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.15rem;
  border-radius: 6px;
  background: var(--global-accent);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
}

.global-article {
  max-width: 820px;
  margin: 2.5rem auto;
  background: var(--global-card);
  border: 1px solid var(--global-border);
  border-radius: 12px;
  padding: 2.5rem;
}

.global-article h1 {
  font-family: var(--global-font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12;
  margin: 0.5rem 0 1rem;
}

@media (prefers-reduced-motion: reduce) {
  .global-card { transform: none !important; transition: none; }
}

@media (max-width: 1024px) {
  .global-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .global-hero {
    display: flex;
    flex-direction: column;
    min-height: auto;
  }
  .global-hero-bg {
    position: relative;
    height: 340px;
    width: 100%;
  }
  .global-hero-scrim {
    display: none;
  }
  .global-hero-content {
    padding: 1.5rem 0 2.5rem;
  }
  .global-hero-panel {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .global-container {
    padding: 0 1rem;
  }
  .global-brand-wordmark {
    height: 40px;
  }
  .global-header .search-form {
    width: 100%;
  }
  .global-header .search-field {
    min-width: 0;
    flex: 1;
  }
  .global-nav ul {
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 0.2rem;
    -webkit-overflow-scrolling: touch;
  }
  .global-hero-bg {
    height: 290px;
  }
  .global-grid {
    grid-template-columns: 1fr;
  }
  .global-btn {
    width: 100%;
    justify-content: center;
  }
  .global-article {
    margin: 1.25rem auto;
    padding: 1.25rem;
  }
}
