/* Kegel+ — videos, tip cards and lightbox (styles.css is precompiled Tailwind,
   so new components live here with plain CSS). */

.km-video-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  max-width: 64rem;
  margin: 0 auto;
}
@media (max-width: 767px) {
  .km-video-row {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding: 0 1.5rem 1rem;
    margin: 0 -1.5rem;
    scrollbar-width: none;
  }
  .km-video-row::-webkit-scrollbar { display: none; }
  .km-video-row > figure { flex: 0 0 72%; scroll-snap-align: center; }
}

.km-video {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 2rem;
  overflow: hidden;
  background: #eef3ee;
  box-shadow: 0 20px 48px rgba(90, 138, 110, 0.20);
}
.km-video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.km-video-sm { max-width: 260px; margin: 0 auto; }

.km-video figcaption,
.km-caption {
  margin-top: 1rem;
  text-align: center;
}
.km-caption-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.35rem;
  color: #36654c;
  line-height: 1.2;
}
.km-caption-text {
  margin-top: 0.35rem;
  color: #414943;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Tip cards (social posts) */
.km-tips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2rem;
}
.km-tip { text-align: left; }
.km-tip button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  border-radius: 1.75rem;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(90, 138, 110, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.km-tip button:hover,
.km-tip button:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(90, 138, 110, 0.20);
}
.km-tip button:focus-visible { outline: 3px solid #36654c; outline-offset: 3px; }
.km-tip img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; }
.km-tip .km-caption { text-align: left; }

.km-feature-post {
  max-width: 380px;
  margin: 0 auto;
}

/* Lightbox */
.km-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(25, 29, 25, 0.85);
  cursor: zoom-out;
}
.km-lightbox.open { display: flex; }
.km-lightbox img {
  max-width: min(100%, 560px);
  max-height: 100%;
  border-radius: 1.25rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.km-lightbox button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 9999px;
  background: #fff;
  color: #36654c;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  .km-tip button { transition: none; }
  .km-tip button:hover { transform: none; }
}

/* Üst menü: 6 bağlantı dar masaüstü/tablet genişliğinde (768-1023px) taşmasın */
.nav-links a { white-space: nowrap; }
@media (min-width: 768px) and (max-width: 1023px) {
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 14px; }
}

/* Sağlık bilgisi kaynak satırı, uyarı notu ve kaynak kartları */
.src-line { font-size: 12px; line-height: 1.5; margin-top: 8px; opacity: 0.9; }
.src-line a { text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.src-line-muted { color: #414943; }
.src-line-muted a { color: #36654c; font-weight: 600; }
.health-note {
  max-width: 720px; margin: 16px auto 0; padding: 12px 18px; border-radius: 16px;
  background: rgba(187, 238, 205, 0.35); color: #2a2e2a;
  font-size: 13px; line-height: 1.55; text-align: center;
}
.src-card {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  color: #36654c; font-size: 14px; font-weight: 600; line-height: 1.45;
}
.src-card:hover { text-decoration: underline; }
