/* Bizon — üyelik header kontrolleri, dropdown ve toast (tema ile uyumlu) */

.bizon-auth-node {
  position: relative;
  display: flex;
  align-items: center;
}

/* İlk auth öğesi — nav linkleriyle arasında ince ayraç */
.bizon-auth-node:first-of-type {
  padding-left: 18px;
}
.bizon-auth-node:first-of-type::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.13);
}

/* Bell ile kullanıcı butonu arasındaki gap nav gap'inden daha dar */
.bizon-auth-node + .bizon-auth-node {
  margin-left: -22px; /* 36px gap → ~14px */
}

/* Bildirim zili */
.bizon-bell-btn,
.bizon-user-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 26, 26, 0.22);
  color: var(--white);
  border-radius: 12px;
  cursor: pointer;
  padding: 8px 10px;
  font-family: var(--font-body);
  transition: border-color 0.2s, background 0.2s;
}
.bizon-bell-btn:hover,
.bizon-user-btn:hover {
  border-color: var(--red);
  background: rgba(255, 26, 26, 0.1);
}
.bizon-bell-btn svg,
.bizon-user-btn .bizon-caret {
  width: 20px;
  height: 20px;
}
.bizon-bell {
  margin-right: 2px;
}
.bizon-bell-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 0 0 2px var(--dark);
}

/* Kullanıcı menüsü butonu */
.bizon-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.bizon-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--red), var(--orange));
  color: #fff;
  font-weight: 700;
  font-size: 13px;
}
.bizon-user-name {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  max-width: 88px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Dropdown */
.bizon-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 260px;
  background: var(--dark2);
  border: 1px solid rgba(255, 26, 26, 0.25);
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  z-index: 1200;
  overflow: hidden;
  animation: bizonDdIn 0.16s ease;
}
@keyframes bizonDdIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.bizon-user-panel a,
.bizon-user-panel button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 16px;
  background: none;
  border: none;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s;
}
.bizon-user-panel a + a,
.bizon-user-panel button {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.bizon-user-panel a:hover,
.bizon-user-panel button:hover {
  background: rgba(255, 26, 26, 0.12);
}
.bizon-user-panel svg {
  width: 18px;
  height: 18px;
  color: var(--gray);
  flex-shrink: 0;
}
.bizon-logout {
  color: var(--red) !important;
}

/* Bildirim paneli */
.bizon-notif-panel {
  min-width: 320px;
  max-width: 90vw;
}
.bizon-dd-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}
.bizon-mark-all {
  background: none;
  border: none;
  color: var(--gray);
  font-size: 0.75rem;
  cursor: pointer;
  font-family: var(--font-body);
}
.bizon-mark-all:hover {
  color: var(--red);
}
.bizon-notif-list {
  max-height: 360px;
  overflow-y: auto;
}
.bizon-notif-item {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: background 0.15s;
}
.bizon-notif-item:hover {
  background: rgba(255, 255, 255, 0.03);
}
.bizon-notif-item.unread {
  background: rgba(255, 26, 26, 0.07);
}
.bizon-notif-item.unread .bizon-notif-title::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  margin-right: 7px;
  vertical-align: middle;
}
.bizon-notif-title {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 2px;
}
.bizon-notif-body {
  font-size: 0.82rem;
  color: var(--gray);
  line-height: 1.4;
}
.bizon-notif-time {
  font-size: 0.72rem;
  color: var(--gray);
  margin-top: 4px;
  opacity: 0.8;
}
.bizon-notif-empty {
  padding: 28px 16px;
  text-align: center;
  color: var(--gray);
  font-size: 0.86rem;
}
.bizon-dd-foot {
  display: block;
  padding: 12px 16px;
  text-align: center;
  color: var(--red);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.bizon-dd-foot:hover {
  background: rgba(255, 26, 26, 0.1);
}

/* Mobil: dropdown'lar tam genişlik, statik akış */
@media (max-width: 1280px) {
  .bizon-auth-node {
    width: 100%;
  }
  .bizon-auth-node:first-of-type {
    padding-left: 0;
    margin-left: 0;
  }
  .bizon-auth-node:first-of-type::before {
    display: none;
  }
  .bizon-auth-node + .bizon-auth-node {
    margin-left: 0;
  }
  .bizon-bell-btn,
  .bizon-user-btn {
    width: 100%;
    justify-content: flex-start;
    margin: 8px 0;
  }
  .bizon-dropdown {
    position: static;
    width: 100%;
    min-width: 0;
    margin-bottom: 8px;
    box-shadow: none;
  }
  .bizon-bell-badge {
    right: auto;
    left: 22px;
    top: 2px;
  }
}

/* Toast */
.bizon-toast-wrap {
  position: fixed;
  top: 86px;
  right: 20px;
  z-index: 4000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 360px;
}
.bizon-toast {
  background: var(--dark2);
  border: 1px solid rgba(255, 26, 26, 0.3);
  border-left-width: 4px;
  border-radius: 12px;
  padding: 14px 18px;
  color: var(--white);
  font-size: 0.9rem;
  line-height: 1.45;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.3s, transform 0.3s;
}
.bizon-toast.show {
  opacity: 1;
  transform: translateX(0);
}
.bizon-toast-success {
  border-left-color: #2ecc71;
}
.bizon-toast-error {
  border-left-color: var(--red);
}
.bizon-toast-info {
  border-left-color: #3498db;
}
@media (max-width: 520px) {
  .bizon-toast-wrap {
    right: 12px;
    left: 12px;
    max-width: none;
  }
}
