/*!
 * diaspora.ro — pagina Notificări, responsive redesign
 * Layout declarativ; comportamentul rămâne în /notificari/inline-scripts.js.
 */

:root {
  --np-max: 1180px;
  --np-purple: #6d28d9;
  --np-purple-soft: #f1ebff;
  --np-line: var(--border, #e4e6ea);
  --np-subtle: var(--ink2, #65676b);
  --np-faint: var(--ink3, #8a8d91);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { min-width: 320px; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 8% 0, rgba(124,58,237,.08), transparent 28rem),
    var(--bg, #f0f2f5);
  color: var(--ink, #050505);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
a { -webkit-tap-highlight-color: transparent; }

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible { outline: 3px solid rgba(124,58,237,.38); outline-offset: 2px; }

.np-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 72px;
  background: color-mix(in srgb, var(--card, #fff) 92%, transparent);
  border-bottom: 1px solid var(--np-line);
  backdrop-filter: blur(18px);
}

.np-topbar-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(100% - 32px, var(--np-max));
  height: 100%;
  margin: 0 auto;
}

.np-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  padding: 0;
  color: var(--ink, #050505);
  background: transparent;
  border: 0;
  border-radius: 13px;
  cursor: pointer;
  text-decoration: none;
}

.np-icon-button:hover { background: var(--card-hover, #f5f7fa); }

.np-brand {
  color: var(--ink, #050505);
  font: 800 17px/1 'Orbitron', 'Audiowide', Inter, sans-serif;
  letter-spacing: -.04em;
  text-decoration: none;
}

.np-brand b { color: var(--brand, #7c3aed); }

.np-header-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 130px;
  padding-left: 2px;
  border-left: 1px solid var(--np-line);
}

.np-header-title h1 { margin: 2px 0 0 14px; font-size: 17px; line-height: 1.1; }
.np-eyebrow { margin-left: 14px; color: var(--np-faint); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.np-top-links { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.np-top-links a { padding: 9px 12px; color: var(--np-subtle); border-radius: 10px; font-size: 13px; font-weight: 700; text-decoration: none; }
.np-top-links a:hover { color: var(--ink); background: var(--card-hover, #f5f7fa); }
.np-mobile-settings { display: none; margin-left: auto; }

.np-shell { width: min(100% - 32px, var(--np-max)); margin: 0 auto; padding: 34px 0 64px; }

.np-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  min-height: 210px;
  padding: 32px 36px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 92% 20%, rgba(236,72,153,.55), transparent 22rem),
    linear-gradient(125deg, #4c1d95 0%, #7c3aed 54%, #9333ea 100%);
  border-radius: 24px;
  box-shadow: 0 18px 48px rgba(76,29,149,.22);
}

.np-hero-copy { max-width: 600px; }
.np-kicker { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.76); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.np-live-dot { width: 8px; height: 8px; border-radius: 50%; background: #a7f3d0; box-shadow: 0 0 0 5px rgba(167,243,208,.16); }
.np-hero h2 { max-width: 620px; margin: 12px 0 8px; font-size: clamp(25px, 3vw, 38px); line-height: 1.08; letter-spacing: -.04em; }
.np-hero p { max-width: 520px; margin: 0; color: rgba(255,255,255,.78); font-size: 14px; line-height: 1.55; }
.np-hero-stat { display: flex; align-items: baseline; gap: 7px; margin-top: 18px; }
.np-hero-stat strong { font-size: 24px; line-height: 1; }
.np-hero-stat span { color: rgba(255,255,255,.72); font-size: 12px; font-weight: 700; }
.np-hero-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }

.np-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}
.np-button-light { color: #4c1d95; background: #fff; }
.np-button-light:hover { background: #f5f3ff; }
.np-button-ghost { color: #fff; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.28); }
.np-button-ghost:hover { background: rgba(255,255,255,.2); }
.np-button:disabled { cursor: not-allowed; opacity: .55; }

.np-layout { display: grid; grid-template-columns: minmax(0, 1fr) 292px; align-items: start; gap: 22px; margin-top: 22px; }
.np-card { background: var(--card, #fff); border: 1px solid var(--np-line); border-radius: 20px; box-shadow: var(--shadow, 0 1px 4px rgba(0,0,0,.1)); }
.np-main-card { min-width: 0; padding: 25px 26px 22px; }
.np-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.np-card-heading h2 { margin: 0; font-size: 19px; letter-spacing: -.02em; }
.np-card-heading p { margin: 5px 0 0; color: var(--np-subtle); font-size: 12px; }
.np-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 24px; padding: 0 8px; color: #fff; background: var(--red, #e41e3f); border-radius: 999px; font-size: 11px; font-weight: 800; }
.np-badge[hidden] { display: none; }

.np-tabs { display: flex; gap: 3px; margin: 24px -6px 12px; padding: 0 6px 10px; overflow-x: auto; border-bottom: 1px solid var(--np-line); scrollbar-width: none; }
.np-tabs::-webkit-scrollbar { display: none; }
.np-tab { flex: 0 0 auto; min-height: 34px; padding: 0 11px; color: var(--np-subtle); background: transparent; border: 0; border-radius: 9px; font-size: 12px; font-weight: 750; cursor: pointer; white-space: nowrap; }
.np-tab:hover { color: var(--ink); background: var(--card-hover, #f5f7fa); }
.np-tab.active { color: var(--brand, #7c3aed); background: var(--np-purple-soft); }

.np-list { display: flex; flex-direction: column; gap: 3px; min-height: 120px; }
.np-item { position: relative; display: flex; align-items: flex-start; gap: 13px; padding: 13px 10px; border-radius: 14px; cursor: pointer; }
.np-item:hover { background: var(--card-hover, #f5f7fa); }
.np-item.unread { background: color-mix(in srgb, var(--brand, #7c3aed) 6%, transparent); }
.np-item.unread::before { position: absolute; top: 23px; left: 1px; width: 5px; height: 5px; content: ""; background: var(--brand, #7c3aed); border-radius: 50%; }
.np-item-av { position: relative; display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; flex: 0 0 46px; overflow: visible; color: var(--brand, #7c3aed); background: var(--np-purple-soft); border-radius: 15px; font-size: 14px; font-weight: 800; }
.np-item-av img { width: 100%; height: 100%; object-fit: cover; border-radius: 15px; }
.np-item-av-badge { position: absolute; right: -6px; bottom: -5px; display: flex; align-items: center; justify-content: center; width: 21px; height: 21px; color: var(--ink); background: var(--card, #fff); border: 2px solid var(--card, #fff); border-radius: 50%; box-shadow: 0 1px 5px rgba(0,0,0,.13); font-size: 11px; }
.np-item-body { min-width: 0; flex: 1; padding-top: 1px; }
.np-item-text { color: var(--ink, #050505); font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.np-item-text strong { font-weight: 800; }
.np-item-meta { display: flex; align-items: center; gap: 8px; margin-top: 5px; }
.np-item-type { color: var(--brand, #7c3aed); font-size: 11px; font-weight: 800; }
.np-item-time { color: var(--np-faint); font-size: 11px; }
.np-item-actions { display: flex; align-items: center; gap: 5px; flex: 0 0 auto; opacity: 0; transition: opacity .15s ease; }
.np-item:hover .np-item-actions,
.np-item:focus-within .np-item-actions { opacity: 1; }
.np-item-btn { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; color: var(--np-subtle); background: var(--card, #fff); border: 1px solid var(--np-line); border-radius: 9px; cursor: pointer; font-size: 13px; font-weight: 800; }
.np-item-btn:hover { color: var(--brand, #7c3aed); border-color: var(--brand, #7c3aed); }
.np-item-btn--archive:hover { color: var(--red, #e41e3f); border-color: var(--red, #e41e3f); }

.np-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 180px; padding: 24px; text-align: center; }
.np-empty-icon { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin-bottom: 12px; color: var(--brand, #7c3aed); background: var(--np-purple-soft); border-radius: 16px; font-size: 22px; }
.np-empty strong { font-size: 15px; }
.np-empty p { max-width: 300px; margin: 6px 0 0; color: var(--np-subtle); font-size: 12px; line-height: 1.5; }
.np-spinner { display: flex; justify-content: center; gap: 6px; padding: 48px 0; }
.np-spinner span { width: 8px; height: 8px; background: var(--brand, #7c3aed); border-radius: 50%; animation: np-pulse .7s ease-in-out infinite; }
.np-spinner span:nth-child(2) { animation-delay: .12s; }
.np-spinner span:nth-child(3) { animation-delay: .24s; }
@keyframes np-pulse { 0%, 80%, 100% { opacity: .35; transform: scale(.7); } 40% { opacity: 1; transform: scale(1); } }
.np-load-more-button { display: block; width: 100%; min-height: 42px; margin-top: 11px; color: var(--brand, #7c3aed); background: var(--np-purple-soft); border: 0; border-radius: 11px; font-size: 12px; font-weight: 800; cursor: pointer; }
.np-load-more-button:hover { filter: brightness(.97); }
.np-load-more-button[hidden] { display: none; }

.np-sidebar { display: grid; gap: 14px; }
.np-side-card { padding: 22px; }
.np-side-icon { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; margin-bottom: 18px; color: var(--brand, #7c3aed); background: var(--np-purple-soft); border-radius: 13px; }
.np-side-card h2 { margin: 0; font-size: 16px; line-height: 1.25; }
.np-side-card p { margin: 8px 0 18px; color: var(--np-subtle); font-size: 12px; line-height: 1.55; }
.np-text-button { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 0; color: var(--brand, #7c3aed); background: transparent; border: 0; font-size: 12px; font-weight: 800; text-align: left; text-decoration: none; cursor: pointer; }
.np-text-button:hover { color: var(--brand2, #9333ea); }
.np-side-summary { display: flex; flex-direction: column; gap: 3px; }
.np-side-label { color: var(--np-faint); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.np-side-summary strong { margin-top: 8px; font-size: 34px; line-height: 1; letter-spacing: -.05em; }
.np-side-summary > span:not(.np-side-label) { color: var(--np-subtle); font-size: 12px; }
.np-side-summary a { margin-top: 17px; color: var(--brand, #7c3aed); font-size: 12px; font-weight: 800; text-decoration: none; }

.np-settings-view { margin-top: 22px; padding: 28px; background: var(--card, #fff); border: 1px solid var(--np-line); border-radius: 20px; box-shadow: var(--shadow, 0 1px 4px rgba(0,0,0,.1)); }
.np-settings-view[hidden] { display: none; }
.np-settings-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding-bottom: 22px; border-bottom: 1px solid var(--np-line); }
.np-back-link { display: inline-flex; align-items: center; gap: 6px; padding: 0; color: var(--brand, #7c3aed); background: transparent; border: 0; font-size: 12px; font-weight: 800; cursor: pointer; }
.np-settings-heading h2 { margin: 18px 0 5px; font-size: 24px; letter-spacing: -.03em; }
.np-settings-heading p { margin: 0; color: var(--np-subtle); font-size: 13px; }
.np-settings-state { color: var(--green, #42b72a); font-size: 12px; font-weight: 800; }
.np-settings-card { padding: 22px 0; border-bottom: 1px solid var(--np-line); }
.np-settings-card:last-child { border-bottom: 0; padding-bottom: 0; }
.np-settings-card h3 { margin: 0 0 5px; font-size: 15px; }
.np-settings-card > p { margin: 0 0 17px; color: var(--np-subtle); font-size: 12px; }
.np-setting-row { display: grid; grid-template-columns: minmax(130px, 1fr) auto; align-items: center; gap: 18px; padding: 13px 0; border-top: 1px solid color-mix(in srgb, var(--np-line) 65%, transparent); }
.np-setting-name { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 750; }
.np-setting-emoji { width: 25px; font-size: 17px; text-align: center; }
.np-setting-controls { display: flex; align-items: center; justify-content: flex-end; gap: 13px; flex-wrap: wrap; }
.np-switch-label { display: inline-flex; align-items: center; gap: 6px; color: var(--np-subtle); font-size: 11px; cursor: pointer; }
.np-switch-label input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.np-switch { position: relative; display: inline-block; width: 31px; height: 18px; background: var(--bg3, #dcdfe6); border-radius: 999px; transition: background .15s; }
.np-switch::after { position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; content: ""; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .15s; }
.np-switch-label input:checked + .np-switch { background: var(--brand, #7c3aed); }
.np-switch-label input:checked + .np-switch::after { transform: translateX(13px); }
.np-freq-select, .np-time-input { min-height: 32px; padding: 0 8px; color: var(--ink); background: var(--card, #fff); border: 1px solid var(--np-line); border-radius: 8px; font-size: 11px; }
.np-dnd-options { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-top: 15px; }
.np-dnd-options[hidden] { display: none; }
.np-dnd-options span { color: var(--np-subtle); font-size: 11px; }
.np-save-settings { min-height: 42px; margin-top: 20px; padding: 0 18px; color: #fff; background: var(--brand, #7c3aed); border: 0; border-radius: 11px; font-size: 12px; font-weight: 800; cursor: pointer; }
.np-save-settings:hover { background: var(--brand2, #9333ea); }
.np-save-settings:disabled { opacity: .6; cursor: wait; }
.np-status { min-height: 24px; margin-top: 12px; color: var(--green, #42b72a); font-size: 12px; font-weight: 700; text-align: center; }
.np-status.error { color: var(--red, #e41e3f); }

.np-mobile-nav { display: none; }

[data-theme="dark"] .np-purple-soft { background: rgba(168,85,247,.15); }
[data-theme="dark"] .np-hero { box-shadow: 0 18px 48px rgba(0,0,0,.3); }
[data-theme="dark"] .np-brand { color: var(--ink); }

@media (max-width: 800px) {
  .np-topbar { height: 64px; }
  .np-topbar-inner { width: min(100% - 20px, var(--np-max)); gap: 8px; }
  .np-icon-button { width: 40px; height: 40px; flex-basis: 40px; }
  .np-brand { display: none; }
  .np-header-title { border-left: 0; }
  .np-header-title h1, .np-eyebrow { margin-left: 0; }
  .np-header-title h1 { font-size: 16px; }
  .np-top-links { display: none; }
  .np-mobile-settings { display: inline-flex; }
  .np-shell { width: min(100% - 20px, var(--np-max)); padding-top: 16px; padding-bottom: 88px; }
  .np-hero { display: block; min-height: 0; padding: 23px 21px; border-radius: 20px; }
  .np-hero h2 { margin-top: 10px; font-size: 27px; }
  .np-hero-actions { justify-content: stretch; margin-top: 22px; }
  .np-hero-actions .np-button { flex: 1 1 0; padding: 0 10px; }
  .np-layout { grid-template-columns: 1fr; gap: 14px; margin-top: 14px; }
  .np-main-card { padding: 20px 13px 16px; border-radius: 18px; }
  .np-card-heading { padding: 0 7px; }
  .np-sidebar { grid-template-columns: 1fr 1fr; }
  .np-side-card { padding: 17px; border-radius: 16px; }
  .np-side-card h2 { font-size: 14px; }
  .np-side-card p { font-size: 11px; }
  .np-side-summary strong { font-size: 29px; }
  .np-item { padding: 12px 7px; }
  .np-item-actions { opacity: 1; }
  .np-settings-view { margin-top: 14px; padding: 21px 16px; border-radius: 18px; }
  .np-settings-heading { display: block; }
  .np-settings-state { display: block; margin-top: 12px; }
  .np-setting-row { grid-template-columns: 1fr; gap: 11px; }
  .np-setting-controls { justify-content: flex-start; }
  .np-mobile-nav { position: fixed; right: 0; bottom: 0; left: 0; z-index: 30; display: flex; justify-content: space-around; min-height: 64px; padding: 6px 8px max(6px, env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--card, #fff) 96%, transparent); border-top: 1px solid var(--np-line); box-shadow: 0 -5px 22px rgba(0,0,0,.08); backdrop-filter: blur(18px); }
  .np-mobile-nav a { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 44px; color: var(--np-subtle); border-radius: 12px; font-size: 10px; font-weight: 700; line-height: 1; text-decoration: none; }
  .np-mobile-nav a.active { color: var(--brand, #7c3aed); background: var(--np-purple-soft); }
}

@media (max-width: 430px) {
  .np-sidebar { grid-template-columns: 1fr; }
  .np-side-summary { display: none; }
  .np-hero-actions .np-button { font-size: 11px; }
  .np-hero-actions .np-button-ghost { flex: 0 0 108px; }
  .np-item { gap: 11px; }
  .np-item-av { width: 42px; height: 42px; flex-basis: 42px; border-radius: 13px; }
  .np-item-av img { border-radius: 13px; }
  .np-item-text { font-size: 13px; }
  .np-item-actions { gap: 3px; }
  .np-item-btn { width: 27px; height: 27px; }
}