/* ============================================================
   Terra Concordia - Landing Page Styles
   Compartilhado entre index.html (EN), index-pt.html, index-es.html
   ============================================================ */

:root {
  --bg-dark: #0A0804;
  --bg-mid: #2A1810;
  --gold-light: #FFE382;
  --gold-mid: #C8A850;
  --gold-deep: #8B6A1E;
  --text: #E8E0D0;
  --text-dim: #A89878;
  --red: #CC2222;
  --blue: #2244CC;
  --green: #22AA22;
  --yellow: #CCAA00;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-dark);
  color: var(--text);
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: var(--gold-light); text-decoration: none; }
a:hover { color: var(--gold-mid); }
img { max-width: 100%; height: auto; display: block; }

/* LANG SWITCHER */
.lang-switcher {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 100;
  background: rgba(10, 8, 4, 0.85);
  border: 1px solid var(--gold-deep);
  border-radius: 20px;
  padding: 6px 12px;
  backdrop-filter: blur(8px);
  display: flex;
  gap: 8px;
}
.lang-switcher a {
  color: var(--text-dim);
  font-size: 0.85rem;
  padding: 4px 8px;
  border-radius: 12px;
  font-weight: bold;
  letter-spacing: 0.1em;
}
.lang-switcher a:hover { color: var(--gold-light); }
.lang-switcher a.active {
  color: var(--bg-dark);
  background: var(--gold-mid);
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  background:
    radial-gradient(ellipse at center, var(--bg-mid) 0%, var(--bg-dark) 100%),
    linear-gradient(135deg, rgba(204, 34, 34, 0.1) 0%, transparent 30%),
    linear-gradient(225deg, rgba(34, 68, 204, 0.1) 0%, transparent 30%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(204, 34, 34, 0.15) 0%, transparent 25%),
    radial-gradient(circle at 80% 70%, rgba(34, 68, 204, 0.15) 0%, transparent 25%),
    radial-gradient(circle at 50% 90%, rgba(204, 170, 0, 0.1) 0%, transparent 30%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 1100px; }
.logo {
  /* v1.0.38: a imagem do jogo é 1280x720 (16:9). Antes 280x280 forçado = achatado.
     !important para sobrepor cache antigo do navegador. */
  width: clamp(280px, 60vw, 560px) !important;
  height: auto !important;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  display: block;
  margin: 0 auto 24px;
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.5));
}
/* Logo do desenvolvedor (logo-dev.png ~ 742x778, quase quadrado) */
.dev-logo {
  width: 72px;
  height: auto;
  margin: 8px auto 16px;
  opacity: 0.9;
  transition: opacity 0.3s;
  display: block;
}
.dev-logo:hover { opacity: 1; }
.footer-dev-logo {
  width: 24px !important;
  max-width: 24px !important;
  height: auto !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-top: 0 !important;
  margin-bottom: 8px !important;
  opacity: 0.7;
  display: block !important;
  float: none !important;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}
h1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
  color: var(--gold-light);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  text-shadow: 0 4px 12px rgba(0,0,0,0.6);
}
.tagline {
  font-size: clamp(1rem, 3vw, 1.4rem);
  color: var(--gold-mid);
  font-style: italic;
  margin-bottom: 40px;
  letter-spacing: 0.15em;
}
.cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 6px;
  font-weight: bold;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.2s;
  border: 2px solid var(--gold-mid);
  font-family: Georgia, serif;
  font-size: 1rem;
  cursor: pointer;
}
.btn-primary {
  background: var(--gold-mid);
  color: var(--bg-dark);
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(200, 168, 80, 0.4);
}
.btn-secondary {
  background: transparent;
  color: var(--gold-light);
}
.btn-secondary:hover {
  background: rgba(200, 168, 80, 0.1);
  transform: translateY(-2px);
}
.badges {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}
.badge {
  background: rgba(0,0,0,0.4);
  color: var(--gold-light);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  border: 1px solid var(--gold-deep);
}

/* SECTIONS */
section { padding: 80px 20px; }
.container { max-width: 1100px; margin: 0 auto; }
h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--gold-light);
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}
.section-subtitle {
  text-align: center;
  color: var(--gold-mid);
  font-style: italic;
  margin-bottom: 48px;
  font-size: 1.1rem;
}

/* FEATURES */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.feature {
  background: var(--bg-mid);
  padding: 24px;
  border-radius: 8px;
  border: 1px solid var(--gold-deep);
  transition: transform 0.2s;
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(200, 168, 80, 0.15);
}
.feature-icon { font-size: 2.5rem; margin-bottom: 12px; }
.feature h3 {
  color: var(--gold-light);
  margin-bottom: 8px;
  font-size: 1.3rem;
}
.feature p { color: var(--text-dim); font-size: 0.95rem; }

/* CIVILIZATIONS */
.civs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.civ {
  background: var(--bg-mid);
  padding: 24px;
  border-radius: 8px;
  text-align: center;
  border-top: 4px solid;
  transition: transform 0.2s;
}
.civ:hover { transform: translateY(-4px); }
.civ-solaris { border-top-color: var(--red); }
.civ-verdantis { border-top-color: var(--green); }
.civ-mariteia { border-top-color: var(--blue); }
.civ-aurifera { border-top-color: var(--yellow); }
.civ h3 {
  color: var(--gold-light);
  margin-bottom: 6px;
  font-size: 1.4rem;
}
.civ .role {
  color: var(--gold-mid);
  font-style: italic;
  font-size: 0.9rem;
  margin-bottom: 12px;
}
.civ p { color: var(--text-dim); font-size: 0.9rem; }

