/* TechSoftCode - Portal de Tecnologia
   Empresa: Sapphos Aplicativo LTDA
   CNPJ: 61.706.037/0001-24
   ================================== */

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #00d4ff;
  --primary-dark: #0099cc;
  --bg-dark: #0a0f1e;
  --bg-card: #111827;
  --bg-card2: #1a2235;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --border: #1e2d42;
  --white: #ffffff;
  --danger: #ef4444;
  --success: #22c55e;
  --warning: #f59e0b;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }
ul { list-style: none; }

/* ===== TIPOGRAFIA ===== */
h1, h2, h3, h4 { line-height: 1.3; font-weight: 700; color: var(--white); }
h1 { font-size: clamp(1.8rem, 4vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }
p { margin-bottom: 1rem; color: var(--text); }

/* ===== UTILITÁRIOS ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 4rem 0; }
.section-title { margin-bottom: 2.5rem; text-align: center; }
.section-title h2 { margin-bottom: .5rem; }
.section-title p { color: var(--text-muted); max-width: 600px; margin: 0 auto; }
.text-primary { color: var(--primary); }
.text-muted { color: var(--text-muted); }
.badge { display: inline-block; padding: .25rem .75rem; border-radius: 999px; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.badge-primary { background: rgba(0,212,255,.15); color: var(--primary); border: 1px solid rgba(0,212,255,.3); }
.badge-success { background: rgba(34,197,94,.15); color: var(--success); border: 1px solid rgba(34,197,94,.3); }
.badge-warning { background: rgba(245,158,11,.15); color: var(--warning); border: 1px solid rgba(245,158,11,.3); }
.btn { display: inline-block; padding: .75rem 1.75rem; border-radius: var(--radius); font-weight: 600; font-size: .95rem; cursor: pointer; border: none; transition: all .2s; }
.btn-primary { background: var(--primary); color: var(--bg-dark); }
.btn-primary:hover { background: var(--primary-dark); color: var(--bg-dark); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--bg-dark); }
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ===== HEADER / NAV ===== */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(10,15,30,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
}
.header-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center;
  justify-content: space-between;
  height: 68px;
}
.site-logo { display: flex; align-items: center; gap: .75rem; }
.site-logo img { width: 40px; height: 40px; border-radius: 8px; }
.site-logo span { font-size: 1.2rem; font-weight: 800; color: var(--white); }
.site-logo span em { color: var(--primary); font-style: normal; }
.nav-menu { display: flex; align-items: center; gap: .25rem; }
.nav-menu a {
  color: var(--text-muted); padding: .5rem .85rem;
  border-radius: 8px; font-size: .9rem; font-weight: 500;
  transition: all .2s; white-space: nowrap;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--white); background: var(--bg-card2); }

/* ===== MAIN-NAV (legacy pages) ===== */
.main-nav { display: flex; align-items: center; }
.main-nav ul { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.main-nav ul li a {
  color: var(--text-muted); padding: .5rem .85rem;
  border-radius: 8px; font-size: .9rem; font-weight: 500;
  transition: all .2s; white-space: nowrap; display: block;
}
.main-nav ul li a:hover, .main-nav ul li a[aria-current="page"] { color: var(--white); background: var(--bg-card2); }
.logo img { height: 40px; width: auto; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: .5rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: all .3s; }
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== HERO ===== */
.hero {
  position: relative; overflow: hidden;
  padding: 6rem 1.5rem;
  background: linear-gradient(135deg, #0a0f1e 0%, #0d1a30 50%, #0a1520 100%);
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url('../img/hero-tecnologia.jpg') center/cover no-repeat;
  opacity: .12;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 60% 50%, rgba(0,212,255,.08) 0%, transparent 70%);
}
.hero-content { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; }
.hero-inner { max-width: 680px; }
.hero-tag { display: inline-block; margin-bottom: 1.5rem; }
.hero h1 { margin-bottom: 1.5rem; }
.hero h1 em { color: var(--primary); font-style: normal; }
.hero p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 2rem; max-width: 560px; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 2.5rem; margin-top: 3.5rem; flex-wrap: wrap;
  padding-top: 2rem; border-top: 1px solid var(--border);
}
.hero-stat h3, .hero-stat-num { font-size: 1.8rem; color: var(--primary); font-weight: 700; margin: 0; }
.hero-stat p { font-size: .85rem; color: var(--text-muted); margin: 0; }

