:root {
  --bg: #faf5ef;
  --accent: #f97316;
  --accent-2: #0ea5e9;
  --text: #1f2933;
  --muted: #6b7280;
  --card: #ffffff;
  --ring: #e2d3b0;
  --radius-lg: 24px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.18);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at top left, #fffaf3, #f5eee4);
  color: var(--text);
  scroll-behavior: smooth;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.page { min-height: 100vh; display: flex; flex-direction: column; }

header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(250,245,239,0.94), rgba(250,245,239,0.85));
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}
.lang-switcher {
    position: absolute;
    top: 25px;          /* po potrebi prilagodi */
    right: 30px;        /* po potrebi prilagodi */
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    gap: 6px;
    opacity: 0.85;
}
.nav-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* jezični switcher uz logo */
.nav-lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.8);
  color: #333;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.lang-pill--active {
  background: linear-gradient(135deg, #ff8a3c, #f44336);
  color: #fff;
  border-color: transparent;
}

.lang-pill:hover {
  transform: translateY(-1px);
}

.lang-flag {
  font-size: 13px;
}

.lang-code {
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.lang-switcher a {
    text-decoration: none;
    color: #222;
    opacity: 0.55;
    transition: 0.2s ease;
}

.lang-switcher a:hover {
    opacity: 1;
}

.lang-switcher a.active-lang {
    opacity: 1;
    font-weight: 600;
}

.lang-switcher span {
    opacity: 0.4;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1.5rem;
}

.nav-left { display: flex; align-items: center; gap: 0.75rem; }

.nav-logo-wrap {
  width: 46px; height: 46px;
  border-radius: 999px;
  padding: 4px;
  background: radial-gradient(circle at 20% 0, #fef3c7, #fed7aa);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
  display: flex; align-items: center; justify-content: center;
}

.nav-logo-wrap img { border-radius: 999px; }

.brand-title {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
}

.brand-sub {
  font-size: 0.75rem;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-size: 0.95rem;
}

.nav-links a {
  position: relative;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1.5px;
  background: linear-gradient(to right, var(--accent-2), var(--accent));
  border-radius: 999px;
  transition: width 0.18s ease-out;
}

.nav-links a:hover::after { width: 100%; }

.btn-primary,
.btn-ghost {
  border-radius: 999px;
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.16s ease-out,
    box-shadow 0.16s ease-out,
    background 0.16s ease-out,
    border-color 0.16s ease-out;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #fb923c);
  color: white;
  box-shadow: 0 14px 30px rgba(248, 113, 113, 0.35);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(148, 163, 184, 0.45);
  color: var(--text);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(248, 113, 113, 0.45);
}

.btn-ghost:hover {
  transform: translateY(-1px);
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(148, 163, 184, 0.25);
}

/* HERO */

.hero {
  padding: 3.5rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.hero-eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.17em;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.hero-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.4rem, 3vw + 1.4rem, 3.4rem);
  line-height: 1.05;
  margin: 0 0 0.9rem;
}

.hero-title span {
  background: linear-gradient(120deg, var(--accent-2), var(--accent));
  -webkit-background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 36rem;
  line-height: 1.6;
  margin-bottom: 1.4rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  padding: 0.3rem 0.7rem 0.3rem 0.3rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  margin-bottom: 1.4rem;
}

.hero-badge-logo {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  padding: 4px;
  background: radial-gradient(circle at 20% 0, #bfdbfe, #fed7aa);
}

.hero-badge-text {
  font-size: 0.83rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.hero-note {
  font-size: 0.8rem;
  color: var(--muted);
}

.hero-note strong {
  color: var(--accent);
  font-weight: 600;
}

/* HERO PHOTO */

.hero-photo-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #1f2937);
  box-shadow: var(--shadow-soft);
  isolation: isolate;
}

.hero-photo-wrap {
  position: relative;
  overflow: hidden;
}

.hero-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.35s ease-out;
}

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

.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 0, rgba(56, 189, 248, 0.5), transparent 45%),
    radial-gradient(circle at 100% 100%, rgba(248, 113, 113, 0.58), transparent 55%);
  mix-blend-mode: soft-light;
}

.hero-tag {
  position: absolute;
  top: 1.1rem;
  left: 1.1rem;
  background: rgba(15, 23, 42, 0.84);
  color: #f9fafb;
  padding: 0.4rem 0.78rem;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid rgba(148, 163, 184, 0.6);
  backdrop-filter: blur(10px);
}

