/* Resmi WhatsApp Business API sayfası — entegrasyonlar.css üzerine eklenir */

.meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-bottom: 18px;
  border: 1px solid rgba(8, 102, 255, .22);
  border-radius: 999px;
  padding: 8px 14px 8px 8px;
  background: #fff;
  color: #0866ff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .02em;
  box-shadow: 0 12px 28px rgba(8, 102, 255, .1);
}

.meta-badge-dot {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #0866ff;
  color: #fff;
  font-size: 12px;
}

.inline-link {
  color: var(--blue);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.compare-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.compare-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 15px;
}

.compare-table th,
.compare-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.compare-table thead th {
  background: #f2f6ff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.compare-table thead th:last-child,
.compare-table td:last-child {
  color: var(--blue);
  font-weight: 800;
}

.compare-table tbody th { font-weight: 800; }

.compare-table td { color: var(--muted); }

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td { border-bottom: 0; }

.faq-list {
  display: grid;
  gap: 14px;
  max-width: 860px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 22px;
  background: #fff;
}

.faq-list summary {
  cursor: pointer;
  font-size: 17px;
  font-weight: 800;
}

.faq-list details p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.7;
}

/* Hero: 3 satırlık başlık paragrafa yapışmasın, istatistikler tek satır kalsın */
.integrations-hero h1 {
  line-height: 1.08;
}

.integrations-hero .hero-copy h1 + p {
  margin-top: 24px;
}

.integrations-hero .hero-stats strong {
  font-size: clamp(20px, 1.9vw, 28px);
  white-space: nowrap;
}

/* İkon kutucuğu — kartlar ve yörünge aynı stili kullanır (torxsoft ile aynı) */
.icon-tile {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 30px -16px rgba(60, 30, 80, .5);
}

.icon-tile svg {
  width: 28px;
  height: 28px;
}

.icon-tile--line {
  color: #7650c0;
}

.icon-tile-pair {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 8px;
}

/* Hero yörüngesi: merkezde robot, kanallardan merkeze akan çizgiler */
.api-orbit {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1;
  margin: 0 auto;
}

.api-orbit__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.api-orbit__flow {
  stroke: rgba(49, 92, 244, .45);
  stroke-width: .35;
  stroke-dasharray: .8 2.2;
  stroke-linecap: round;
  animation: apiFlow 2.4s linear infinite;
}

.api-orbit__core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 26%;
  transform: translate(-50%, -50%);
}

.api-orbit__mark {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 28%;
  background: linear-gradient(145deg, #fff, #f2f5ff);
  box-shadow: 0 24px 54px rgba(52, 93, 244, .28), inset 0 1px 0 #fff;
  animation: apiPulse 4.8s ease-in-out infinite;
}

.api-orbit__mark img {
  width: 62%;
  height: auto;
}

.api-orbit__glow {
  position: absolute;
  inset: -22%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(49, 92, 244, .3), rgba(155, 63, 240, .14) 60%, transparent);
}

.api-orbit__tile {
  position: absolute;
  transform: translate(-50%, -50%);
}

.api-orbit__tile .icon-tile {
  width: 62px;
  height: 62px;
  border-radius: 18px;
}

.api-orbit__tile .icon-tile svg {
  width: 30px;
  height: 30px;
}

.api-orbit__tile em {
  position: absolute;
  left: 50%;
  top: 100%;
  margin-top: 7px;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 12.5px;
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
}

@keyframes apiPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

@keyframes apiFlow {
  to { stroke-dashoffset: -3; }
}

@media (max-width: 640px) {
  .api-orbit__tile .icon-tile {
    width: 44px;
    height: 44px;
    border-radius: 13px;
  }

  .api-orbit__tile .icon-tile svg {
    width: 22px;
    height: 22px;
  }

  .api-orbit__tile em { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .api-orbit__flow,
  .api-orbit__mark { animation: none; }
}

/* Meta resmi geliştirici ve iş ortağı şeridi */
.integrations-hero .hero-copy p strong {
  color: var(--text);
  font-weight: 800;
}

.meta-proof {
  position: relative;
  z-index: 2;
  margin-top: -28px;
}

.meta-proof__inner {
  display: flex;
  align-items: center;
  gap: 22px;
  border: 1px solid rgba(8, 102, 255, .18);
  border-radius: 24px;
  padding: 22px 28px;
  background: linear-gradient(120deg, #fff 0%, #f1f6ff 100%);
  box-shadow: var(--shadow);
}

.meta-proof__logo {
  width: 64px;
  height: 64px;
  border-radius: 18px;
}

.meta-proof__logo svg {
  width: 34px;
  height: 34px;
}

.meta-proof__copy {
  flex: 1;
  min-width: 0;
}

.meta-proof__copy strong {
  display: block;
  color: #0866ff;
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 900;
  letter-spacing: -.01em;
}

.meta-proof__copy p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.meta-proof__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.meta-proof__list li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(8, 102, 255, .08);
  color: #0866ff;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .meta-proof__inner {
    flex-wrap: wrap;
  }

  .meta-proof__list {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .meta-proof { margin-top: 0; }

  .meta-proof__inner {
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
  }

  .meta-proof__logo {
    width: 52px;
    height: 52px;
  }
}

/* Resmi API rehberi */
.api-guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.api-guide__item {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(47, 68, 126, .06);
}

.api-guide__item h3 {
  margin-bottom: 12px;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -.01em;
}

.api-guide__item p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.api-guide__item p + p {
  margin-top: 10px;
}

.api-guide__item strong {
  color: var(--text);
}

@media (max-width: 980px) {
  .api-guide { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .api-guide { grid-template-columns: 1fr; }

  .api-guide__item { padding: 22px; }
}
