/* ============================================================
   AUSLENDERI — magazine stylesheet (Bootstrap 5 overrides)
   ============================================================ */

:root {
  --brand-navy:   #0b1b33;
  --brand-navy-2: #153a6b;
  --brand-orange: #ff7a3d;
  --brand-amber:  #ffb43d;
  --brand-bg:     #f5f6f8;
}

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--brand-bg);
  color: #22303f;
}

/* ---- Topbar ---- */
.topbar { background: var(--brand-navy); font-size: .82rem; }
.portal-flags-wrap { display: inline-flex; align-items: center; gap: .35rem; }
.portal-flag { width: 22px; height: 15px; border-radius: 2px; object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255,255,255,.35); vertical-align: middle; }

/* ---- Brand (tekstualni: "auslenderi" malim slovima, font kao masthead naslov) ---- */
.brand-text {
  font-weight: 700; font-size: 1.6rem; line-height: 1.2;
  text-transform: lowercase; letter-spacing: .5px;
  color: #fff; text-decoration: none;
}
.brand-text a, a .brand-text { color: #fff; text-decoration: none; }
.navbar-main .brand-text { font-size: 2.2rem; margin-bottom: .1rem; }
.footer-brand-text { color: #fff; font-size: 1.9rem; }
.admin-brand-text { font-size: 1.5rem; }
.login-brand-text { color: var(--brand-navy); font-size: 2.2rem; }

/* ---- Nav ---- */
.navbar-main { background: var(--brand-navy-2); }
.navbar-main .nav-link { font-weight: 600; letter-spacing: .2px; }
.navbar-main .nav-link:hover { color: var(--brand-amber) !important; }
/* Puni top meni od 768px (hamburger samo na mobitelu <768).
   Na srednjim širinama dopusti prelamanje stavki (umjesto reza) i skrati brand da sve stane. */
@media (min-width: 768px) {
  .navbar-expand-md .navbar-nav { flex-wrap: wrap; }
  /* Spusti top-meni da donja crta bude kao i donja crta branda:
     zamjenjen gornji/donji padding stavki (više gore, manje dolje) */
  .navbar-main .nav-link { padding-top: .85rem; padding-bottom: .3rem; }
}
@media (min-width: 768px) and (max-width: 1199.98px) {
  .navbar-main .brand-text { font-size: 1.6rem; }
  .navbar-main .nav-link { padding-right: .55rem; padding-left: .55rem; font-size: .92rem; }
}
.brand-logo { filter: drop-shadow(0 2px 6px rgba(0,0,0,.35)); }

/* ---- Hero / masthead ---- */
.masthead {
  background:
    radial-gradient(1000px 400px at 85% -10%, rgba(255,180,61,.25), transparent 60%),
    linear-gradient(120deg, var(--brand-navy) 0%, var(--brand-navy-2) 70%);
  color: #fff;
  border-bottom: 4px solid var(--brand-orange);
}
.masthead .kicker { color: var(--brand-amber); letter-spacing: 3px; font-weight: 700; }

/* ---- Card / clanak ---- */
.card-article { border: 0; border-radius: 1rem; overflow: hidden;
  box-shadow: 0 2px 8px rgba(11,27,51,.08); transition: transform .15s ease, box-shadow .15s ease; }
.card-article:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(11,27,51,.14); }
.card-article .cat-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--brand-orange); color: #fff; text-decoration: none; }
.card-article img.thumb { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

/* Servisi teaser na naslovnici — ista zaobljenost i shadow kao kartice članaka */
.service-teaser { border-radius: 1rem; overflow: hidden;
  box-shadow: 0 2px 8px rgba(11,27,51,.08); transition: box-shadow .15s ease; }
.service-teaser:hover { box-shadow: 0 10px 24px rgba(11,27,51,.14); }

/* Isjecak teksta u kartici — do 6 redova, cisto odrezano tamo gdje ima teksta */
.card-teaser { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; line-clamp: 6; overflow: hidden; }

/* "Naslovnica" pored share gumba u članku: na malim ekranima cijeli red, na većim uz gumb-e */
.share-home { width: 100%; text-align: right; }
@media (min-width: 576px) { .share-home { width: auto; } }

/* Top banner (header) — UVIJEK 728x90 (leaderboard), centriran; na uskim ekranima scale-a se ali visina ostaje 90 */
.top-banner-wrap .banner-stack img { width: 728px; max-width: 100%; height: 90px; object-fit: cover; display: block; margin: 0 auto; }

/* Centriranje banner-slika u "Preporučujemo" (sidebar) i ostalim banner-stack pozicijama */
.banner-stack .affiliate-banner img { display: block; margin: 0 auto; }

/* --- Featured card (glavna vijest) --- */
.featured { border: 0; border-radius: .85rem; overflow: hidden; }
.featured .featured-body {
  position: absolute; inset: auto 0 0 0; z-index: 2; color: #fff;
  background: linear-gradient(0deg, rgba(11,27,51,.94) 0%, rgba(11,27,51,.35) 70%, transparent);
  padding: 1.4rem 1.4rem 1.2rem; }
.featured img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }

/* ---- Sidebar widgets ---- */
.sidebar-widget { background: #fff; border-radius: .75rem;
  box-shadow: 0 2px 8px rgba(11,27,51,.07); }
.sidebar-widget h5 { color: var(--brand-navy); border-left: 4px solid var(--brand-orange);
  padding-left: .6rem; }

/* ---- Banneri (affiliate) ---- */
.banner-stack { display: flex; flex-direction: column; gap: 1rem; }
.affiliate-banner img { border-radius: .6rem; box-shadow: 0 3px 10px rgba(11,27,51,.15); }

/* Rotirajući header banneri (više aktivnih na 'header'): preklopljeni u istom
   okviru; main.js brine koji je .banner-slide-active, uz lagan fade. */
.banner-stack[data-banner-rotate] .affiliate-banner.banner-slide {
  position: absolute; left: 0; top: 0; width: 100%;
  opacity: 0; transition: opacity .6s ease;
}
.banner-stack[data-banner-rotate] .affiliate-banner.banner-slide-active { opacity: 1; }

/* ---- Clanak / tekst ---- */
.article-body { line-height: 1.75; font-size: 1.06rem; }
.article-body h2 { color: var(--brand-navy); margin-top: 1.7rem; font-weight: 800; }
.article-body h3 { color: var(--brand-navy-2); margin-top: 1.4rem; font-weight: 700; }
.article-body p { margin-bottom: 1.1rem; }
.article-body ul, .article-body ol { margin-bottom: 1.1rem; }

/* ---- Video kartica ---- */
.video-card .ratio { border-radius: .6rem; overflow: hidden; }