.hero-pill {
  position: absolute;
  bottom: 1.1rem;
  right: 1.1rem;
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  font-size: 0.78rem;
  border: 1px solid rgba(148, 163, 184, 0.7);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  backdrop-filter: blur(12px);
}

.hero-pill strong {
  font-size: 0.82rem;
  color: #fefce8;
}

.hero-ring {
  position: absolute;
  inset: 12%;
  border-radius: 999px;
  border: 1px solid rgba(248, 250, 252, 0.18);
  pointer-events: none;
}

/* SECTIONS */

section {
  padding: 3rem 0;
}

.section-header {
  max-width: 640px;
  margin-bottom: 2rem;
}

.section-eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.section-title {
  font-family: "Playfair Display", serif;
  font-size: 1.9rem;
  margin-bottom: 0.4rem;
}

.section-desc {
  font-size: 0.98rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ABOUT */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}

.about-text p {
  margin: 0 0 0.9rem;
  font-size: 0.98rem;
  line-height: 1.7;
}

.about-highlight {
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  padding: 1rem 1.2rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  font-size: 0.9rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.chip {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(239, 246, 255, 0.9);
  font-size: 0.8rem;
  border: 1px solid rgba(191, 219, 254, 0.9);
  white-space: nowrap;
}

.chip.orange {
  background: rgba(255, 237, 213, 0.9);
  border-color: rgba(254, 215, 170, 0.9);
}

/* ABOUT FULL (tvoj novi blok) */

.about-full {
  max-width: 900px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.about-full p {
  margin-bottom: 20px;
  line-height: 1.7;
  font-size: 17px;
}

/* JOURNAL */

.journal-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.journal-post {
  background: rgba(255,255,255,0.98);
  border-radius: 18px;
  border: 1px solid rgba(226,232,240,0.9);
  box-shadow: 0 10px 24px rgba(15,23,42,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
  cursor: pointer;
}

.journal-post:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(15,23,42,0.16);
}

.journal-post.hidden {
  display: none;
}

.journal-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.journal-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.journal-body {
  padding: 0.75rem 0.9rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.journal-date {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.journal-title {
  font-weight: 600;
  font-size: 0.96rem;
}

.journal-text {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.journal-tag {
  font-size: 0.76rem;
  margin-top: 0.2rem;
  color: var(--accent);
  font-weight: 500;
}

.journal-toggle-wrap {
  margin-top: 1.6rem;
  text-align: center;
}

.journal-toggle {
  font-size: 0.86rem;
}

/* TIMELINE */

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.step {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 20px;
  padding: 1.1rem 1.2rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.step-number {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  background: radial-gradient(circle at 20% 0, #bae6fd, #fed7aa);
  color: #0f172a;
  margin-bottom: 0.4rem;
}

.step-title {
  font-weight: 600;
  font-size: 0.97rem;
  margin-bottom: 0.2rem;
}

.step-text {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

/* CONTACT GRID & CARD */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.contact-card {
  background: rgba(15, 23, 42, 0.96);
  color: #e5e7eb;
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.35), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(248, 113, 113, 0.4), transparent 55%);
  opacity: 0.85;
  mix-blend-mode: soft-light;
}

.contact-inner {
  position: relative;
  z-index: 1;
}

.contact-title {
  font-family: "Playfair Display", serif;
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  color: #f9fafb;
}

.contact-text {
  font-size: 0.95rem;
  color: #e5e7eb;
  margin-bottom: 1.4rem;
  max-width: 28rem;
  line-height: 1.7;
}

.contact-meta {
  display: grid;
  gap: 0.5rem;
  font-size: 0.9rem;
  margin-bottom: 1.4rem;
}

.contact-meta span {
  color: #facc15;
  font-weight: 500;
}

/* FORMA */

form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.83rem;
  color: var(--muted);
}

.form-field.full {
  grid-column: 1 / -1;
}

input,
textarea {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  padding: 0.55rem 0.9rem;
  font-size: 0.9rem;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.94);
  outline: none;
  transition:
    border-color 0.15s ease-out,
    box-shadow 0.15s ease-out,
    background 0.15s ease-out;
}

textarea {
  border-radius: 18px;
  min-height: 90px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 1.5px rgba(56, 189, 248, 0.35);
  background: #ffffff;
}

.contact-cta-note {
  font-size: 0.8rem;
  color: #e5e7eb;
  margin-top: 0.4rem;
  opacity: 0.9;
}

.contact-side {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.7;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0.8rem 0 0;
  display: grid;
  gap: 0.4rem;
  font-size: 0.9rem;
}

.contact-list li::before {
  content: "•";
  margin-right: 0.45rem;
  color: var(--accent);
}

/* SOCIAL IKONE ISPOD FORME */

.contact-social {
  margin-top: 1.2rem;
  display: flex;
  justify-content: center;
  gap: 0.55rem;
}

.social-icon {
  width: 50px;
  height: 50px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15,23,42,0.85);
  border: 1px solid rgba(255,255,255,0.25);
  color: #f9fafb;
  box-shadow: 0 6px 12px rgba(15,23,42,0.25);
  transition:
    background 0.18s ease-out,
    border-color 0.18s ease-out,
    transform 0.18s ease-out,
    color 0.18s ease-out,
    box-shadow 0.18s ease-out;
}

.social-svg {
  width: 15px;
  height: 15px;
}

.social-icon:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  border-color: rgba(255,255,255,0.85);
  color: #fff;
  box-shadow: 0 8px 18px rgba(15,23,42,0.35);
}

/* FOOTER */

footer {
  padding: 1.8rem 0 2.2rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: center;
  border-top: 1px solid rgba(203, 213, 225, 0.7);
  padding-top: 1rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-logo img {
  width: 26px;
  height: 26px;
  border-radius: 999px;
}

/* GALERIJA */

.gallery-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  margin-top: 1.5rem;
}

.gallery-grid img {
  width: 100%;
  height: 220px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.15);
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

.gallery-grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.25);
}

