/* ===========================
   MLADICA - STYLE.CSS
   Zeleno & Rumena tema
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Nunito:wght@400;600;700;800&display=swap');

/* ---- CSS SPREMENLJIVKE ---- */
:root {
  --zelena: #2d6a2d;
  --zelena-temna: #1a4a1a;
  --zelena-svetla: #4a9a4a;
  --zelena-nežna: #e8f5e8;
  --rumena: #f5c800;
  --rumena-temna: #d4a800;
  --rumena-svetla: #fff9d6;
  --bela: #ffffff;
  --siva: #f4f4f4;
  --temna: #1a1a1a;
  --senca: 0 4px 20px rgba(0,0,0,0.12);
  --senca-strong: 0 8px 40px rgba(0,0,0,0.2);
  --border-radius: 16px;
}

/* ---- RESET ---- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', sans-serif;
  background: var(--bela);
  color: var(--temna);
  overflow-x: hidden;
}

/* ---- NAVIGACIJA ---- */
nav {
  background: var(--zelena-temna);
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 16px rgba(0,0,0,0.25);
  min-height: 70px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo-icon {
  width: 44px;
  height: 44px;
  background: var(--rumena);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.nav-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--bela);
  line-height: 1.1;
}

.nav-logo-text span {
  color: var(--rumena);
}

.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  color: var(--bela);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 10px 20px;
  border-radius: 50px;
  transition: all 0.25s ease;
  letter-spacing: 0.3px;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--rumena);
  color: var(--zelena-temna);
}

/* ---- STRANI (page system) ---- */
.page {
  display: none;
  animation: fadeIn 0.4s ease;
}

.page.active {
  display: block;
}

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

/* ---- HERO BANNER ---- */
.hero {
  background: linear-gradient(135deg, var(--zelena-temna) 0%, var(--zelena) 50%, var(--zelena-svetla) 100%);
  color: var(--bela);
  padding: 80px 40px 60px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(245,200,0,0.15) 0%, transparent 60%);
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  background: var(--rumena);
  color: var(--zelena-temna);
  font-weight: 800;
  font-size: 0.8rem;
  padding: 6px 18px;
  border-radius: 50px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  margin-bottom: 16px;
  line-height: 1.15;
}

.hero h1 span {
  color: var(--rumena);
}

.hero p {
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 30px;
  opacity: 0.92;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
}

.hero-stat strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--rumena);
}

.hero-stat span {
  font-size: 0.85rem;
  opacity: 0.85;
}

/* ---- SEKCIJA NASLOV ---- */
.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--zelena-temna);
  margin-bottom: 10px;
}

.section-title p {
  color: #555;
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

.section-title .underline {
  width: 60px;
  height: 4px;
  background: var(--rumena);
  border-radius: 4px;
  margin: 14px auto 0;
}

/* ---- SEKCIJE ---- */
section {
  padding: 70px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

section.full-width {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

section.bg-siva {
  background: var(--siva);
  max-width: 100%;
  padding-left: 40px;
  padding-right: 40px;
}

section.bg-zelena {
  background: var(--zelena-nežna);
  max-width: 100%;
  padding-left: 40px;
  padding-right: 40px;
}

/* ---- SLIKE GALERIJA ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.gallery-card {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--senca);
  background: var(--bela);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--senca-strong);
}

.gallery-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.gallery-card-caption {
  padding: 14px 18px;
  font-weight: 700;
  color: var(--zelena-temna);
  font-size: 0.95rem;
}

/* ---- EKIPA / ŠEFI ---- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  max-width: 700px;
  margin: 0 auto;
}

.team-card {
  background: var(--bela);
  border-radius: var(--border-radius);
  padding: 36px 24px 28px;
  text-align: center;
  box-shadow: var(--senca);
  border-top: 5px solid var(--rumena);
  transition: transform 0.3s ease;
}

.team-card:hover {
  transform: translateY(-6px);
}

.team-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  display: block;
  border: 4px solid var(--zelena-svetla);
}

.team-avatar-placeholder {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--zelena), var(--zelena-svetla));
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  border: 4px solid var(--rumena);
}

.team-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--zelena-temna);
  margin-bottom: 6px;
}

.team-card p {
  color: #777;
  font-size: 0.88rem;
}

.team-role-badge {
  display: inline-block;
  background: var(--rumena-svetla);
  color: var(--zelena-temna);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 50px;
  margin-top: 10px;
  border: 1px solid var(--rumena);
}

/* ---- GOOGLE ZEMLJEVID ---- */
.map-wrapper {
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--senca-strong);
  border: 4px solid var(--zelena-svetla);
}

.map-wrapper iframe {
  width: 100%;
  height: 420px;
  display: block;
  border: none;
}

/* ---- KONTAKT STRAN ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
  align-items: start;
}

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

.contact-info-box {
  background: var(--zelena-temna);
  color: var(--bela);
  border-radius: var(--border-radius);
  padding: 40px 36px;
}

.contact-info-box h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--rumena);
  margin-bottom: 28px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-icon {
  width: 44px;
  height: 44px;
  background: rgba(245,200,0,0.18);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  border: 2px solid var(--rumena);
}

.contact-item-text strong {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--rumena);
  margin-bottom: 4px;
}

.contact-item-text a,
.contact-item-text span {
  color: var(--bela);
  text-decoration: none;
  font-size: 1rem;
  line-height: 1.5;
  transition: color 0.2s;
}

.contact-item-text a:hover {
  color: var(--rumena);
}

.contact-hours-box {
  background: var(--bela);
  border-radius: var(--border-radius);
  padding: 40px 36px;
  box-shadow: var(--senca);
  border-left: 6px solid var(--rumena);
}

.contact-hours-box h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--zelena-temna);
  margin-bottom: 24px;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px dashed #ddd;
  font-size: 0.95rem;
}

.hours-row:last-child { border-bottom: none; }

.hours-row .day { font-weight: 700; color: var(--zelena-temna); }
.hours-row .time { color: #444; }
.hours-row.closed .time { color: #c00; font-weight: 700; }

/* ---- OCENE STRAN ---- */
.rating-hero {
  background: linear-gradient(135deg, var(--zelena) 0%, var(--zelena-svetla) 100%);
  color: white;
  padding: 50px 40px;
  text-align: center;
}

.rating-hero h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  margin-bottom: 16px;
}

.big-rating {
  font-size: 5rem;
  font-weight: 900;
  color: var(--rumena);
  line-height: 1;
  font-family: 'Playfair Display', serif;
}

.big-stars {
  font-size: 2rem;
  color: var(--rumena);
  letter-spacing: 4px;
  margin: 10px 0;
}

.rating-count {
  opacity: 0.9;
  font-size: 0.9rem;
}

/* Dodaj oceno forma */
.add-review-card {
  background: var(--bela);
  border-radius: var(--border-radius);
  padding: 40px;
  box-shadow: var(--senca);
  max-width: 700px;
  margin: 0 auto 60px;
  border-top: 5px solid var(--zelena);
}

.add-review-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--zelena-temna);
  margin-bottom: 24px;
}

