/* Importing Google Fonts - Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  width: 270px;
  height: 100vh;
  background: linear-gradient(180deg, #353129, #c4a978, #353129); /* Yeni degrade renkler */
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
  transition: all 0.4s ease;
}

.sidebar.collapsed {
  width: 85px;
}

.sidebar .sidebar-header {
  display: flex;
  position: relative;
  padding: 25px 20px;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(90deg, #c4a978, #d4c8b0, #c4a978, #d4c8b0); /* Altın kaplama degrade renkler */
  border-bottom: 1px solid rgba(255, 215, 0, 0.5); /* Altın tonlarında bir kenar çizgisi */
}

/* Logo stilleri */
.sidebar-logo {
  height: 40px;
  width: auto;
  margin-right: 10px;
  transition: all 0.3s ease;
}

.logo-container {
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

/* Mobil görünümde logoyu gizle */
@media (max-width: 768px) {
  .logo-container {
    display: none;
  }
}

/* Sidebar kapalı olduğunda logo konumu - sadece masaüstü için */
@media (min-width: 769px) {
  .sidebar.collapsed .logo-container {
    position: absolute;
    top: calc(65vh - 100px); /* Secondary nav üzerinde konumlandır */
    left: 50%;
    transform: translateX(-50%);
    z-index: 11; /* Secondary-nav'ın üzerine çıkması için */
  }
  
  .sidebar.collapsed .sidebar-logo {
    height: 40px;
    margin-right: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, #d4c8b0, #8b7542);
    border: 1px solid rgba(255, 215, 0, 0.5);
  }
}

.sidebar-header .sidebar-toggler,
.sidebar-menu-button {
  position: absolute;
  right: 20px;
  height: 35px;
  width: 35px;
  color: #c4a978;
  border: none;
  cursor: pointer;
  display: flex;
  background: linear-gradient(135deg, #EEF2FF, #D9E1FD); /* Yeni degrade renkler */
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: 0.4s ease;
}

.sidebar-header .sidebar-toggler:hover {
  background: linear-gradient(135deg, #D9E1FD, #B0C4FF); /* Hover için degrade */
}

.sidebar-nav .nav-list {
  list-style: none;
  display: flex;
  gap: 4px;
  padding: 0 15px;
  flex-direction: column;
  transform: translateY(15px);
  transition: 0.4s ease;
}

.sidebar .sidebar-nav .primary-nav {
  overflow-y: auto;
  scrollbar-width: thin;
  padding-bottom: 20px;
  height: calc(100vh - 227px);
  scrollbar-color: #EEF2FF transparent;
}

.sidebar .sidebar-nav .primary-nav:hover {
  scrollbar-color: #D9E1FD transparent;
}

.sidebar.collapsed .sidebar-nav .primary-nav {
  overflow: unset;
  transform: translateY(65px);
}

.sidebar-nav .nav-item .nav-link {
  color: #fff;
  display: flex;
  gap: 12px;
  white-space: nowrap;
  border-radius: 8px;
  padding: 11px 15px;
  align-items: center;
  text-decoration: none;
  border: 1px solid #d4c8b0;
  background: linear-gradient(90deg, #68635a, #86724b); /* Yeni degrade renkler */
  transition: 0.4s ease;
}

.sidebar-nav .nav-item:is(:hover, .open)>.nav-link:not(.dropdown-title) {
  color: #d4c8b0;
  background: linear-gradient(135deg, #EEF2FF, #D9E1FD); /* Hover için degrade */
}

.sidebar .nav-link .nav-label {
  transition: opacity 0.3s ease;
}

.sidebar.collapsed .nav-link :where(.nav-label, .dropdown-icon) {
  opacity: 0;
  pointer-events: none;
}

.sidebar.collapsed .nav-link .dropdown-icon {
  transition: opacity 0.3s 0s ease;
}

.sidebar-nav .secondary-nav {
  position: absolute;
  bottom: 35px;
  width: 100%;
}

.sidebar-nav .nav-item {
  position: relative;
}

.sidebar-nav .dropdown-container .dropdown-icon {
  margin: 0 -4px 0 auto;
  transition: transform 0.4s ease, opacity 0.3s 0.2s ease;
}

.sidebar-nav .dropdown-container.open .dropdown-icon {
  transform: rotate(180deg);
}

.sidebar-nav .dropdown-menu {
  height: 0;
  overflow-y: hidden;
  list-style: none;
  padding-left: 15px;
  transition: height 0.4s ease;
}

.sidebar.collapsed .dropdown-menu {
  position: absolute;
  top: -10px;
  left: 100%;
  opacity: 0;
  height: auto !important;
  padding-right: 10px;
  overflow-y: unset;
  pointer-events: none;
  border-radius: 0 10px 10px 0;
  background: linear-gradient(180deg, #d4c8b0, #6e6553); /* Yeni degrade renkler */
  transition: 0s;
}

.sidebar.collapsed .dropdown-menu:has(.dropdown-link) {
  padding: 7px 10px 7px 24px;
}

.sidebar.sidebar.collapsed .nav-item:hover>.dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(12px);
  transition: all 0.4s ease;
}

.sidebar.sidebar.collapsed .nav-item:hover>.dropdown-menu:has(.dropdown-link) {
  transform: translateY(10px);
}

.dropdown-menu .nav-item .nav-link {
  color: #F1F4FF;
  padding: 9px 15px;
}

.sidebar.collapsed .dropdown-menu .nav-link {
  padding: 7px 15px;
}

.dropdown-menu .nav-item .nav-link.dropdown-title {
  display: none;
  color: #fff;
  padding: 9px 15px;
}

.dropdown-menu:has(.dropdown-link) .nav-item .dropdown-title {
  font-weight: 500;
  padding: 7px 15px;
}

.sidebar.collapsed .dropdown-menu .nav-item .dropdown-title {
  display: block;
}

.sidebar-menu-button {
  display: none;
}

@media (max-width: 768px) {
  .sidebar-menu-button {
    position: fixed;
    left: 20px;
    top: 15px;
    height: 40px;
    min-width: 100px;
    display: flex;
    color: #fff;
    background: linear-gradient(135deg, #d4c8b0, #8b7542);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 15px;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
  }
  
  .sidebar-menu-button:hover {
    background: linear-gradient(135deg, #c4a978, #755f2d);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
  }
  
  .sidebar-menu-button::after {
    content: "Menü";
    font-size: 15px;
    letter-spacing: 0.5px;
  }

  .sidebar.collapsed {
    width: 270px;
    left: -270px;
  }

  .sidebar.collapsed .sidebar-header .sidebar-toggler {
    transform: none;
  }

  .sidebar.collapsed .sidebar-nav .primary-nav {
    transform: translateY(15px);
  }
}

.mobile-top-button {
  position: fixed;
  top: 15px;
  left: 15px;
  z-index: 9999;
}

.menu-button {
  background: linear-gradient(135deg, #d4c8b0, #8b7542);
  color: #FFF;
  border: none;
  padding: 8px 18px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  z-index: 9999;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 215, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.menu-button:hover {
  background: linear-gradient(135deg, #c4a978, #755f2d);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

/* Giriş ve Kayıt Butonları */
.auth-buttons {
  position: fixed;
  top: 15px;
  right: 20px;
  display: flex;
  gap: 15px;
  z-index: 9999;
}

.auth-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 30px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.login-btn {
  background: linear-gradient(135deg, #d4c8b0, #8b7542);
  color: #fff;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.register-btn {
  background: linear-gradient(135deg, #8b7542, #654d20);
  color: #fff;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.auth-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Modal Stilleri */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: linear-gradient(210deg, #8c7d3f, #c7bba1, #8c7d3f);
  width: 90%;
  max-width: 450px;
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
  animation: modalFadeIn 0.4s ease-out;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

@keyframes modalFadeIn {
  from {opacity: 0; transform: translateY(-30px);}
  to {opacity: 1; transform: translateY(0);}
}

.modal-header {
  background: linear-gradient(90deg, #c4a978, #8b7542);
  color: white;
  padding: 20px;
  text-align: center;
  border-bottom: 2px solid rgba(255, 215, 0, 0.5);
}

.modal-header h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
}

.modal-body {
  padding: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #555;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"] {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  transition: all 0.3s;
}

.form-group input:focus {
  border-color: #c4a978;
  box-shadow: 0 0 0 2px rgba(196, 169, 120, 0.3);
  outline: none;
}

.remember-me, .terms {
  display: flex;
  align-items: center;
  gap: 8px;
}

.remember-me input, .terms input {
  width: 18px;
  height: 18px;
  accent-color: #8b7542;
}

.form-actions {
  margin-top: 25px;
}

.form-actions button {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #c4a978, #8b7542);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.form-actions button:hover {
  background: linear-gradient(135deg, #8b7542, #654d20);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.form-footer {
  margin-top: 20px;
  text-align: center;
  font-size: 14px;
  color: #666;
}

.form-footer a {
  color: #8b7542;
  text-decoration: none;
  font-weight: 600;
}

.form-footer a:hover {
  text-decoration: underline;
}

.close-modal {
  position: absolute;
  right: 15px;
  top: 15px;
  font-size: 28px;
  color: white;
  cursor: pointer;
  transition: all 0.2s;
}

.close-modal:hover {
  transform: scale(1.2);
}

/* Mobil Düzenlemeler */
@media (max-width: 768px) {
  .auth-buttons {
    top: 15px;
    right: 15px;
  }
  
  .auth-btn {
    padding: 8px 15px;
    font-size: 13px;
  }
  
  .modal-content {
    width: 95%;
  }
  
  .modal-header {
    padding: 15px;
  }
  
  .modal-header h2 {
    font-size: 20px;
  }
  
  .modal-body {
    padding: 20px;
  }
/* URL'ye göre sayfa belirleme */
body.sorular-page .three-fixed-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 sütun düzeni */
  gap: 20px; /* Elemanlar arası boşluk */
  margin: 20px auto;
  max-width: 1200px; /* Genişliği sınırlayın */
}

body.sorular-page .three-fixed-images a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%; /* Tam genişlik */
}

body.sorular-page .three-fixed-images img {
  width: 100%; /* Resimler tam genişlikte */
  height: auto; /* Oran korunsun */
  border-radius: 8px;
  background: linear-gradient(#ddcf9f, #ddcf9f) padding-box,
              linear-gradient(to right, #ddcf9f, #ddcf9f, #ddcf9f) border-box;
  border: 3px solid transparent;
  box-shadow: 0 4px 12px rgba(221, 207, 159, 0.25);
}

/* Son görseli ortalamak için */
body.sorular-page .three-fixed-images a:last-child {
  grid-column: span 2; /* Son görsel 2 sütunu kaplar */
  justify-self: center; /* Ortala */
}

/* Mobil uyum için */
@media screen and (max-width: 768px) {
  body.sorular-page .three-fixed-images {
    grid-template-columns: 1fr; /* Tek sütun düzeni */
  }

  /* Resimleri küçültmek ve ortalamak için */
  body.sorular-page .three-fixed-images a {
    justify-content: center; /* Ortaya yerleştir */
  }

  body.sorular-page .three-fixed-images img {
    width: 90%; /* Resimler %90 genişliğinde */
    margin: 10px auto; /* Ortalamak için */
  }

  /* Son görselin ortalanması */
  body.sorular-page .three-fixed-images a:last-child {
    grid-column: 1 / -1; /* Son görseli tüm satıra yay */
    justify-self: center; /* Ortala */
  }
}
@media (max-width: 767px) {
  .three-fixed-images a, 
  .two-fixed-images a {
    width: 100%; /* Mobilde resimler tam genişlikte görünür */
  }

  .three-fixed-images img, 
  .two-fixed-images img {
    border-radius: 5px; /* Mobilde daha küçük kenar yuvarlama */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); /* Mobilde daha hafif gölge */
  }

  .three-fixed-images, 
  .two-fixed-images {
    gap: 10px; /* Mobilde daha fazla boşluk */
  }
}

/* Şifre güç göstergesi stilleri */
.password-strength-container {
    margin-top: 10px;
}

.password-strength-bar {
    width: 100%;
    height: 6px;
    background: #eee;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 5px;
}

.strength-indicator {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.strength-weak {
    width: 25%;
    background: #ff4757;
}

.strength-medium {
    width: 50%;
    background: #ffa502;
}

.strength-good {
    width: 75%;
    background: #2ed573;
}

.strength-strong {
    width: 100%;
    background: #00b894;
}

.strength-text {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.password-requirements {
    font-size: 11px;
    color: #888;
    line-height: 1.3;
}