/* ===== CARDS ===== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(0,212,255,.3);
}
.card-img { aspect-ratio: 16/9; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card:hover .card-img img { transform: scale(1.04); }
.card-body { padding: 1.25rem 1.5rem 1.5rem; }
.card-meta { display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem; flex-wrap: wrap; }
.card-meta time { font-size: .8rem; color: var(--text-muted); }
.card-title { font-size: 1.05rem; font-weight: 700; margin-bottom: .75rem; }
.card-title a { color: var(--white); }
.card-title a:hover { color: var(--primary); }
.card-excerpt { font-size: .9rem; color: var(--text-muted); }
.card-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.read-more { font-size: .85rem; font-weight: 600; color: var(--primary); }
.read-more:hover { color: var(--primary-dark); }

/* ===== ARTICLE/CONTENT ===== */
.page-hero {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-card) 100%);
  padding: 3.5rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.page-hero .container { max-width: 900px; }
.breadcrumb { display: flex; align-items: center; gap: .5rem; margin-bottom: 1.5rem; font-size: .85rem; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--text-muted); }
.article-content { max-width: 900px; margin: 0 auto; padding: 2.5rem 1.5rem; }
.article-content h2 { margin: 2rem 0 1rem; color: var(--white); }
.article-content h3 { margin: 1.5rem 0 .75rem; color: var(--primary); }
.article-content p { color: var(--text); margin-bottom: 1.2rem; }
.article-content ul, .article-content ol { padding-left: 1.5rem; margin-bottom: 1.2rem; }
.article-content li { color: var(--text); margin-bottom: .4rem; }
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content img { border-radius: var(--radius); margin: 1.5rem 0; }
.article-content strong { color: var(--white); }

.tip-box, .warn-box {
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  margin: 1.5rem 0;
  border-left: 4px solid;
}
.tip-box { background: rgba(34,197,94,.1); border-color: var(--success); }
.tip-box strong { color: var(--success); }
.warn-box { background: rgba(245,158,11,.1); border-color: var(--warning); }
.warn-box strong { color: var(--warning); }

.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 1.5rem 0; }
.pros, .cons { padding: 1.25rem; border-radius: var(--radius); background: var(--bg-card2); }
.pros h4 { color: var(--success); margin-bottom: .75rem; }
.cons h4 { color: var(--danger); margin-bottom: .75rem; }
.pros li::before { content: '✓ '; color: var(--success); }
.cons li::before { content: '✗ '; color: var(--danger); }
.pros li, .cons li { margin-bottom: .4rem; font-size: .9rem; }

.rating-box {
  display: flex; align-items: center; gap: 1.5rem;
  background: var(--bg-card2); padding: 1.5rem; border-radius: var(--radius);
  margin: 1.5rem 0;
}
.rating-score { font-size: 3rem; font-weight: 800; color: var(--primary); line-height: 1; }
.rating-info h4 { color: var(--white); margin-bottom: .25rem; }
.rating-info p { font-size: .85rem; color: var(--text-muted); margin: 0; }
.stars { color: var(--warning); font-size: 1.2rem; }

.step-box {
  display: flex; gap: 1.25rem;
  background: var(--bg-card2); padding: 1.25rem; border-radius: var(--radius);
  margin: 1rem 0;
}
.step-num {
  flex-shrink: 0; width: 2.5rem; height: 2.5rem;
  background: var(--primary); color: var(--bg-dark);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1rem;
}
.step-content h4 { color: var(--white); margin-bottom: .35rem; }
.step-content p { font-size: .9rem; margin: 0; color: var(--text-muted); }

.tags { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1.5rem; }
.tag { background: var(--bg-card2); color: var(--text-muted); padding: .25rem .75rem; border-radius: 999px; font-size: .8rem; border: 1px solid var(--border); }

/* ===== SECTION DESTAQUE ===== */
.section-bg { background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.featured-card {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.featured-card .card-img { aspect-ratio: auto; }
.featured-card .card-img img { height: 100%; }
.featured-card .card-body { padding: 2rem; display: flex; flex-direction: column; justify-content: center; }

/* ===== GAME/APP CARDS ===== */
.game-card, .app-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.game-card:hover, .app-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.game-banner { aspect-ratio: 21/9; overflow: hidden; }
.game-banner img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.game-card:hover .game-banner img { transform: scale(1.04); }
.game-info, .app-info { padding: 1.5rem; }
.game-meta { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 1rem; }
.app-icon { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; }
.app-header { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.platform-tags { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .75rem; }
.platform-tag { font-size: .75rem; padding: .2rem .6rem; border-radius: 6px; background: var(--bg-dark); color: var(--text-muted); border: 1px solid var(--border); }

/* ===== SOBRE NÓS ===== */
.mission-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }
.mission-card { background: var(--bg-card2); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; text-align: center; }
.mission-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.5rem; }
.team-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; text-align: center; }
.team-avatar { width: 80px; height: 80px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); display: flex; align-items: center; justify-content: center; font-size: 2rem; margin: 0 auto 1rem; }
.team-card h4 { color: var(--white); margin-bottom: .25rem; }
.team-card p { font-size: .85rem; color: var(--text-muted); margin: 0; }

