/* Nevents as an app of its own (web/js/nevents/page.js), the way Bir Günü Filmet is: N Sosyal's sidebar and right
   column step aside; Nevents has its bar on top (its sections, notifications, "Oluştur", the account), a wide page
   and a side panel only where a page needs one. On a phone the sections move to a bar at the bottom.
   The look is plain on purpose ("Sade"): N Sosyal's colours on flat surfaces, small corners, tabs that are
   underlined, one blue for what can be done, the hosts' colours only where they say who hosts. Sana özel is a wall
   of posters, the rest lists and tiles. */

body.nevents-mode .layout { display: block; padding: 0; }
body.nevents-mode .sidebar,
body.nevents-mode .aside,
body.nevents-mode .mobile-fab { display: none !important; }
body.nevents-mode .col { border: 0; }
body.nevents-mode .main { min-width: 0; }

/* N Sosyal's round pieces, squarer here (the dialogs and menus open on <body>, so this is the body's class) */
body.nevents-mode .btn { border-radius: 6px; }
body.nevents-mode .btn-sm { padding: 6px 12px; }
body.nevents-mode .chip { border-radius: 6px; }
body.nevents-mode .icon-btn { border-radius: 6px; }
body.nevents-mode .input, body.nevents-mode select.input, body.nevents-mode textarea.input { border-radius: 6px; }
body.nevents-mode .widget { border-radius: 8px; border: 1px solid var(--border); }
body.nevents-mode .menu { border-radius: 8px; }

.nv-app { --nv-w: 1180px; min-height: 100vh; background: var(--bg); }

/* ---------------------------------------------------------------- the bar on top */
.nv-top { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--border); }
.nv-top-in { max-width: var(--nv-w); margin: 0 auto; height: 60px; padding: 0 24px; display: flex; align-items: center; gap: 14px; }
.nv-home { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 6px; flex: none; }
.nv-home:hover { background: var(--surface); }
.nv-home svg { width: 24px; height: 24px; }
.nv-brand { padding-left: 14px; border-left: 1px solid var(--border); margin-right: 14px; flex: none; font-size: 18px; font-weight: 750;
  letter-spacing: -.01em; color: var(--text); }
.nv-nav { display: flex; gap: 22px; flex: 1; min-width: 0; align-self: stretch; }
.nv-nav a { display: flex; align-items: center; font-size: 14.5px; font-weight: 600; color: var(--muted); white-space: nowrap;
  border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .15s; }
.nv-nav a:hover { color: var(--text); }
.nv-nav a.on { color: var(--text); border-color: var(--primary); }
.nv-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.nv-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 6px; border: 1px solid var(--border);
  background: none; color: var(--text-2); cursor: pointer; transition: border-color .15s, color .15s; }
.nv-icon:hover { border-color: var(--border-strong); color: var(--text); }
.nv-icon svg { width: 19px; height: 19px; }
.nv-create { padding: 8px 14px; }
.nv-create svg { width: 16px; height: 16px; }
.nv-me { border: 0; padding: 0; border-radius: 50%; background: none; cursor: pointer; }
.nv-me .avatar.sm { width: 34px; height: 34px; font-size: 12px; border: 0; }
.nv-me[aria-expanded="true"] .avatar.sm { box-shadow: 0 0 0 2px var(--primary); }

/* ---------------------------------------------------------------- the page and its side panel */
.nv-wrap { max-width: var(--nv-w); margin: 0 auto; padding: 0 24px 40px; display: grid; grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px; align-items: start; }
.nv-wrap:has(> .nv-side:empty) { grid-template-columns: minmax(0, 1fr); }
.nv-side:empty { display: none; }
.nv-side { position: sticky; top: 76px; padding-top: 24px; max-height: calc(100vh - 88px); overflow-y: auto; }
.nv-page { min-width: 0; }
.nv-page .nev-body { padding-bottom: 12px; }

/* a page's head: a title with a line under it, no bar of its own (the app's bar is the bar) */
.nv-app .header.nev-header { position: static; background: none; backdrop-filter: none; border: 0; }
.nv-app .nev-header .header-title { min-height: 0; padding: 30px 16px 14px; gap: 14px; align-items: flex-end; }
.nv-app .nev-title span { font-size: 28px; font-weight: 750; letter-spacing: -.015em; line-height: 1.15; }
.nv-app .nev-title small { font-size: 14.5px; margin-top: 4px; }
.nv-app .nev-header .icon-btn { border: 1px solid var(--border); }
.nv-seg { margin-left: auto; display: inline-flex; gap: 18px; padding-bottom: 2px; }
.nv-seg a { padding-bottom: 4px; font-size: 14px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; }
.nv-seg a:hover { color: var(--text); }
.nv-seg a.on { color: var(--text); border-color: var(--text); }
.nev-back { display: inline-flex; align-items: center; gap: 6px; margin: 24px 16px 4px; color: var(--muted); font-size: 14px; }
.nev-back:hover { color: var(--text); }
.nev-back svg { width: 17px; height: 17px; }

