/* Budapest fotoportal — Beyond Vision designmanual (beyondvision.dk/Design.html) */
:root {
  --vision-green: #76ba1b;
  --vision-green-dark: #5f9615;
  --core-dark: #0e0e0e;
  --terminal-black: #050505;
  --bg: #ffffff;
  --bg-soft: #f5f6f5;
  --bg-sunken: #eceeec;
  --surface: #ffffff;
  --surface-glass: rgba(255, 255, 255, .72);
  --border: rgba(14, 14, 14, .10);
  --border-strong: rgba(14, 14, 14, .20);
  --text: #0e0e0e;
  --text-soft: #3d4147;
  --muted: #6b6f76;
  --shadow-sm: 0 2px 8px rgba(14, 14, 14, .05);
  --shadow: 0 14px 40px rgba(14, 14, 14, .09);
  --ring: 0 0 0 3px rgba(118, 186, 27, .22);
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-pill: 999px;
  --gutter: clamp(16px, 5vw, 64px);
  --maxw: 1240px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #050505;
    --bg-soft: #0e0e10;
    --bg-sunken: #161619;
    --surface: #131316;
    --surface-glass: rgba(20, 20, 20, .85);
    --border: rgba(255, 255, 255, .10);
    --border-strong: rgba(255, 255, 255, .20);
    --text: #ffffff;
    --text-soft: #c9ccd1;
    --muted: #8d9199;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, .4);
    --shadow: 0 14px 40px rgba(0, 0, 0, .5);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.5; -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.icon { width: 1.15em; height: 1.15em; flex: 0 0 auto; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mono { font-family: var(--font-mono); }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* Topbar — glas */
.topbar { position: sticky; top: 0; z-index: 50; background: var(--surface-glass); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); border-bottom: 1px solid var(--border); }
.topbar .wrap { height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.brand::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--vision-green); }

/* Knapper */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); padding: 10px 18px; border-radius: var(--r-pill); font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease); }
.btn:hover { border-color: var(--vision-green); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn-dark { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn-dark:hover { background: var(--vision-green); border-color: var(--vision-green); color: #fff; }
.btn-green { background: var(--vision-green); border-color: var(--vision-green); color: #fff; }
.btn-green:hover { background: var(--vision-green-dark); border-color: var(--vision-green-dark); }
.btn .count { font-family: var(--font-mono); font-size: 12px; opacity: .7; }

/* Hero */
.hero { padding: clamp(40px, 8vw, 96px) 0 clamp(28px, 5vw, 56px); }
.eyebrow { font-family: var(--font-mono); font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--vision-green); margin: 0 0 14px; }
.hero h1 { font-size: clamp(44px, 9vw, 96px); font-weight: 900; letter-spacing: -0.04em; line-height: .95; margin: 0 0 16px; }
.hero h1 a { text-decoration: none; }
.hero .lead { color: var(--muted); font-size: clamp(16px, 2vw, 19px); max-width: 560px; margin: 0 0 28px; }
.search { position: relative; max-width: 560px; }
.hero.compact { padding: clamp(20px, 4vw, 40px) 0 clamp(16px, 3vw, 28px); }
.hero.compact h1 { font-size: clamp(32px, 5vw, 48px); margin-bottom: 14px; }
.hero.compact .lead { display: none; }
.search .icon { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 20px; height: 20px; pointer-events: none; }
.search input { width: 100%; font: inherit; font-size: 16px; padding: 16px 20px 16px 52px; border-radius: var(--r-pill); border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); -webkit-appearance: none; appearance: none; transition: border-color .2s, box-shadow .2s; }
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; border-color: var(--vision-green); box-shadow: var(--ring); }

/* Sektioner */
main { flex: 1; padding-bottom: 72px; }
.section { margin-bottom: clamp(40px, 6vw, 72px); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-bottom: 1px solid var(--border); padding-bottom: 14px; margin-bottom: 24px; }
.section-head h2 { display: flex; align-items: center; gap: 12px; font-size: clamp(22px, 3vw, 30px); font-weight: 900; letter-spacing: -0.03em; margin: 0; line-height: 1.1; }
.section-head h2::before { content: ''; width: 12px; height: 12px; border-radius: 50%; background: var(--vision-green); flex: 0 0 auto; }
.section-head p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.meta { font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing: .5px; text-transform: uppercase; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); margin: 0 0 20px; }
.crumbs a { color: var(--text); text-decoration: none; font-weight: 600; }
.crumbs a:hover { color: var(--vision-green); }
.crumbs .sep { opacity: .5; }

