/* ==========================================================================
   İşletme ve Operasyon — ekibinle birlikte yönet
   of-guvenli.css / ms-iletisim.css / bo-efatura.css ile aynı kart dili, 3 kart.
   ========================================================================== */

.ioekip {
  background: var(--bg-tint);
  border-bottom: 1px solid var(--line-soft);
}

.ioekip__head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

.ioekip__eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--indigo);
}

.ioekip__title {
  font-weight: 800;
  font-size: clamp(36px, 3.8vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 16px 0 12px;
}

.ioekip__lede {
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
  text-wrap: pretty;
}

.ioekip__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.ioekip__card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  padding: 26px 26px 0;
  overflow: hidden;
}

.ioekip__icon {
  display: inline-flex;
  color: var(--indigo);
  margin-bottom: 18px;
}

.ioekip__icon svg {
  width: 22px;
  height: 22px;
}

.ioekip__card-title {
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.ioekip__card-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
  text-wrap: pretty;
}

/* --- mockup illüstrasyonları ------------------------------------------------ */

.ioekip__mock {
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  margin-top: 24px;
  padding: 16px;
  text-align: center;
}

/* kart 1: ekibine yer aç (avatar yığını + ekle) */

.ioekip__mock--team {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ioekip__mock-avatars {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.ioekip__mock-avatars span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--white);
  font-size: 11px;
  font-weight: 700;
  margin-right: -8px;
  transition: transform .2s ease;
}

.ioekip__mock-avatars span:hover {
  transform: translateY(-5px) scale(1.12);
  z-index: 1;
}

.ioekip__mock-avatar-add {
  background: var(--bg-tint);
  color: var(--indigo);
  border: 2px dashed var(--line-2) !important;
  font-size: 15px !important;
  font-weight: 400 !important;
}

.ioekip__mock-teamtext {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
}

/* kart 2: randevularını hatırlat (bildirim satırı) */

.ioekip__mock--notif {
  text-align: left;
  transform: translateY(10px);
  transition: transform .3s ease;
}

.ioekip__card--group:hover .ioekip__mock--notif {
  transform: translateY(0);
}

.ioekip__mock-notifrow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line-2);
}

.ioekip__mock-notifico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg-tint);
  color: var(--indigo);
  flex-shrink: 0;
}

.ioekip__mock-notifico svg {
  width: 15px;
  height: 15px;
}

.ioekip__card--group:hover .ioekip__mock--notif {
  animation: ioekip-notif-shake .5s ease-in-out .3s;
}

@keyframes ioekip-notif-shake {
  0%, 100% { transform: translateY(0) translateX(0); }
  20% { transform: translateY(0) translateX(-5px); }
  40% { transform: translateY(0) translateX(4px); }
  60% { transform: translateY(0) translateX(-3px); }
  80% { transform: translateY(0) translateX(2px); }
}

@media (prefers-reduced-motion: reduce) {
  .ioekip__card--group:hover .ioekip__mock--notif {
    animation: none;
  }
}

.ioekip__mock-notiftitle {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
}

.ioekip__mock-notifsub {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.ioekip__mock-notiftime {
  font-size: 11.5px;
  color: var(--muted);
}

/* kart 3: stok durumundan haberdar ol (uyarı rozeti) */

.ioekip__mock--alert {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  transform: translateY(10px);
  transition: transform .3s ease;
}

.ioekip__card--group:hover .ioekip__mock--alert {
  transform: translateY(0);
}

.ioekip__mock-alerticon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #FFF3E0;
  color: #B0631A;
  flex-shrink: 0;
}

.ioekip__mock-alerticon svg {
  width: 18px;
  height: 18px;
}

.ioekip__card--group:hover .ioekip__mock-alerticon {
  animation: ioekip-alert-blink 1s steps(1, end) infinite;
}

@keyframes ioekip-alert-blink {
  0%, 100% { background: #FFF3E0; color: #B0631A; }
  50% { background: #FBDCDC; color: #C42B2B; }
}

@media (prefers-reduced-motion: reduce) {
  .ioekip__card--group:hover .ioekip__mock-alerticon {
    animation: none;
  }
}

.ioekip__mock-alerttitle {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
}

.ioekip__mock-alertsub {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

@media (max-width: 860px) {
  .ioekip__grid {
    grid-template-columns: 1fr;
  }

  /* Mobilde hover olmadığı için, görünür olunca (data-io-inview via
     IntersectionObserver) hover ile aynı efektler otomatik oynar. */
  .ioekip__card--group.is-inview .ioekip__mock--notif,
  .ioekip__card--group.is-inview .ioekip__mock--alert {
    transform: translateY(0);
  }

  .ioekip__card--group.is-inview .ioekip__mock--notif {
    animation: ioekip-notif-shake .5s ease-in-out .5s;
  }

  .ioekip__card--group.is-inview .ioekip__mock-alerticon {
    animation: ioekip-alert-blink 1s steps(1, end) infinite;
  }

  .ioekip__card--group.is-inview .ioekip__mock-avatars span {
    animation: ioekip-avatar-pop .5s ease-out backwards;
  }

  .ioekip__card--group.is-inview .ioekip__mock-avatars span:nth-child(1) { animation-delay: .1s; }
  .ioekip__card--group.is-inview .ioekip__mock-avatars span:nth-child(2) { animation-delay: .22s; }
  .ioekip__card--group.is-inview .ioekip__mock-avatars span:nth-child(3) { animation-delay: .34s; }
  .ioekip__card--group.is-inview .ioekip__mock-avatars span:nth-child(4) { animation-delay: .46s; }

  @keyframes ioekip-avatar-pop {
    0% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-6px) scale(1.12); }
    100% { transform: translateY(0) scale(1); }
  }
}