/* MECHANIC HIGHLIGHT */
.mechanic {
  background: linear-gradient(135deg, var(--bg-mid) 0%, var(--bg-dark) 100%);
  border-left: 4px solid var(--gold-mid);
  padding: 48px;
  border-radius: 8px;
  text-align: center;
  margin-top: 24px;
}
.mechanic h3 {
  color: var(--gold-light);
  font-size: 1.8rem;
  margin-bottom: 16px;
}
.mechanic .meter {
  display: inline-flex;
  gap: 4px;
  margin: 16px 0;
}
.meter-cell {
  width: 24px;
  height: 32px;
  background: var(--bg-dark);
  border: 1px solid var(--gold-deep);
  border-radius: 3px;
}
.meter-cell.filled {
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold-mid) 100%);
  box-shadow: 0 0 8px var(--gold-light);
}
.mechanic-text {
  color: var(--text);
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* STATS */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  text-align: center;
}
.stat {
  background: var(--bg-mid);
  padding: 32px 16px;
  border-radius: 8px;
  border: 1px solid var(--gold-deep);
}
.stat-num {
  font-size: 3rem;
  color: var(--gold-light);
  font-weight: bold;
  line-height: 1;
}
.stat-label {
  color: var(--gold-mid);
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
}

/* WISHLIST CTA */
.wishlist-cta {
  background: radial-gradient(circle at center, var(--bg-mid) 0%, var(--bg-dark) 100%);
  text-align: center;
  padding: 100px 20px;
}
.wishlist-cta h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 16px;
}
.wishlist-cta p {
  font-size: 1.15rem;
  color: var(--text-dim);
  margin-bottom: 40px;
}

/* SIGNUP FORM */
.signup {
  background: var(--bg-mid);
  padding: 32px;
  border-radius: 8px;
  border: 1px solid var(--gold-deep);
  max-width: 480px;
  margin: 0 auto;
}
.signup h3 { color: var(--gold-light); margin-bottom: 8px; }
.signup p {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.signup-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.signup-form input[type="email"] {
  flex: 1;
  min-width: 200px;
  padding: 12px 16px;
  background: var(--bg-dark);
  border: 1px solid var(--gold-deep);
  border-radius: 6px;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
}
.signup-form input[type="email"]:focus {
  outline: none;
  border-color: var(--gold-mid);
  box-shadow: 0 0 0 3px rgba(200, 168, 80, 0.2);
}
.signup-msg {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--gold-mid);
  min-height: 1.2em;
}
.signup-msg.success { color: var(--green); }
.signup-msg.error { color: var(--red); }

/* FOOTER — compacto */
footer {
  background: var(--bg-mid);
  padding: 22px 16px 14px;
  border-top: 1px solid var(--gold-deep);
  text-align: center;
}
.footer-links {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.footer-links a { font-size: 0.8rem; }
.copyright {
  color: var(--text-dim);
  font-size: 0.72rem;
  margin-top: 6px;
  line-height: 1.4;
}
.credits {
  color: var(--gold-deep);
  font-size: 0.7rem;
  margin-top: 4px;
}

/* ============================================================
   PAGE HEADER (sub-pages: forum, manuals, stats, health-warning)
   ============================================================ */
.page-header {
  background: var(--bg-mid);
  border-bottom: 1px solid var(--gold-deep);
  padding: 14px 20px;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(6px);
  background: rgba(42, 24, 16, 0.92);
}
.page-header-inner {
  max-width: 1100px;
  margin: 0 auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px;
  text-align: center;
  width: 100%;
}
.page-header-logo {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  width: auto !important;
  height: auto !important;
  margin: 0 auto !important;
  animation: none !important;
  aspect-ratio: auto !important;
  filter: none !important;
}
.page-header-logo img {
  height: 22px !important;
  width: auto !important;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  animation: none !important;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
  margin: 0 !important;
  display: inline-block !important;
}
.page-header-logo span {
  color: var(--gold-light);
  font-family: Georgia, serif;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  font-weight: bold;
}
.page-nav {
  display: flex !important;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center !important;
  margin: 0 auto !important;
  width: 100%;
}
.page-nav a {
  color: var(--text-dim);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.page-nav a:hover { color: var(--gold-light); }
.page-nav a.active {
  color: var(--gold-light);
  border-bottom-color: var(--gold-mid);
}
@media (max-width: 720px) {
  .page-header { padding: 10px 14px; }
  .page-header-inner { gap: 8px; }
  .page-header-logo img { height: 20px !important; }
  .page-header-logo span { font-size: 0.8rem; }
  .page-nav { gap: 12px; }
  .page-nav a { font-size: 0.75rem; }
}

/* RESPONSIVE */
@media (max-width: 600px) {
  .logo { width: 88vw; max-width: 360px; }
  .dev-logo { height: 56px; }
  section { padding: 60px 16px; }
  .mechanic { padding: 32px 20px; }
  .signup { padding: 24px; }
  .lang-switcher { top: 10px; right: 10px; padding: 4px 8px; gap: 4px; }
  .lang-switcher a { padding: 3px 6px; font-size: 0.75rem; }
}
