/* -------------------- GENEL SAYFA YAPISI – TÜM SAYFALARDA -------------------- */

html,
body {
  margin: 0;
  padding: 0;
  background-color: #0e0e0e;
  color: white;
  font-family: system-ui, sans-serif;
  overflow-x: hidden;
  user-select: none;
  /* Metin seçimini engelle */
  -webkit-user-select: none;
}

/* Grayscale ve Etkileşim Efektleri */
/* Grayscale ve Etkileşim Efektleri - SADECE GALERİ ve BELGESEL */
/* Grayscale ve Etkileşim Efektleri - SADECE GALERİ ve BELGESEL */
/* Sadece Wrapper'a grayscale verelim, iframe içeriği zaten oradan etkilenir */
#gallery-gal .photo-card img,
#gallery-bel .video-item .video-wrapper {
  filter: grayscale(100%);
  transition: filter 0.4s ease;
  /* Transform'u buradan kaldırdık, parent yapıyor zaten */
}

/* iframe için ayrıca filtre vermeyelim, çift filtre olmasın */
#gallery-bel .video-item iframe {
  filter: none;
  transition: none;
}

/* Oynatılan video renkli olsun */
#gallery-bel .video-item .video-wrapper[data-is-playing="true"] {
  filter: grayscale(0%);
}

#gallery-gal .photo-card:hover img,
#gallery-bel .video-item:hover .video-wrapper {
  filter: grayscale(0%);
}

/* PiP aktifken parent üzerindeki hover efektini ve titremeyi kaldır */
#gallery-bel .video-item.pip-active {
  transform: none !important;
  box-shadow: none !important;
  pointer-events: none;
  /* İsteğe bağlı: placeholder etkileşimi kapatılabilir */
}

/* Ancak pip-mode olan wrapper etkileşime açık olmalı */
#gallery-bel .video-item.pip-active .video-wrapper.pip-mode {
  pointer-events: auto;
}



/* Modaldaki resim her zaman renkli olsun */
#photoModal img {
  filter: none !important;
}

/* Sidebar + içerik hizalaması */
.container {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding-left: 250px;
  /* Space for fixed sidebar */
}

/* Mobilde alt alta gelsin */
@media (max-width: 768px) {
  .container {
    padding-left: 0;
    /* Reset for mobile */
    flex-direction: column;
  }
}

/* -------------------- SOL ASIDE – TÜM SAYFALARDA ORTAK -------------------- */

aside {
  width: 250px;
  background-color: #0e0e0e;
  padding: 30px 20px;
  height: 100vh;
  box-sizing: border-box;
  overflow: hidden;
  /* Ensure particles don't spill out */
  position: fixed;
  /* Fixed to viewport */
  top: 0;
  left: 0;
  z-index: 1000;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.profile {
  text-align: center;
}

.profile-image-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 10px;
}

.profile img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: block;
  pointer-events: none;
  transition: transform .3s ease, box-shadow .3s ease;
  position: relative;
  z-index: 2;
}



/* Ensure content is above the canvas */
.profile,
nav,
.social-icons {
  position: relative;
  z-index: 2;
}

.profile:hover img {
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.profile h1 {
  font-size: 18px;
  margin: 5px 0 0;
}

.profile p {
  font-size: 14px;
  color: #aaa;
  margin: 3px 0 25px;
}

nav {
  text-align: center;
  margin-bottom: 25px;
  width: 100%;
}

nav a {
  display: block;
  margin: 10px 0;
  color: #ccc;
  text-decoration: none;
  font-size: 15px;
  transition: color .3s ease;
}

nav a:hover {
  color: white;
}

nav a.active {
  color: white;
  font-weight: bold;
}



.social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  font-size: 1.4em;
  margin-top: 20px;
}

.social-icons a {
  color: #ccc;
  transition: .3s;
}

.social-icons a:hover {
  color: white;
  transform: scale(1.2);
}

/* ---------------- MOBILE ---------------- */

@media (max-width: 768px) {
  aside {
    width: 100%;
    box-sizing: border-box;
    /* Padding dahil genişlik hesabı */
    height: auto;
    padding: 20px 0;
    /* Yan paddingleri kaldırıp sadece dikey verelim */
    flex-direction: column;
    justify-content: center;
    /* Dikey ortalama */
    align-items: center;
    /* Yatay ortalama */
    position: relative;
    /* Reset fixed */
    height: auto;
    width: 100%;
    top: auto;
    left: auto;
    z-index: 100;
  }

  .profile img {
    width: 80px;
    height: 80px;
  }

  .profile p {
    font-size: 12px;
  }

  nav {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 10px;
  }

  nav a {
    margin: 0;
    font-size: 16px;
  }

  .social-icons {
    margin-top: 10px;
    font-size: 1.2em;
  }
}