/* ===== CONTATO ===== */
.contact-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 2.5rem; }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--border); }
.contact-item:last-child { border-bottom: none; }
.contact-icon { font-size: 1.5rem; flex-shrink: 0; }
.contact-text h4 { color: var(--white); margin-bottom: .25rem; }
.contact-text p { color: var(--text-muted); margin: 0; font-size: .95rem; }

/* ===== POLICY PAGES ===== */
.policy-content { max-width: 800px; margin: 0 auto; padding: 3rem 1.5rem; }
.policy-content h2 { margin: 2rem 0 1rem; padding-bottom: .5rem; border-bottom: 1px solid var(--border); }
.policy-content h3 { margin: 1.5rem 0 .75rem; color: var(--primary); }
.policy-content p, .policy-content li { color: var(--text); }
.policy-content ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.policy-content li { margin-bottom: .4rem; }

/* ===== SITEMAP PAGE ===== */
.sitemap-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.sitemap-col h3 { color: var(--primary); margin-bottom: 1rem; font-size: 1rem; text-transform: uppercase; letter-spacing: .05em; }
.sitemap-col ul { list-style: none; }
.sitemap-col li { margin-bottom: .5rem; }
.sitemap-col a { color: var(--text-muted); font-size: .95rem; }
.sitemap-col a:hover { color: var(--primary); }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 3.5rem 1.5rem 1.5rem;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-brand p { color: var(--text-muted); font-size: .9rem; margin: 1rem 0 0; max-width: 280px; }
.footer-col h4 { color: var(--white); font-size: .9rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 1rem; }
.footer-col ul li { margin-bottom: .6rem; }
.footer-col a { color: var(--text-muted); font-size: .9rem; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 1.5rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { color: var(--text-muted); font-size: .82rem; margin: 0; }

/* ===== COOKIES BANNER ===== */
.cookie-banner {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  width: calc(100% - 3rem); max-width: 700px; z-index: 9999;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 8px 40px rgba(0,0,0,.6);
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
  transition: opacity .3s, transform .3s;
}
.cookie-banner.hidden { opacity: 0; pointer-events: none; transform: translateX(-50%) translateY(100px); }
.cookie-text { flex: 1; font-size: .88rem; color: var(--text-muted); }
.cookie-text a { color: var(--primary); }
.cookie-btns { display: flex; gap: .75rem; flex-shrink: 0; }
.cookie-btns button { padding: .55rem 1.25rem; border-radius: 8px; font-size: .85rem; font-weight: 600; cursor: pointer; border: none; transition: all .2s; }
.btn-accept { background: var(--primary); color: var(--bg-dark); }
.btn-accept:hover { background: var(--primary-dark); }
.btn-decline { background: transparent; color: var(--text-muted); border: 1px solid var(--border) !important; }
.btn-decline:hover { border-color: var(--primary) !important; color: var(--primary); }

/* ===== PAGINAÇÃO ===== */
.pagination { display: flex; justify-content: center; gap: .5rem; padding: 2rem 0; }
.page-num { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: var(--bg-card); border: 1px solid var(--border); color: var(--text-muted); font-size: .9rem; font-weight: 600; transition: all .2s; }
.page-num:hover, .page-num.active { background: var(--primary); color: var(--bg-dark); border-color: var(--primary); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-menu {
    display: none; flex-direction: column; position: absolute;
    top: 68px; left: 0; right: 0;
    background: rgba(10,15,30,.98);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem; gap: .25rem;
  }
  .nav-menu.open { display: flex; }
  .nav-toggle { display: block; }
  .main-nav {
    display: none; flex-direction: column; position: absolute;
    top: 68px; left: 0; right: 0;
    background: rgba(10,15,30,.98);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
  }
  .main-nav.open { display: flex; }
  .main-nav ul { flex-direction: column; gap: .25rem; }
  .main-nav ul li a { display: block; }
  .featured-card { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pros-cons { grid-template-columns: 1fr; }
  .cookie-banner {
    flex-direction: column; align-items: flex-start;
    bottom: 0; left: 0; right: 0; width: 100%;
    transform: none; border-radius: var(--radius) var(--radius) 0 0;
    padding: 1rem 1.25rem;
  }
  .cookie-banner.hidden { transform: translateY(100%); }
  .hero-stats { gap: 1.5rem; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 4rem 1.5rem; }
  .hero-btns { flex-direction: column; }
  .header-inner { padding: 0; }
}
