/* notifications.css — NovaSounds Notifications Page */

/* ============================================================
   HEADER
   ============================================================ */
.notifications-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}

.notifications-title {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.notifications-desc {
  font-size: 13px;
  color: var(--ink3);
}

/* ============================================================
   MAIN TABS (Novel / Audio / App)
   ============================================================ */
.notif-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1.5px solid var(--border);
  margin-bottom: 20px;
  overflow-x: auto;
}

.ntab-btn {
  padding: 14px 24px;
  border: none;
  background: transparent;
  color: var(--ink3);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2.5px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  margin-bottom: -1.5px;
}

.ntab-btn:hover {
  color: var(--ink);
}

.ntab-btn.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ============================================================
   SUBTABS (Reader/Writer, Listener/Artist)
   ============================================================ */
.notif-subtabs {
  display: flex;
  gap: 6px;
  margin-bottom: 24px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border2);
}

.nsub-btn {
  padding: 8px 16px;
  border: none;
  background: transparent;
  color: var(--ink2);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  margin-bottom: -1px;
}

.nsub-btn:hover {
  color: var(--ink);
}

.nsub-btn.active {
  color: var(--teal);
  border-bottom-color: var(--teal);
}

/* ============================================================
   NOTIFICATION LIST & ITEMS
   ============================================================ */
.notif-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 40px;
}

.notif-item {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-left: 3px solid var(--border);
  border-radius: 12px;
  display: flex;
  gap: 18px;
  padding: 18px 22px;
  align-items: flex-start;
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: relative;
}

.notif-item:hover {
  border-color: var(--border2);
  border-left-color: var(--border2);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Unread: same background as read, only a teal left accent */
.notif-item.unread {
  border-left-color: var(--teal);
}

.notif-item.unread:hover {
  border-left-color: var(--teal);
}

.notif-item .notif-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  margin-top: 0px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-subtle);
  border-radius: 50%;
}

.notif-item.unread .notif-icon {
  background: var(--gold-subtle);
}

.notif-content {
  flex: 1;
  min-width: 0;
}

.notif-title {
  font-size: 14px;
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.notif-message {
  font-size: 12px;
  color: var(--ink2);
  margin-bottom: 8px;
  line-height: 1.6;
}

.notif-message strong {
  color: var(--ink);
  font-weight: 600;
}

.notif-meta {
  font-size: 10px;
  color: var(--ink3);
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.notif-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 9px;
  padding: 3px 9px;
  border-radius: 6px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-novel {
  background: rgba(212, 168, 67, 0.15);
  color: var(--gold);
}

.badge-audio {
  background: rgba(46, 184, 164, 0.15);
  color: var(--teal);
}

.badge-app {
  background: rgba(123, 104, 200, 0.15);
  color: var(--lavender);
}

/* Unread dot indicator */
.notif-unread-dot {
  width: 7px;
  height: 7px;
  background: var(--teal);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
}

.notif-close {
  background: none;
  border: none;
  color: var(--ink3);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: color var(--transition), background var(--transition);
  border-radius: 50%;
}

.notif-close:hover {
  color: var(--ink);
  background: var(--surface);
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.notif-empty {
  text-align: center;
  padding: 60px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.notif-empty h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.notif-empty p {
  font-size: 13px;
  color: var(--ink3);
  max-width: 400px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ============================================================
   LIGHT THEME
   ============================================================ */
html.light-theme .notif-item {
  background: #fff;
}

html.light-theme .notif-item:hover {
  background: #faf8f5;
}

html.light-theme .notif-item.unread {
  background: #fff;
}

html.light-theme .notif-empty {
  background: #fff;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .notif-item {
    gap: 12px;
    padding: 14px 16px;
  }

  .notif-item .notif-icon {
    width: 38px;
    height: 38px;
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .notifications-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .notif-tabs {
    gap: 4px;
  }

  .ntab-btn {
    padding: 10px 14px;
    font-size: 12px;
  }

  .notif-subtabs {
    gap: 4px;
  }

  .nsub-btn {
    padding: 6px 10px;
    font-size: 11px;
  }

  .notif-item {
    flex-direction: column;
    gap: 10px;
  }

  .notif-item .notif-icon {
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
  }

  .notif-meta {
    gap: 8px;
    font-size: 9px;
  }

  .notif-badge {
    font-size: 8px;
    padding: 2px 6px;
  }
}

@media (max-width: 600px) {
  .notifications-title {
    font-size: 1.6rem;
  }

  .notif-item {
    padding: 12px 10px;
  }

  .notif-title {
    font-size: 13px;
  }

  .notif-message {
    font-size: 11px;
  }
}