/* ============================================================
   U MOJOJ KOZI - glavni stil
   ============================================================ */

:root {
  /* Boje */
  --coral: #e5876e;
  --coral-dark: #d9765c;
  --dark-red: #8e2b39;
  --dark-red-2: #a83244;
  --text-dark: #2f2a2b;
  --text-muted: #6d6668;
  --white: #ffffff;
  --pink-light: #f7dfe0;
  --pink-soft: #fbeef0;

  /* Roze gradijent hero pozadine */
  --hero-gradient: linear-gradient(120deg, #f6d9d6 0%, #fbeaea 45%, #ffffff 100%);

  /* Tipografija */
  --font-body: "Poppins", "Segoe UI", Tahoma, sans-serif;
  --font-head: "Montserrat", "Segoe UI", Tahoma, sans-serif;

  /* Layout */
  --nav-height: 78px;
  --max-width: 1200px;
  --radius: 28px;
  --shadow: 0 10px 30px rgba(142, 43, 57, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  line-height: 1.6;
  background: var(--white);
}

a {
  text-decoration: none;
  color: inherit;
}

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: var(--white);
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.navbar__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Logo */
.logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.55rem;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.logo .logo--coral {
  color: var(--coral);
}
.logo .logo--dark {
  color: var(--dark-red);
}

/* Nav menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}

.nav-menu a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
  padding: 6px 2px;
  position: relative;
  transition: color 0.2s ease;
}

.nav-menu a:hover {
  color: var(--dark-red);
}

.nav-menu a.active {
  color: var(--dark-red);
  font-weight: 600;
}

.nav-menu a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--dark-red);
}

/* Search */
.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.search {
  position: relative;
  display: flex;
  align-items: center;
}

.search__btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--dark-red);
  display: flex;
  align-items: center;
  padding: 6px;
}

.search__btn svg {
  width: 22px;
  height: 22px;
}

.search__input {
  width: 0;
  opacity: 0;
  padding: 0;
  border: none;
  border-bottom: 1px solid var(--coral);
  outline: none;
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: transparent;
  transition: width 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
}

.search.open .search__input {
  width: 220px;
  opacity: 1;
  padding: 4px 6px;
}

/* Rezultati pretrage (padajuca lista) */
.search__results {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 340px;
  max-height: 60vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(142, 43, 57, 0.18);
  padding: 8px;
  display: none;
  z-index: 1100;
}

.search__results.visible {
  display: block;
}

.search__result {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text-dark);
  transition: background 0.15s ease;
}

.search__result:hover,
.search__result.highlighted {
  background: var(--pink-soft);
}

.search__result-title {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--dark-red);
  margin-bottom: 2px;
}

.search__result-text {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.search__empty {
  padding: 14px 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--dark-red);
  border-radius: 3px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

/* ============================================================
   HERO (Home)
   ============================================================ */
.hero {
  position: relative;
  margin-top: var(--nav-height);
  min-height: calc(100vh - var(--nav-height));
  background: var(--hero-gradient);
  overflow: hidden;
  display: flex;
  align-items: stretch;
}

/* Fotografija zene - sliku bira JS (hero1-4.png); ::after = zatamnjenje za citljivost */
.hero__photo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #f3d3cf;
  background-image: url("../images/hero1.png");
  background-size: cover;
  background-position: left center;
  background-repeat: no-repeat;
}

.hero__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(251, 234, 234, 0) 42%, rgba(142, 43, 57, 0.5) 100%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 5;
  margin-left: auto;
  margin-right: 4%;
  width: 42%;
  max-width: 520px;
  min-height: calc(100vh - var(--nav-height));
  padding: 0 20px 36vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
}

.hero__title {
  font-family: var(--font-head);
  font-weight: 300;
  font-size: clamp(2.4rem, 5vw, 4rem);
  letter-spacing: 6px;
  text-transform: uppercase;
  line-height: 1.05;
  text-shadow: 0 2px 16px rgba(80, 25, 35, 0.55);
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 400;
  margin-top: 12px;
  text-shadow: 0 2px 12px rgba(80, 25, 35, 0.55);
}

.hero__divider {
  width: 90px;
  height: 2px;
  background: rgba(255, 255, 255, 0.85);
  margin: 22px 0;
}

.hero__text {
  font-size: 0.98rem;
  max-width: 360px;
  margin-bottom: 0;
  text-shadow: 0 1px 10px rgba(80, 25, 35, 0.6);
}

/* Dugme */
.btn {
  display: inline-block;
  background: var(--coral);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  padding: 14px 46px;
  border: none;
  border-radius: 40px;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background 0.2s ease, transform 0.2s ease;
  position: relative;
  z-index: 3;
}

.btn:hover {
  background: var(--coral-dark);
  transform: translateY(-2px);
}

/* Blob dekoracija - deo hero sekcije (skroluje zajedno sa heroom, ne fixed) */
.hero__decoration {
  position: absolute;
  right: -40px;
  bottom: -50px;
  z-index: 2;
  width: min(620px, 48vw);
  height: min(620px, 68vh);
  overflow: hidden;
  pointer-events: none;
  line-height: 0;
}

.hero__decoration img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 38%;
  display: block;
}

/* Fallback dekoracija ako slika nije dostavljena */
.badge-fallback {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 2px dashed var(--dark-red);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark-red);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2.4rem;
  background: rgba(255, 255, 255, 0.35);
}

/* ============================================================
   UNUTRASNJE STRANICE
   ============================================================ */
.page-hero {
  margin-top: var(--nav-height);
  background: var(--hero-gradient);
  padding: 70px 0;
  text-align: center;
}

