/* ===== Astronomski Utrinek — uredniška izdaja ===== */

:root {
  --bg: #07090f;
  --bg-elev: #11151f;
  --ink: #f2f5fb;
  --muted: #9aa6bd;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --paper: #11151f;
  --paper-ink: #f2f5fb;
  --paper-muted: #9aa6bd;
  --accent: #5ec8ff;
  --danger: #ff6b85;
  --font-display: "Outfit", "Segoe UI", sans-serif;
  --font-body: "Outfit", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header: 80px;
  --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  touch-action: manipulation;
  overflow-x: hidden;
  font-feature-settings: "ss01", "kern";
}

body::after { display: none; }

img { max-width: 100%; display: block; }

.hidden { display: none !important; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}

::selection { background: rgba(94,200,255,.35); color: #fff; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #070708; }
::-webkit-scrollbar-thumb { background: #3a3834; }
::-webkit-scrollbar-thumb:hover { background: #5a564e; }

:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }

/* ===== Zvezde ===== */
.starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.starfield span {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  opacity: 0.35;
  animation: twinkle 8s ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.08; }
  50% { opacity: 0.45; }
}

/* ===== Prikaz ob prihodu ===== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ===== Glava ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 9, 15, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: var(--header);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 54px;
  width: auto;
}
.brand-logo {
  height: 54px;
  width: auto;
  max-width: min(380px, 62vw);
  object-fit: contain;
  display: block;
}
.brand-emoji { display: none; }
.brand-text { display: none; }
.brand.is-fallback .brand-text {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.01em;
}
.brand-mark.is-fallback {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border: 1px solid var(--line-strong);
  display: inline-grid;
  place-items: center;
}
.brand-mark.is-fallback .brand-emoji {
  display: block;
  color: var(--accent);
  font-size: 0.9rem;
  line-height: 1;
}
.brand-text strong { font-weight: 400; font-style: normal; }

.main-nav { display: flex; gap: 28px; }
.main-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.main-nav a:hover { color: var(--ink); border-bottom-color: var(--accent); }

/* ===== Ticker ===== */
.ticker {
  overflow: hidden;
  border-top: 1px solid var(--line);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ticker-track {
  display: inline-flex;
  white-space: nowrap;
  padding: 8px 0;
  animation: tickerMove 56s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item {
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-right: 48px;
}
.ticker-item:hover { color: var(--ink); }
@keyframes tickerMove {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ===== Hero — polna širina, filmsko ===== */
.hero {
  position: relative;
  z-index: 1;
  padding: 0;
}
.hero-grid { display: block; }
.hero-card {
  position: relative;
  margin: 0;
  width: 100%;
  height: min(88vh, 920px);
  min-height: 520px;
  overflow: hidden;
  cursor: pointer;
  background: #000;
}
.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.03);
  transition: transform 6s var(--ease);
}
.hero-card:hover img { transform: scale(1.07); }
.hero-card-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 7, 8, 0.15) 0%, rgba(7, 7, 8, 0.08) 38%, rgba(7, 7, 8, 0.92) 100%),
    linear-gradient(90deg, rgba(7, 7, 8, 0.35) 0%, transparent 48%);
}
.hero-card-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 0 56px;
}
.hero-caption-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
  max-width: min(820px, calc(100% - 56px));
  margin-left: max(28px, calc((100% - 1240px) / 2 + 28px));
}
.hero-card-caption h1,
#featuredTitle {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 5.1rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 16px 0 12px;
  color: #f6f1e8;
}
.hero-card-caption p,
#featuredMeta {
  color: rgba(236, 232, 225, 0.7);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.edition-bar {
  position: relative;
  z-index: 1;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.edition-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  font-size: 0.9rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}
.edition-inner a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}
.edition-inner a:hover { color: var(--accent); }

/* ===== Gumbi ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 11px 18px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  text-decoration: none;
  color: var(--ink);
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-primary {
  background: var(--accent);
  color: #061018;
  border-color: var(--accent);
}
.btn-primary:hover { background: transparent; color: var(--ink); }
.btn-ghost { background: transparent; }
.btn-danger-ghost {
  border-color: rgba(180, 35, 42, 0.45);
  color: #e8b4b6;
}
.btn-danger-ghost:hover { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-small { padding: 8px 14px; font-size: 0.66rem; }

/* ===== Značke ===== */
.badge {
  display: inline-block;
  padding: 0;
  border: 0;
  border-radius: 0;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: none;
  color: var(--accent);
}
.badge-live { color: var(--accent); }
.live-dot { display: none; }
.badge-gold { color: var(--accent); }
.badge-own { color: var(--ink); }

