:root {
  --bg: #eceef2;
  --surface: #ffffff;
  --ink: #15171b;
  --ink-soft: #3f444d;
  --muted: #868c98;
  --line: rgba(20, 23, 27, 0.10);
  --steel-dark: #5c636f;
  --ok: #2f7d52;
  --err: #b23b4a;
  --shadow: 0 14px 40px rgba(40, 46, 58, 0.13);
  --shadow-sm: 0 6px 18px rgba(40, 46, 58, 0.09);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
body { font-family: 'Jost', system-ui, sans-serif; background: var(--bg); color: var(--ink); line-height: 1.6; font-weight: 300; }
h1, h2 { font-family: 'Cormorant Garamond', serif; font-weight: 700; }
h1 span { font-weight: 600; color: var(--steel-dark); }
.muted { color: var(--muted); font-size: .92rem; }

.btn {
  display: inline-block; background: linear-gradient(145deg, #3a3f49, #15171b); color: #fff;
  padding: .7rem 1.5rem; border-radius: 999px; font-size: .92rem; font-family: inherit;
  border: none; cursor: pointer; transition: filter .2s, transform .2s;
}
.btn:hover { filter: brightness(1.12); transform: translateY(-1px); }
.btn-small { padding: .5rem 1rem; font-size: .85rem; }
.btn-ghost { background: linear-gradient(145deg, #fdfdfe, #e2e4ea); color: var(--ink); border: 1px solid var(--line); }
.btn-danger { background: linear-gradient(145deg, #c6485a, #98313f); }

/* Login */
.login-screen { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem;
  background: radial-gradient(circle at 30% 20%, #fff, transparent 45%), linear-gradient(135deg, #e7e9ee, #c4c8d2); }
.login-card { background: var(--surface); padding: 2.5rem; border-radius: 22px; box-shadow: var(--shadow);
  width: 100%; max-width: 380px; text-align: center; display: flex; flex-direction: column; gap: 1rem; }
.login-card h1 { font-size: 2.2rem; }
.login-card input { padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 10px; font-size: 1rem; font-family: inherit; }
.login-card input:focus { outline: 2px solid var(--steel-dark); border-color: transparent; }
.error { color: var(--err); font-size: .88rem; min-height: 1em; }

/* Dashboard */
.dashboard { max-width: 1100px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }
.admin-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.admin-header h1 { font-size: 2rem; }
.admin-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.admin-section { background: var(--surface); border-radius: 18px; padding: 1.8rem; box-shadow: var(--shadow-sm); margin-bottom: 1.8rem; border: 1px solid var(--line); }
.admin-section > h2 { font-size: 1.6rem; margin-bottom: .2rem; }
.admin-section > .muted { margin-bottom: 1.3rem; }

.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.2rem; }
.slot-card { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fafbfc; display: flex; flex-direction: column; }
.slot-preview {
  height: 150px; background: linear-gradient(135deg, #e7e9ee, #c4c8d2); background-size: cover; background-position: center;
  display: grid; place-items: center; color: var(--muted); font-size: .85rem; position: relative;
}
.slot-preview.empty::after { content: "Nincs kép"; opacity: .7; }
.slot-info { padding: .9rem 1rem 1.1rem; flex: 1; display: flex; flex-direction: column; }
.slot-info h3 { font-family: 'Jost', sans-serif; font-size: 1.02rem; font-weight: 600; margin-bottom: .15rem; }
.slot-info .hint { font-size: .8rem; color: var(--muted); flex: 1; margin-bottom: .8rem; }
.slot-buttons { display: flex; gap: .5rem; }
.slot-buttons label.upload-btn {
  flex: 1; text-align: center; background: linear-gradient(145deg, #3a3f49, #15171b); color: #fff;
  padding: .5rem; border-radius: 8px; font-size: .85rem; cursor: pointer; transition: filter .2s;
}
.slot-buttons label.upload-btn:hover { filter: brightness(1.15); }
.slot-buttons button { background: #f0e3e5; color: var(--err); border: none; border-radius: 8px; padding: .5rem .8rem; cursor: pointer; font-family: inherit; font-size: .85rem; }
.slot-buttons button:hover { background: #e9d2d6; }
.slot-buttons button:disabled { opacity: .4; cursor: default; }

/* Dropzone */
.dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem;
  border: 2px dashed var(--line); border-radius: 14px; padding: 2rem; cursor: pointer; text-align: center;
  color: var(--steel-dark); transition: border-color .2s, background .2s; }
.dropzone:hover, .dropzone.drag { border-color: var(--steel-dark); background: #f4f5f7; }
.dropzone span { font-size: 1.05rem; font-weight: 500; }
.dropzone small { color: var(--muted); }

.admin-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; margin-top: 1.3rem; }
.admin-gallery:empty::after { content: "Még nincs galériakép feltöltve."; color: var(--muted); font-size: .9rem; }
.ag-item { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 1/1; box-shadow: var(--shadow-sm); }
.ag-item img { width: 100%; height: 100%; object-fit: cover; }
.ag-item button { position: absolute; top: 6px; right: 6px; background: rgba(21,23,27,.78); color: #fff; border: none;
  width: 28px; height: 28px; border-radius: 50%; cursor: pointer; font-size: 1rem; line-height: 1; }
.ag-item button:hover { background: var(--err); }

/* Toast */
.toast { position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%); background: #15171b; color: #fff;
  padding: .8rem 1.5rem; border-radius: 999px; box-shadow: var(--shadow); z-index: 100; font-size: .92rem; }
.toast.ok { background: #1f6b46; }
.toast.err { background: #98313f; }

/* Feltöltés folyamatban */
.slot-card.busy, .ag-item.busy { opacity: .55; pointer-events: none; }