.page-hero h1 {
  font-family: var(--font-head);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--dark-red);
}

.page-hero p {
  color: var(--text-muted);
  margin-top: 12px;
  font-size: 1.05rem;
}

.section {
  padding: 60px 0;
}

.section h2 {
  font-family: var(--font-head);
  color: var(--dark-red);
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.section p {
  color: var(--text-muted);
  max-width: 760px;
  margin-bottom: 16px;
}

/* Kartice - max 3 u redu, centrirane (poslednji red se centrira) */
.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 30px;
}

.card {
  flex: 0 1 calc((100% - 48px) / 3);
  width: calc((100% - 48px) / 3);
  max-width: calc((100% - 48px) / 3);
  box-sizing: border-box;
  background: var(--pink-soft);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 6px 18px rgba(142, 43, 57, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

/* Kartica sa dijagonalnom zastavicom u gornjem desnom uglu */
.card--soon {
  position: relative;
  overflow: hidden;
}

.card--soon h3 {
  padding-right: 78px;
}

.card__ribbon {
  position: absolute;
  top: 30px;
  right: -48px;
  width: 180px;
  transform: rotate(45deg);
  background: var(--coral);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-align: center;
  padding: 6px 0;
  box-shadow: 0 2px 6px rgba(142, 43, 57, 0.2);
  pointer-events: none;
}

/* Dve kartice u redu - za parni broj kartica */
.cards--pair .card {
  flex: 0 1 calc((100% - 24px) / 2);
  width: calc((100% - 24px) / 2);
  max-width: calc((100% - 24px) / 2);
}

.card h3 {
  font-family: var(--font-head);
  color: var(--coral);
  margin-bottom: 10px;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

a.card {
  display: block;
  color: inherit;
  cursor: pointer;
}

a.card .card__more {
  display: inline-block;
  margin-top: 14px;
  color: var(--dark-red);
  font-size: 0.9rem;
  font-weight: 500;
}

/* ============================================================
   EDUKATIVNI TEKST (template clanka)
   ============================================================ */
.page-hero--article {
  position: relative;
  text-align: left;
  padding: 56px 0 48px;
  overflow: hidden;
}

.page-hero--article h1 {
  text-transform: none;
  letter-spacing: 0.5px;
  font-weight: 600;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-top: 10px;
  line-height: 1.2;
}

.page-hero--with-blob {
  position: relative;
  overflow: hidden;
}

.page-hero--with-blob .page-hero__content {
  position: relative;
  z-index: 2;
}

/* Za clanke: tekst levo, prostor desno za blob */
.page-hero--article.page-hero--with-blob .page-hero__content {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  padding-right: min(280px, 28vw);
  box-sizing: content-box;
}

.page-hero--article.page-hero--with-blob .page-hero__content.container {
  margin-left: auto;
  margin-right: auto;
}

/* Blob u desnom delu page-hero - deo sekcije, skroluje zajedno sa njom */
.page-hero__decoration {
  position: absolute;
  right: -30px;
  bottom: -40px;
  z-index: 1;
  width: min(420px, 38vw);
  height: min(420px, 55vh);
  overflow: hidden;
  pointer-events: none;
  line-height: 0;
}

.page-hero__decoration img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 38%;
  display: block;
}

.breadcrumb {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.breadcrumb a {
  color: var(--coral);
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--dark-red);
}

.breadcrumb__sep {
  margin: 0 8px;
  color: var(--text-muted);
}

.article-label {
  display: inline-block;
  color: var(--coral);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 0;
}

.article-lead {
  max-width: 720px;
  margin-top: 14px !important;
  font-size: 1.1rem !important;
  line-height: 1.65;
  color: var(--text-muted);
}

.article {
  padding-top: 40px;
}

.article__inner {
  max-width: 760px;
}

.article__body h2 {
  font-family: var(--font-head);
  color: var(--dark-red);
  font-size: 1.45rem;
  margin: 36px 0 14px;
}

.article__body h2:first-child {
  margin-top: 0;
}

.article__body h3 {
  font-family: var(--font-head);
  color: var(--coral);
  font-size: 1.15rem;
  margin: 28px 0 12px;
}

.article__body p {
  color: var(--text-muted);
  max-width: none;
  margin-bottom: 16px;
  line-height: 1.75;
}

.article__body ul,
.article__body ol {
  color: var(--text-muted);
  padding-left: 22px;
  margin: 0 0 18px;
  line-height: 1.7;
}

.article__body li {
  margin-bottom: 8px;
}

.article__body a {
  color: var(--dark-red);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article__body a:hover {
  color: var(--coral);
}

.article__note {
  margin: 28px 0;
  padding: 20px 22px;
  background: var(--pink-soft);
  border-left: 4px solid var(--coral);
  border-radius: 0 12px 12px 0;
  color: var(--text-dark);
  font-style: normal;
}

.article__note strong {
  color: var(--dark-red);
}

.article__footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--pink-light);
}

.article__back {
  color: var(--dark-red);
  font-weight: 500;
  transition: color 0.2s ease;
}

.article__back:hover {
  color: var(--coral);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--dark-red);
  color: rgba(255, 255, 255, 0.9);
  padding: 46px 0 24px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

.footer__grid h4 {
  font-family: var(--font-head);
  margin-bottom: 14px;
  color: var(--white);
}

.footer__grid a,
.footer__grid p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.92rem;
  display: block;
  margin-bottom: 8px;
  transition: color 0.2s ease;
}

.footer__grid a:hover {
  color: var(--coral);
}

.footer__logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 10px;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 18px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}
