/* ===========================
   CATEGORY CARD STİLLERİ
   Template Category Card için tab ve kart stilleri
   =========================== */

.detail3-tabs-section {
  margin: 40px 0;
}

.detail3-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* Mobilde yatay scroll */
@media (max-width: 768px) {
  .detail3-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    padding-bottom: 4px;
  }

  .detail3-tabs::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
  }

  .detail3-tabs .detail3-tab {
    flex-shrink: 0;
  }
}

.detail3-tab {
  padding: 12px 24px;
  background: #ffffff;
  color: var(--color-gray-dark);
  border: none;
  border-radius: 48px;
  font-family: var(--font-family-primary);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.detail3-tab:hover {
  background: var(--color-green);
  color: #ffffff;
}

.detail3-tab.active {
  background: var(--color-green);
  color: #ffffff;
}

.detail3-tab.active:hover {
  background: #2fa53e;
}

/* Cards Section */
.detail3-cards-section {
  margin: 60px 0;
}

.detail3-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.detail3-card {
  overflow: hidden;
  display: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.detail3-card.active {
  display: block;
}

.detail3-card__image {
  width: 100%;
  height: 400px;
  overflow: hidden;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

/* Placeholder görsel - 152x152, ortada */
.detail3-card__image img[src*="placeholder"] {
  width: 152px;
  height: 152px;
  object-fit: contain;
  display: block;
}

/* Gerçek görsel - full width ve height */
.detail3-card__image img:not([src*="placeholder"]) {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.detail3-card__content {
  padding: 20px 0;
  background: transparent;
}

.detail3-card__title {
  color: var(--color-green);
  font-family: var(--font-family-primary);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 16px 0;
}

.detail3-card__description {
  color: var(--color-gray-dark);
  font-family: var(--font-family-primary);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  margin: 0 0 24px 0;
}

.detail3-card__link {
  display: inline-block;
  padding: 14px 32px;
  background: var(--color-green);
  color: #ffffff;
  text-decoration: none;
  border-radius: 48px;
  font-family: var(--font-family-primary);
  font-size: 16px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.detail3-card__link:hover {
  background: #2fa53e;
}

/* Responsive */
@media (max-width: 768px) {
  .detail3-tabs-section {
    margin: 30px 0;
  }

  .detail3-tabs {
    gap: 8px;
  }

  .detail3-tab {
    padding: 10px 20px;
    font-size: 14px;
  }

  .detail3-cards-section {
    margin: 40px 0;
  }

  .detail3-cards {
    gap: 30px;
  }

  .detail3-card__image {
    height: 300px;
  }

  .detail3-card__content {
    padding: 24px 5px;
  }

  .detail3-card__title {
    font-size: 24px;
  }

  .detail3-card__description {
    font-size: 14px;
  }

  .detail3-card__link {
    padding: 12px 24px;
    font-size: 14px;
  }
}
