/* Nova tema — glavni stilovi */

:root {
  --nova-accent: #f97316;
  --nova-accent-hover: #fb8b3c;
  --nova-display: "Newsreader", Georgia, serif;
  --nova-body: "Work Sans", system-ui, sans-serif;
  --nova-radius: 14px;
}

.nova-dark {
  --nova-bg: #0f1523;
  --nova-surface: #1a2337;
  --nova-surface-2: #222d45;
  --nova-border: #2c3a55;
  --nova-text: #eef2f8;
  --nova-muted: #9aa8bf;
}

.nova-light {
  --nova-bg: #f6f7fb;
  --nova-surface: #ffffff;
  --nova-surface-2: #f0f2f7;
  --nova-border: #e2e6ef;
  --nova-text: #171c26;
  --nova-muted: #66708a;
}

html,
body {
  background: var(--nova-bg);
  color: var(--nova-text);
  font-family: var(--nova-body);
  -webkit-font-smoothing: antialiased;
}

body {
  padding-top: 72px;
}

a {
  color: var(--nova-accent);
  text-decoration: none;
}

a:hover {
  color: var(--nova-accent-hover);
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6,
.nova-display {
  font-family: var(--nova-display);
  letter-spacing: -0.01em;
}

.text-muted,
.nova-muted {
  color: var(--nova-muted) !important;
}

.bg-white {
  background: var(--nova-surface) !important;
  color: var(--nova-text);
}

/* ---------- Zaglavlje ---------- */

.nova-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  background: color-mix(in srgb, var(--nova-bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--nova-border);
}

.nova-header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 72px;
}

.nova-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--nova-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--nova-text);
  white-space: nowrap;
}

.nova-brand:hover {
  color: var(--nova-text);
}

.nova-brand img {
  display: block;
  max-height: 38px;
  max-width: 150px;
  width: auto;
}

.nova-brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--nova-accent);
  display: inline-block;
}

.nova-tagline {
  font-family: var(--nova-body);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--nova-muted);
}

.nova-search {
  flex: 1;
  max-width: 520px;
}

.nova-search .form-control,
.nova-field {
  background: var(--nova-surface);
  border: 1px solid var(--nova-border);
  color: var(--nova-text);
  border-radius: 999px;
  height: 44px;
  padding-left: 1rem;
}

.nova-search .form-control:focus,
.nova-field:focus {
  background: var(--nova-surface);
  color: var(--nova-text);
  border-color: var(--nova-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--nova-accent) 25%, transparent);
}

.nova-search .form-control::placeholder {
  color: var(--nova-muted);
}

.nova-btn-accent,
.btn-primary {
  background: var(--nova-accent);
  border: 0;
  color: #0b0f18;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.5rem 1.15rem;
}

.nova-btn-accent:hover,
.btn-primary:hover,
.btn-primary:focus {
  background: var(--nova-accent-hover);
  color: #0b0f18;
  box-shadow: none;
}

.nova-btn-ghost {
  border: 1px solid var(--nova-border);
  color: var(--nova-text);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  background: transparent;
}

.nova-btn-ghost:hover {
  border-color: var(--nova-accent);
  color: var(--nova-text);
}

.nova-toggler {
  background: transparent;
  border: 1px solid var(--nova-border);
  border-radius: 10px;
  color: var(--nova-text);
  width: 42px;
  height: 42px;
  line-height: 1;
}

/* ---------- Kategorije (traka) ---------- */

.nova-cats {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--nova-border);
  margin-bottom: 1.5rem;
  scrollbar-width: none;
}

.nova-cats::-webkit-scrollbar {
  display: none;
}

.nova-cat {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--nova-border);
  color: var(--nova-muted);
  font-size: 0.86rem;
  font-weight: 500;
  white-space: nowrap;
}

.nova-cat:hover {
  color: var(--nova-text);
  border-color: var(--nova-accent);
}

.nova-cat.active {
  background: var(--nova-accent);
  border-color: var(--nova-accent);
  color: #0b0f18;
}