/* a list's section with nothing in it yet (Takvimim) */
.nev-list-none { margin: 0; padding: 0 16px; color: var(--muted); font-size: 14px; }
.nev-list-none a { color: var(--primary-hover); }

/* lists of rows lay out in two columns where there is room */
.nv-app .nev-rows { grid-template-columns: repeat(auto-fill, minmax(min(100%, 470px), 1fr)); gap: 12px; }
.nv-app .nev-filters { border-bottom: 0; padding-top: 0; }

/* ---------------------------------------------------------------- what every card says the same way */
.nev-when { font-size: 13px; font-weight: 650; color: var(--primary-hover); }
.nev-when.now { color: var(--success); }
.nev-when.bad { color: #ff7875; }
.nev-why { font-size: 13px; color: var(--muted); }
.nev-why b { color: var(--primary-hover); font-weight: 600; }
.nev-state { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 13px; font-weight: 600; color: var(--muted); }
.nev-state span { display: inline-flex; align-items: center; gap: 4px; }
.nev-state svg { width: 14px; height: 14px; }
.nev-state .good { color: var(--success); }
.nev-state .wait { color: var(--warning); }
.nev-state .nod { color: #b794f6; }
.nev-count { display: inline-flex; align-items: center; gap: 5px; flex: none; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.nev-count svg { width: 15px; height: 15px; }

/* ---------------------------------------------------------------- the tiles (Keşfet): the cover whole, the words under it */
.nev-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; padding: 0 16px; }
.nev-tile { display: flex; flex-direction: column; border-radius: 8px; overflow: hidden; background: var(--surface); color: var(--text);
  border: 1px solid var(--border); transition: border-color .15s; }
.nev-tile:hover { border-color: var(--border-strong); }
.nev-tile:hover .nev-tile-title { text-decoration: underline; text-underline-offset: 3px; }
.nev-tile.past { opacity: .8; }
.nev-tile.cancelled .nev-tile-title { text-decoration: line-through; text-decoration-color: rgba(255, 120, 117, .7); }
.nev-cover.tile { aspect-ratio: 4 / 3; }
.nev-cover.tile img { inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); }
.nev-cover.tile.empty { aspect-ratio: 4 / 3; margin: 0; }
.nev-tile-body { display: flex; flex-direction: column; gap: 5px; padding: 12px 14px 14px; flex: 1; }
.nev-tile-title { font-size: 16px; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-box-orient: vertical;
  -webkit-line-clamp: 2; overflow: hidden; }
.nev-tile-place { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 13px; color: var(--muted); }
.nev-tile-place svg { width: 14px; height: 14px; flex: none; }
.nev-tile-place span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nev-tile-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px;
  border-top: 1px solid var(--border); }
.nev-tile-foot .nev-row-org { min-width: 0; font-size: 13px; }
.nev-tile-foot .nev-row-org span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------------------------------------------------------------- Sana özel: the wall of posters (wall.js) */
.nev-wall-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px; padding: 30px 16px 24px; }
.nev-wall-head h1 { margin: 0; font-size: 24px; font-weight: 750; letter-spacing: -.01em; }
.nev-wall-head p { margin: 0; color: var(--muted); font-size: 15px; }
.nev-wall-prefs { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }
.nev-wall-prefs svg { width: 16px; height: 16px; }
.nev-wall { display: flex; gap: 26px; align-items: flex-start; padding: 0 16px; transition: opacity .2s; }
.nev-wall.settling { opacity: 0; }
.nev-wall-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 34px; }
.nev-poster { display: block; color: var(--text); }
.nev-poster-img { display: block; width: 100%; height: auto; border-radius: 2px; background: var(--surface-2); }
.nev-poster .nev-cover.poster { border-radius: 2px; }
.nev-poster:hover .nev-poster-img, .nev-poster:hover .nev-cover { outline: 2px solid var(--text); outline-offset: 3px; }
.nev-poster:hover .nev-poster-title { text-decoration: underline; text-underline-offset: 3px; }
.nev-poster.past { opacity: .8; }
.nev-poster.cancelled .nev-poster-img { filter: grayscale(.8); }
.nev-poster.cancelled .nev-poster-title { text-decoration: line-through; text-decoration-color: rgba(255, 120, 117, .7); }
.nev-poster-cap { display: grid; gap: 2px; margin-top: 10px; }
.nev-poster-cap .nev-when { font-weight: 400; font-size: 12.5px; color: var(--muted); }
.nev-poster-cap .nev-when.now { color: var(--success); font-weight: 650; }
.nev-poster-title { font-size: 15px; font-weight: 700; line-height: 1.3; }
.nev-poster-sub { font-size: 13px; color: var(--muted); }
.nev-poster-cap .nev-why b { font-weight: 400; }
.nev-poster-going { font-size: 13px; color: var(--success); }
.nev-poster-wait { font-size: 13px; color: var(--warning); }

