/* ==========================================
   GLOBALNO + PREHOD MED STRANMI
   ========================================== */

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: #fff;
  color: #222;
  overflow-x: hidden;
  opacity: 0;
  animation: pageFadeIn 0.8s ease forwards;
}

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

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

body.fade-out {
  animation: pageFadeOut 0.6s ease forwards;
}

/* ==========================================
   HEADER
   ========================================== */

header {
  background: linear-gradient(90deg, #b22222, #d33);
  padding: 15px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.logo img {
  width: 240px;
  height: auto;
  margin-bottom: 10px;
  animation: fadeInLogo 1.2s ease-out;
}

nav a {
  color: white;
  margin: 0 15px;
  text-decoration: none;
  font-weight: 600;
  position: relative;
  transition: color 0.3s ease;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: white;
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* ==========================================
   HERO – CINEMATIC + PARALLAX
   ========================================== */

.hero {
  height: 50vh;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  position: relative;
  animation: heroFadeIn 1.5s ease-out forwards;
  opacity: 0;
}

@keyframes heroFadeIn {
  0% { opacity: 0; transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1); }
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(0,0,0,0.85),
    rgba(0,0,0,0.80),
    rgba(0,0,0,0.75)
  );
  animation: heroOverlayFade 1.8s ease-out forwards;
  opacity: 0;
}

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

.hero-text {
  position: relative;
  z-index: 2;
  animation: fadeInUp 1.2s ease-out;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 10px;
}

.hero p {
  font-size: 20px;
  margin-bottom: 20px;
}

.btn {
  background: #fff;
  color: #b22222;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.btn:hover {
  background: #b22222;
  color: #fff;
}

/* ==========================================
   VSEBINA
   ========================================== */

.content {
  max-width: 900px;
  margin: auto;
  padding: 40px 20px;
  text-align: center;
  animation: fadeInUp 1s ease-out;
}

/* ==========================================
   GALERIJA
   ========================================== */

.gallery {
  background: #f9f9f9;
  padding: 40px 20px;
  text-align: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.gallery-grid img {
  width: 100%;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* ==========================================
   CENIK – PREMIUM DIZAJN
   ========================================== */

.pricing-section {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
  text-align: center;
}

.pricing-section h1 {
  font-size: 36px;
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease-out;
}

.pricing-category {
  margin-top: 40px;
  text-align: left;
}

.pricing-category h2 {
  font-size: 26px;
  margin-bottom: 10px;
  border-left: 5px solid #b22222;
  padding-left: 10px;
  animation: fadeInUp 0.8s ease-out;
}

.item-opis {
  font-size: 0.9rem;
  color: #555;
  margin-top: 4px;
  line-height: 1.3;
}

/* ==========================================
   TABELA
   ========================================== */

.pricing-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 10px;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(6px);
  border-radius: 10px;
  overflow: hidden;
  animation: fadeInUp 1s ease-out;
}

/* Glava tabele – vedno rdeča */
.pricing-table thead th {
  background: #b22222;
  color: white;
  font-weight: bold;
  padding: 14px;
  border-bottom: 2px solid #8b1a1a;
}

/* Zaobljeni zgornji robovi */
.pricing-table thead th:first-child {
  border-top-left-radius: 10px;
}

.pricing-table thead th:last-child {
  border-top-right-radius: 10px;
}

/* Celice */
.pricing-table th,
.pricing-table td {
  padding: 12px;
  font-size: 16px;
  border-bottom: 1px solid #ddd;
  border-right: 1px solid #e5e5e5;
}

.pricing-table th:last-child,
.pricing-table td:last-child {
  border-right: none;
}

/* Hover samo za vrstice, ne za glavo */
.pricing-table tbody tr:hover {
  background: rgba(178,34,34,0.08);
  transition: 0.3s;
}

/* Poravnave stolpcev */
.pricing-table th:nth-child(1),
.pricing-table td:nth-child(1) {
  text-align: left;
}

.pricing-table th:nth-child(2),
.pricing-table th:nth-child(3),
.pricing-table td:nth-child(2),
.pricing-table td:nth-child(3) {
  text-align: right;
}

/* Cena */
.price {
  text-align: right;
  font-weight: bold;
  color: #b22222;
}

/* Splošne nastavitve ikon */
.icon {
  font-size: 22px;
  margin-right: 8px;
  vertical-align: middle;
}

/* Ikone kategorij */
.icon-pizza::before { content: "🍕"; }
.icon-food::before { content: "🍽️"; }
.icon-dessert::before { content: "🍰"; }
.icon-salad::before { content: "🥗"; }
.icon-drink::before { content: "🥤"; }
.icon-hotdrink::before { content: "☕"; }
.icon-softdrink::before { content: "🧃"; }
.icon-beer::before { content: "🍺"; }
.icon-liquor::before { content: "🥃"; }
.icon-allergen::before { content: "⚠️"; }
.icon-addons::before { content: "➕"; }
.icon-wine::before { content: "🍷"; }

/* ==========================================
   ZEMLJEVID IN KONTAKTI
   ========================================== */

.map-container {
  margin-top: 20px;
  margin-bottom: 30px;
  overflow: hidden;
  border-radius: 10px;
}

.contact-buttons {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.contact-buttons a {
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  width: fit-content;
  display: inline-block;
}

.btn-call {
  background: #28a745;
  color: white;
}

.btn-email {
  background: #007bff;
  color: white;
}

/* Status obratovanja */
.status-trenutno {
  text-align: center;
  font-size: 1rem;
  margin-bottom: 8px;
  color: #555555;
}

.status-trenutno .odprto {
  color: #4ade80;
  font-weight: 700;
}

.status-trenutno .zaprto {
  color: #ef4444;
  font-weight: 700;
}

/* Dekorativna črta hr */
hr.style-seven {
  overflow: visible;
  height: 30px;
  border-style: solid;
  border-color: black;
  border-width: 1px 0 0 0;
  border-radius: 20px;
}

hr.style-seven:before {
  display: block;
  content: "";
  height: 30px;
  margin-top: -31px;
  border-style: solid;
  border-color: black;
  border-width: 0 0 1px 0;
  border-radius: 20px;
}

/* ==========================================
   ANIMACIJE
   ========================================== */

@keyframes fadeInLogo {
  0% { opacity: 0; transform: translateY(-20px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ==========================================
   FOOTER
   ========================================== */

footer {
  background: linear-gradient(90deg, #8b1a1a, #b22222);
  color: white;
  margin-top: 60px;
  padding-top: 40px;
  animation: fadeInUp 1s ease-out;
  box-shadow: 0 -3px 10px rgba(0,0,0,0.3);
}

.footer-content {
  max-width: 1100px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  padding: 0 20px 30px 20px;
  flex-wrap: wrap;
}

.footer-col {
  width: 30%;
  min-width: 220px;
  margin-bottom: 20px;
}

.footer-col h3 {
  margin-bottom: 10px;
  font-size: 20px;
  border-left: 4px solid #fff;
  padding-left: 10px;
}

.footer-col p {
  margin: 5px 0;
  font-size: 15px;
  opacity: 0.9;
}

.footer-bottom {
  text-align: center;
  padding: 15px;
  background: rgba(0,0,0,0.15);
  font-size: 14px;
  border-top: 1px solid rgba(255,255,255,0.2);
}

/* ==========================================
   MEDIA QUERIES (MOBILNE NAPRAVE)
   ========================================== */

/* Tablične naprave do 768px */
@media (max-width: 768px) {
  .hero {
    background-attachment: scroll;
  }
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 16px; }
  nav a { display: block; margin: 10px 0; }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  .footer-col {
    width: 100%;
  }
}

/* Pametni telefoni do 700px (Združeni vsi popravki za tabele in gumbe) */
@media (max-width: 700px) {
  html, body {
    font-size: 20px !important;
    line-height: 1.6 !important;
    -webkit-text-size-adjust: none !important;
  }

  /* Naslovi */
  h1 { font-size: 30px !important; }
  h2 { font-size: 26px !important; }
  h3 { font-size: 22px !important; }

  /* Navigacija */
  nav a {
    font-size: 20px !important;
    padding: 12px !important;
  }

  /* Gumbi */
  .contact-buttons a {
    font-size: 18px;
    padding: 12px 20px;
  }

  /* Skrij klasično glavo tabele */
  .pricing-table thead {
    display: none;
  }

  /* Preoblikovanje tabele v kartice */
  table {
    width: 100% !important;
    table-layout: fixed !important;
  }

  .pricing-table tr {
    display: block;
    margin-bottom: 18px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    overflow: hidden;
  }

  /* Rdeči zglavnik kartice (Naziv + Opis) */
.pricing-table .item-header {
  background: #fff; /* Spremenjeno iz #b22222 */
  color: #222;      /* Spremenjeno iz #fff */
  padding: 12px;
  border-radius: 8px 8px 0 0;
  margin: 0;
}

.pricing-table .item-header strong,
.pricing-table .item-header .item-opis {
  color: #222 !important; /* Spremenjeno iz #fff */
}

  /* Navadne celice v kartici */
  .pricing-table td {
    background: #fff !important;
    display: block;
    width: 100%;
    padding: 10px 12px !important;
    font-size: 18px;
    border: none !important;
    text-align: left !important;
    color: inherit;
  }

  /* Izpis data-label */
/* Rdeča značka SAMO za Sladice: */
.pricing-table .item-header::before {
  ccontent: attr(data-label) ": ";
  font-weight: bold;
  background: #b22222;
  color: white;
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}











/* Posebna prilagoditev za ceno na mobilnikih */
.pricing-table td.price {
  display: block !important;
  text-align: right !important; /* Vse vsebine (znesek + €) potisne desno */
  font-weight: bold;
  color: #b22222 !important;
  font-size: 18px;
  padding: 10px 12px !important;
  width: 100% !important;
  box-sizing: border-box;
}

/* Napis "Cena:" odplava povsem na levo stran */
.pricing-table td.price::before {
  content: attr(data-label) ": ";
  float: left; /* To stabilno potisne tekst na levo brez prekrivanja */
  font-weight: bold;
  color: #444;
}

/* Znak € se zalepi tik ob znesek na desni */
.pricing-table td.price::after {
  ccontent: " €";
  font-weight: bold;
  color: #b22222;
}











/* Standardni izgled za vse ostale oznake (npr. Cena:), ki ostanejo na beli podlagi */
.pricing-table td:not(.item-header)::before {
  content: attr(data-label) ": ";
  font-weight: bold;
  color: #444;
  display: block;
  margin-bottom: 2px;
  background: none; /* Odstrani rdeče ozadje */
  padding: 0;
}

  /* Posebna prilagoditev za ceno na mobilnikih */
  .pricing-table td.price {
    font-weight: bold;
    color: #b22222 !important;
    font-size: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0;
  }

  /* Footer elementi na mobilnikih */
  footer p,
  footer h3 {
    font-size: 20px !important;
  }

  .footer-bottom {
    font-size: 18px !important;
  }
}

/* Manjše mobilne naprave do 600px */
@media (max-width: 600px) {
  .pricing-category h2 { font-size: 22px; }
  .pricing-section h1 { font-size: 28px; }
  .icon { font-size: 26px; }
}