.nova-cat img.category-icon {
  width: 16px;
  height: 16px;
  border-radius: 4px;
}

/* ---------- Naslovi sekcija ---------- */

.nova-section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--nova-body);
}

.nova-section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--nova-border);
}

.nova-kicker {
  display: inline-block;
  font-family: var(--nova-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nova-accent);
  margin-bottom: 0.5rem;
}

/* ---------- Naslovna (hero) ---------- */

.nova-hero {
  position: relative;
  display: block;
  border-radius: var(--nova-radius);
  overflow: hidden;
  min-height: 420px;
  background: var(--nova-surface);
  margin-bottom: 1.5rem;
}

.nova-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.nova-hero:hover img {
  transform: scale(1.04);
}

.nova-hero-body {
  position: relative;
  z-index: 2;
  padding: 2rem 1.5rem 1.5rem;
  margin-top: 220px;
  background: linear-gradient(to top, rgba(6, 10, 18, 0.95), rgba(6, 10, 18, 0.75) 55%, transparent);
  color: #fff;
}

.nova-hero-title {
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  font-weight: 700;
  line-height: 1.12;
  color: #fff;
  margin: 0;
}

.nova-hero-meta {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
  margin-top: 0.75rem;
}

/* ---------- Kartice vijesti ---------- */

.nova-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--nova-surface);
  border: 1px solid var(--nova-border);
  border-radius: var(--nova-radius);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.nova-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--nova-accent) 55%, var(--nova-border));
}

.nova-card-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--nova-surface-2);
  overflow: hidden;
}

.nova-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nova-card-body {
  padding: 1rem 1.1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.nova-card-title {
  font-size: 1.08rem;
  line-height: 1.3;
  font-weight: 600;
  margin: 0;
}

.nova-card-title a {
  color: var(--nova-text);
}

.nova-card-title a:hover {
  color: var(--nova-accent);
}

.nova-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--nova-muted);
  margin-top: auto;
}

.nova-meta .feed-logo-img {
  height: 18px;
  width: auto;
  border-radius: 4px;
}

/* ---------- Lista (uski prikaz) ---------- */

.nova-list-item {
  display: flex;
  gap: 0.9rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--nova-border);
}

.nova-list-item:last-child {
  border-bottom: 0;
}

.nova-list-thumb {
  flex: 0 0 96px;
  width: 96px;
  height: 66px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--nova-surface-2);
}

.nova-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nova-list-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 0.35rem;
}

.nova-list-title a {
  color: var(--nova-text);
}

.nova-list-title a:hover {
  color: var(--nova-accent);
}

.nova-rank {
  font-family: var(--nova-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: color-mix(in srgb, var(--nova-accent) 70%, transparent);
  line-height: 1;
  min-width: 1.6rem;
}

/* ---------- Bočni stupac ---------- */

.nova-panel {
  background: var(--nova-surface);
  border: 1px solid var(--nova-border);
  border-radius: var(--nova-radius);
  padding: 1.1rem;
  margin-bottom: 1.5rem;
}

.nova-panel-title {
  font-family: var(--nova-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nova-muted);
  margin: 0 0 0.9rem;
}

.sidebar {
  position: sticky;
  top: 92px;
}

.nova-trend {
  display: block;
  padding: 0.3rem 0;
  color: var(--nova-text);
  font-size: 0.9rem;
}

.nova-trend:hover {
  color: var(--nova-accent);
}

.nova-newsletter {
  background: linear-gradient(145deg, color-mix(in srgb, var(--nova-accent) 22%, var(--nova-surface)), var(--nova-surface));
  border-color: color-mix(in srgb, var(--nova-accent) 40%, var(--nova-border));
}

/* ---------- Pojedinačna vijest ---------- */

.nova-article {
  background: var(--nova-surface);
  border: 1px solid var(--nova-border);
  border-radius: var(--nova-radius);
  overflow: hidden;
}

.nova-article-header {
  padding: 1.75rem 1.75rem 0;
}

.nova-article-title {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.9rem;
}

.nova-article-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin: 1.25rem 0 0;
  background: var(--nova-surface-2);
}

