/* ───── AUTH BUTTONS & ICONS ───── */
.auth-buttons {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1001;
  display: flex;
  gap: 12px;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--menu-gradient);
  box-shadow: 0 4px 15px rgba(29, 27, 28, 0.3);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  position: relative;
}

.icon-btn svg {
  width: 22px;
  height: 22px;
  stroke: #222;
  stroke-width: 2.2;
}

.icon-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: #d32f2f;
  color: white;
  font-size: 0.65rem;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 50%;
  pointer-events: none;
  min-width: 18px;
  text-align: center;
}

/* ───── NOTIFICATION DROPDOWN ───── */
.notification-wrapper {
  position: relative;
}

.notifications-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  width: 320px;
  max-height: 400px;
  background: #fff;
  border: 1px solid #e0e0e0;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  overflow-y: auto;
  z-index: 1000;
  border-radius: 12px;
  padding: 0;
  display: none;
}

.notifications-dropdown.active {
  display: block;
  animation: fadeIn 0.25s ease-in-out;
}

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

.notifications-dropdown ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.notifications-dropdown li {
  padding: 0;
  border-bottom: 1px solid #f0f0f0;
}

.notifications-dropdown li:last-child {
  border-bottom: none;
}

.notif-item {
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.2s ease;
  background: #fff;
}

.notif-item.unread {
  background: #f0f7ff;
  font-weight: 600;
  border-left: 3px solid #0f62fe;
}

.notif-item:hover {
  background: #f5f7ff;
}

.notif-item p {
  margin: 0 0 4px 0;
  font-size: 14px;
  line-height: 1.4;
}

.notif-item small {
  color: #666;
  font-size: 12px;
}

.notif-item.empty {
  text-align: center;
  color: #888;
  padding: 20px;
  font-style: italic;
}

.see-all-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #0f62fe, #6f9fff);
  color: #fff;
  border: none;
  border-radius: 0 0 12px 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.see-all-btn:hover {
  background: linear-gradient(135deg, #6f9fff, #0f62fe);
}

/* ───── AUTH BUTTON ───── */
#auth-btn {
  background: linear-gradient(135deg, #0f62fe, #6f9fff);
  color: white;
  font-weight: 600;
  padding: 0 20px;
  border-radius: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  box-shadow: 0 4px 15px rgba(15, 98, 254, 0.4);
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 14px;
}

#auth-btn i {
  width: 18px;
  height: 18px;
  stroke: #fff;
}

#auth-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(15, 98, 254, 0.6);
}

/* ───── HAMBURGER MENU - DÜZELTİLMİŞ ───── */
.hamburger-menu {
  display: none;
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1002;
}

.hamburger-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--menu-gradient);
  box-shadow: 0 4px 15px rgba(29, 27, 28, 0.3);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  position: relative;
}

.hamburger-line {
  width: 20px;
  height: 2px;
  background: #222;
  margin: 2px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.hamburger-btn.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ───── MOBILE MENU - DÜZELTİLMİŞ ───── */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -320px; /* Ekran dışında başlat */
  width: 300px;
  height: 100vh;
  background: white;
  box-shadow: -5px 0 15px rgba(0,0,0,0.1);
  transition: right 0.3s ease;
  z-index: 1001;
  padding: 80px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-menu.active {
  right: 0 !important; /* Ekrana getir */
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1 !important;
  visibility: visible !important;
}

.mobile-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  border-radius: 8px;
  background: #f8f9fa;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: all 0.2s ease;
  border: 1px solid #e9ecef;
}

.mobile-menu-item:hover {
  background: #e9ecef;
  transform: translateX(5px);
}

.mobile-menu-item i {
  width: 20px;
  height: 20px;
  stroke: #0f62fe;
}

/* ───── NOTIFICATIONS MODAL ───── */
.notifications-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.notifications-modal.active {
  display: flex;
}

.notifications-modal-content {
  background: white;
  padding: 20px;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  overflow-y: auto;
  border-radius: 12px;
  position: relative;
}

.close-modal-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
}

.close-modal-btn:hover {
  color: #333;
}

/* ───── RESPONSIVE ───── */

/* MOBİL (768px ve altı) */
@media (max-width: 768px) {
  .auth-buttons {
    display: none !important;
  }
  
  .hamburger-menu {
    display: block !important;
  }

  .notifications-dropdown {
    width: 280px;
    right: 10px;
  }

  .mobile-menu {
    width: 280px;
  }
}

/* WEB (769px ve üstü) */
@media (min-width: 769px) {
  .hamburger-menu {
    display: none !important;
  }
  
  .mobile-menu,
  .mobile-menu-overlay {
    display: none !important;
  }
}

/* ÇOK KÜÇÜK EKRANLAR */
@media (max-width: 480px) {
  .auth-buttons {
    top: 15px;
    right: 15px;
  }
  
  .hamburger-menu {
    top: 15px;
    right: 15px;
  }

  .notifications-dropdown {
    width: 260px;
    right: 5px;
  }

  .mobile-menu {
    width: 260px;
  }
}

/* YÜKSEK ÇÖZÜNÜRLÜK */
@media (min-width: 1200px) {
  .notifications-dropdown {
    width: 350px;
  }
}

/* DARK MODE DESTEĞİ */
@media (prefers-color-scheme: dark) {
  .notifications-dropdown,
  .mobile-menu {
    background: #2d3748;
    color: #fff;
    border-color: #4a5568;
  }

  .notif-item {
    background: #2d3748;
    color: #fff;
  }

  .notif-item.unread {
    background: #2a4365;
  }

  .notif-item:hover {
    background: #4a5568;
  }

  .mobile-menu-item {
    background: #4a5568;
    color: #fff;
    border-color: #718096;
  }

  .mobile-menu-item:hover {
    background: #718096;
  }
}