/* ========== MODERNIZOVAN EKOVANJA DIZAJN 2025 ========== */

:root {
  --bg-darker: #08130f;
  --bg-dark: #0b1d14;
  --card: #133024;
  --ink: #e6f2ea;
  --muted: #cfe3d6;
  --accent: #6bd08c;
  --accent-bright: #7de49d;
  --shadow: 0 16px 36px rgba(0,0,0,.45);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-darker);
  color: var(--ink);
  line-height: 1.6;
}

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

/* ========== NAVIGATION ========== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: rgba(8, 19, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(107, 208, 140, 0.15);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 20px;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
  border: 2px solid var(--accent);
}

nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

nav a {
  color: var(--muted);
  font-weight: 500;
  transition: color 0.2s ease;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

nav a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
  text-decoration: none;
}

/* ========== HERO SECTION ========== */
.hero {
  position: relative;
  min-height: 85vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(1400px 60% at 50% 10%, rgba(107, 208, 140, 0.12), transparent 70%),
    linear-gradient(180deg, rgba(0,0,0,.5), rgba(8,19,15,.85)),
    url('/slike/bg-header.webp') center/cover no-repeat;
  overflow: hidden;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(900px 50% at 50% 0%, rgba(107, 208, 140, 0.25), transparent 65%);
  pointer-events: none;
  animation: pulseGlow 8s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.hero__inner {
  position: relative;
  text-align: center;
  padding: 0 24px;
  max-width: 900px;
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero .brand {
  font-family: Georgia, serif;
  font-size: clamp(48px, 10vw, 86px);
  font-weight: 800;
  letter-spacing: 3px;
  text-shadow: 0 8px 32px rgba(0,0,0,.65);
  background: linear-gradient(135deg, #e6f2ea 0%, #6bd08c 50%, #e6f2ea 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.tagline {
  font-size: clamp(18px, 2.5vw, 26px);
  color: var(--muted);
  margin: 16px 0 32px;
  font-weight: 300;
  letter-spacing: 0.5px;
}

/* ========== MODERN CTA BUTTON ========== */
.btn-cta {
  display: inline-block;
  padding: 16px 42px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 600;
  color: #0b1d14;
  background: linear-gradient(135deg, #7de49d 0%, #6bd08c 100%);
  box-shadow: 0 8px 24px rgba(107, 208, 140, 0.35);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(107, 208, 140, 0.5);
}

.btn-cta:hover::before {
  left: 100%;
}

.btn-cta:active {
  transform: translateY(-1px);
}

/* ========== CONTAINER ========== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

/* ========== CONTENT SECTION ========== */
.content-section {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: start;
  padding: 60px 0;
}

@media (max-width: 900px) {
  .content-section {
    grid-template-columns: 1fr;
  }
}

.content-section h1 {
  font-size: clamp(32px, 5vw, 48px);
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--ink);
}

.lead {
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 24px;
}

/* ========== CARDS ========== */
.card {
  background: var(--card);
  padding: 28px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(107, 208, 140, 0.1);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0,0,0,.55);
  border-color: rgba(107, 208, 140, 0.3);
}

.card strong {
  color: var(--accent);
  font-size: 18px;
}

.card .muted {
  color: #d7e6dd;
  margin-top: 12px;
}

/* ========== VIDEO EMBED ========== */
.embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 20px;
  background: #000;
  box-shadow: var(--shadow);
}

.embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ========== GRID ========== */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 32px 0;
}

@media (max-width: 768px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

.grid img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.grid img:hover {
  transform: scale(1.03);
}

/* ========== SECTION TITLES ========== */
.section-title {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 16px;
  color: var(--ink);
}

.muted {
  color: var(--muted);
}

/* ========== CONTACT FORM ========== */
.kontakt-form {
  margin: 24px 0;
}

.row.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

@media (max-width: 720px) {
  .row.two {
    grid-template-columns: 1fr;
  }
}

.kontakt-form input,
.kontakt-form textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid rgba(107, 208, 140, 0.2);
  background: rgba(19, 48, 36, 0.5);
  color: var(--ink);
  font-size: 16px;
  transition: all 0.3s ease;
}

.kontakt-form input:focus,
.kontakt-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(107, 208, 140, 0.1);
}

.kontakt-form textarea {
  min-height: 140px;
  resize: vertical;
  font-family: inherit;
}

.btn {
  padding: 14px 32px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #7de49d 0%, #6bd08c 100%);
  color: #0b1d14;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(107, 208, 140, 0.3);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(107, 208, 140, 0.4);
}

/* ========== SOCIAL CARDS ========== */
.social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

