/* =====================================================
   CIÊNCIA PLURAL — Global Stylesheet
   ===================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --color-primary: #E94560;
  --color-secondary: #0F3460;
  --color-accent: #533483;
  --color-bg: #F8F9FA;
  --color-white: #FFFFFF;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-text-muted: #999999;
  --color-header-start: #1A1A2E;
  --color-header-end: #16213E;
  --color-card-shadow: rgba(0,0,0,0.08);
  --color-card-shadow-hover: rgba(0,0,0,0.15);
  --font-family: 'Inter', sans-serif;
  --max-width: 1200px;
  --header-height: 70px;
  --border-radius: 12px;
  --transition: 0.3s ease;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }
body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: color var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ===== HEADER ===== */
.header {
  position: fixed; top: 0; left: 0; width: 100%;
  height: var(--header-height);
  background: linear-gradient(135deg, var(--color-header-start), var(--color-header-end));
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.header .container { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.logo { font-size: 1.5rem; font-weight: 800; color: var(--color-white); display: flex; align-items: center; gap: 8px; }
.logo-emoji { font-size: 1.6rem; }
.nav-list { display: flex; align-items: center; gap: 32px; }
.nav-link {
  color: rgba(255,255,255,0.85); font-size: 0.95rem; font-weight: 500;
  position: relative; padding: 4px 0;
}
.nav-link:hover, .nav-link.active { color: var(--color-white); }
.nav-link::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 2px; background: var(--color-primary);
  transition: width var(--transition);
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-badge {
  display: inline-block; background: var(--color-accent); color: var(--color-white);
  font-size: 0.65rem; font-weight: 700; padding: 2px 8px; border-radius: 20px;
  margin-left: 6px; vertical-align: middle; text-transform: uppercase; letter-spacing: 0.5px;
}

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--color-white); border-radius: 2px; transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== HERO ===== */
.hero {
  margin-top: var(--header-height);
  background: linear-gradient(135deg, var(--color-header-start), var(--color-header-end), var(--color-accent));
  padding: 100px 24px 80px;
  text-align: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(233,69,96,0.1) 0%, transparent 50%),
              radial-gradient(circle at 70% 50%, rgba(83,52,131,0.1) 0%, transparent 50%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.hero h1 { font-size: 3rem; font-weight: 800; color: var(--color-white); margin-bottom: 20px; line-height: 1.2; }
.hero p { font-size: 1.2rem; color: rgba(255,255,255,0.85); margin-bottom: 36px; line-height: 1.7; }

.btn-primary {
  display: inline-block; background: var(--color-primary); color: var(--color-white);
  font-family: var(--font-family); font-size: 1.1rem; font-weight: 700;
  padding: 16px 36px; border-radius: 50px; border: none; cursor: pointer;
  transition: all var(--transition); box-shadow: 0 4px 15px rgba(233,69,96,0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 25px rgba(233,69,96,0.5); background: #d63b54; }

/* ===== AD PLACEHOLDERS ===== */
.ad-slot { text-align: center; padding: 16px 0; background: var(--color-bg); }
.ad-placeholder {
  display: flex; align-items: center; justify-content: center;
  background: #E8E8E8; border: 2px dashed #CCC; border-radius: 8px;
  color: var(--color-text-muted); font-size: 0.8rem; font-weight: 500;
}
.ad-top, .ad-bottom { width: 728px; max-width: 100%; height: 90px; margin: 0 auto; }
.ad-sidebar { width: 160px; height: 600px; }

/* ===== SECTIONS ===== */
.section { padding: 80px 24px; }
.section-light { background: var(--color-bg); }
.section-white { background: var(--color-white); }
.section-title { text-align: center; font-size: 2rem; font-weight: 800; color: var(--color-secondary); margin-bottom: 48px; }

/* ===== GAME CARDS ===== */
.games-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 400px)); gap: 32px; justify-content: center; }
.game-card {
  background: var(--color-white); border-radius: var(--border-radius);
  overflow: hidden; box-shadow: 0 4px 20px var(--color-card-shadow); transition: all var(--transition);
}
.game-card:hover { transform: translateY(-6px); box-shadow: 0 8px 30px var(--color-card-shadow-hover); }
.game-card-image {
  width: 100%; aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
  display: flex; align-items: center; justify-content: center; font-size: 4rem;
}
.game-card-body { padding: 24px; }
.game-card-title { font-size: 1.3rem; font-weight: 700; color: var(--color-secondary); margin-bottom: 12px; }
.game-card-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tag {
  display: inline-block; background: var(--color-bg); color: var(--color-accent);
  font-size: 0.8rem; font-weight: 600; padding: 4px 12px; border-radius: 20px;
}
.game-card-desc { font-size: 0.95rem; color: var(--color-text-light); margin-bottom: 20px; line-height: 1.6; }
.btn-game {
  display: inline-block; background: var(--color-primary); color: var(--color-white);
  font-family: var(--font-family); font-size: 1rem; font-weight: 600;
  padding: 12px 28px; border-radius: 50px; border: none; cursor: pointer;
  transition: all var(--transition);
}
.btn-game:hover { background: #d63b54; transform: translateY(-2px); box-shadow: 0 4px 15px rgba(233,69,96,0.3); }

/* ===== FEATURES GRID ===== */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; max-width: 900px; margin: 0 auto; }
.feature-card { text-align: center; padding: 32px 24px; border-radius: var(--border-radius); transition: all var(--transition); }
.feature-card:hover { transform: translateY(-4px); }
.section-white .feature-card:hover { box-shadow: 0 4px 20px var(--color-card-shadow); }
.section-light .feature-card { background: var(--color-white); box-shadow: 0 2px 12px var(--color-card-shadow); }
.section-light .feature-card:hover { box-shadow: 0 6px 24px var(--color-card-shadow-hover); }
.feature-emoji { font-size: 3rem; margin-bottom: 16px; display: block; }
.feature-title { font-size: 1.15rem; font-weight: 700; color: var(--color-secondary); margin-bottom: 12px; }
.feature-text { font-size: 0.95rem; color: var(--color-text-light); line-height: 1.6; }

/* ===== ABOUT PREVIEW ===== */
.about-preview { text-align: center; max-width: 700px; margin: 0 auto; }
.about-preview p { font-size: 1.05rem; color: var(--color-text-light); line-height: 1.8; margin-bottom: 24px; }
.link-arrow { color: var(--color-primary); font-weight: 600; font-size: 1rem; transition: all var(--transition); }
.link-arrow:hover { color: #d63b54; }

/* ===== FOOTER ===== */
.footer {
  background: linear-gradient(135deg, var(--color-header-start), var(--color-header-end));
  color: rgba(255,255,255,0.85); padding: 48px 24px 24px;
}
.footer-content {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  max-width: var(--max-width); margin: 0 auto;
  padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-section h3 { font-size: 1.1rem; font-weight: 700; color: var(--color-white); margin-bottom: 16px; }
.footer-contact-list { display: flex; flex-direction: column; gap: 12px; }
.footer-contact-link {
  display: flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,0.8); font-size: 0.95rem; transition: color var(--transition);
}
.footer-contact-link:hover { color: var(--color-primary); }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-link { color: rgba(255,255,255,0.8); font-size: 0.95rem; transition: color var(--transition); }
.footer-link:hover { color: var(--color-primary); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  max-width: var(--max-width); margin: 0 auto; padding-top: 24px;
  font-size: 0.85rem; color: rgba(255,255,255,0.6);
}
.footer-bottom-heart { color: rgba(255,255,255,0.5); }
.footer-bottom-heart span { color: var(--color-primary); }

/* ===== INNER PAGES ===== */
.page-content {
  margin-top: var(--header-height); padding: 60px 24px 80px;
  min-height: calc(100vh - var(--header-height) - 200px); background: var(--color-white);
}
.page-content .container { max-width: 800px; }
.page-title { font-size: 2.2rem; font-weight: 800; color: var(--color-secondary); margin-bottom: 12px; }
.page-updated { font-size: 0.9rem; color: var(--color-text-muted); margin-bottom: 40px; }
.page-content h2 { font-size: 1.3rem; font-weight: 700; color: var(--color-secondary); margin-top: 36px; margin-bottom: 12px; }
.page-content p { font-size: 1rem; color: var(--color-text-light); line-height: 1.8; margin-bottom: 16px; }
.page-content a { color: var(--color-primary); text-decoration: underline; }
.page-content a:hover { color: #d63b54; }
.page-content a.btn { color: #FFFFFF; text-decoration: none; }
.page-content a.btn:hover { color: #FFFFFF; }

.about-block { margin-bottom: 36px; }
.about-block h2 { margin-top: 0; }
.about-cta { text-align: center; margin-top: 48px; padding-top: 32px; border-top: 1px solid #E8E8E8; }

/* ===== GAME PAGE ===== */
.game-header { margin-top: var(--header-height); padding: 32px 24px 24px; background: var(--color-white); }
.game-header .container { max-width: 960px; }
.game-page-title { font-size: 1.8rem; font-weight: 800; color: var(--color-secondary); margin-bottom: 12px; }
.game-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 0.9rem; color: var(--color-text-light); }
.game-meta-item { display: flex; align-items: center; gap: 6px; }
.game-wrapper { padding: 0 24px 32px; background: var(--color-bg); }
.game-wrapper .container { max-width: 960px; }
.game-iframe-container {
  position: relative; width: 100%; max-width: 900px; margin: 0 auto;
  background: var(--color-white); border-radius: var(--border-radius);
  overflow: hidden; box-shadow: 0 4px 20px var(--color-card-shadow);
}
.game-iframe-container iframe { display: block; width: 100%; height: 600px; border: none; }
.game-description {
  max-width: 900px; margin: 24px auto 0; padding: 24px;
  background: var(--color-white); border-radius: var(--border-radius);
  box-shadow: 0 2px 12px var(--color-card-shadow);
}
.game-description p { font-size: 0.95rem; color: var(--color-text-light); line-height: 1.7; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-list {
    position: fixed; top: var(--header-height); left: 0; width: 100%;
    background: var(--color-header-start); flex-direction: column;
    padding: 24px 0; gap: 0;
    transform: translateY(-100%); opacity: 0; visibility: hidden;
    transition: all 0.4s ease; box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  }
  .nav-list.active { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-link { display: block; padding: 14px 24px; font-size: 1.05rem; }
  .nav-link::after { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 60px 24px 50px; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  .section { padding: 56px 16px; }
  .section-title { font-size: 1.6rem; margin-bottom: 36px; }
  .features-grid { grid-template-columns: 1fr; gap: 20px; }
  .games-grid { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .ad-top, .ad-bottom { width: 320px; height: 50px; }
  .ad-sidebar { display: none; }
  .game-iframe-container iframe { height: 450px; }
  .game-meta { flex-direction: column; gap: 8px; }
  .page-title { font-size: 1.7rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.7rem; }
  .btn-primary { font-size: 1rem; padding: 14px 28px; }
  .game-iframe-container iframe { height: 350px; }
}
