:root {
  --text: #111;
  --muted: #666;
  --line: #222;
  --bg: #ffffff;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  font-family: "Inter", sans-serif;
  color: var(--text);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* NAV */
.nav {
  border-bottom: 1px solid #eee;
  position: sticky; top: 0;
  background: rgba(255, 255, 255, 0.95);
  z-index: 1000;
  backdrop-filter: blur(5px);
}
.nav-inner {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1400px; margin: 0 auto; padding: 18px 24px;
}
.brand { font-weight: 600; text-decoration: none; color: var(--text); font-size: 1.2rem; }
.menu { display: flex; align-items: center; }
.menu a { margin-left: 20px; font-size: 11px; text-transform: uppercase; color: var(--muted); text-decoration: none; letter-spacing: 1px; }
.menu .active { border: 1px solid #ccc; padding: 6px 14px; border-radius: 20px; color: var(--text); }

/* LANG SWITCHER */
.lang-switcher { margin-left: 30px; display: flex; gap: 5px; font-size: 11px; }
.lang-btn { background: none; border: none; cursor: pointer; font-weight: 600; color: var(--muted); transition: 0.3s; }
.lang-btn.active { color: var(--text); border-bottom: 1px solid var(--text); }

/* HERO */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.hero { min-height: 85vh; display: flex; align-items: center; padding: 60px 0; }
.hero-layout { display: grid; grid-template-columns: 1.2fr 0.8fr; max-width: 1200px; margin: 0 auto; padding: 0 40px;column-gap: 300px; }
.hero-title { font-family: "Dancing Script", cursive; font-size: clamp(60px, 10vw, 140px); line-height: 0.85; margin: 0; }
.hero-title span { display: block; animation: fadeInUp 1s ease forwards; }
.hero-title .offset { margin-left: clamp(40px, 12vw, 180px); color: var(--text); animation-delay: 0.2s; }
.hero-side { animation: fadeInUp 1s ease 0.5s forwards; opacity: 0; }
.side-box { max-width: 280px; text-align: center; }
.line { display: block; height: 1px; background: var(--line); margin: 24px auto; width: 60px; }
.side-text { font-size: 15px; line-height: 1.8; color: var(--muted); }
.side-btn { display: inline-block; padding: 10px 24px; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; border: 1px solid #aaa; border-radius: 30px; color: var(--text); text-decoration: none; transition: 0.3s; }
.side-btn:hover { background: var(--text); color: #fff; }

/* GALERIJA */
.gallery { padding: 100px 0; background: #fdfdfd; }
.gallery-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; padding: 0 40px; }
.gallery-card { text-decoration: none; color: inherit; display: block; }

.img-wrap {
  position: relative; overflow: hidden; border-radius: 12px; aspect-ratio: 4/5;
  box-shadow: 0 15px 35px rgba(0,0,0,0.05);
}
.img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }

/* OVERLAY EFEKAT */
.img-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.3); /* Tamni prozirni sloj */
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.4s ease;
}
.img-overlay span {
  color: #fff; border: 1px solid #fff; padding: 10px 20px;
  font-size: 11px; letter-spacing: 2px; font-weight: 600;
}

/* HOVER AKCIJA */
.gallery-card:hover .img-wrap img { transform: scale(1.1); }
.gallery-card:hover .img-overlay { opacity: 1; }

.gallery-card {
  display: flex;
  flex-direction: column; /* Ređa elemente vertikalno */
  align-items: center;    /* Centrira naslov i sliku horizontalno */
  text-decoration: none;
  color: inherit;
}

.gallery-card h3 {
  margin-bottom: 25px;    /* Razmak između naslova i slike */
  margin-top: 0;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text);
}

.gallery-item h3::after {
  content: "";
  display: block;
  width: 20px;
  height: 1px;
  background: var(--text);
  margin: 8px auto 0;
  transition: width 0.3s ease;
}

.gallery-card:hover h3::after {
  width: 40px; /* Linija se produži na hover */
}


/* RESPONSIVE */
@media (max-width: 900px) {
  .nav-inner { flex-direction: column; gap: 15px; }
  .hero-layout, .gallery-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-title .offset { margin-left: 0; }
}

