:root {
  --bg: #0e0f12;
  --card: #151820;
  --text: #e7e9ee;
  --muted: #a8b0bf;
  --brand: #3b82f6;
  --accent: #22c55e;
  --border: #232733;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial;
  background: linear-gradient(180deg, #0c0d10 0%, #0f1220 100%);
  color: var(--text);
}
.container { width: min(1200px, 92%); margin-inline: auto; }
header { position: sticky; top: 0; z-index: 10; backdrop-filter: saturate(180%) blur(8px); background: rgba(12, 13, 16, 0.7); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand .logo { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, var(--brand), var(--accent)); box-shadow: 0 8px 24px rgba(59,130,246,0.35); }
.brand h1 { margin: 0; font-size: 22px; letter-spacing: 0.2px; }
nav a { text-decoration: none; color: var(--text); padding: 8px 14px; border-radius: 12px; border: 1px solid transparent; transition: 160ms ease; margin-left: 4px; }
nav a:hover, nav a.active { border-color: var(--border); background: #12141b; }
main { padding: 32px 0 56px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; box-shadow: 0 6px 24px rgba(0,0,0,0.25); display: flex; flex-direction: column; }
.card img { width: 100%; height: 200px; object-fit: cover; display: block; }
.card .content { padding: 14px 14px 8px; }
.meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; font-size: 14px; color: var(--muted); padding: 0 14px 16px; }
.meta b { color: var(--text); font-weight: 600; }
.btn { appearance: none; border: 1px solid var(--border); background: #11141a; color: var(--text); padding: 10px 14px; border-radius: 12px; cursor: pointer; transition: 160ms ease; }
.btn:hover { border-color: var(--brand); }
footer { border-top: 1px solid var(--border); margin-top: 24px; padding: 24px 0 32px; position: relative; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: end; }
.footer-info { font-size: 14px; color: var(--muted); line-height: 1.5; }
.footer-nav { text-align: right; }
.footer-nav a { font-size: 14px; }
/* Lightbox */
.lightbox-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.75); display: none; align-items: center; justify-content: center; z-index: 50; }
.lightbox-backdrop.open { display: flex; }
.lightbox-modal { width: min(96vw, 1100px); height: min(88vh, 760px); background: #0b0e15; border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,0.55); display: grid; grid-template-rows: auto 1fr auto; }
.lightbox-header, .lightbox-footer { padding: 10px 14px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); }
.lightbox-footer { border-top: 1px solid var(--border); border-bottom: none; }
.lightbox-title { font-weight: 600; }
.lightbox-body { position: relative; overflow: hidden; display: grid; place-items: center; padding: 10px; }
.lightbox-body img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; border-radius: 10px; }
.lb-btn { border: 1px solid var(--border); background: #10131b; color: var(--text); padding: 8px 12px; border-radius: 10px; cursor: pointer; }
.lb-nav { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; pointer-events: none; }
.lb-nav button { pointer-events: all; border: none; background: rgba(0,0,0,0.35); color: white; font-size: 22px; width: 48px; height: 48px; border-radius: 50%; margin: 0 8px; }
.lb-close { margin-left: auto; }
.thumbnail { cursor: pointer; }

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  /* culoare de bază + imaginea ta */
  background-color: #0f172a;
  background-image: url('/assets/img/bg.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
  /* Dacă vrei să rămână fixă la scroll, decomentează: */
  /* background-attachment: fixed; */

  /* asigură-te că se întinde cât e nevoie */
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

main.container {
  flex: 1 0 auto; /* împinge footerul jos */
}

footer {
  flex-shrink: 0;
}

/* Logo implementation patch */
.brand { display: flex; align-items: center; gap: 10px; }
.brand .site-logo { height: 120px; width: auto; display: block; }
.brand .logo, .brand h1 { display: none !important; }
