/* ==========================================================================
   GLOBAL HARMONY INITIATIVES — GHI NEWS 9.0
   OFFICIAL PUBLIC SITE DESIGN SYSTEM
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;800;900&family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  /* GHI NEWS 9.0 Official Color Palette */
  --ghi-emerald: #08783E;
  --ghi-emerald-deep: #064B2E;
  --ghi-emerald-secondary: #0B2519;
  --ghi-black: #080B09;
  --ghi-black-secondary: #111713;
  --ghi-surface: #151D18;
  --ghi-surface-elevated: #1B2620;
  --ghi-border: rgba(8, 120, 62, 0.35);
  --ghi-border-gold: rgba(203, 161, 83, 0.4);

  --ghi-gold: #CBA153;
  --ghi-gold-light: #E5C47A;
  --ghi-gold-dark: #967432;

  --ghi-white: #F5F5F0;
  --ghi-gray: #A5AAA6;
  --ghi-gray-dark: #5C635E;

  --ghi-red-alert: #FF1744;
  --ghi-red-dark: #800B1A;
  --ghi-cyan-solar: #00E5FF;

  --ghi-font-title: 'Cinzel', serif;
  --ghi-font-body: 'Inter', sans-serif;
  --ghi-radius: 12px;
  --ghi-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--ghi-black);
  color: var(--ghi-white);
  font-family: var(--ghi-font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   CINEMATIC BACKGROUND SYSTEM & GLASSMORPHISM SURFACES
   ========================================================================== */

body.page-home {
  background: linear-gradient(180deg, rgba(8, 11, 9, 0.82) 0%, rgba(8, 11, 9, 0.94) 100%),
              url('/assets/img/hero-earth-cinematic.jpg') no-repeat center top / cover fixed !important;
}

body.page-noticias {
  background: linear-gradient(180deg, rgba(8, 11, 9, 0.85) 0%, rgba(8, 11, 9, 0.95) 100%),
              url('/assets/img/bg-noticias.jpg') no-repeat center top / cover fixed !important;
}

body.page-documentarios {
  background: linear-gradient(180deg, rgba(8, 11, 9, 0.85) 0%, rgba(8, 11, 9, 0.95) 100%),
              url('/assets/img/bg-anime.jpg') no-repeat center top / cover fixed !important;
}

body.page-ciencia {
  background: linear-gradient(180deg, rgba(8, 11, 9, 0.85) 0%, rgba(8, 11, 9, 0.95) 100%),
              url('/assets/img/bg-astronomia.jpg') no-repeat center top / cover fixed !important;
}

body.page-earth-monitor {
  background: linear-gradient(180deg, rgba(8, 11, 9, 0.85) 0%, rgba(8, 11, 9, 0.95) 100%),
              url('/assets/img/bg-monitor.jpg') no-repeat center top / cover fixed !important;
}

body.page-parcerias {
  background: linear-gradient(180deg, rgba(8, 11, 9, 0.85) 0%, rgba(8, 11, 9, 0.95) 100%),
              url('/assets/img/bg-parcerias.jpg') no-repeat center top / cover fixed !important;
}

body.page-projetos {
  background: linear-gradient(180deg, rgba(8, 11, 9, 0.85) 0%, rgba(8, 11, 9, 0.95) 100%),
              url('/assets/img/bg-projetos.jpg') no-repeat center top / cover fixed !important;
}

body.page-ragnarok {
  background: linear-gradient(180deg, rgba(8, 11, 9, 0.85) 0%, rgba(8, 11, 9, 0.95) 100%),
              url('/assets/img/bg-ragnarok.jpg') no-repeat center top / cover fixed !important;
}

body.page-tech-ia {
  background: linear-gradient(180deg, rgba(8, 11, 9, 0.85) 0%, rgba(8, 11, 9, 0.95) 100%),
              url('/assets/img/bg-tech-ia.jpg') no-repeat center top / cover fixed !important;
}

body.page-artigo {
  background: linear-gradient(180deg, rgba(8, 11, 9, 0.88) 0%, rgba(8, 11, 9, 0.96) 100%),
              url('/assets/img/bg-noticias.jpg') no-repeat center top / cover fixed !important;
}

body.page-contato {
  background: linear-gradient(180deg, rgba(8, 11, 9, 0.85) 0%, rgba(8, 11, 9, 0.95) 100%),
              url('/assets/img/bg-contato.jpg') no-repeat center top / cover fixed !important;
}

/* GLASSMORPHISM & ELEVATED SURFACES */
.ghi-card {
  background: rgba(21, 29, 24, 0.82) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid var(--ghi-border-gold) !important;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.85) !important;
}

