/* =========================================================
   AULA 01 — TRÍADE DA WEB PRO
   Bloco: HTML vs CSS vs JavaScript
   ========================================================= */

#triade.triade-pro {
  position: relative;
  overflow: hidden;
  border-color: rgba(56, 189, 248, 0.24);
  background:
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.12), transparent 34%),
    radial-gradient(circle at bottom left, rgba(247, 201, 72, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.94));
}

#triade.triade-pro::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(56, 189, 248, 0.07), transparent 42%, rgba(247, 201, 72, 0.045));
  pointer-events: none;
}

#triade .triade-pro-inner {
  position: relative;
  z-index: 1;
}

#triade .triade-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.28);
  background: rgba(56, 189, 248, 0.08);
  color: #67e8f9;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

#triade .triade-title {
  max-width: 900px;
  margin: 0 0 14px;
  font-size: clamp(1.9rem, 4.6vw, 3.8rem);
  line-height: 1;
  letter-spacing: -0.052em;
}

#triade .triade-title span {
  background: linear-gradient(135deg, #67e8f9, #38bdf8, #2563eb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

#triade .triade-lead {
  max-width: 980px;
  margin: 0;
  color: #e0f2fe;
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.8;
}

#triade .triade-cards {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

#triade .triade-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 20px;
  padding: 20px;
  background:
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.08), transparent 38%),
    rgba(2, 6, 23, 0.62);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

#triade .triade-card:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.42);
  box-shadow: 0 16px 34px rgba(0, 20, 60, 0.22);
}

#triade .triade-card small {
  display: inline-flex;
  margin-bottom: 10px;
  color: #38bdf8;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

#triade .triade-card strong {
  display: block;
  margin-bottom: 10px;
  color: #f8fafc;
  font-size: 1.2rem;
}

#triade .triade-card p {
  margin: 0;
  color: #dbeafe;
  line-height: 1.7;
}

#triade .triade-card ul {
  margin: 14px 0 0;
  padding-left: 18px;
}

#triade .triade-card li {
  color: #cbd5e1;
  line-height: 1.55;
  margin: 6px 0;
}

#triade .triade-card-html {
  border-color: rgba(56, 189, 248, 0.28);
}

#triade .triade-card-css {
  border-color: rgba(124, 58, 237, 0.28);
}

#triade .triade-card-js {
  border-color: rgba(247, 201, 72, 0.28);
}

#triade .triade-flow {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 12px;
  align-items: center;
}

#triade .triade-flow-box {
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 18px;
  padding: 18px;
  background: rgba(15, 23, 42, 0.58);
}

#triade .triade-flow-box strong {
  display: block;
  margin-bottom: 8px;
  color: #7dd3fc;
}

#triade .triade-flow-box p {
  margin: 0;
  color: #dbeafe;
  line-height: 1.65;
}

#triade .triade-arrow {
  color: #38bdf8;
  font-size: 1.6rem;
  font-weight: 900;
  opacity: 0.75;
}

#triade .triade-table-wrap {
  margin-top: 22px;
  overflow-x: auto;
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.45);
}

#triade .triade-table-wrap table {
  margin: 0;
  min-width: 760px;
}

#triade .triade-rule {
  margin-top: 22px;
  border: 1px solid rgba(34, 197, 94, 0.34);
  border-radius: 20px;
  padding: 20px;
  background:
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.13), transparent 34%),
    linear-gradient(180deg, rgba(5, 46, 36, 0.46), rgba(3, 30, 27, 0.58));
}

#triade .triade-rule strong {
  display: block;
  margin-bottom: 8px;
  color: #bbf7d0;
  font-size: 1rem;
}

#triade .triade-rule p {
  margin: 0;
  color: #eafff2;
  line-height: 1.75;
}

@media (max-width: 900px) {
  #triade.triade-pro {
    padding: 22px !important;
  }

  #triade .triade-cards,
  #triade .triade-flow {
    grid-template-columns: 1fr;
  }

  #triade .triade-arrow {
    transform: rotate(90deg);
    justify-self: center;
  }

  #triade .triade-title {
    font-size: clamp(1.9rem, 9vw, 3rem);
  }

  #triade .triade-lead,
  #triade .triade-card p,
  #triade .triade-flow-box p,
  #triade .triade-rule p {
    font-size: 0.98rem;
    line-height: 1.7;
  }
}