.star-picker {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-direction: row-reverse;
  justify-content: flex-end;
}

.star-picker input {
  display: none;
}

.star-picker label {
  font-size: 2.2rem;
  color: #ccc;
  cursor: pointer;
  transition: color 0.15s, transform 0.15s;
}

.star-picker input:checked ~ label,
.star-picker label:hover,
.star-picker label:hover ~ label {
  color: var(--rumena);
  transform: scale(1.15);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--zelena-temna);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.2s;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--zelena-svetla);
}

.btn-submit {
  background: var(--zelena);
  color: var(--bela);
  border: none;
  padding: 14px 36px;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.25s;
  letter-spacing: 0.5px;
}

.btn-submit:hover {
  background: var(--zelena-temna);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(45,106,45,0.35);
}

/* Komentarji */
.reviews-list {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.review-card {
  background: var(--bela);
  border-radius: var(--border-radius);
  padding: 28px 32px;
  box-shadow: var(--senca);
  border-left: 5px solid var(--rumena);
  transition: transform 0.2s;
}

.review-card:hover {
  transform: translateX(4px);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.reviewer-name {
  font-weight: 800;
  color: var(--zelena-temna);
  font-size: 1rem;
}

.review-date {
  font-size: 0.8rem;
  color: #999;
}

.review-stars {
  color: var(--rumena);
  font-size: 1.1rem;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.review-text {
  color: #555;
  line-height: 1.65;
  font-size: 0.95rem;
}

.success-msg {
  display: none;
  background: #e8f5e8;
  border: 2px solid var(--zelena-svetla);
  border-radius: 10px;
  padding: 16px 20px;
  color: var(--zelena-temna);
  font-weight: 700;
  margin-top: 16px;
  text-align: center;
}

/* ---- FOOTER ---- */
footer {
  background: var(--zelena-temna);
  color: var(--bela);
  text-align: center;
  padding: 36px 40px;
  margin-top: 0;
}

footer .footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--rumena);
  margin-bottom: 10px;
}

footer p {
  opacity: 0.75;
  font-size: 0.88rem;
  margin-bottom: 6px;
}

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

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  nav {
    padding: 0 20px;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 6px;
  }

  .nav-links a {
    padding: 8px 14px;
    font-size: 0.85rem;
  }

  .hero {
    padding: 50px 20px 40px;
  }

  section {
    padding: 50px 20px;
  }

  section.bg-siva,
  section.bg-zelena {
    padding-left: 20px;
    padding-right: 20px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .add-review-card {
    padding: 24px 20px;
  }
}

/* =============================================
   COOKIE BANNER
   ============================================= */

/* Overlay */
.cookie-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9998;
  backdrop-filter: blur(3px);
  animation: fadeInOverlay 0.3s ease;
}
.cookie-overlay.visible { display: block; }