/* ---- Footer ---- */
.site-footer { background: var(--brand-navy); }
.footer-main { color: #cfe0ff; }
.footer-link { color: #dbe7ff; text-decoration: none; }
.footer-link:hover { color: var(--brand-amber); }
.footer-bottom { background: #07142652; }

/* ---- Cookie consent traka ---- */
.cookie-consent-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1080;
  background: var(--brand-navy); color: #fff;
  padding: .9rem 1rem; font-size: .92rem;
  box-shadow: 0 -4px 18px rgba(11,27,51,.35); transform: translateY(100%);
  transition: transform .3s ease;
}
.cookie-consent-bar.show { transform: translateY(0); }
.cookie-consent-title {
  font-weight: 700; font-size: .95rem; color: var(--brand-amber); margin-bottom: .15rem;
}
.cookie-consent-title i { margin-right: .3rem; }
.cookie-consent-text p { line-height: 1.45; color: #e6eefb; }
.cookie-consent-text a { color: var(--brand-amber); }

/* "Samo nužno" — tihi, diskretan link */
.cookie-btn-decline {
  background: transparent; border: 1px solid rgba(255,255,255,.35); color: #cfe0ff;
  border-radius: .5rem; padding: .55rem 1rem; font-weight: 600; font-size: .88rem;
  cursor: pointer; transition: background .15s ease, color .15s ease;
  white-space: nowrap;
}
.cookie-btn-decline:hover { background: rgba(255,255,255,.12); color: #fff; }

/* "Prihvati sve" — velik, topao, glavni */
.cookie-btn-accept {
  background: linear-gradient(120deg, #b3371c, #ff7a3d); border: 0; color: #fff;
  border-radius: .5rem; padding: .6rem 1.4rem; font-weight: 700; font-size: .95rem;
  cursor: pointer; box-shadow: 0 4px 14px rgba(255,122,61,.4);
  transition: transform .12s ease, box-shadow .12s ease; white-space: nowrap;
}
.cookie-btn-accept:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(255,122,61,.55); }
.cookie-btn-accept:active { transform: translateY(0); }
.cookie-btn-accept i { margin-right: .3rem; }

/* ---- Login stranica ---- */
.login-wrap {
  background:
    radial-gradient(800px 400px at 80% 0%, rgba(255,180,61,.22), transparent 55%),
    linear-gradient(120deg, var(--brand-navy), var(--brand-navy-2));
  min-height: 100vh;
}

/* ---- Admin ---- */
.sidebar-admin { min-height: 100vh; background: var(--brand-navy); color: #cfe0ff; }
.sidebar-admin a { color: #dbe7ff; text-decoration: none; display: block; padding: .55rem .9rem;
  border-radius: .4rem; font-weight: 600; }
.sidebar-admin a:hover, .sidebar-admin a.active { background: var(--brand-orange); color: #fff; }
.stat-card { border: 0; border-radius: .75rem; box-shadow: 0 3px 10px rgba(11,27,51,.10); }
.stat-card .icon { font-size: 2rem; color: var(--brand-orange); }

@media (max-width: 768px) {
  .featured-body h2 { font-size: 1.15rem; }
  .page-title { font-size: 1.4rem; }
}
/* ---- Medijateka ---- */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: .9rem;
}
.media-item { overflow: hidden; display: flex; flex-direction: column; }
.media-item .card-img-top {
  height: 120px; width: 100%; object-fit: cover; background: #f1f3f7;
}
.media-pick-wrap .media-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.media-cell { position: relative; border-radius: .5rem; overflow: hidden; background:#f1f3f7; }
.media-pick-img { height: 90px; width: 100%; object-fit: cover; display: block; }
.media-pick-btn {
  position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%);
  font-size: .75rem; width: 85%; padding: .2rem 0; border: 0; border-radius: .3rem;
  background: var(--brand-orange); color: #fff; font-weight: 600; opacity: 0;
  transition: opacity .15s ease;
}
.media-cell:hover .media-pick-btn { opacity: 1; }

/* ---- Državni praznik widget ---- */
.holiday-widget .holiday-list .holiday-item {
  border: 1px solid rgba(11,27,51,.12);
  border-radius: .6rem;
  padding: .35rem .6rem;
  margin-bottom: .45rem;
  background: #fff;
}
.holiday-widget .holiday-item:last-child { margin-bottom: 0; }
.holiday-head {
  display: flex; align-items: center;
  background: var(--brand-orange);
  border-radius: .4rem;
  padding: .18rem .55rem;
}
.holiday-when {
  font-size: .66rem; font-weight: 700;
  text-transform: uppercase;
  background: rgba(11,27,51,.15);
  border-radius: .3rem;
  padding: .08rem .45rem;
  letter-spacing: .02em;
}
.holiday-name { margin-left: .5rem; font-weight: 700; color: #fff; }
.holiday-countries { color: #3a4a62; font-size: .78rem; margin-top: .25rem; }
.holiday-widget .bi-flag-fill { color: var(--brand-orange); }
.holiday-widget .holiday-list { display: block; margin: 0; }
.holiday-widget .holiday-when,
.holiday-widget .holiday-name { display: inline-block; white-space: normal; }

/* === Servisi i trgovine (2026-10-14) === */
.service-card{transition:box-shadow .15s ease,transform .15s ease}
.service-card:hover{box-shadow:0 .4rem 1rem rgba(0,0,0,.12);transform:translateY(-2px)}
.service-card .h6 a{color:inherit}
.service-card .h6 a:hover{color:var(--bs-primary)}