.ghi-card:hover {
  border-color: var(--ghi-gold-light) !important;
  box-shadow: 0 18px 45px rgba(8, 120, 62, 0.3) !important;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.25s ease;
}

/* Typography & Titles */
h1, h2, h3, h4, .ghi-title {
  font-family: var(--ghi-font-title);
  letter-spacing: 0.05em;
  color: var(--ghi-white);
}

.text-gold { color: var(--ghi-gold); }
.text-emerald { color: var(--ghi-emerald); }
.text-cyan { color: var(--ghi-cyan-solar); }
.text-gray { color: var(--ghi-gray); }

/* Layout Containers */
.ghi-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header & Navigation System */
.ghi-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(8, 11, 9, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ghi-border);
}

.ghi-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.ghi-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ghi-brand-logo {
  height: 44px;
  width: auto;
}

.ghi-brand-title {
  font-family: var(--ghi-font-title);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.1em;
  color: var(--ghi-white);
}

.ghi-brand-sub {
  font-size: 0.65rem;
  color: var(--ghi-gold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* Navigation Links (Desktop) */
.ghi-nav-desktop {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.ghi-nav-link {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ghi-gray);
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.ghi-nav-link:hover, .ghi-nav-link.active {
  color: var(--ghi-gold);
  background: rgba(203, 161, 83, 0.1);
}

/* Header Actions */
.ghi-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ghi-btn-icon {
  background: var(--ghi-surface);
  border: 1px solid var(--ghi-border);
  color: var(--ghi-white);
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ghi-btn-icon:hover {
  border-color: var(--ghi-gold);
  color: var(--ghi-gold);
  background: var(--ghi-surface-elevated);
}

/* Sliding Navigation Drawer */
.ghi-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.ghi-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.ghi-drawer {
  position: fixed;
  top: 0;
  left: -320px;
  width: 320px;
  height: 100vh;
  background: var(--ghi-black-secondary);
  border-right: 1px solid var(--ghi-border-gold);
  z-index: 2001;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.9);
}

.ghi-drawer.active {
  left: 0;
}

.ghi-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--ghi-border);
}

.ghi-drawer-menu {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ghi-drawer-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 8px;
  color: var(--ghi-gray);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.2s ease;
}

.ghi-drawer-item:hover, .ghi-drawer-item.active {
  background: rgba(8, 120, 62, 0.2);
  color: var(--ghi-gold);
  border-left: 3px solid var(--ghi-gold);
}

/* Global 3-Dots Header Navigation System */
.ghi-header-3dots-nav-container {
  position: relative;
  display: flex;
  align-items: center;
}

.ghi-btn-header-3dots {
  background: var(--ghi-surface);
  border: 1px solid var(--ghi-border-gold);
  color: var(--ghi-gold);
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.ghi-btn-header-3dots:hover, .ghi-btn-header-3dots.active {
  background: var(--ghi-emerald);
  color: #FFF;
  border-color: var(--ghi-emerald);
  box-shadow: 0 0 15px rgba(8, 120, 62, 0.4);
}

.ghi-header-3dots-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 320px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  background: var(--ghi-black-secondary);
  border: 1px solid var(--ghi-border-gold);
  border-radius: 12px;
  padding: 10px 0;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.95);
  z-index: 2500;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.ghi-header-3dots-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ghi-header-3dots-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ghi-white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.ghi-header-3dots-item:hover, .ghi-header-3dots-item.active {
  background: rgba(8, 120, 62, 0.25);
  color: var(--ghi-gold);
  padding-left: 24px;
  border-left-color: var(--ghi-gold);
}

/* Global 3-Dots Contextual Menu System */
.ghi-3dots-wrapper {
  position: relative;
  display: inline-block;
}

.ghi-3dots-btn {
  background: transparent;
  border: none;
  color: var(--ghi-gray);
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ghi-3dots-btn:hover {
  color: var(--ghi-gold);
  background: rgba(255, 255, 255, 0.08);
}

.ghi-3dots-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 6px;
  width: 200px;
  background: var(--ghi-surface-elevated);
  border: 1px solid var(--ghi-border-gold);
  border-radius: 8px;
  padding: 6px 0;
  box-shadow: 0 10px 25px rgba(0,0,0,0.9);
  z-index: 500;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
}

.ghi-3dots-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ghi-3dots-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 0.85rem;
  color: var(--ghi-white);
  cursor: pointer;
  transition: background 0.15s ease;
}