.site-footer {
  padding: 80px 0 40px;
  background: #fff;
  border-top: 1px solid #eee;
  margin-top: 50px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 40px;
  border-bottom: 1px solid #f5f5f5;
}

.footer-brand {
  font-family: "Dancing Script", cursive;
  font-size: 24px;
  font-weight: 600;
  color: var(--text); /* Skroz crna */
}

.footer-social a {
  text-decoration: none;
  color: var(--text); /* Promenjeno sa --muted na --text za bolju čitljivost */
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px; /* Malo veći razmak za "vibe" časopisa */
  margin-left: 25px;
  font-weight: 600; /* Podebljano da se bolje vidi */
  transition: opacity 0.3s;
}

.footer-social a:hover {
  opacity: 0.6; /* Na hover blago bledi umesto da tamni */
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  font-size: 11px;
  color: var(--text); /* I ovde stavljamo crnu */
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.signature {
  font-style: italic;
  text-transform: none;
  opacity: 0.7; /* Da srce i potpis budu diskretniji */
}

/* Prilagođavanje za mobilni */
@media (max-width: 900px) {
  .footer-top, .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  .footer-social a {
    margin: 0 10px;
  }
}
.gallery-item {
  opacity: 0;
  transform: scale(0.9) translateY(40px);
  /* transition-out (kad nestaje) - malo brže */
  transition: all 0.6s ease-in-out; 
}

.gallery-item.show {
  opacity: 1;
  transform: scale(1) translateY(0);
  /* transition-in (kad se pojavljuje) - onaj bubbly efekat koji voliš */
  transition: all 0.9s cubic-bezier(0.34, 1.56, 0.64, 1);
}
/* Prvi box iskoči odmah */
.gallery-item:nth-child(1) { transition-delay: 0.1s; }
/* Drugi malo kasni */
.gallery-item:nth-child(2) { transition-delay: 0.1s; }
/* Treći najviše kasni */
.gallery-item:nth-child(3) { transition-delay: 0.1s; }


/* KONTEJNER ZA SVE DESTINACIJE */
.destinations-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px;
}

.country-group {
  margin-bottom: 100px; /* Razmak između država */
}

.country-main-title {
  text-align: center;
  font-family: "Dancing Script", cursive;
  font-size: 50px;
  margin-bottom: 40px;
  position: relative;
}

/* Linije sa strana naslova države (opciono, za luxury look) */
.country-main-title::before, .country-main-title::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 50px;
  height: 1px;
  background: #ddd;
}
.country-main-title::before { left: 30%; }
.country-main-title::after { right: 30%; }

/* GRID ZA BLOGOVE */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); /* Automatski ređa 2 ili 3 u red */
  gap: 30px;
}

.blog-card {
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #f0f0f0;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.blog-img {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.blog-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-img img {
  transform: scale(1.05);
}

.blog-content {
  padding: 20px;
}

.blog-content h3 {
  margin: 0 0 10px 0;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 600;
}

.blog-content p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* Mobilna podešavanja */
@media (max-width: 768px) {
  .country-main-title::before, .country-main-title::after { display: none; }
  .blog-grid { grid-template-columns: 1fr; }
}


.compact-post {
  max-width: 650px; /* Usko i pregledno za čitanje */
  margin: 60px auto;
  padding: 0 20px;
}

.post-header {
  margin-bottom: 40px;
}

.post-header h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-top: 10px;
}

.post-body {
  border-top: 1px solid #eee;
  padding-top: 30px;
}

.fact-item {
  margin-bottom: 30px;
}

.fact-item p {
  font-size: 16px;
  line-height: 1.7;
  color: #333;
}

/* Stilizovanje "važnog" dela unutar teze */
.fact-item p strong {
  display: block; /* Stavlja boldovan deo u poseban red iznad */
  font-size: 18px;
  color: var(--text);
  margin-bottom: 5px;
}

.inline-img {
  margin: 40px 0;
  width: 100%;
}

.inline-img img {
  width: 100%;
  border-radius: 4px;
  filter: grayscale(0.2); /* Suptilan "vibe" putopisa */
  transition: 0.3s;
}

.inline-img img:hover {
  filter: grayscale(0);
}


