/* =========================================================
   Graal Ol'west Hub - HOME PAGE STYLES
   Uses tokens from base.css (:root ...)
   ========================================================= */

.hubWrap{
  width: min(1100px, calc(100% - 24px));
  margin: 0 auto;
  padding: 16px 0 18px;
}

.hero{
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  background: rgba(34,36,58,.35);
  box-shadow: 0 10px 26px rgba(0,0,0,.22);
  padding: 14px;
}

.heroTop{
  display: grid;
  gap: 12px;
}

.heroTitle{
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: .2px;
}

.heroDesc{
  margin: 8px 0 0;
  color: rgba(255,255,255,.76);
  font-size: 13px;
  line-height: 1.45;
  max-width: 70ch;
}

.heroHighlights{
  margin-top: 6px;
}

.heroHighlight{
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255,255,255,.75);
  max-width: 60ch;
}

.notice{
  margin-top: 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}

.noticeDot{
  margin-top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent, #7c5cff);
  box-shadow: 0 0 0 4px rgba(255,255,255,.06);
  flex: 0 0 auto;
}
.noticeText{
  font-size: 12px;
  line-height: 1.4;
  color: rgba(255,255,255,.78);
}

.section{
  margin-top: 16px;
}

.section{
  margin-top: 18px;
  padding-top: 14px;
  position: relative;
}

.section + .section{
  border-top: 1px solid rgba(255,255,255,.08);
}

.sectionHead{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;

  /* deixa de parecer card */
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.sectionKicker{
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;

  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  font-size: 16px;
  flex: 0 0 auto;
}

.sectionText{
  display: grid;
  gap: 4px;
  min-width: 0;
}

.sectionTitle{
  margin: 0;
  font-size: 14px;
  letter-spacing: .22px;
  text-transform: uppercase;
  opacity: .92;
}

.sectionSub{
  margin: 0;
  font-size: 12px;
  color: rgba(255,255,255,.72);
  line-height: 1.4;
  max-width: 70ch;
}

/* Identidade por seção */
.section--tools .sectionKicker{
  border-color: rgba(124,92,255,.25);
  background: rgba(124,92,255,.12);
}

.section--soon .sectionKicker{
  border-color: rgba(255,200,90,.25);
  background: rgba(255,200,90,.10);
}

/* Opcional: cards do "soon" ficam mais diferentes ainda */
.section--soon .soonCard{
  border-style: dashed;
  border-color: rgba(255,200,90,.22);
}


.grid{
  display: grid;
  gap: 12px;
}

/* Cards */
.card{
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  background: rgba(34,36,58,.35);
  box-shadow: 0 10px 26px rgba(0,0,0,.22);
  overflow: hidden;
}

.cardMediaLink{
  display: block;
  text-decoration: none;
}
.cardMedia{
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: rgba(255,255,255,.04);
}

.cardBody{
  padding: 12px;
}

.cardTop{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.cardTitle{
  margin: 0;
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: .15px;
  min-width: 0;
}

.tag{
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 950;
  white-space: nowrap;
  flex: 0 0 auto;
}
.tag.soft{
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.78);
}

.cardDesc{
  margin: 10px 0 10px;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255,255,255,.74);
}

.cardMeta{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.miniTag{
  font-size: 11px;
  font-weight: 900;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.84);
}

/* Buttons (extends shared .btn) */
.btn.primary{
  border-color: rgba(124,92,255,.35);
  background: linear-gradient(180deg, rgba(124,92,255,.30), rgba(124,92,255,.14));
}
.btn.primary:hover{
  border-color: rgba(124,92,255,.55);
  background: linear-gradient(180deg, rgba(124,92,255,.38), rgba(124,92,255,.16));
}

.cardActions{
  display: grid;
  gap: 10px;
}

.btn.disabled,
.btn:disabled{
  opacity: .55;
  cursor: not-allowed;
  pointer-events: none;
}

/* Coming soon card */
.soonCard{
  border-color: rgba(255,255,255,.12);
}

.soonMedia{
  position: relative;
}

