/* ==========================================================================
   Stellarch Forum - Notifications & Announcements Stylesheet
   Simple, clean, modular design
   ========================================================================== */

/* Navbar Bildirim Butonu & Rozeti */
.nav-notification-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm, 6px);
  background: var(--bg-surface, #24242e);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
  color: var(--text-main, #e2e2ea);
  cursor: pointer;
  transition: all var(--transition, 0.18s ease);
  padding: 0;
  margin-right: 2px;
}

.nav-notification-btn:hover {
  background: var(--bg-card-hover, #2f2f3d);
  border-color: var(--primary, #4f46e5);
  color: #fff;
}

.nav-notification-svg {
  display: block;
  stroke: currentColor;
}

.notification-badge-dot {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background-color: var(--danger, #f85149);
  color: #fff;
  border: 2px solid var(--bg-base, #202029);
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Bildirimler Sayfası Kapsayıcısı */
.notifications-page-wrapper {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Toolbar & Filtre Sekmeleri */
.notifications-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg-card, #282833);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-sm, 6px);
}

.notification-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.notif-tab-btn {
  padding: 5px 12px;
  font-size: 12.5px;
  font-weight: 500;
  border-radius: var(--radius-xs, 4px);
  background: transparent;
  color: var(--text-muted, #8a8a9a);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}

.notif-tab-btn:hover {
  color: var(--text-main, #e2e2ea);
  background: rgba(255, 255, 255, 0.04);
}

.notif-tab-btn.active {
  background: var(--primary, #4f46e5);
  color: #fff;
  font-weight: 600;
}

.notif-mark-all-btn {
  font-size: 11.5px;
  padding: 4px 10px;
}

/* Bildirimler Listesi */
.notifications-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Boş Durum */
.empty-notifications-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 16px;
  background: var(--bg-card, #282833);
  border: 1px dashed var(--border-color, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-sm, 6px);
  color: var(--text-muted, #8a8a9a);
  text-align: center;
  font-size: 13.5px;
}

/* Bildirim Kartı */
.notification-card {
  position: relative;
  background: var(--bg-card, #282833);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-sm, 6px);
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.notification-card:hover {
  background: var(--bg-card-hover, #2f2f3d);
  border-color: var(--border-hover, rgba(99, 102, 241, 0.45));
}

.notification-card.unread {
  border-left: 4px solid var(--primary, #4f46e5);
  background: rgba(79, 70, 229, 0.06);
}

.notif-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.notif-badge-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.notif-type-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted, #8a8a9a);
}

.notif-type-badge {
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.badge-reply {
  background: rgba(59, 130, 246, 0.16);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-milestone {
  background: rgba(168, 85, 247, 0.16);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.badge-announcement {
  background: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-system {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main, #e2e2ea);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
}

.notif-unread-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--primary, #4f46e5);
}

.notif-time {
  font-size: 11px;
  color: var(--text-muted, #8a8a9a);
}

.notif-card-body {
  margin-top: 2px;
}

.notif-title {
  margin: 0 0 4px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main, #e2e2ea);
  line-height: 1.4;
}

.notif-snippet {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-muted, #8a8a9a);
  line-height: 1.5;
}

.notif-goto-hint, .notif-expand-hint {
  margin-top: 8px;
  font-size: 11.5px;
  color: var(--primary-light, #a5b4fc);
}

.notif-goto-hint .hint-text, .notif-expand-hint .hint-text {
  opacity: 0.85;
}

.notification-card:hover .hint-text {
  opacity: 1;
  text-decoration: underline;
}

/* Büyüyen Duyuru Alanı (Expand) */
.announcement-expand-area {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-color, rgba(255, 255, 255, 0.1));
}

.notification-card.expanded {
  background: var(--bg-card-hover, #2f2f3d);
  border-color: var(--primary, #4f46e5);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.announcement-full-content {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-main, #e2e2ea);
  margin-bottom: 10px;
}

.announcement-full-content p {
  margin: 0 0 8px 0;
}

.announcement-full-content p:last-child {
  margin-bottom: 0;
}

.announcement-image-wrapper {
  margin: 10px 0;
  border-radius: var(--radius-xs, 4px);
  overflow: hidden;
  max-height: 360px;
  background: rgba(0, 0, 0, 0.2);
}

.announcement-attached-image {
  max-width: 100%;
  width: auto;
  max-height: 360px;
  display: block;
  object-fit: contain;
}

.announcement-actions-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.notif-ann-like-btn {
  font-size: 12px;
  display: inline-flex;
  align-items: center;
}

/* Gönderi Hedef Vurgulama Animasyonu */
.highlight-target-post {
  animation: postHighlightGlow 2.5s ease-out forwards;
}

@keyframes postHighlightGlow {
  0% {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
  }
  100% {
    outline: 2px solid transparent;
    outline-offset: 0;
  }
}

/* Sol Kenar Çubuğu Profil Kartı Bildirim İkonu */
.sidebar-profile-card-wrapper {
  position: relative;
  width: 100%;
}

.sidebar-profile-notif-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm, 6px);
  background: var(--bg-surface, #24242e);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
  color: var(--text-main, #e2e2ea);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition, 0.18s ease);
  z-index: 10;
  padding: 0;
}

.sidebar-profile-notif-btn:hover {
  background: var(--bg-card-hover, #2f2f3d);
  border-color: var(--primary, #4f46e5);
  color: #fff;
}

.sidebar-profile-notif-btn.active {
  background: var(--primary, #4f46e5);
  border-color: var(--primary, #4f46e5);
  color: #fff;
}