.galerija {
  padding: 40px;
  text-align: center;
}

.galerija-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
}

.galerija-slika {
  width: 100%;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.galerija-slika:hover {
  transform: scale(1.03);
  opacity: 0.9;
}

/* LIGHTBOX */

.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
}

.lightbox-img {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 85%;
}

.close {
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 50px;
  color: white;
  cursor: pointer;
}

.lightbox-nav #prev,
.lightbox-nav #next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  font-size: 60px;
  padding: 10px;
  color: white;
  user-select: none;
  transform: translateY(-50%);
}

#prev { left: 40px; }
#next { right: 40px; }

.lightbox-nav span:hover {
  color: #ccc;
}

/* MEDIA SECTION – kompaktnije i malo “premium” */

.media-list {
  display: grid;
  gap: 0.6rem;           /* malo zraka, ali kompaktno */
  margin-top: 1.3rem;
}

/* kartice niže i manje voluminozne */
.media-item {
  background: rgba(255,255,255,0.96);
  padding: 0.7rem 1rem;  /* manje paddinga = niža kartica */
  border-radius: 12px;   /* mrvicu manji radius */
  border: 1px solid rgba(226,232,240,0.9);
  box-shadow: 0 6px 16px rgba(15,23,42,0.06);  /* blaži shadow */
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
  display: block;
}

.media-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15,23,42,0.12);
}

.media-item h3 {
  font-size: 0.95rem;
  margin: 0 0 0.15rem;   /* manji razmak ispod naslova */
  font-weight: 600;
}

.media-item p {
  margin: 0;
  font-size: 0.8rem;     /* malo manji tekst */
  color: var(--muted);
  line-height: 1.4;      /* malo zbijeniji redovi */
}
/* uži prikaz medijskih kartica — desno poravnato */
.media-list {
  max-width: 700px;
  margin: 1.3rem 0 0 0;  /* gura blok skroz desno */
}

/* MEDIA SECTION – 2 stupca na desktopu, 1 stupac na mobitelu */

.media-list {
  display: grid;
  grid-template-columns: 1fr;   /* mobiteli – 1 stupac */
  gap: 0.8rem;
  margin-top: 1.3rem;
  max-width: 900px;             /* širi raster, ali kartice uži */
}

/* Desktop – 2 stupca */
@media (min-width: 768px) {
  .media-list {
    grid-template-columns: 1fr 1fr;
    max-width: 1100px;          /* širinje grid polje za 2 kartice */
  }
}

/* Kartice uži i elegantni */
.media-item {
  background: rgba(255,255,255,0.96);
  padding: 0.7rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(226,232,240,0.9);
  box-shadow: 0 6px 16px rgba(15,23,42,0.06);
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
  display: block;
}
/* MEDIA – thumbnail layout */
.media-item {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}