.soonMedia .cardMedia{
  filter: saturate(.9) contrast(.95);
}

.soonOverlay{
  position: absolute;
  inset: 0;
  display: grid;
  align-content: end;
  gap: 8px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.55));
}

.soonBadge{
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  font-weight: 950;
  font-size: 12px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.28);
  backdrop-filter: blur(8px);
}

.soonTitle{
  font-size: 16px;
  font-weight: 950;
  letter-spacing: .2px;
}

.soonSub{
  font-size: 12px;
  color: rgba(255,255,255,.80);
}

/* Toast */
.toast{
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  width: min(520px, calc(100% - 24px));
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(20,21,38,.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 60px rgba(0,0,0,.45);
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 12px;
  color: rgba(255,255,255,.90);
  z-index: 200;
}

/* Desktop */
@media (min-width: 820px){
  .hubWrap{
    width: min(1120px, calc(100% - 40px));
    padding: 18px 0 20px;
  }

  .hero{
    padding: 16px;
  }

  .heroTop{
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 14px;
  }

  .heroTitle{
    font-size: 26px;
  }

  .grid{
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .cardActions{
    grid-template-columns: 1fr 1fr;
  }
}

/* ===== Coming Soon as BANNERS (more distinct than cards) ===== */

.soonBanners{
  display: grid;
  gap: 12px;
}

/* banner container */
.soonBanner{
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  padding: 12px;

  border-radius: 18px;
  border: 1px dashed rgba(255,200,90,.22);
  background: linear-gradient(180deg, rgba(255,200,90,.06), rgba(34,36,58,.30));
  box-shadow: 0 10px 26px rgba(0,0,0,.18);
}

/* thumb */
.soonThumb{
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  min-height: 86px;
}

.soonThumb img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(.92) contrast(.95);
}

.soonStamp{
  position: absolute;
  left: 8px;
  top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.30);
  backdrop-filter: blur(8px);

  font-size: 11px;
  font-weight: 950;
  color: rgba(255,255,255,.92);
}

/* info */
.soonInfo{
  display: grid;
  gap: 8px;
  min-width: 0;
}

.soonTopline{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.soonName{
  margin: 0;
  font-size: 14px;
  letter-spacing: .2px;
  min-width: 0;
}

.soonPill{
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 950;
  border: 1px solid rgba(255,200,90,.22);
  background: rgba(255,200,90,.10);
  color: rgba(255,255,255,.90);
  white-space: nowrap;
}

.soonDesc{
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255,255,255,.76);
}

.soonChips{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip{
  font-size: 11px;
  font-weight: 900;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.84);
}

/* actions */
.soonActions{
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
}

/* Mobile improvements: keep "banner feel" */
@media (min-width: 560px){
  .soonBanner{
    grid-template-columns: 150px 1fr auto;
    align-items: center;
  }

  .soonActions{
    grid-column: auto;
    display: grid;
    gap: 10px;
    justify-items: end;
    width: 190px;
  }

  .soonThumb{
    min-height: 96px;
  }
}

/* Desktop: make it even more "section-like" */
@media (min-width: 820px){
  .soonBanner{
    padding: 14px;
  }

  .soonName{
    font-size: 15px;
  }
}

/* =========================================================
   Home – Footer Size Standardization
   ========================================================= */

/* Centraliza e limita largura igual ao conteúdo */
#appFooter .footer{
  width: min(1100px, calc(100% - 24px));
  margin: 20px auto 0;
}

/* Desktop mantém proporção maior */
@media (min-width: 820px){
  #appFooter .footer{
    width: min(1120px, calc(100% - 40px));
    margin-top: 24px;
  }
}


/* =========================================================
   Card differentiation + prettier "Open" button
   ========================================================= */

/* Give each card an accent hue (rotates by position) */
.grid > .card:nth-child(6n+1){ --card-accent-h: 205; }
.grid > .card:nth-child(6n+2){ --card-accent-h: 260; }
.grid > .card:nth-child(6n+3){ --card-accent-h: 310; }
.grid > .card:nth-child(6n+4){ --card-accent-h: 30; }
.grid > .card:nth-child(6n+5){ --card-accent-h: 120; }
.grid > .card:nth-child(6n+6){ --card-accent-h: 165; }