/* ===== Novice ===== */
.news-section {
  position: relative;
  z-index: 1;
  padding: 72px 0 100px;
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.section-kicker {
  font-family: var(--font-body);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.68rem;
  font-weight: 500;
  margin-bottom: 10px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
}
.section-sub { color: var(--muted); font-size: 0.86rem; margin-top: 10px; }

.search-input {
  width: min(280px, 100%);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 18px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s ease;
}
.search-input::placeholder { color: #5c574e; }
.search-input:focus { border-bottom-color: var(--accent); }

.chips {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.chip {
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.chip:hover { color: var(--ink); border-color: var(--line-strong); }
.chip.is-active {
  color: #061018;
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: none;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 36px 28px;
}
.news-card {
  position: relative;
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}
.news-card:first-child {
  grid-column: span 8;
}
.news-card:hover { transform: none; box-shadow: none; }
.news-card::after { display: none; }

.card-img {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #111;
  overflow: hidden;
}
.news-card:first-child .card-img { aspect-ratio: 16 / 9; }
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease), filter 1.4s ease;
  filter: saturate(0.92);
}
.news-card:hover .card-img img {
  transform: scale(1.035);
  filter: saturate(1.05);
}
.card-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(7, 7, 8, 0.35));
  pointer-events: none;
}
.card-img.no-img {
  background:
    linear-gradient(160deg, #161616, #0a0a0a);
}
.card-img.no-img::after {
  content: "";
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 10px,
    rgba(236, 232, 225, 0.03) 10px,
    rgba(236, 232, 225, 0.03) 11px
  );
}
.card-img .badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  color: #f6f1e8;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55);
}
.card-img .badge-own {
  top: auto;
  left: auto;
  right: 14px;
  bottom: 14px;
  color: var(--accent);
}

.card-body {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.card-body time {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.card-body h3 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.015em;
}
.news-card:first-child .card-body h3 { font-size: clamp(1.8rem, 2.4vw, 2.35rem); }
.card-body p {
  color: var(--muted);
  font-size: 0.95rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.read-more {
  margin-top: auto;
  padding-top: 8px;
  align-self: flex-start;
  background: none;
  border: none;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  border-bottom: 1px solid var(--accent);
  border-radius: 0;
  padding-bottom: 3px;
  transition: color 0.2s ease;
}
.news-card:hover .read-more { color: var(--accent); transform: none; }

.feed-status { text-align: center; color: var(--muted); padding: 40px 0; }
.feed-status .btn { margin-top: 14px; }

/* ===== O strani — papirnata stran ===== */
.about {
  position: relative;
  z-index: 1;
  padding: 96px 0 108px;
  border-top: 0;
  background: var(--paper);
  color: var(--paper-ink);
}
.about .section-kicker { color: var(--accent); }
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 72px;
  align-items: start;
}
.about h2 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 0.98;
  margin-bottom: 28px;
}
.about-lead {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  font-style: normal;
  line-height: 1.3;
  color: var(--paper-ink);
  margin-bottom: 22px;
}
.about p { color: var(--paper-muted); margin-bottom: 16px; font-size: 1.02rem; }
.about p strong { color: var(--paper-ink); font-weight: 600; }
.about-card {
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(22, 21, 19, 0.16);
  border-radius: 0;
  padding: 28px 0 0;
  box-shadow: none;
}
.about-card h3 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 400;
  margin-bottom: 22px;
}
.about-list { list-style: none; display: grid; gap: 16px; }
.about-list li {
  color: var(--paper-muted);
  font-size: 0.98rem;
  padding: 0 0 16px;
  border-bottom: 1px solid rgba(22, 21, 19, 0.1);
}
.about-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.about-list li::before { content: none; }
.about-list strong { color: var(--paper-ink); font-weight: 600; }