.media-thumb {
  width: 70px;
  height: 70px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

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

.media-text {
  flex: 1;
}


/* STORY DETAIL (prica.php) */

.story-detail {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  text-decoration: none;
  color: #888;
  margin-bottom: 1.5rem;
}

.back-link:hover {
  color: #ccc;
}

.back-icon {
  font-size: 1.1rem;
}

.story-detail-card h1 {
  margin-bottom: 1rem;
}

.story-detail-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.story-detail-body {
  line-height: 1.7;
  font-size: 1rem;
}

/* COOKIE BANNER */

.cookie-banner {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: none;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cookie-banner-content {
  background: #111;
  color: #f5f5f5;
  max-width: 600px;
  width: 100%;
  border-radius: 16px;
  padding: 22px 22px 18px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.7);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cookie-banner-content p {
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.cookie-banner a {
  color: #ff4d4d;
  text-decoration: underline;
}

.cookie-banner-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.cookie-btn {
  border: none;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}

.cookie-btn.primary {
  background: #ff4d4d;
  color: #fff;
}

.cookie-btn.secondary {
  background: transparent;
  color: #f5f5f5;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn:hover {
  opacity: 0.9;
}

/* COOKIE MODAL */

.cookie-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cookie-modal-dialog {
  background: #111;
  color: #f5f5f5;
  max-width: 600px;
  width: 100%;
  border-radius: 16px;
  padding: 24px 24px 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}

.cookie-modal-dialog h3 {
  margin-top: 0;
  margin-bottom: 8px;
}

.cookie-modal-dialog p {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.cookie-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.cookie-option:last-of-type {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.cookie-option p {
  margin: 4px 0 0;
  font-size: 13px;
  color: #cccccc;
}

.cookie-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

/* SWITCH TOGGLE */

.switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 22px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #555;
  transition: .3s;
  border-radius: 22px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

.switch input:checked + .slider {
  background-color: #ff4d4d;
}

.switch input:checked + .slider:before {
  transform: translateX(20px);
}

/* 900px – layout prilagodba */

@media (max-width: 900px) {
  .hero-grid,
  .about-grid,
  .timeline,
  .contact-grid,
  .journal-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 2.5rem;
  }

  .hero-photo-card {
    max-width: 520px;
    margin: 0 auto;
  }

  .nav-links {
    display: none;
  }
}

/* 600px – sitne korekcije + forma + social */

@media (max-width: 600px) {
  .nav {
    padding: 0.6rem 0;
  }

  .hero {
    padding-bottom: 2rem;
  }

  section {
    padding: 2.5rem 0;
  }

  form {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .journal-image img {
    height: 190px;
  }

  .cookie-banner-content {
    padding: 18px 16px 14px;
  }

  .cookie-banner-buttons {
    justify-content: flex-start;
  }

  /* forma kompaktnija */
  .form-field {
    gap: 0.25rem;
  }

  input,
  textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    font-size: 0.9rem;
  }

  textarea {
    min-height: 120px;
    border-radius: 14px;
  }

  .contact-card {
    padding: 1.2rem 1rem;
    border-radius: 20px;
  }

  .contact-title {
    font-size: 1.35rem;
  }

  .contact-side {
    margin-top: 1.5rem;
    font-size: 0.92rem;
  }

  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 1.8rem;
  }

  /* social ikone malo manje na mobitelu */
  .social-icon {
    width: 28px;
    height: 28px;
    box-shadow: 0 6px 12px rgba(15,23,42,0.3);
  }

  .social-svg {
    width: 14px;
    height: 14px;
  }
  
}
/* MOBILNI NAVIGACIJSKI IZBORNIK + HERO FOTO KOREKCIJE */

@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .nav-left {
    width: 100%;
    justify-content: space-between;
  }

  .nav-links {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    justify-content: flex-start;
  }

  .nav-links a {
    font-size: 14px;
  }

  .nav-links .btn-primary {
    margin-left: 0;
    margin-top: 4px;
  }

  /* HERO na mobitelu – manja, bez “kutije” prije učitavanja */
  .hero-photo-card {
    max-width: 420px;      /* širina kao i do sada */
    margin: 0 auto;
    aspect-ratio: auto;    /* više nema fiksnog omjera na mobu */
  }

  .hero-photo-wrap {
    height: auto;
  }

  .hero-photo-wrap img {
    position: static;      /* neka se ponaša normalno, bez absolute */
    width: 100%;
    height: auto;
    transform: none;       /* bez zoom efekta na mobu */
  }
}
/* FIX ZA HERO NA MOBITELU – bez kvadrata i šarenog prelaza */
@media (max-width: 768px) {
  /* Isključi fade-out efekt na slici */
  #hero-image {
    transition: none !important;
    opacity: 1 !important;
  }

  #hero-image.fade-out {
    opacity: 1 !important;
  }

  /* Sakrij gradient overlay da se ne vidi šareni kvadrat dok mijenja sliku */
  .hero-gradient-overlay {
    display: none;
  }
}