/* Subtle accent lighting so transparent cards don't look identical */
.card{
  position: relative;
  isolation: isolate;
  background: rgba(34,36,58,.30);
  border-color: rgba(255,255,255,.11);
  transition: transform .10s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.card::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
  background:
    radial-gradient(120% 140% at 0% 0%,
      hsla(var(--card-accent-h,260), 95%, 60%, .18),
      transparent 58%),
    radial-gradient(130% 160% at 100% 0%,
      hsla(calc(var(--card-accent-h,260) + 42), 95%, 60%, .10),
      transparent 60%);
}
.card::after{
  content:"";
  position:absolute;
  left:0; right:0; top:0;
  height: 3px;
  z-index:1;
  pointer-events:none;
  background: linear-gradient(90deg,
    hsla(var(--card-accent-h,260), 95%, 65%, .85),
    hsla(calc(var(--card-accent-h,260) + 40), 95%, 65%, .55));
  opacity: .9;
}
.card > *{
  position: relative;
  z-index: 2;
}

.card:hover{
  transform: translateY(-1px);
  background: rgba(34,36,58,.34);
  border-color: rgba(255,255,255,.18);
  box-shadow: 0 14px 34px rgba(0,0,0,.28);
}

/* Make the "Open" link look like a primary action (without exposing dev toggles) */
.cardActions a.btn[data-href]{
  width: 100%;
  justify-content: space-between;
  text-decoration: none;
  border-color: rgba(255,255,255,.16);
  background:
    linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.04));
}
.cardActions a.btn[data-href]::after{
  content: "↗";
  font-weight: 950;
  opacity: .95;
}
.cardActions a.btn[data-href]:hover{
  border-color: rgba(255,255,255,.22);
  background:
    linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.06));
}

/* Keep the copy button visually secondary */
.cardActions .copyBtn.btn.ghost{
  border-color: rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
}
.cardActions .copyBtn.btn.ghost:hover{
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.18);
}

/* =========================================================
   Home growth sections (content blocks for stronger homepage)
   ========================================================= */

.hubWrap [id]{
  scroll-margin-top: 84px;
}

/* HERO quick nav + facts */
.heroQuickNav{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.heroQuickChip{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.90);
  text-decoration: none;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .1px;
  transition: border-color .18s ease, background .18s ease, transform .10s ease;
}

.heroQuickChip:hover{
  border-color: rgba(255,255,255,.20);
  background: rgba(255,255,255,.08);
  transform: translateY(-1px);
}

.heroQuickChip:active{
  transform: translateY(0);
}

.heroFacts{
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.heroFact{
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  border-radius: 14px;
  padding: 10px 12px;
  display: grid;
  gap: 2px;
}

.heroFact strong{
  font-size: 15px;
  line-height: 1;
}

.heroFact span{
  font-size: 11px;
  line-height: 1.3;
  color: rgba(255,255,255,.72);
}

/* Shared content cards for text sections */
.contentGrid{
  display: grid;
  gap: 12px;
}

.contentCard{
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  background: rgba(34,36,58,.28);
  box-shadow: 0 8px 20px rgba(0,0,0,.16);
  padding: 12px;
}

.contentCardTitle{
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.25;
  letter-spacing: .15px;
}

.contentCardText{
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255,255,255,.76);
}

/* How it works cards */
.howGrid{
  display: grid;
  gap: 12px;
}

.howCard{
  position: relative;
  padding-top: 38px;
}

.howBadge{
  position: absolute;
  top: 10px;
  right: 10px;
  min-width: 34px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(124,92,255,.25);
  background: rgba(124,92,255,.12);
  color: rgba(255,255,255,.92);
  font-size: 11px;
  font-weight: 900;
}

/* Contribute */
.stepList{
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.stepList li{
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255,255,255,.78);
}