@keyframes fadeInOverlay {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Banner container */
.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 16px 20px;
  animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cookie-banner.visible { display: block; }

@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* Inner card */
.cookie-banner-inner {
  background: #ffffff;
  border-radius: 20px 20px 0 0;
  padding: 32px 36px 24px;
  max-width: 860px;
  margin: 0 auto;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.18);
  border-top: 5px solid var(--zelena);
  max-height: 90vh;
  overflow-y: auto;
}

/* Header */
.cookie-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.cookie-icon { font-size: 2rem; }
.cookie-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--zelena-temna);
  margin: 0;
}

/* Intro text */
.cookie-intro {
  font-size: 0.92rem;
  color: #444;
  line-height: 1.65;
  margin-bottom: 22px;
}

/* Kategorije */
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.cookie-category {
  background: var(--siva);
  border-radius: 12px;
  padding: 16px 18px;
  border-left: 4px solid var(--zelena-svetla);
}

.cookie-category--required {
  border-left-color: var(--rumena);
  background: var(--rumena-svetla);
}

.cookie-cat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.cookie-cat-info {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.cookie-cat-icon { font-size: 1.4rem; flex-shrink: 0; }

.cookie-cat-info strong {
  display: block;
  font-size: 0.95rem;
  color: var(--zelena-temna);
  font-weight: 800;
}

.cookie-cat-desc {
  font-size: 0.78rem;
  color: #777;
  display: block;
  margin-top: 2px;
}

.cookie-cat-text {
  font-size: 0.83rem;
  color: #555;
  line-height: 1.55;
  margin: 0;
}

/* Toggle switch */
.cookie-toggle {
  flex-shrink: 0;
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.toggle-slider {
  display: block;
  width: 48px;
  height: 26px;
  background: #ccc;
  border-radius: 50px;
  position: relative;
  transition: background 0.25s;
}

.toggle-slider::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  transition: transform 0.25s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.cookie-toggle input:checked + .toggle-slider {
  background: var(--zelena);
}

.cookie-toggle input:checked + .toggle-slider::after {
  transform: translateX(22px);
}

.cookie-toggle--locked {
  cursor: not-allowed;
  opacity: 0.7;
}

.toggle-lock { font-size: 1.2rem; }

/* Pravna osnova – details/summary */
.cookie-legal {
  background: #f0f7f0;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 20px;
  border: 1px solid #c8e6c8;
}

.cookie-legal summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--zelena-temna);
  list-style: none;
  user-select: none;
}

.cookie-legal summary::-webkit-details-marker { display: none; }
.cookie-legal summary::before { content: '▶ '; font-size: 0.75rem; }
.cookie-legal[open] summary::before { content: '▼ '; }

.cookie-legal-content {
  margin-top: 12px;
  font-size: 0.82rem;
  color: #555;
  line-height: 1.6;
}
.cookie-legal-content p { margin-bottom: 8px; }
.cookie-legal-content p:last-child { margin-bottom: 0; }

/* Footer gumbi */
.cookie-footer {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.cookie-btn {
  padding: 11px 24px;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.22s;
  white-space: nowrap;
}

.cookie-btn--primary {
  background: var(--zelena);
  color: white;
  border-color: var(--zelena);
}
.cookie-btn--primary:hover {
  background: var(--zelena-temna);
  border-color: var(--zelena-temna);
  transform: translateY(-2px);
}

.cookie-btn--secondary {
  background: var(--rumena);
  color: var(--zelena-temna);
  border-color: var(--rumena);
}
.cookie-btn--secondary:hover {
  background: var(--rumena-temna);
  border-color: var(--rumena-temna);
  transform: translateY(-2px);
}

.cookie-btn--outline {
  background: transparent;
  color: #666;
  border-color: #ccc;
}
.cookie-btn--outline:hover {
  border-color: var(--zelena-svetla);
  color: var(--zelena-temna);
}

/* Opomba spodaj */
.cookie-note {
  font-size: 0.78rem;
  color: #999;
  text-align: center;
  margin: 0;
}

.cookie-link-btn {
  background: none;
  border: none;
  color: var(--zelena);
  font-size: inherit;
  font-family: inherit;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}
.cookie-link-btn:hover { color: var(--zelena-temna); }

/* Map blocked message */
.map-blocked {
  padding: 30px;
  text-align: center;
  background: #f9f9f9;
  color: #555;
  font-size: 0.95rem;
  font-weight: 600;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
  .cookie-banner-inner {
    padding: 22px 18px 18px;
    border-radius: 16px 16px 0 0;
  }
  .cookie-title { font-size: 1.2rem; }
  .cookie-footer {
    flex-direction: column;
  }
  .cookie-btn { width: 100%; text-align: center; }
}
