/* ==========================================================================
   Daniel Mesojedec Guttierrez -- osebna stran
   Tema: terminal / radijski sprejemnik. Vsak sklop ima svojo "frekvenco"
   (barvo), sicer si delijo isti strukturni jezik (paneli, LED pike, mono).
   ========================================================================== */

:root {
  --bg: #0a0f0d;
  --panel: #111a17;
  --panel-raised: #16221d;
  --line: #223029;
  --text: #dce8e3;
  --muted: #7f9990;
  --accent: #4fe3a1; /* privzeti "signal" zeleni ton */
  --accent-page: var(--accent);

  --font-display: 'JetBrains Mono', 'Fira Code', ui-monospace, Menlo, Consolas, monospace;
  --font-body: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;

  --radius: 3px;
}

* { box-sizing: border-box; }

html { color-scheme: dark; }

body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(circle at 15% 0%, rgba(79, 227, 161, 0.05), transparent 40%),
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.03), transparent 35%);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-page); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent-page);
  outline-offset: 2px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
}

.wrap { max-width: 880px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header / signal-bar navigacija ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(10, 15, 13, 0.9);
  backdrop-filter: blur(6px);
  z-index: 10;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.logo {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 8px var(--accent);
  flex: none;
}

nav.tuner { display: flex; gap: 4px; flex-wrap: wrap; }

nav.tuner a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid transparent;
}

nav.tuner a .bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 10px;
}

nav.tuner a .bars span {
  width: 3px;
  background: var(--line);
  border-radius: 1px;
  transition: background 0.15s ease, height 0.15s ease;
}
nav.tuner a .bars span:nth-child(1) { height: 4px; }
nav.tuner a .bars span:nth-child(2) { height: 6px; }
nav.tuner a .bars span:nth-child(3) { height: 8px; }
nav.tuner a .bars span:nth-child(4) { height: 10px; }

nav.tuner a:hover,
nav.tuner a[aria-current="page"] {
  color: var(--text);
  border-color: var(--line);
  text-decoration: none;
  background: var(--panel);
}

nav.tuner a:hover .bars span,
nav.tuner a[aria-current="page"] .bars span {
  background: var(--page-accent, var(--accent));
}

/* ---------- Hero ---------- */

.hero { padding: 64px 0 48px; }

.hero .eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hero h1 { font-size: clamp(28px, 5vw, 44px); line-height: 1.15; }

.hero .lede {
  max-width: 60ch;
  color: var(--muted);
  font-size: 17px;
  margin-top: 16px;
}

.terminal {
  margin-top: 32px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.terminal .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.terminal .bar .clock { color: var(--accent); font-variant-numeric: tabular-nums; }

.terminal pre {
  margin: 0;
  padding: 16px;
  font-family: var(--font-display);
  font-size: 13px;
  white-space: pre-wrap;
  color: var(--text);
}

.terminal pre .prompt { color: var(--accent); }
.terminal pre .comment { color: var(--muted); }

/* ---------- Hub kartice (domov) ---------- */

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 40px;
  margin-bottom: 64px;
}

.card {
  display: block;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--card-accent, var(--accent));
  border-radius: var(--radius);
  transition: transform 0.12s ease, border-color 0.12s ease;
}

.card:hover { transform: translateY(-2px); text-decoration: none; border-color: var(--card-accent, var(--accent)); }

.card .tag {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--card-accent, var(--accent));
  margin-bottom: 8px;
  display: block;
}

.card h3 { font-size: 16px; color: var(--text); margin-bottom: 6px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- Podstrani sklopov ---------- */

.section-header { padding: 56px 0 8px; }

.section-header .tagline {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--accent-page);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-header h1 { font-size: clamp(26px, 4vw, 38px); }

.section-body { max-width: 66ch; padding: 24px 0 8px; color: var(--text); }
.section-body p { margin: 0 0 16px; }
.section-body p:last-child { margin-bottom: 0; }

.specs {
  margin: 28px 0 56px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.specs .row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.specs .row:last-child { border-bottom: none; }

.specs .row .led {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-page); box-shadow: 0 0 6px var(--accent-page);
  flex: none;
}

.specs .row .label {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  width: 170px;
  flex: none;
}

.specs .row .value { color: var(--text); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 56px; }
.chips .chip {
  font-family: var(--font-display);
  font-size: 12px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: var(--panel);
}
.chips .chip.more { color: var(--muted); border-style: dashed; }

.gallery-empty {
  margin: 24px 0 64px;
  padding: 40px 20px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  margin: 24px 0 64px;
}
.gallery-grid figure { margin: 0; }
.gallery-grid img { width: 100%; height: 140px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); display: block; }
.gallery-grid figcaption { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* ---------- Footer ---------- */

footer.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding: 20px 0 40px;
  color: var(--muted);
  font-size: 12px;
  font-family: var(--font-display);
}

/* ---------- Dostopnost / gibanje ---------- */

@media (prefers-reduced-motion: reduce) {
  .card, .terminal { transition: none; }
}

@media (max-width: 560px) {
  .specs .row { flex-wrap: wrap; }
  .specs .row .label { width: 100%; }
}