/* ---------------------------------------------------------------- Kurumlar: a line each */
.nv-orgs { display: grid; gap: 8px; padding: 0 16px; }
.nv-org { --org: var(--primary); display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 6px; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--org); transition: border-color .15s; }
.nv-org:hover { border-color: var(--border-strong); border-left-color: var(--org); }
.nv-org .grow { display: grid; gap: 2px; }
.nv-org b { display: inline-flex; align-items: center; gap: 5px; font-size: 16px; }
.nv-org-tag { font-size: 14px; color: var(--text-2); }
.nv-org-open { font-size: 13px; color: var(--muted); }
.nv-org > svg:last-child { width: 16px; height: 16px; flex: none; color: var(--faint); }
.nv-mines { display: grid; gap: 8px; padding: 0 16px; }
.nv-mine { --org: var(--primary); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border-radius: 6px;
  background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--org); }
.nv-mine .grow { display: grid; min-width: 160px; }
.nv-mine .grow span { font-size: 13px; color: var(--muted); }
.nv-mine-links { display: flex; flex-wrap: wrap; gap: 6px; }
.nv-mine-links a { padding: 6px 11px; border-radius: 6px; font-size: 13px; font-weight: 600; color: var(--text-2); border: 1px solid var(--border); }
.nv-mine-links a:hover { color: var(--text); border-color: var(--border-strong); }
.nv-mine-links b { margin-left: 3px; color: var(--primary-hover); font-size: 12px; }
.nv-mine-links .nv-mine-new { display: inline-flex; align-items: center; gap: 4px; color: #fff; background: var(--primary); border-color: var(--primary); }
.nv-mine-links .nv-mine-new:hover { background: var(--primary-hover); color: #fff; }
.nv-mine-links .nv-mine-new svg { width: 14px; height: 14px; }

/* ---------------------------------------------------------------- one event: its poster beside it, or above it */
.nev-side-poster, .nev-ev-poster { display: grid; place-items: center; margin: 0; padding: 14px; border-radius: 8px;
  background: var(--surface-2); border: 1px solid var(--border); }
.nev-side-poster { margin-bottom: 16px; }
.nev-side-poster img { max-height: 460px; width: auto; max-width: 100%; }
.nev-ev-poster { display: none; margin: 8px 16px 0; }
.nev-ev-poster img { max-height: 420px; width: auto; max-width: 100%; }
.nev-side-poster .nev-cover.poster, .nev-ev-poster .nev-cover.poster { width: 100%; max-width: 280px; }

/* a narrower window: the side panel goes under the page, the poster back on top */
@media (max-width: 1060px) {
  .nv-wrap { grid-template-columns: minmax(0, 1fr); }
  .nv-side { position: static; max-height: none; padding-top: 8px; }
  .nev-side-poster { display: none; }
  .nev-ev-poster { display: grid; }
}

/* ---------------------------------------------------------------- the bottom bar on a phone */
.nv-tabbar { display: none; }
@media (max-width: 760px) {
  .nv-top-in { padding: 0 12px; height: 56px; gap: 8px; }
  .nv-nav { display: none; }
  .nv-brand { margin-right: auto; font-size: 17px; }
  .nv-create span { display: none; }
  .nv-create { width: 36px; height: 36px; padding: 0; justify-content: center; }
  .nv-wrap { padding: 0 0 86px; display: block; }
  .nv-side { position: static; max-height: none; padding: 0 8px; }
  .nv-app .nev-header .header-title { padding: 20px 12px 10px; }
  .nv-app .nev-title span { font-size: 23px; }
  .nev-tiles, .nv-orgs, .nv-mines { padding-left: 8px; padding-right: 8px; gap: 12px; }
  .nev-wall-head { padding: 20px 12px 18px; }
  .nev-wall-head h1 { font-size: 22px; }
  .nev-wall-prefs { margin-left: 0; }
  .nev-wall { gap: 14px; padding: 0 8px; }
  .nev-wall-col { gap: 24px; }
  .nev-poster-title { font-size: 14px; }
  .nev-ev-poster { margin: 4px 8px 0; }
  .nev-back { margin: 16px 12px 0; }
  .nv-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: grid; grid-template-columns: repeat(4, 1fr);
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--border); }
  .nv-tabbar a { display: grid; justify-items: center; gap: 3px; padding: 6px 0; font-size: 11px; font-weight: 600; color: var(--muted); }
  .nv-tabbar a svg { width: 22px; height: 22px; }
  .nv-tabbar a.on { color: var(--text); }
  .nv-tabbar a.on svg { color: var(--primary); }
  body.nevents-mode .toasts { bottom: 84px; }
}