/* ===== Noga ===== */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding: 48px 0 28px;
  background: #050506;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 28px;
}
.footer-brand { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 0.88rem; }
.footer-brand strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
}
.brand-mark-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 8px;
  background: #05070c;
  border: 1px solid var(--line-strong);
  overflow: hidden;
  display: inline-grid;
  place-items: center;
}
.brand-mark-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.footer-nav { display: flex; gap: 26px; }
.footer-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.footer-nav a:hover { color: var(--ink); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  color: #5a564e;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}
.footer-issue {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.68rem;
}

.secret-trigger {
  color: #4a4741;
  font-size: 0.75rem;
  user-select: none;
  -webkit-user-select: none;
  cursor: default;
  -webkit-tap-highlight-color: transparent;
}

/* ===== Modali ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 6, 0.78);
}
.modal-card {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--paper);
  color: var(--paper-ink);
  border: 0;
  border-radius: 0;
  padding: 36px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45);
}
.modal-narrow { max-width: 400px; }
.modal-card h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 8px;
}
.modal-sub { color: var(--paper-muted); font-size: 0.92rem; margin-bottom: 20px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 22px; }
.modal-x {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  width: 36px;
  height: 36px;
  border-radius: 0;
  border: 1px solid rgba(236, 232, 225, 0.25);
  background: rgba(7, 7, 8, 0.45);
  color: #fff;
  font-size: 0.9rem;
  cursor: pointer;
}
.modal-x:hover { background: #000; }

.text-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  resize: vertical;
}
.text-input::placeholder { color: #6d778c; }
.text-input:focus { border-color: var(--accent); }
select.text-input { appearance: none; }

.error { color: var(--danger); font-size: 0.88rem; margin-top: 10px; }

.article-card { padding: 0; overflow: hidden; max-width: 760px; background: var(--paper); }
.article-hero-img { width: 100%; max-height: 380px; object-fit: cover; background: #111; }
.article-body { padding: 32px 40px 42px; }
.article-meta-row { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.article-meta-row .badge { color: #8a6d3b; }
.article-meta-row time {
  color: var(--paper-muted);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.article-body h3 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  line-height: 1.12;
  margin-bottom: 16px;
}
.article-lead {
  color: var(--paper-ink);
  font-family: var(--font-display);
  font-style: normal;
  font-size: 1.2rem;
  line-height: 1.4;
  margin-bottom: 22px;
}
.article-content p { color: var(--paper-muted); font-size: 1.02rem; margin-bottom: 16px; }
.article-source {
  display: inline-block;
  margin-top: 18px;
  color: var(--paper-ink);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid #8a6d3b;
  padding-bottom: 3px;
}
.article-source:hover { color: #8a6d3b; }

.modal-card .btn { color: var(--paper-ink); border-color: rgba(22, 21, 19, 0.28); }
.modal-card .btn:hover { background: var(--paper-ink); color: var(--paper); }
.modal-card .btn-primary { background: var(--paper-ink); color: var(--paper); border-color: var(--paper-ink); }
.modal-card .btn-primary:hover { background: transparent; color: var(--paper-ink); }

/* ===== Skrbniški panel ===== */
.admin {
  position: relative;
  inset: auto;
  z-index: 1;
  overflow: visible;
  background: transparent;
  padding: 0 0 64px;
}
.admin-card {
  background: var(--bg-elev);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: none;
}
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 28px 32px;
  border-bottom: 1px solid rgba(22, 21, 19, 0.12);
  background: transparent;
}
.admin-header h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
}
.admin-header .modal-sub { margin-bottom: 0; }
.admin-header-actions { display: flex; gap: 10px; }

.admin-cloud-status { font-size: 0.78rem; color: var(--paper-muted); margin-top: 6px; }
.admin-cloud-status.is-online { color: #3d6b4f; }
.admin-cloud-status.is-offline { color: var(--danger); }

.admin-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  min-height: 420px;
}
@media (max-width: 820px) { .admin-layout { grid-template-columns: 1fr; } }

.admin-side {
  border-right: 1px solid rgba(22, 21, 19, 0.12);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.admin-side-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.admin-side-head h4 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 400; }
