/* ============================================================
   NOTIFICATIONS.CSS — QCT Esportz v4.0
   Orange × Teal × Neon × Void Black
============================================================ */

.notif-container {
  padding: 16px 0 100px;
  animation: notifFadeIn 0.4s var(--ease-snap) both;
}

@keyframes notifFadeIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Page header ── */
.notif-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.notif-page-title {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--orange);
  text-shadow: 0 0 20px rgba(255,165,0,0.25);
  line-height: 1;
}

.notif-mark-all-btn {
  font-family: var(--font-label);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal-bright);
  background: rgba(0,140,180,0.08);
  border: 1px solid rgba(0,140,180,0.20);
  border-radius: var(--radius-full);
  padding: 7px 14px;
  cursor: pointer;
  transition: background var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.notif-mark-all-btn:hover {
  background: rgba(0,140,180,0.16);
}

/* ── Unread count badge ── */
.notif-unread-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(255,165,0,0.08);
  border: 1px solid rgba(255,165,0,0.18);
  border-radius: var(--radius-full);
  font-family: var(--font-label);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}

.notif-unread-badge.hidden { display: none; }

/* ── Notification list ── */
.notif-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ── Single notification card ── */
.notif-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  display: flex;
  gap: 13px;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition-fast),
              background var(--transition-fast);
}

/* Unread left glow strip */
.notif-card.unread {
  border-color: rgba(255,165,0,0.20);
  background: rgba(255,165,0,0.03);
}

.notif-card.unread::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: var(--orange);
  box-shadow: 0 0 8px rgba(255,165,0,0.35);
}

.notif-card.read {
  opacity: 0.55;
}

.notif-card:hover { background: rgba(255,255,255,0.035); }

/* ── Icon bubble ── */
.notif-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.notif-icon.orange  { background: rgba(255,165,0,0.12); }
.notif-icon.teal    { background: rgba(0,140,180,0.12); }
.notif-icon.neon    { background: rgba(170,255,68,0.10); }
.notif-icon.red     { background: rgba(255,68,68,0.10); }
.notif-icon.purple  { background: rgba(168,85,247,0.10); }

/* ── Content ── */
.notif-body { flex: 1; min-width: 0; }

.notif-title {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.3px;
  margin-bottom: 3px;
}

.notif-card.read .notif-title { color: var(--text-secondary); }

.notif-message {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 6px;
}

.notif-time {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.3px;
}

/* ── Actions (accept/reject buttons) ── */
.notif-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.notif-btn {
  height: 34px;
  padding: 0 16px;
  border-radius: var(--radius-full);
  border: none;
  font-family: var(--font-label);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
  position: relative;
  overflow: hidden;
}

.notif-btn.accept {
  background: var(--grad-orange);
  color: var(--void-00);
  box-shadow: var(--glow-orange-sm);
}

.notif-btn.accept:hover { filter: brightness(1.08); }

.notif-btn.reject {
  background: transparent;
  color: #FF4466;
  border: 1px solid rgba(255,68,102,0.30);
}

.notif-btn.reject:hover {
  background: rgba(255,68,102,0.09);
  border-color: rgba(255,68,102,0.55);
}

.notif-btn.mark-read {
  background: rgba(255,255,255,0.05);
  color: var(--text-dim);
  border: 1px solid var(--border-subtle);
}

.notif-btn.mark-read:hover {
  background: rgba(255,255,255,0.09);
  color: var(--text-secondary);
}

.notif-btn:active { transform: scale(0.96); }

.notif-btn.loading {
  pointer-events: none;
  color: transparent;
}

.notif-btn.loading::after {
  content: '';
  position: absolute;
  width: 14px; height: 14px;
  border: 2px solid rgba(0,0,0,0.2);
  border-top-color: var(--void-00);
  border-radius: 50%;
  animation: notifSpin 0.7s linear infinite;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
}

@keyframes notifSpin { to { transform: translate(-50%,-50%) rotate(360deg); } }

/* ── Unread dot (top right) ── */
.notif-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 6px rgba(255,165,0,0.5);
  flex-shrink: 0;
  margin-top: 6px;
}

/* ── Empty state ── */
.notif-empty {
  text-align: center;
  padding: 60px 20px;
}

.notif-empty-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 14px;
  opacity: 0.35;
}

.notif-empty h3 {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 2px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.notif-empty p {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-muted);
}

/* ── Skeleton ── */
.notif-skeleton {
  height: 80px;
  border-radius: var(--radius-lg);
  background: linear-gradient(90deg,
    rgba(255,255,255,0.03) 25%,
    rgba(255,255,255,0.06) 50%,
    rgba(255,255,255,0.03) 75%
  );
  background-size: 200% 100%;
  animation: notifSkelShimmer 1.5s infinite;
  margin-bottom: 10px;
}

@keyframes notifSkelShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