/* Navne */
.people { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border-strong); background: var(--surface); border-radius: var(--r-pill); padding: 9px 16px; font-size: 15px; font-weight: 500; text-decoration: none; cursor: pointer; transition: border-color .2s var(--ease), background .2s var(--ease), color .2s var(--ease); user-select: none; }
.chip:hover { border-color: var(--vision-green); }
.chip small { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.chip.on { background: var(--vision-green); border-color: var(--vision-green); color: #fff; }
.chip.on small { color: rgba(255, 255, 255, .8); }

/* Albums */
.albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.album { display: flex; flex-direction: column; text-decoration: none; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.album:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.album-cover { aspect-ratio: 3 / 2; background: var(--bg-sunken); display: flex; align-items: center; justify-content: center; color: var(--muted); }
.album-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.album-cover .icon { width: 36px; height: 36px; }
.album-body { padding: 16px 18px 18px; }
.album-name { font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }

/* Billeder */
.grid { column-count: 3; column-gap: 20px; }
.photo { break-inside: avoid; -webkit-column-break-inside: avoid; margin: 0 0 20px; display: block; width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; position: relative; }
.photo img { width: 100%; height: auto; display: block; cursor: zoom-in; background: var(--bg-sunken); min-height: 120px; }
.photo-foot { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; }
.photo-names { display: flex; flex-wrap: wrap; gap: 4px 10px; flex: 1; min-width: 0; font-size: 13px; }
.photo-names a { color: var(--text-soft); text-decoration: none; font-weight: 500; }
.photo-names a:hover { color: var(--vision-green); }
.photo-names .none { color: var(--muted); font-family: var(--font-mono); font-size: 11px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; text-decoration: none; flex: 0 0 auto; transition: border-color .2s, color .2s, background .2s; }
.icon-btn:hover { border-color: var(--vision-green); color: var(--vision-green); }
.fav { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--surface-glass); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); border: 0; cursor: pointer; color: var(--text); z-index: 2; }
.fav .icon { width: 19px; height: 19px; }
.fav.on { color: #fff; background: var(--vision-green); }
.fav.on .icon { fill: currentColor; }

.empty { text-align: center; padding: 64px 16px; color: var(--muted); }
.empty h2 { color: var(--text); font-size: 24px; font-weight: 900; letter-spacing: -0.02em; margin: 0 0 8px; }

/* Lightbox */
.lightbox { display: none; position: fixed; inset: 0; z-index: 100; background: var(--terminal-black); color: #fff; flex-direction: column; align-items: center; justify-content: center; padding: 64px 72px 24px; touch-action: pan-y; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 210px); object-fit: contain; border-radius: var(--r-sm); }
.lb-info { margin-top: 16px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lb-caption { font-family: var(--font-mono); font-size: 12px; color: rgba(255, 255, 255, .55); letter-spacing: .5px; }
.lb-names { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.lb-names a { font-size: 14px; color: #fff; text-decoration: none; padding: 5px 13px; border-radius: var(--r-pill); border: 1px solid rgba(255, 255, 255, .22); }
.lb-names a:hover { border-color: var(--vision-green); color: var(--vision-green); }
.lb-btn { position: absolute; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); background: rgba(20, 20, 20, .85); color: #fff; cursor: pointer; }
.lb-btn:hover { border-color: var(--vision-green); color: var(--vision-green); }
.lb-btn .icon { width: 22px; height: 22px; }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }

footer { border-top: 1px solid var(--border); padding: 36px 0; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer a { text-decoration: none; color: var(--text-soft); }
footer a:hover { color: var(--vision-green); }
footer strong { color: var(--text); }

@media (max-width: 960px) { .grid { column-count: 2; column-gap: 14px; } .photo { margin-bottom: 14px; } }
@media (max-width: 600px) {
  .topbar .wrap { height: 54px; }
  .btn { padding: 9px 14px; font-size: 13px; }
  .fav-label { display: none; }
  .albums { grid-template-columns: 1fr 1fr; gap: 12px; }
  .album-body { padding: 10px 12px 12px; }
  .album-name { font-size: 15px; }
  .grid { column-gap: 10px; }
  .photo { margin-bottom: 10px; border-radius: 12px; }
  .photo img { min-height: 80px; }
  .photo-foot { padding: 6px 6px 6px 10px; gap: 6px; }
  .photo-names { font-size: 12px; gap: 2px 8px; }
  .icon-btn { width: 32px; height: 32px; }
  .fav { width: 32px; height: 32px; top: 6px; right: 6px; }
  .fav .icon { width: 16px; height: 16px; }
  .chip { padding: 8px 13px; font-size: 14px; }
  .lightbox { padding: 60px 0 88px; }
  .lightbox img { border-radius: 0; max-height: calc(100vh - 240px); }
  .lb-prev, .lb-next { top: auto; bottom: 20px; transform: none; }
  .lb-prev { left: 20px; } .lb-next { right: 20px; }
}