.admin-list { list-style: none; display: grid; gap: 8px; max-height: 520px; overflow-y: auto; }
.admin-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(22, 21, 19, 0.1);
  border-radius: 0;
  padding: 12px 0;
  cursor: pointer;
}
.admin-list-item:hover { border-color: #8a6d3b; }
.admin-list-item.is-editing { border-color: #8a6d3b; background: transparent; }
.admin-item-text { flex: 1; min-width: 0; }
.admin-list-item h5 { font-family: var(--font-display); font-size: 1rem; font-weight: 400; line-height: 1.3; margin-bottom: 3px; }
.admin-list-item p { color: var(--paper-muted); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; }
.admin-item-delete {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 0;
  border: 1px solid transparent;
  background: transparent;
  color: var(--danger);
  font-size: 0.9rem;
  cursor: pointer;
}
.admin-item-delete:hover { border-color: rgba(180, 35, 42, 0.4); }
.admin-empty { color: var(--paper-muted); font-size: 0.9rem; }

.admin-form { padding: 24px 32px 32px; }
.admin-form h4 { font-family: var(--font-display); font-size: 1.35rem; font-weight: 400; margin-bottom: 18px; }
.form-row { display: flex; gap: 16px; flex-wrap: wrap; }
.form-field { display: grid; gap: 7px; margin-bottom: 16px; flex: 1; }
.form-field.grow { flex: 2; }
.form-field label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.form-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 6px; }

.admin .btn { color: var(--ink); border-color: var(--line-strong); }
.admin .btn:hover { background: rgba(255,255,255,0.08); color: var(--ink); }
.admin .btn-primary { background: var(--accent); color: #061018; border-color: var(--accent); }
.admin .btn-primary:hover { filter: brightness(1.08); color: #061018; }

/* ===== Responsivnost ===== */
@media (max-width: 980px) {
  .news-card,
  .news-card:first-child { grid-column: span 6; }
  .news-card:first-child .card-img { aspect-ratio: 16 / 10; }
}
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .header-inner { height: 76px; }
  .brand-mark { height: 46px; }
  .brand-logo { height: 46px; max-width: min(280px, 58vw); }
  .hero-card { height: 78vh; min-height: 440px; }
  .hero-card-caption { padding-bottom: 36px; }
  .main-nav { gap: 16px; }
}
@media (max-width: 620px) {
  .news-grid { display: grid; grid-template-columns: 1fr; }
  .news-card,
  .news-card:first-child { grid-column: auto; }
  .container { padding: 0 20px; }
  .article-body { padding: 24px 22px 32px; }
}

/* ===== Večstranski vmesnik ===== */
.page-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 0.95;
}
.news-section-page { padding-top: 56px; min-height: 70vh; }

body[data-page="about"],
body[data-page="admin"] {
  background: var(--bg);
  color: var(--ink);
}
.header-on-paper {
  background: rgba(7, 9, 15, 0.86);
  border-bottom-color: var(--line);
}
.header-on-paper .main-nav a { color: var(--muted); }
.header-on-paper .main-nav a:hover,
.header-on-paper .main-nav a[aria-current="page"] { color: var(--ink); }
.about-page { min-height: calc(100vh - 180px); padding-top: 72px; }
.about-page h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin-bottom: 28px;
}

.story-page { position: relative; z-index: 1; padding-bottom: 80px; }
.story-hero { margin: 0; background: #000; }
.story-hero img {
  width: 100%;
  height: min(62vh, 640px);
  object-fit: cover;
}
.story-body { max-width: 760px; padding-top: 36px; }
.story-back {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
}
.story-back:hover { color: var(--ink); border-bottom-color: var(--accent); }
.story-body .article-meta-row { margin-bottom: 16px; }
.story-body #articleModalTitle,
.story-body h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
}
.story-body .article-lead {
  color: var(--ink);
  font-family: var(--font-display);
  font-style: normal;
  font-size: 1.28rem;
  line-height: 1.4;
  margin-bottom: 28px;
}
.story-body .article-content p {
  color: #c9c3b8;
  font-size: 1.08rem;
  line-height: 1.75;
  margin-bottom: 18px;
}
.story-body .article-source {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

body[data-page="admin"] { background: var(--bg); color: var(--ink); }
.admin-shell { min-height: calc(100vh - 170px); }
.login-page {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 200px);
  padding: 48px 24px;
}
.login-card { width: min(420px, 100%); }
.login-card h1 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 400;
  margin-bottom: 8px;
}
.admin-page { padding: 36px 0 72px; }
.admin-card h1,
.admin-header h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
}
.admin-side-head h2,
.admin-form h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
}

.main-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

.nav-user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nav-user img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
}
.auth-slot { display: inline-flex; }

.crop-studio { margin-top: 12px; }
.crop-stage {
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
  background: #0b0d12;
  cursor: grab;
  touch-action: none;
}
.crop-stage:active { cursor: grabbing; }
.crop-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}
.crop-hint { color: var(--muted); font-size: 0.85rem; margin: 8px 0; }
.crop-zoom { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 0.88rem; }
.crop-zoom input { flex: 1; }