.nova-article-content {
  padding: 1.5rem 1.75rem 2rem;
  font-size: 1.06rem;
  line-height: 1.75;
  color: var(--nova-text);
}

.nova-article-content p {
  margin-bottom: 1.15rem;
}

.nova-article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.nova-article-content blockquote {
  border-left: 3px solid var(--nova-accent);
  padding: 0.35rem 0 0.35rem 1.15rem;
  font-family: var(--nova-display);
  font-size: 1.25rem;
  color: var(--nova-text);
  margin: 1.5rem 0;
}

.nova-article-content a {
  text-decoration: underline;
}

.nova-share {
  display: flex;
  gap: 0.5rem;
  padding: 0 1.75rem;
  flex-wrap: wrap;
}

.nova-share a {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--nova-border);
  color: var(--nova-muted);
}

.nova-share a:hover {
  border-color: var(--nova-accent);
  color: var(--nova-accent);
}

.nova-source {
  padding: 0 1.75rem 1.75rem;
}

/* ---------- Podnožje ---------- */

.nova-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--nova-border);
  background: var(--nova-surface);
  padding: 2.25rem 0 1.5rem;
  color: var(--nova-muted);
}

.nova-footer a {
  color: var(--nova-muted);
}

.nova-footer a:hover {
  color: var(--nova-accent);
}

.footer-link + .footer-link {
  margin-left: 0.35rem;
}

/* ---------- Ostalo ---------- */

.nova-empty {
  background: var(--nova-surface);
  border: 1px solid var(--nova-border);
  border-radius: var(--nova-radius);
  padding: 3rem 1.5rem;
  text-align: center;
}

.pagination .page-link {
  background: var(--nova-surface);
  border-color: var(--nova-border);
  color: var(--nova-text);
  border-radius: 10px;
  margin: 0 3px;
}

.pagination .page-item.active .page-link {
  background: var(--nova-accent);
  border-color: var(--nova-accent);
  color: #0b0f18;
}

.breadcrumb {
  background: transparent;
  padding-left: 0;
  font-size: 0.85rem;
}

.breadcrumb-item + .breadcrumb-item::before {
  color: var(--nova-muted);
}

.nova-offcanvas {
  position: fixed;
  inset: 0 auto 0 0;
  width: 280px;
  max-width: 85vw;
  background: var(--nova-surface);
  border-right: 1px solid var(--nova-border);
  padding: 1.25rem;
  z-index: 1080;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  overflow-y: auto;
}

.nova-offcanvas.open {
  transform: translateX(0);
}

.nova-offcanvas .nova-cat {
  display: flex;
  margin-bottom: 0.4rem;
}

.nova-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 6, 12, 0.6);
  z-index: 1070;
  display: none;
}

.nova-backdrop.open {
  display: block;
}

.svg-icon,
.nova-meta svg {
  width: 16px;
  height: 16px;
  vertical-align: -0.15em;
  fill: currentColor;
}

.svg-md {
  width: 20px;
  height: 20px;
}

.svg-xl {
  width: 56px;
  height: 56px;
}

.category-icon {
  width: 18px;
  height: 18px;
  border-radius: 4px;
}

.locale-icon {
  width: 18px;
  height: auto;
}

.adblock:empty,
.ad-block:empty {
  display: none;
}

@media (max-width: 767.98px) {
  body {
    padding-top: 64px;
  }

  .nova-header-inner {
    height: 64px;
  }

  .nova-hero {
    min-height: 320px;
  }

  .nova-hero-body {
    margin-top: 140px;
    padding: 1.5rem 1.1rem 1.1rem;
  }

  .nova-article-header,
  .nova-article-content,
  .nova-share,
  .nova-source {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }

  .sidebar {
    position: static;
  }
}
