/* Synora 2026 — plattformübergreifendes „Midnight Glass“-Redesign.
   Liegt bewusst als additive Schicht über style.css: bestehende Features und
   ihre Selektoren bleiben unangetastet, die visuelle Sprache ist zentral. */
:root {
  --bg: #08060a;
  --panel: #151117;
  --panel2: #211a22;
  --panel-glass: rgba(21,17,23,.78);
  --text: #fbf7fa;
  --muted: #aaa0a9;
  --accent-soft: rgba(214,51,108,.15);
  --line: rgba(255,255,255,.10);
  --line-strong: rgba(255,255,255,.18);
  --shadow: 0 22px 64px rgba(0,0,0,.38);
  --sidebar-w: 264px;
}

html, body { background: var(--bg); }
body {
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 72% 12%, rgba(214,51,108,.10), transparent 34%),
    radial-gradient(circle at 18% 86%, rgba(84,214,44,.045), transparent 28%),
    var(--bg);
  letter-spacing: -.01em;
}
button, input, textarea, select { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid #ef5a8b;
  outline-offset: 3px;
}

/* Desktop shell */
#sidebar {
  gap: 14px;
  padding: 26px 18px 18px;
  background: linear-gradient(180deg, rgba(24,18,25,.94), rgba(11,8,12,.91));
  border-right: 1px solid var(--line);
  box-shadow: 18px 0 70px rgba(0,0,0,.18);
  backdrop-filter: blur(28px) saturate(135%);
}
.logo {
  padding: 0 10px;
  font-size: 31px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: -1.4px;
}
.brand-kicker {
  margin: -7px 10px 5px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .19em;
  text-transform: uppercase;
}
.search-box {
  padding: 5px 7px 5px 14px;
  background: rgba(255,255,255,.055);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.search-box:focus-within {
  background: rgba(255,255,255,.075);
  border-color: rgba(214,51,108,.58);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
#mainNav { gap: 5px; }
.nav-item {
  padding: 12px 13px;
  border: 1px solid transparent;
  border-radius: 15px;
  font-size: 15px;
  font-weight: 650;
  transition: color .18s ease, background .18s ease, transform .18s ease, border-color .18s ease;
}
.nav-item:hover { background: rgba(255,255,255,.05); transform: translateX(2px); }
.nav-item.active {
  color: #fff;
  background: linear-gradient(100deg, rgba(214,51,108,.23), rgba(214,51,108,.08));
  border-color: rgba(214,51,108,.22);
}
.nav-item.active svg { color: #ef5a8b; filter: drop-shadow(0 0 10px rgba(214,51,108,.35)); }
.side-note { line-height: 1.55; }
.auth-btn, .upload-btn, .panel button.primary, .feed-hint button, .pb-enable {
  background: linear-gradient(135deg, #e34379, #b9285a);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(214,51,108,.20);
  font-weight: 750;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.auth-btn:hover, .upload-btn:hover, .panel button.primary:hover, .feed-hint button:hover, .pb-enable:hover {
  background: linear-gradient(135deg, #ed4b82, #c32d61);
  box-shadow: 0 14px 32px rgba(214,51,108,.28);
  transform: translateY(-1px);
}

/* Content and feed */
#content { background: radial-gradient(circle at 50% 10%, rgba(214,51,108,.055), transparent 38%); }
@media (min-width: 700px) {
  .card video, .card .media-img, .card .photo-strip {
    height: calc(100% - 48px);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 20px;
    box-shadow: 0 24px 80px rgba(0,0,0,.48), 0 0 0 1px rgba(214,51,108,.035);
  }
}
/* Video-Feed / Für-dich / Profil-Userfeed */
.card { isolation: isolate; }
.card:not(.live-feed)::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 6px;
  z-index: 4;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,.17);
  pointer-events: none;
}
.caption {
  left: max(14px, calc(50% - 310px));
  bottom: 18px;
  width: min(410px, calc(100% - 110px));
  max-width: none;
  padding: 14px 15px;
  background: linear-gradient(145deg, rgba(20,15,23,.82), rgba(9,7,12,.70));
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 20px;
  box-shadow: 0 18px 48px rgba(0,0,0,.32);
  backdrop-filter: blur(22px) saturate(140%);
}
.caption .uname { font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.caption .desc { color: rgba(255,255,255,.91); line-height: 1.45; }
.caption .sound {
  width: fit-content;
  max-width: 100%;
  padding: 7px 11px;
  background: rgba(18,25,35,.80);
  border: 1px solid rgba(86,218,229,.25);
  border-radius: 999px;
  color: rgba(255,255,255,.94);
}
.caption .sound .disc { color: #56dae5; }
.rail {
  right: max(12px, calc(50% - 355px));
  bottom: 24px;
  gap: 12px;
}
.rail .avatar {
  width: 50px;
  height: 50px;
  border-color: #56dae5;
  box-shadow: 0 0 0 3px rgba(8,6,10,.55), 0 12px 28px rgba(0,0,0,.34);
}
.rail .act { gap: 3px; }
.rail .act .bubble {
  width: 44px;
  height: 44px;
  background: rgba(15,20,30,.72);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 10px 26px rgba(0,0,0,.28);
  backdrop-filter: blur(18px) saturate(140%);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.rail .act:hover .bubble {
  transform: translateY(-2px) scale(1.04);
  border-color: rgba(255,255,255,.26);
  background: rgba(31,24,34,.88);
}
.rail .act .cnt { font-size: 11px; font-weight: 700; color: rgba(255,255,255,.92); }
.progress {
  left: 12px;
  bottom: 6px;
  max-width: calc(100% - 24px);
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #56dae5);
  box-shadow: 0 0 12px rgba(214,51,108,.28);
}
.card.clean::after { display: none; }
.subpage { padding: 34px 38px 96px; }
.subpage h2 { font-size: clamp(23px, 2.2vw, 30px); letter-spacing: -.035em; }
.live-grid { gap: 18px; }
.live-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 16px 38px rgba(0,0,0,.26);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.live-card:hover { transform: translateY(-4px); border-color: rgba(214,51,108,.42); box-shadow: 0 22px 50px rgba(0,0,0,.36); }
.live-card .lc-badge, .lf-badge { border-radius: 999px; padding: 5px 10px; }
.event-card, .push-banner, .coin-pkg, .user-row, .map-container { border-radius: 18px; }
.event-card, .coin-pkg { background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.025)); }

/* Panels, profiles and messaging */
.overlay { background: rgba(4,2,5,.72); backdrop-filter: blur(18px) saturate(125%); }
.panel {
  padding: 30px;
  background: linear-gradient(155deg, rgba(35,27,36,.96), rgba(17,13,18,.97));
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
#loginModal .panel::before {
  content: "S";
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin: 0 0 22px;
  background: linear-gradient(145deg, #eb4b82, #a92358);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 17px;
  color: #fff;
  box-shadow: 0 14px 34px rgba(214,51,108,.27);
  font-size: 23px;
  font-weight: 850;
}
.panel h1 { font-size: 25px; letter-spacing: -.035em; }
.panel input, .panel textarea, .priv-select, #lnInvoice {
  min-height: 48px;
  background: rgba(255,255,255,.055);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.panel input:focus, .panel textarea:focus, .priv-select:focus {
  background: rgba(255,255,255,.075);
  border-color: rgba(214,51,108,.66);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.panel button.primary { min-height: 48px; }
.screen { background: var(--bg); }
.screen-head, .dm-chat-head {
  background: rgba(12,9,13,.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(22px) saturate(135%);
}
.prof-avatar { border: 3px solid rgba(214,51,108,.68); box-shadow: 0 0 0 6px var(--accent-soft); }
.prof-tabs .pt.active { color: #fff; }
.prof-tabs .pt.active::after { height: 3px; background: var(--accent); border-radius: 999px; }
.dm-view { background: rgba(8,6,10,.74); }
.dm-list { background: rgba(18,14,19,.62); backdrop-filter: blur(20px); }
.dm-conv { margin: 2px 5px; border: 1px solid transparent; border-radius: 16px; }
.dm-conv:hover { background: rgba(255,255,255,.05); border-color: var(--line); }
.dm-bubble { border: 1px solid rgba(255,255,255,.055); border-radius: 18px 18px 18px 6px; }
.dm-msg.own .dm-bubble { background: linear-gradient(135deg, #db3b72, #b52a59); border-radius: 18px 18px 6px 18px; }
.comment-panel, .map-zone-panel { background: rgba(20,15,21,.94); backdrop-filter: blur(26px) saturate(130%); }

/* Mobile shell */
#topbar {
  height: 62px;
  padding: max(4px, env(safe-area-inset-top)) 12px 4px;
  background: linear-gradient(180deg, rgba(8,6,10,.90), rgba(8,6,10,.42), transparent);
  backdrop-filter: blur(10px);
}
.tab { font-size: 15px; }
.tab.active::after { height: 3px; background: linear-gradient(90deg, var(--accent), #f06493); }
#bottomNav {
  left: 10px;
  right: 10px;
  bottom: max(8px, env(safe-area-inset-bottom));
  height: 62px;
  padding: 4px 5px;
  background: rgba(24,18,25,.88);
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(0,0,0,.46);
  backdrop-filter: blur(24px) saturate(145%);
}
.bn-item { border-radius: 15px; transition: color .18s ease, background .18s ease; }
.bn-item.active { color: #fff; background: var(--accent-soft); }
.bn-item.active .bn-ico { color: #ef5a8b; }
.bn-plus .plus {
  width: 48px;
  height: 38px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  background: linear-gradient(135deg, #e8487e, #b62759);
  box-shadow: 0 10px 24px rgba(214,51,108,.30);
}
.open-app-btn { border: 1px solid rgba(255,255,255,.12); box-shadow: 0 12px 30px rgba(214,51,108,.24); }

@media (max-width: 699px) {
  .brand-kicker { display: none; }
  .subpage { padding: 74px 18px 104px; }
  #feed .card, .subpage { padding-bottom: 82px; }
  .caption {
    left: 12px;
    bottom: 88px;
    width: calc(100% - 88px);
    max-width: none;
    padding: 12px 13px;
    border-radius: 18px;
  }
  .rail { right: 10px; bottom: 90px; gap: 10px; }
  .rail .act .bubble { width: 42px; height: 42px; }
  .rail .avatar { width: 48px; height: 48px; }
  #topbar .tabs {
    flex: 0 1 auto;
    gap: 3px;
    padding: 3px;
    background: rgba(18,14,21,.76);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 999px;
    backdrop-filter: blur(18px) saturate(140%);
  }
  #topbar .tab {
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 13px;
    text-shadow: none;
  }
  #topbar .tab.active { background: rgba(255,255,255,.12); }
  #topbar .tab.active::after {
    left: 34%; right: 34%; bottom: 2px; height: 2px;
    background: #56dae5;
  }
  .dm-form { margin-bottom: 82px; }
  .prof-top { padding-top: 28px; }
  .panel { padding: 26px 22px; border-radius: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
