/* Ekip kartları */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  gap: 32px;
  width: 90%;
  margin: 0 auto;
}

.team-card {
  position: relative;
  width: 300px;
  max-width: 100%;
  overflow: hidden;
  border-radius: 24px;
  background: #0e2c3b;
  box-shadow: 0 24px 50px -26px rgba(14, 44, 59, 0.55), 0 0 0 1px rgba(74, 138, 169, 0.12);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s;
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 32px 60px -26px rgba(14, 44, 59, 0.65), 0 0 0 1px rgba(74, 138, 169, 0.25);
}

.team-card__photo {
  position: relative;
  aspect-ratio: 3 / 4;
}

.team-card__photo img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s ease;
}

.team-card:hover .team-card__photo img {
  transform: scale(1.04);
}

/* Fotoğrafın altından yükselen lacivert geçiş */
.team-card__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10, 34, 46, 0.95) 0%, rgba(14, 44, 59, 0.55) 30%, transparent 58%);
}

.team-card__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 22px 22px 20px;
  color: #fff;
  text-align: center;
}

.team-card__body h3 {
  margin: 0;
  font-family: 'FuturaPT-Book', sans-serif;
  font-size: 25px;
  font-weight: 500;
  color: #fff;
}

.team-card__body p {
  margin: 4px 0 0;
  font-size: 14px;
  letter-spacing: 1px;
  color: #bfe3f2;
}

.team-card__links {
  display: flex;
  justify-content: center;
  gap: 10px;
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s ease, margin-top 0.35s ease, opacity 0.35s ease;
}

.team-card:hover .team-card__links,
.team-card:focus-within .team-card__links {
  max-height: 60px;
  margin-top: 14px;
  opacity: 1;
}

.team-card__links a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 16px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.team-card__links a:hover,
.team-card__links a:active {
  border-color: #fff;
  background: #fff;
  color: #1c5169;
}

/* Dokunmatik ekranlarda üzerine gelme yok: bağlantılar hep görünür */
@media (hover: none) {
  .team-card__links {
    max-height: none;
    margin-top: 14px;
    opacity: 1;
  }

  .team-card:hover {
    transform: none;
  }
}

@media (max-width: 640px) {
  .team-grid {
    gap: 24px;
  }

  .team-card {
    width: 280px;
  }

  .team-card__body p {
    font-size: 13px;
    letter-spacing: 0.3px;
  }
}

/* "Yukarı çık" butonu (main.js görünür olunca .showupbtn ekler) */
.upbutton {
  position: fixed;
  right: 20px;
  bottom: 28px;
  bottom: calc(28px + env(safe-area-inset-bottom));
  z-index: 50;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(145deg, #1c5169, rgb(74, 138, 169));
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 14px 28px -12px rgba(14, 44, 59, 0.7);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s, box-shadow 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.upbutton.showupbtn {
  display: grid;
  opacity: 1;
  visibility: visible;
  transform: none;
}

.upbutton:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 32px -12px rgba(14, 44, 59, 0.8);
}

.upbutton:focus-visible {
  outline: 3px solid rgba(74, 138, 169, 0.45);
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .upbutton {
    right: 14px;
    bottom: calc(18px + env(safe-area-inset-bottom));
    width: 42px;
    height: 42px;
    border-radius: 13px;
    font-size: 15px;
    opacity: 0;
  }

  /* Telefonda altındaki butonları kapatmasın diye yarı saydam */
  .upbutton.showupbtn {
    opacity: 0.85;
  }
}