@media (max-width: 720px) {
  .social-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.social-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 12px;
  border-radius: 16px;
  background: rgba(19, 48, 36, 0.5);
  border: 1px solid rgba(107, 208, 140, 0.15);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-card:hover {
  transform: translateY(-4px);
  background: rgba(19, 48, 36, 0.8);
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
}

.social-card .icon svg {
  width: 24px;
  height: 24px;
}

.social-card .label {
  font-weight: 600;
  font-size: 14px;
}

.social-card.tiktok { color: #69c9d0; }
.social-card.instagram { color: #e4405f; }
.social-card.youtube { color: #ff0000; }
.social-card.facebook { color: #1877f2; }
.social-card.linkedin { color: #0a66c2; }
.social-card.x { color: #e7e9ea; }

/* ========== INICIJATIVA SECTION ========== */
.section-inicijativa {
  background: linear-gradient(180deg, rgba(11,29,20,0), rgba(11,29,20,.35));
  padding: 80px 24px;
}

.inicijativa-wrap {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 860px) {
  .inicijativa-wrap {
    grid-template-columns: 1fr;
  }
}

.inicijativa-media {
  background: var(--card);
  border-radius: 24px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.inicijativa-media img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

.inicijativa-content h2 {
  font-size: clamp(32px, 5vw, 48px);
  margin-bottom: 12px;
  color: var(--ink);
}

.underline {
  width: 100px;
  height: 5px;
  background: var(--accent);
  border-radius: 10px;
  margin: 12px 0 24px;
}

.inicijativa-content h3 {
  font-size: clamp(22px, 3vw, 28px);
  color: var(--accent);
  margin: 24px 0 16px;
}

.inicijativa-content p {
  line-height: 1.8;
  margin-bottom: 16px;
  color: #d7e6dd;
  font-size: 17px;
}

/* ========== FOOTER ========== */
.footer {
  padding: 40px 24px;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid rgba(107, 208, 140, 0.1);
  margin-top: 60px;
}

/* ========== SCROLL ANIMATIONS ========== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease-out forwards;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .nav {
    padding: 12px 20px;
  }

  nav {
    gap: 16px;
  }

  .hero {
    min-height: 70vh;
  }
}

/* === Step41: dodatna poboljšanja za mobilni prikaz (početna) === */
@media (max-width: 480px) {
  body {
    font-size: 15px;
    line-height: 1.65;
  }

  header.nav {
    padding: 10px 14px;
  }

  header.nav nav {
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .hero .brand {
    font-size: clamp(32px, 10vw, 48px);
  }

  .tagline {
    font-size: 15px;
    margin: 12px 0 24px;
  }

  main.container {
    padding: 20px 16px;
  }

  .content-section h1 {
    font-size: 22px;
    line-height: 1.35;
  }

  .lead {
    font-size: 15px;
  }
}

/* === Mobilna optimizacija 360–414px (globalno) === */
@media (max-width: 480px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 16px;
  }

  nav {
    flex-wrap: wrap;
    gap: 10px;
  }

  nav a {
    font-size: 0.9rem;
  }

  .container {
    padding: 24px 16px;
  }

  .page-header {
    padding: 40px 16px;
    min-height: 30vh;
  }

  .page-header__inner {
    padding: 24px 0;
  }

  .stories-grid,
  .gallery-grid,
  .news-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  .featured-story {
    grid-template-columns: 1fr;
  }
}


/* === Mobile navigation toggle === */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(107, 208, 140, 0.4);
  background: rgba(8, 19, 15, 0.85);
  color: var(--ink, #e6f2ea);
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

@media (max-width: 768px) {
  .nav {
    gap: 8px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav nav {
    position: absolute;
    top: 64px;
    right: 16px;
    left: 16px;
    background: rgba(8, 19, 15, 0.98);
    border-radius: 16px;
    padding: 12px 16px;
    display: none;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 16px 40px rgba(0,0,0,.7);
    border: 1px solid rgba(107, 208, 140, 0.35);
  }

  body.nav-open .nav nav {
    display: flex;
  }

  .nav nav a {
    display: block;
    width: 100%;
  }
}


/* Featured statistics strip on home page */
.featured-stats {
  margin-top: 24px;
  margin-bottom: 32px;
}
.featured-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.stat-chip {
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: radial-gradient(circle at top left, rgba(144,238,144,0.2), rgba(0,0,0,0.7));
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stat-number {
  font-weight: 700;
  font-size: 1.2rem;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Featured stories cards on home page */
.featured-links.card {
  margin-top: 32px;
}
.featured-links__head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}
.featured-links__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.featured-card {
  border-radius: 18px;
  padding: 16px 18px;
  background: radial-gradient(circle at top left, rgba(144,238,144,0.18), rgba(0,0,0,0.8));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 170px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.featured-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.6);
  border-color: rgba(144,238,144,0.45);
}
.featured-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.8rem;
  background: rgba(0,0,0,0.55);
  color: var(--muted);
  margin-bottom: 8px;
}
.featured-card-title {
  font-size: 1.02rem;
  margin: 0 0 6px;
}
.featured-card-excerpt {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 10px;
}
.featured-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--muted);
}
.featured-links__more {
  margin-top: 14px;
}

/* Responsive tweaks */
@media (max-width: 900px) {
  .featured-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .featured-links__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 600px) {
  .featured-stats-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* Hide nav on scroll (JS adds .nav.hidden) */
.nav.hidden {
  transform: translateY(-100%);
}
/* === Performance overrides (mobile) === */
@media (max-width: 640px) {
  .nav { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  .badge, .category-badge { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
}
/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  .animate-on-scroll, .animated { transition: none !important; animation: none !important; }
}



/* Perf: click-to-load YouTube (loads iframe only after click) */
.embed .yt-lite{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  cursor:pointer;
  border-radius:20px;
  overflow:hidden;
}
.embed .yt-lite img{
  width:100%;
  height:100%;
  object-fit:cover;
  filter:saturate(1.05) contrast(1.05);
}
.embed .yt-play{
  width:74px;
  height:52px;
  border-radius:14px;
  background: rgba(0,0,0,.55);
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
  position:absolute;
}
.embed .yt-play::before{
  content:"";
  position:absolute;
  left:30px;
  top:50%;
  transform:translateY(-50%);
  width:0;height:0;
  border-left:18px solid #fff;
  border-top:12px solid transparent;
  border-bottom:12px solid transparent;
}
.embed .yt-lite:focus-visible{
  outline: 3px solid rgba(183, 242, 203, .9);
  outline-offset: 4px;
}


/* Featured stories thumbnails */
.featured-thumb{
  width:100%;
  aspect-ratio:16/9;
  object-fit:cover;
  border-radius:14px;
  margin: 10px 0 12px;
  border:1px solid rgba(255,255,255,0.10);
  box-shadow: 0 14px 30px rgba(0,0,0,0.45);
}