.contribActions{
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

.contribActions .btn{
  width: 100%;
  justify-content: center;
  text-decoration: none;
}

/* FAQ */
.faqList{
  display: grid;
  gap: 10px;
}

.faqItem{
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  background: rgba(34,36,58,.26);
  overflow: clip;
}

.faqItem[open]{
  border-color: rgba(255,255,255,.16);
  background: rgba(34,36,58,.34);
}

.faqSummary{
  cursor: pointer;
  list-style: none;
  padding: 12px;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.35;
}

.faqSummary::-webkit-details-marker{
  display: none;
}

.faqSummary::after{
  content: "+";
  float: right;
  opacity: .75;
  font-weight: 900;
}

.faqItem[open] .faqSummary::after{
  content: "–";
}

.faqBody{
  padding: 0 12px 12px;
}

.faqBody p{
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255,255,255,.76);
}

/* Section visual identity (new blocks) */
.section--about .sectionKicker{
  border-color: rgba(90,200,255,.22);
  background: rgba(90,200,255,.10);
}
.section--learn .sectionKicker{
  border-color: rgba(124,92,255,.25);
  background: rgba(124,92,255,.12);
}
.section--contribute .sectionKicker{
  border-color: rgba(80,220,140,.22);
  background: rgba(80,220,140,.10);
}
.section--faq .sectionKicker{
  border-color: rgba(255,255,255,.15);
  background: rgba(255,255,255,.06);
}

/* Responsive */
@media (min-width: 560px){
  .heroFacts{
    grid-template-columns: repeat(3, minmax(0,1fr));
  }

  .howGrid{
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 760px){
  .contentGrid--2{
    grid-template-columns: 1fr 1fr;
  }

  .hallGrid{
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 980px){
  .contentCard{
    padding: 14px;
  }

  .contentCardTitle{
    font-size: 15px;
  }

  .contentCardText,
  .stepList li,
  .faqBody p{
    font-size: 13px;
  }

  .faqSummary{
    font-size: 14px;
  }
}

/* =========================================================
   Home - Ad-ready slots (placeholders before approval)
   Mobile-first and layout-safe (CLS friendly)
   ========================================================= */

.homeAdBlock{
  margin-top: 16px;
  display: none; /* --- REMOVER APÓS COLOCAR ANUNCIOS --- */
}

.homeAdLabel{
  margin: 0 0 8px;
  padding-left: 2px;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: .28px;
  text-transform: uppercase;
  color: rgba(255,255,255,.62);
}

.homeAdCard{
  border: 1px dashed rgba(255,255,255,.14);
  border-radius: 16px;
  background: rgba(34,36,58,.22);
  box-shadow: 0 8px 20px rgba(0,0,0,.16);
  padding: 10px;
}

.homeAdFrame{
  min-height: 96px; /* mobile banner-like */
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.025));
  display: grid;
  align-items: stretch;
}

.homeAdFrame--tall{
  min-height: 170px; /* second slot a little taller */
}

.homeAdPlaceholder{
  min-height: inherit;
  width: 100%;
  border-radius: 12px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 10px 12px;
  color: rgba(255,255,255,.58);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .15px;

  background-image:
    radial-gradient(120% 120% at 0% 0%, rgba(124,92,255,.10), transparent 60%),
    radial-gradient(120% 120% at 100% 0%, rgba(53,198,255,.08), transparent 60%);
}

/* When you replace placeholder with AdSense <ins>, this helps layout */
.homeAdFrame > ins.adsbygoogle{
  display: block !important;
  width: 100%;
  min-height: inherit;
  border-radius: 12px;
  overflow: hidden;
}

/* Tablet */
@media (min-width: 560px){
  .homeAdBlock{
    margin-top: 18px;
  }

  .homeAdCard{
    padding: 12px;
  }

  .homeAdFrame{
    min-height: 110px;
  }

  .homeAdFrame--tall{
    min-height: 190px;
  }
}

/* Desktop */
@media (min-width: 820px){
  .homeAdBlock{
    margin-top: 20px;
  }

  .homeAdFrame{
    min-height: 120px;
  }

  .homeAdFrame--tall{
    min-height: 210px;
  }
}