/* =====================================================
   HOME.CSS — Estilos exclusivos da página inicial
   Guia de Apps · Astra Child Theme
   ===================================================== */

body { background: var(--bg); color: var(--ink); font-family: var(--ff-body); line-height: 1.55; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ─── TAGS ─── */
.gda-tag {
  display: inline-block;
  font-family: var(--ff-head);
  font-size: .68rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
  padding: 2px 9px; border-radius: 3px;
  line-height: 1.9; white-space: nowrap;
}
.gda-tag-tech    { background: rgba(74,31,168,.12);  color: var(--cat-tech); }
.gda-tag-gadget  { background: rgba(8,145,178,.12);  color: var(--cat-gadget); }
.gda-tag-soft    { background: rgba(5,150,105,.12);  color: var(--cat-soft); }
.gda-tag-apps    { background: rgba(124,58,237,.12); color: var(--cat-apps); }
.gda-tag-games   { background: rgba(220,38,38,.12);  color: var(--cat-games); }
.gda-tag-esports { background: rgba(234,88,12,.12);  color: var(--cat-esports); }
.gda-tag-white   { background: rgba(255,255,255,.2); color: #fff; }

/* ─── AD STRIP ─── */
.gda-ad-strip {
  height: 88px; background: #edeaf5;
  border: 1px dashed #c4b8e0; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  margin: 16px 0;
}
.gda-ad-strip span { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink3); font-weight: 600; }

/* ─── PAGE LAYOUT ─── */
.gda-page { padding: 20px 0 48px; }
.gda-layout { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; }

/* ─── SEC HEADING ─── */
.gda-sec-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
  border-bottom: 3px solid var(--purple);
  padding-bottom: 8px;
}
.gda-sec-head h2 {
  font-family: var(--ff-head);
  font-size: 1.15rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .05em;
  color: var(--ink);
  display: flex; align-items: center; gap: 8px;
  margin: 0;
}
.gda-sec-head h2 .ico { font-size: 1rem; }
.gda-sec-head a {
  font-family: var(--ff-head); font-size: .75rem;
  font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--purple);
  transition: opacity .15s;
}
.gda-sec-head a:hover { opacity: .7; }

/* ─── HERO BLOCK ─── */
.gda-hero-block {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 3px;
  border-radius: 8px; overflow: hidden;
  margin-bottom: 28px;
  background: var(--ink);
  box-shadow: 0 4px 24px rgba(74,31,168,.2);
}
.gda-hero-main { grid-row: 1/3; position: relative; min-height: 360px; overflow: hidden; background: var(--ink2); }
.gda-hero-side { position: relative; min-height: 176px; overflow: hidden; background: var(--ink2); }

.gda-hbg { position: absolute; inset: 0; }
.gda-hovl {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,5,25,.9) 0%, rgba(10,5,25,.1) 65%);
}
.gda-hcontent { position: absolute; bottom: 0; left: 0; right: 0; padding: 20px; }
.gda-hero-main .gda-hcontent { padding: 24px; }

.gda-hero-main h2 {
  font-family: var(--ff-head);
  font-size: 1.6rem; font-weight: 800;
  line-height: 1.15; color: #fff;
  letter-spacing: -.01em; margin-top: 8px;
  transition: color .2s;
}
.gda-hero-main:hover h2 { color: var(--cyan); }
.gda-hero-side h3 {
  font-family: var(--ff-head);
  font-size: 1.05rem; font-weight: 700;
  line-height: 1.2; color: #fff;
  margin-top: 6px; letter-spacing: -.01em;
  transition: color .2s;
}
.gda-hero-side:hover h3 { color: var(--cyan); }

/* ─── CARD GRIDS ─── */
.gda-card-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 28px; }
.gda-card-grid.g3 { grid-template-columns: repeat(3,1fr); }
.gda-card-grid.g2 { grid-template-columns: repeat(2,1fr); }

.gda-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 6px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.gda-card:hover { box-shadow: 0 6px 20px rgba(74,31,168,.12); transform: translateY(-2px); }

