/* Anasayfa görsel paket (home.css v1) — sadece index.ejs yükler. */
#heroFx {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Hero arka plan videosu (azamet deseni: poster -> video, karartma üstte) */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
  pointer-events: none;
}
.hero-video.on {
  opacity: 1;
}
.hero-video-mobile {
  display: none;
}
@media (max-width: 700px) {
  .hero-video-desktop {
    display: none;
  }
  .hero-video-mobile {
    display: block;
  }
}
.hero-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}
.hero-fallback.hide {
  display: none;
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(11, 9, 6, 0.55) 0%,
    rgba(11, 9, 6, 0.35) 45%,
    rgba(11, 9, 6, 0.78) 100%
  );
}

/* Kaydırma belirme */
.reveal {
  opacity: 0;
  translate: 0 26px;
  transition: opacity 0.7s ease, translate 0.7s ease;
}
.reveal.in {
  opacity: 1;
  translate: 0 0;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    translate: none;
    transition: none;
  }
}

/* Sınıf kartı parlama (renk --mx/--my ile fareyi izler) */
.class-card {
  --mx: 50%;
  --my: 30%;
}
.class-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  background: radial-gradient(
    circle at var(--mx) var(--my),
    rgba(236, 205, 142, 0.16),
    transparent 55%
  );
}
.class-card:hover::after {
  opacity: 1;
}

/* Kahraman galerisi */
#galeri {
  padding: 90px 0 10px;
}
.home-gallery {
  position: relative;
  margin-top: 36px;
}
.hg-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}
.hg-slide {
  flex: 0 0 100%;
  box-sizing: border-box;
  padding: 26px 18px 22px;
  text-align: center;
}
@media (min-width: 700px) {
  .hg-slide {
    flex-basis: 50%;
  }
}
@media (min-width: 1100px) {
  .hg-slide {
    flex-basis: 33.3333%;
  }
}
.hg-frame {
  height: 220px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: radial-gradient(
    ellipse 70% 60% at 50% 75%,
    rgba(201, 151, 74, 0.16),
    transparent 70%
  );
  border-radius: 8px;
  margin-bottom: 14px;
}
.hg-frame img {
  max-height: 100%;
  max-width: 80%;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.55));
}
.hg-slide b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--parchment);
  letter-spacing: 0.04em;
}
.hg-slide span {
  font-size: 0.76rem;
  color: var(--ash);
}
.hg-btn {
  position: absolute;
  top: 38%;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(201, 151, 74, 0.5);
  background: rgba(11, 9, 6, 0.8);
  color: var(--gold-light);
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}
.hg-btn:hover {
  background: rgba(201, 151, 74, 0.2);
  transform: scale(1.06);
}
.hg-prev {
  left: 10px;
}
.hg-next {
  right: 10px;
}
.hg-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
}
.hg-dots button {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  border: none;
  background: rgba(201, 151, 74, 0.3);
  cursor: pointer;
  padding: 0;
  transition: width 0.25s, background 0.25s;
}
.hg-dots button.on {
  width: 24px;
  background: var(--gold-light);
}
@media (max-width: 700px) {
  #galeri {
    padding: 60px 0 0;
  }
  .hg-frame {
    height: 190px;
  }
}

/* Topluluk */
#topluluk {
  padding: 90px 0 10px;
}
.community-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 22px;
  margin-top: 36px;
}
@media (max-width: 900px) {
  .community-grid {
    grid-template-columns: 1fr;
  }
}
.dc-card {
  background: linear-gradient(160deg, rgba(88, 101, 242, 0.14), rgba(0, 0, 0, 0.3)),
    var(--obsidian);
  border: 1px solid rgba(88, 101, 242, 0.4);
  border-radius: 10px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.dc-top {
  display: flex;
  align-items: center;
  gap: 14px;
}
.dc-top b {
  display: block;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  color: var(--parchment);
}
.dc-top small {
  font-size: 0.76rem;
  color: var(--ash);
}
.dc-card > p {
  font-size: 0.88rem;
  color: var(--ash);
  line-height: 1.6;
  margin: 0;
}
.dc-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.82rem;
  color: #d4c5a9;
}
.dc-card ul i {
  color: #8b9dff;
  width: 20px;
  text-align: center;
  margin-right: 6px;
}
.dc-card .btn {
  margin-top: auto;
  align-self: flex-start;
  background: linear-gradient(135deg, #5865f2, #4752c4);
  box-shadow: 0 10px 30px rgba(88, 101, 242, 0.35);
}
.soc-card {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(201, 151, 74, 0.18);
  border-radius: 10px;
  padding: 16px 18px;
  text-decoration: none;
  transition: transform 0.2s, border-color 0.2s;
}
.soc-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
}
.soc-card .soc-ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #fff;
  flex-shrink: 0;
}
.soc-ico.fb { background: linear-gradient(135deg, #1877f2, #0d5cb6); }
.soc-ico.ig { background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af); }
.soc-ico.tt { background: linear-gradient(135deg, #25f4ee, #fe2c55); }
.soc-card b {
  display: block;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  color: var(--parchment);
}
.soc-card small {
  font-size: 0.74rem;
  color: var(--ash);
}
.soc-card > i {
  margin-left: auto;
  color: var(--gold);
  font-size: 0.85rem;
}