.comments { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.comments h2 { font-size: 1.4rem; font-weight: 650; margin-bottom: 16px; }
.comment-list { display: grid; gap: 16px; margin-bottom: 20px; }
.comment { display: flex; gap: 12px; }
.comment img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.comment strong { display: block; }
.comment time { color: var(--muted); font-size: 0.78rem; }
.comment p { margin-top: 6px; color: var(--muted); }
.comment-form { display: grid; gap: 10px; }
.comment-gate { color: var(--muted); }
.comment-gate a { color: var(--accent); }
.comment-empty { color: var(--muted); }

.auth-page { padding: 48px 0 80px; }
.auth-card { max-width: 440px; margin: 0 auto; background: var(--bg-elev); border: 1px solid var(--line); border-radius: 20px; padding: 28px; }
.auth-card h1 { font-size: 2rem; font-weight: 650; margin-bottom: 8px; }
.auth-form { display: grid; gap: 12px; margin: 18px 0; }
.auth-tabs { display: flex; gap: 8px; margin: 16px 0; }
.btn-google { width: 100%; }

.card-img { overflow: hidden; }
.hero-card img, .story-hero img { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}


/* ===== Editor + profil ===== */
#fContent.sr-only,
textarea#fContent {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  white-space: nowrap !important;
}
.editor-shell {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #0c1018;
  overflow: hidden;
}
.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px;
  background: #161b27;
  border-bottom: 1px solid var(--line);
}
.editor-toolbar button {
  border: 1px solid var(--line);
  background: #11151f;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 11px;
  border-radius: 10px;
  cursor: pointer;
}
.editor-toolbar button:hover { border-color: var(--accent); color: var(--accent); }
.editor-sep { width: 1px; background: var(--line); margin: 4px 4px; }
.rich-editor {
  min-height: 280px;
  padding: 18px 18px 28px;
  outline: none;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
}
.rich-editor p { margin-bottom: 12px; }
.rich-editor h2 { font-size: 1.45rem; font-weight: 650; margin: 18px 0 10px; }
.rich-editor img, .editor-figure img { max-width: 100%; border-radius: 12px; margin: 12px 0; }
.rich-editor a { color: var(--accent); }
.cover-row { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.cover-preview { width: 140px; height: 88px; object-fit: cover; border-radius: 12px; background: #111; }
.cover-fields { flex: 1; min-width: 200px; display: grid; gap: 10px; }
.editor-profile { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.profile-avatar, .byline img, .about-profile img {
  width: 56px; height: 56px; object-fit: cover; border-radius: 50%;
}
.about-profile { display: flex; gap: 16px; align-items: center; margin-bottom: 28px; }
.about-profile img { width: 88px; height: 88px; }
.about-profile h2 { font-size: 1.6rem; margin-bottom: 4px; }
.byline { display: flex; align-items: center; gap: 12px; margin: 8px 0 20px; }
.byline strong, .profile-name { display: block; font-size: 1.05rem; font-weight: 650; }
.byline span { color: var(--muted); font-size: 0.8rem; }
.card-byline { color: var(--accent) !important; font-size: 0.78rem !important; -webkit-line-clamp: 1 !important; }

.nav-user { display: inline-flex; align-items: center; gap: 8px; }
.nav-user img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.auth-slot { display: inline-flex; }

.crop-studio { margin-top: 12px; }
.crop-stage {
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
  background: #0b0d12;
  cursor: grab;
  touch-action: none;
}
.crop-stage:active { cursor: grabbing; }
.crop-img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; user-select: none; }
.crop-hint { color: var(--muted); font-size: 0.85rem; margin: 8px 0; }
.crop-zoom { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 0.88rem; }
.crop-zoom input { flex: 1; }

.comments { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.comments h2 { font-size: 1.4rem; font-weight: 650; margin-bottom: 16px; }
.comment-list { display: grid; gap: 16px; margin-bottom: 20px; }
.comment { display: flex; gap: 12px; }
.comment img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.comment strong { display: block; }
.comment time { color: var(--muted); font-size: 0.78rem; }
.comment p { margin-top: 6px; color: var(--muted); }
.comment-form { display: grid; gap: 10px; }
.comment-gate { color: var(--muted); }
.comment-gate a { color: var(--accent); }
.comment-empty { color: var(--muted); }

.auth-page { padding: 48px 0 80px; }
.auth-card {
  max-width: 440px;
  margin: 0 auto;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
}
.auth-card h1 { font-size: 2rem; font-weight: 650; margin-bottom: 8px; }
.auth-form { display: grid; gap: 12px; margin: 18px 0; }
.auth-tabs { display: flex; gap: 8px; margin: 16px 0; }
.btn-google { width: 100%; }
.card-img { overflow: hidden; }