.gda-card-thumb {
  width: 100%; aspect-ratio: 16/9;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; font-size: 2.2rem;
}
.gda-card-body { padding: 12px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.gda-card-title {
  font-family: var(--ff-head);
  font-size: .97rem; font-weight: 700;
  line-height: 1.25; letter-spacing: -.01em;
  color: var(--ink); flex: 1;
  transition: color .15s;
}
.gda-card:hover .gda-card-title { color: var(--purple); }
.gda-card-meta {
  font-size: .7rem; color: var(--ink3);
  display: flex; gap: 6px;
  padding-top: 6px; border-top: 1px solid var(--rule);
  margin-top: auto;
}

/* ─── LIST CARDS ─── */
.gda-card-stack { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.gda-list-card {
  display: flex; gap: 12px;
  background: var(--white); border: 1px solid var(--rule);
  border-radius: 6px; padding: 10px;
  transition: box-shadow .2s;
}
.gda-list-card:hover { box-shadow: 0 4px 14px rgba(74,31,168,.1); }
.gda-list-thumb {
  width: 86px; aspect-ratio: 4/3;
  border-radius: 5px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; overflow: hidden; position: relative;
}
.gda-list-title {
  font-family: var(--ff-head);
  font-size: .92rem; font-weight: 700;
  line-height: 1.25; color: var(--ink);
  transition: color .15s;
}
.gda-list-card:hover .gda-list-title { color: var(--purple); }
.gda-list-meta { font-size: .7rem; color: var(--ink3); margin-top: 4px; }

/* ─── RANKING ─── */
.gda-rank-list { display: flex; flex-direction: column; gap: 0; margin-bottom: 28px; }
.gda-rank-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--white); border: 1px solid var(--rule); border-top: none;
  padding: 10px 14px; transition: background .15s;
}
.gda-rank-row:first-child { border-top: 1px solid var(--rule); border-radius: 6px 6px 0 0; }
.gda-rank-row:last-child { border-radius: 0 0 6px 6px; }
.gda-rank-row:hover { background: #faf8ff; }
.gda-rank-n { font-family: var(--ff-head); font-size: 1.4rem; font-weight: 900; color: #ddd; min-width: 26px; text-align: right; line-height: 1; }
.gda-rank-row:nth-child(1) .gda-rank-n { color: var(--gold); }
.gda-rank-row:nth-child(2) .gda-rank-n { color: #94a3b8; }
.gda-rank-row:nth-child(3) .gda-rank-n { color: #b45309; }
.gda-rank-ico { font-size: 1.4rem; flex-shrink: 0; }
.gda-rank-info { flex: 1; }
.gda-rank-name { font-family: var(--ff-head); font-weight: 700; font-size: .92rem; color: var(--ink); transition: color .15s; }
.gda-rank-row:hover .gda-rank-name { color: var(--purple); }
.gda-rank-sub { font-size: .7rem; color: var(--ink3); margin-top: 1px; }
.gda-rank-score { font-family: var(--ff-head); font-size: .82rem; font-weight: 700; color: var(--purple); }

/* ─── CATEGORY SHOWCASE ─── */
.gda-cat-showcase {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 10px; margin-bottom: 28px;
}
.gda-cat-card {
  background: var(--white); border: 1px solid var(--rule);
  border-radius: 8px; padding: 18px 12px;
  text-align: center; display: flex;
  flex-direction: column; align-items: center; gap: 8px;
  transition: box-shadow .2s, transform .2s, border-color .2s;
  cursor: pointer;
}
.gda-cat-card:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(74,31,168,.12); }
.gda-cat-card:nth-child(1):hover { border-color: var(--cat-tech); }
.gda-cat-card:nth-child(2):hover { border-color: var(--cat-gadget); }
.gda-cat-card:nth-child(3):hover { border-color: var(--cat-soft); }
.gda-cat-card:nth-child(4):hover { border-color: var(--cat-apps); }
.gda-cat-card:nth-child(5):hover { border-color: var(--cat-games); }
.gda-cat-card:nth-child(6):hover { border-color: var(--cat-esports); }
.gda-cat-ico { font-size: 1.6rem; }
.gda-cat-name { font-family: var(--ff-head); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--ink); line-height: 1.2; }
.gda-cat-count { font-size: .68rem; color: var(--ink3); }

/* ─── SIDEBAR ─── */
.gda-sidebar { display: flex; flex-direction: column; gap: 22px; }
.gda-widget { background: var(--white); border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; }
.gda-w-head {
  background: linear-gradient(90deg, var(--violet), var(--purple));
  padding: 10px 14px;
  font-family: var(--ff-head); font-size: .85rem;
  font-weight: 800; text-transform: uppercase;
  letter-spacing: .07em; color: #fff;
  display: flex; align-items: center; gap: 6px;
}
.gda-w-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 0; }
.gda-w-post { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.gda-w-post:last-child { border-bottom: none; padding-bottom: 0; }
.gda-w-thumb { width: 68px; aspect-ratio: 4/3; border-radius: 4px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; overflow: hidden; position: relative; }
.gda-w-title { font-family: var(--ff-head); font-size: .85rem; font-weight: 700; line-height: 1.25; color: var(--ink); flex: 1; transition: color .15s; }
.gda-w-post:hover .gda-w-title { color: var(--purple); }
.gda-w-info { font-size: .67rem; color: var(--ink3); margin-top: 3px; }
.gda-w-nl { background: linear-gradient(135deg, var(--violet), var(--purple-lt)); border: none; }
.gda-w-nl .gda-w-body { padding: 20px; gap: 12px; }
.gda-w-nl h3 { font-family: var(--ff-head); font-size: 1.2rem; font-weight: 800; color: #fff; line-height: 1.25; margin: 0; }
.gda-w-nl p { font-size: .83rem; color: rgba(255,255,255,.8); line-height: 1.55; margin: 0; }
.gda-w-nl input { width: 100%; padding: 10px 12px; border: none; border-radius: 5px; font-family: var(--ff-body); font-size: .85rem; outline: none; }
.gda-w-nl button { width: 100%; background: var(--cyan); color: var(--ink); border: none; border-radius: 5px; padding: 11px; font-family: var(--ff-head); font-size: .9rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; cursor: pointer; transition: opacity .15s; }
.gda-w-nl button:hover { opacity: .85; }
.gda-w-cat-item { display: flex; justify-content: space-between; align-items: center; padding: 9px 14px; border-bottom: 1px solid var(--rule); font-size: .83rem; color: var(--ink2); transition: background .15s, color .15s; }
.gda-w-cat-item:last-child { border-bottom: none; }
.gda-w-cat-item:hover { background: var(--bg); color: var(--purple); }
.gda-w-cat-cnt { font-size: .7rem; color: var(--ink3); }
.gda-w-ad { background: #edeaf5; border: 1px dashed #c4b8e0; border-radius: 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px; gap: 5px; text-align: center; min-height: 250px; }
.gda-w-ad span { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink3); font-weight: 600; }
.gda-w-ad-lbl { font-family: var(--ff-head); font-size: .95rem; font-weight: 700; color: var(--ink3); }

/* ─── BG HELPERS ─── */
.gda-bg-tech    { background: linear-gradient(135deg, #1a0a3c, #4a1fa8); }
.gda-bg-gadget  { background: linear-gradient(135deg, #0a2030, #0891b2); }
.gda-bg-soft    { background: linear-gradient(135deg, #0a2a18, #059669); }
.gda-bg-apps    { background: linear-gradient(135deg, #1e0a3c, #7c3aed); }
.gda-bg-games   { background: linear-gradient(135deg, #3a0a0a, #dc2626); }
.gda-bg-esports { background: linear-gradient(135deg, #2a1000, #ea580c); }
.gda-bg-cyber   { background: linear-gradient(135deg, #0a1a3a, #1d4ed8); }
.gda-bg-ia      { background: linear-gradient(135deg, #1a0a3c, #9333ea); }

/* ─── RESPONSIVO (Home) ─── */
@media (max-width: 1024px) {
  .gda-layout { grid-template-columns: 1fr; }
  .gda-sidebar { display: none; }
  .gda-card-grid { grid-template-columns: repeat(2,1fr); }
  .gda-cat-showcase { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 640px) {
  .gda-hero-block { grid-template-columns: 1fr; }
  .gda-hero-main { min-height: 220px; }
  .gda-hero-side { min-height: 150px; }
  .gda-card-grid { grid-template-columns: 1fr; }
  .gda-cat-showcase { grid-template-columns: repeat(2,1fr); }
}
