
:root {
--bg: #0e1116;
--text: #e6e9ef;
--muted: #a6b0bd;
--card: #171b22;
--line: #222a33;
--accent: #6aa2ff;
--accent-contrast: #0b0f15;
--shadow-sm: 0 1px 2px rgba(0,0,0,.5);
--shadow-md: 0 8px 24px rgba(0,0,0,.5);
--radius: 16px;
--container: 80%;
}
/*
:root {
  --bg: #ffffff;
  --text: #111418;
  --muted: #5b6570;
  --card: #f6f7f9;
  --line: #e7ebef;
  --accent: #0057ff;
  --accent-contrast: #ffffff;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 8px 24px rgba(0,0,0,.08);
  --container: 80%;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1116;
    --text: #e6e9ef;
    --muted: #a6b0bd;
    --card: #171b22;
    --line: #222a33;
    --accent: #6aa2ff;
    --accent-contrast: #0b0f15;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.5);
    --shadow-md: 0 8px 24px rgba(0,0,0,.5);
  }
}
*/

/* Reset-ish */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }

/* Utilities */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* Links & Buttons */
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 16px; border-radius: var(--radius);
  background: var(--accent); color: var(--accent-contrast);
  font-weight: 600; letter-spacing: .2px; box-shadow: var(--shadow-sm);
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn.ghost {
  background: transparent; color: var(--accent);
  border: 1px solid var(--line);
}
.btn.ghost:hover { background: var(--card); }

/* Focus visibility */
:where(a, button, .btn, [href], input, textarea, select):focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 10px;
}

/* Header */
.header { padding: 24px 0 12px; }
.header .brand { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { font-weight: 800; font-size: 20px; color: var(--text); letter-spacing: .2px; }
.header nav { display: flex; gap: 16px; }
.header nav a { color: var(--text); opacity: .85; padding: 6px 10px; border-radius: 10px; }
.header nav a:hover { background: var(--card); text-decoration: none; }

/* Hero */
.hero { padding: 40px 0 12px; }
.hero h1 { margin: 0 0 10px; font-size: clamp(28px, 4vw, 44px); line-height: 1.15; letter-spacing: .3px; }
.hero p { margin: 0 0 18px; color: var(--muted); font-size: 18px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* Sections */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 28px 0 14px; }
.section-head h2 { margin: 0; font-size: 22px; }
.section-head .more { color: var(--muted); font-size: 14px; }
.section-head .more:hover { color: var(--accent); text-decoration: none; }

/* Masonry Photo Grid */
.grid-photos { margin-top: 14px; }
.masonry { column-gap: 16px; }
.photo-card { display: inline-block; width: 100%; margin: 0 0 16px; border-radius: calc(var(--radius) - 4px); overflow: hidden; background: var(--card); box-shadow: var(--shadow-sm); break-inside: avoid; position: relative; }
.photo-card img { width: 100%; height: auto; aspect-ratio: auto; display: block; }
.photo-card .caption { position: absolute; left: 10px; bottom: 10px; background: rgba(0,0,0,.55); color: #fff; padding: 6px 10px; border-radius: 999px; font-size: 13px; letter-spacing: .2px; backdrop-filter: blur(4px); }
.photo-card:hover { box-shadow: var(--shadow-md); }


/* --- Login form ---*/
.login-container {
  max-width: 400px;
  margin: 40px auto;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.login-container h2 {
  text-align: center;
  margin-bottom: 20px;
}
.login-container label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}
.login-container input[type="username"],
.login-container input[type="password"] {
  width: 100%;
  padding: 10px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 16px;
}
.login-container button {
  width: 100%;
  padding: 10px;
  background: var(--accent);
  color: var(--accent-contrast);
  border: none;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
}
.login-container button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}


.gallery-wrap { max-width: 1200px; margin: 24px auto; padding: 0 12px; }
.gallery-head { display:flex; align-items:baseline; justify-content:space-between; gap:12px; margin-bottom: 12px; }
.gallery-head h1 { margin: 0; }
.gallery-head .muted { color: var(--muted); }
.grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.thumb { display:block; aspect-ratio: 4/3; width:100%; object-fit: cover; }
.meta { padding: 8px 10px; font-size: 14px; color: var(--muted); display:flex; justify-content:space-between; gap:8px; }
.title { padding: 8px 10px; font-weight: 600; }
.pager { display:flex; justify-content:center; gap:8px; margin: 18px 0; }
.pager a, .pager span { padding: 6px 10px; border:1px solid var(--line); border-radius: 10px; text-decoration:none; }
.pager .active { background: var(--ink-10); }
.empty { text-align:center; padding: 40px 0; color: var(--muted); }
.filters { margin-bottom: 12px; display:flex; gap:10px; flex-wrap:wrap; }
.filters form { display:flex; gap:8px; align-items:center; }
.pill { padding: 6px 10px; border:1px solid var(--line); border-radius: 999px; text-decoration:none; }



/* ---- Nav alap ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg, #0b0b0c);
  border-bottom: 1px solid var(--line, #2a2a2a);
  backdrop-filter: saturate(140%) blur(6px);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; }
.brand .logo { font-weight: 700; letter-spacing: .2px; text-decoration: none; color: var(--ink, #fff); }

.nav { display: block; }
.nav-list { display: flex; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.nav-link {
  display: inline-block; padding: 8px 12px; border-radius: 10px; text-decoration: none;
  color: var(--ink, #e6e6e6);
}
.nav-link:hover { background: rgba(255,255,255,.06); }
.nav-link.active { background: rgba(255,255,255,.12); color: #fff; }

/* Csoport (Galéria) */
.nav-group { position: relative; }
.nav-link--parent { cursor: pointer; border: none; background: transparent; }
.nav-sub {
  position: absolute; top: 100%; left: 0; min-width: 180px;
  background: var(--card, #121214); border: 1px solid var(--line, #2a2a2a);
  border-radius: 12px; padding: 6px; margin: 6px 0 0; list-style: none; display: none;
  z-index: 2000;
}
.nav-sub.open { display: block; }
.nav-sub .nav-link { display: block; }

/* Auth gomb */
.btn-auth { border: 1px solid var(--line); }


.photo-wrapper {
  position: relative;
  display: inline-block;
}

.photo-wrapper img {
  display: block;
}


/* Mobil */
.nav-toggle { display: none; background: transparent; border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; color: var(--ink); }
@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; }
  .nav.open { display: block; position: absolute; left: 0; right: 0; top: 56px; background: var(--bg); border-top: 1px solid var(--line); }
  .nav-list { flex-direction: column; align-items: stretch; padding: 10px; gap: 4px; }
  .nav-sub { position: static; display: none; margin: 0; }
  .nav-sub.open { display: block; }
  h1 { font-size: 20px; }
}