.ghi-3dots-item:hover {
  background: rgba(203, 161, 83, 0.15);
  color: var(--ghi-gold);
}

/* Cards & Grid System */
.ghi-card {
  background: var(--ghi-surface);
  border: 1px solid var(--ghi-border);
  border-radius: var(--ghi-radius);
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.ghi-card:hover {
  border-color: var(--ghi-gold);
  transform: translateY(-4px);
  box-shadow: var(--ghi-shadow);
}

.ghi-card-thumb {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  overflow: hidden;
  background: #000;
}

.ghi-card-thumb-portrait {
  padding-bottom: 140%; /* 2:3 Poster Aspect Ratio */
}

.ghi-card-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.ghi-card:hover .ghi-card-thumb img {
  transform: scale(1.05);
}

.ghi-card-body {
  padding: 1.25rem;
}

.ghi-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--ghi-emerald-deep);
  color: var(--ghi-gold);
  border: 1px solid var(--ghi-border-gold);
}

.ghi-badge-alert {
  background: var(--ghi-red-dark);
  color: #FFF;
  border-color: var(--ghi-red-alert);
}

/* Search Overlay */
.ghi-search-modal {
  position: fixed;
  inset: 0;
  background: rgba(8, 11, 9, 0.95);
  backdrop-filter: blur(15px);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 100px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.ghi-search-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.ghi-search-box {
  width: 100%;
  max-width: 700px;
  position: relative;
}

.ghi-search-input {
  width: 100%;
  background: var(--ghi-surface-elevated);
  border: 2px solid var(--ghi-border-gold);
  border-radius: 12px;
  padding: 18px 24px;
  font-size: 1.1rem;
  color: var(--ghi-white);
  outline: none;
  box-shadow: 0 10px 40px rgba(0,0,0,0.8);
}

/* Footer */
.ghi-footer {
  background: var(--ghi-black-secondary);
  border-top: 1px solid var(--ghi-border-gold);
  padding: 4rem 0 2rem 0;
  margin-top: 5rem;
}

.ghi-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.ghi-footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--ghi-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--ghi-gray);
}

/* Hide old horizontal desktop nav permanently across ALL screen sizes */
.ghi-nav-desktop {
  display: none !important;
}

/* ACCESSIBILITY SYSTEM (SPEECH SYNTHESIS & LIBRAS) */
.ghi-accessibility-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 1rem 1.25rem;
  background: var(--ghi-surface-elevated);
  border: 1px solid var(--ghi-border-gold);
  border-radius: 10px;
  margin-bottom: 1.5rem;
}

.ghi-btn-accessibility {
  background: var(--ghi-emerald);
  color: #FFF;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.ghi-btn-accessibility:hover {
  background: var(--ghi-emerald-deep);
  box-shadow: 0 0 12px rgba(8, 120, 62, 0.4);
}

.ghi-btn-accessibility-gold {
  background: var(--ghi-surface);
  color: var(--ghi-gold);
  border: 1px solid var(--ghi-border-gold);
}

.ghi-btn-accessibility-gold:hover {
  background: rgba(203, 161, 83, 0.2);
  color: var(--ghi-gold-light);
}

.ghi-libras-modal {
  position: fixed;
  inset: 0;
  background: rgba(8, 11, 9, 0.94);
  backdrop-filter: blur(15px);
  z-index: 3500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.ghi-libras-modal.active {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 768px) {
  .ghi-header-bar { height: 66px; }
  .ghi-brand-title { font-size: 1.05rem; }
}
