body {
  font-family: "Inter", sans-serif;
  background: #fcfbf8;
  color: #222;
  overflow-x: hidden;
}

/* CONTEÚDO PRINCIPAL */
.main-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* BLOCO DO COMPONENTE */
.component-block {
  background: #fff;
  border-radius: 20px;
  border: 1px solid #eee;
  padding: 2rem;
  margin: 0 auto 2.5rem;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}
.component-block:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.08);
}

/* CABEÇALHO */
.component-header {
  margin-bottom: 1.8rem;
}
.component-header h4 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.component-header p {
  font-size: 0.95rem;
  color: #666;
  margin: 0;
  max-width: 720px;
}

/* CONTEÚDO */
.component-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: flex-start;
  justify-content: center;
}

/* CARD VISUAL */
.card-fixed {
  flex: 1 1 320px;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 360px;
  margin: 0 auto;
}
.card-preview {
  width: 100%;
  border-radius: 20px;
  background: linear-gradient(145deg, #f3f3ff, #e7e7ff);
  box-shadow: 6px 6px 12px #d1d9e6, -6px -6px 12px #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-preview:hover {
  transform: scale(1.03);
  box-shadow: 10px 10px 25px #c8cbe3, -10px -10px 25px #fff;
}

/* PAINEL DE CÓDIGO */
.code-panel {
  flex: 1 1 500px;
  background: #1e1e1e;
  border-radius: 14px;
  padding: 1rem 1.2rem;
  box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.25);
  overflow-x: auto;
  overflow-y: hidden;
  word-wrap: break-word;
  min-width: 280px;
  max-width: 100%;
}

/* CÓDIGO */
.code-panel pre,
.code-panel code {
  font-size: 0.82em !important;
  white-space: pre-wrap !important;
  word-break: break-word !important;
  overflow-x: hidden !important;
  display: block;
  max-width: 100%;
  line-height: 1.45;
}

/* ---------- 🔹 RESPONSIVIDADE ---------- */

/* Tablets */
@media (max-width: 992px) {
  .component-block {
    padding: 1.5rem;
  }

  .component-row {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .card-fixed {
    width: 100%;
    max-width: 400px;
  }

  .code-panel {
    width: 100%;
    min-width: unset;
    margin-top: 1rem;
  }

  .code-panel pre,
  .code-panel code {
    font-size: 0.78em !important;
  }
}

/* Celulares médios (<=600px) */
@media (max-width: 600px) {
  .main-content {
    padding: 1rem;
  }

  .component-block {
    padding: 1rem 0.8rem;
    border-radius: 14px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.04);
  }

  .component-header {
    text-align: center;
  }
  .component-header h4 {
    font-size: 1.15rem;
  }
  .component-header p {
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 1rem;
  }

  .component-row {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .card-fixed {
    width: 100%;
    max-width: 320px;
  }

  .card-preview {
    border-radius: 14px;
    box-shadow: 4px 4px 10px #d1d9e6, -4px -4px 10px #fff;
  }

  .code-panel {
    padding: 0.8rem;
    font-size: 0.75em;
    border-radius: 10px;
  }

  .code-panel pre,
  .code-panel code {
    font-size: 0.72em !important;
  }

}

/* Celulares pequenos (<=400px) */
@media (max-width: 400px) {
  .component-block {
    padding: 0.9rem 0.6rem;
  }

  .component-header h4 {
    font-size: 1.05rem;
  }

  .component-header p {
    font-size: 0.8rem;
  }

  .card-fixed {
    max-width: 100%;
    padding: 0 0.2rem;
  }

  .card-preview {
    box-shadow: 3px 3px 8px #d1d9e6, -3px -3px 8px #fff;
  }

  .code-panel {
    font-size: 0.68em;
    padding: 0.6rem;
  }

  .code-panel pre,
  .code-panel code {
    font-size: 0.65em !important;
    line-height: 1.3;
  }

}

/* Mini celulares (<=350px, ex: iPhone SE) */
@media (max-width: 350px) {
  .main-content {
    padding: 0.8rem;
  }

  .component-header h4 {
    font-size: 0.95rem;
  }

  .component-header p {
    font-size: 0.75rem;
    line-height: 1.3;
  }

  .card-fixed {
    max-width: 100%;
  }

  .code-panel {
    padding: 0.5rem;
  }
}


/* RODAPÉ DO CARD */
.component-footer {
  border-top: 1px solid #f1f1f1;
  padding-top: 1rem;
  font-size: 0.9rem;
  color: #555;
}

.creator-link {
  text-decoration: none;
  color: #333;
  transition: color 0.3s;
}
.creator-link:hover {
  color: #0077b5; /* azul LinkedIn */
}

.linkedin-icon {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(0.2);
  transition: 0.3s;
}
.creator-link:hover + .linkedin-icon,
.linkedin-icon:hover {
  filter: brightness(1) invert(0);
}

/* Responsivo */
@media (max-width: 600px) {
  .component-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }
  .creator-link {
    font-size: 0.85rem;
  }
  .linkedin-icon {
    width: 16px;
    height: 16px;
  }
}

/* Notificação ao Copiar */
.notyf__toast {
  border-radius: 10px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-family: "Inter", sans-serif;
}

.notyf__toast--success {
  background: linear-gradient(135deg, #5d52ba, #6e63d6);
  color: #fff;
}

.notyf__toast--error {
  background: #ef4444;
}

/* Contador de visuais */
.visual-info {
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  margin-top: 40px !important;
  color: #334155; /* cinza sofisticado */
  font-size: 15.5px;
  line-height: 1.6;
  animation: fadeIn 0.5s ease-out both;
  letter-spacing: 0.2px;
}

.visual-number {
  color: #5d52ba;
  font-weight: 600;
  font-size: 17px;
  position: relative;
  display: inline-block;
  padding: 0 2px;
  transition: all 0.25s ease;
}

.visual-number::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #5d52ba, #7b6df2);
  border-radius: 2px;
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

.visual-info:hover .visual-number::after {
  opacity: 0.8;
}

.visual-label {
  color: #64748b; /* cinza azulado leve */
  font-weight: 400;
}

@media (max-width: 700px) {
  .visual-info {
    font-size: 14.5px;
    margin-top: 28px;
  }
  .visual-number {
    font-size: 15.5px;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