/* Responsive columns */
@media (max-width: 639px) { .masonry { column-count: 1; } }
@media (min-width: 640px) and (max-width: 959px) { .masonry { column-count: 2; } }
@media (min-width: 960px) and (max-width: 1279px) { .masonry { column-count: 3; } }
@media (min-width: 1280px) { .masonry { column-count: 4; } }

/* Posts */
.posts { margin-top: 28px; }
.post-list { display: grid; grid-template-columns: 1fr; gap: 16px; }
.post-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); transition: box-shadow .2s ease, transform .12s ease; }
.post-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.post-card h3 { margin: 0 0 6px; font-size: 18px; }
.post-card time { display: block; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.post-card p { margin: 0 0 10px; color: var(--text); opacity: .9; }
.read-more { font-weight: 600; }

@media (min-width: 720px) {
  .post-list { grid-template-columns: repeat(3, 1fr); }
}

/* Footer */
.footer { padding: 10px 0; color: var(--muted); border-top: 1px solid var(--line); margin-top: 10px; }
.footer a { color: inherit; }
.footer a:hover { color: var(--accent); }

/* Cards / Surfaces (optional, reusable) */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-pad { padding: 16px; }

/* Image behavior */
.masonry img { display: block; width: 100%; height: auto; }
img[loading="lazy"] { filter: opacity(.95); transition: filter .4s ease; }
img[loading="lazy"]:not([srcset]) { filter: opacity(1); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* Print basics */
@media print {
  .header nav, .hero .cta, .section-head .more { display: none !important; }
  .container { max-width: none; padding: 0; }
}
