/* =========================================================
   AULA 01 — TAGS E ELEMENTOS PRO
   Bloco: Primeiro contato com tags
   ========================================================= */

#tags.tags-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(34, 197, 94, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.94));
}

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

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

#tags .tags-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;
}

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

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

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

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

#tags .tag-anatomy-card {
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 20px;
  padding: 18px;
  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;
}

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

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

#tags .tag-anatomy-card strong {
  display: block;
  margin-bottom: 8px;
  color: #f8fafc;
  font-size: 1.08rem;
}

#tags .tag-anatomy-card code {
  display: inline-flex;
  margin-top: 6px;
  padding: 7px 9px;
  border-radius: 10px;
  border: 1px solid rgba(247, 201, 72, 0.22);
  background: rgba(247, 201, 72, 0.08);
}

#tags .tag-code-pro {
  margin-top: 22px;
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 20px;
  background: rgba(2, 6, 23, 0.72);
  overflow: hidden;
}

#tags .tag-code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(56, 189, 248, 0.16);
  background: rgba(15, 23, 42, 0.72);
}

#tags .tag-code-header strong {
  color: #e0f2fe;
}

#tags .tag-code-header span {
  color: #7dd3fc;
  font-size: 0.86rem;
}

#tags .tag-code-pro pre {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: #020617;
}

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

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

#tags .tags-card strong {
  display: block;
  margin-bottom: 8px;
  color: #7dd3fc;
}

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

#tags .tags-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));
}

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

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

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

  #tags .tag-anatomy,
  #tags .tags-grid {
    grid-template-columns: 1fr;
  }

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

  #tags .tags-lead,
  #tags .tag-anatomy-card p,
  #tags .tags-card p,
  #tags .tags-rule p {
    font-size: 0.98rem;
    line-height: 1.7;
  }

  #tags .tag-code-header {
    align-items: flex-start;
    flex-direction: column;
  }
}
