/* Responsive pagination for gallery */
#gallery-pagination {
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
  justify-content: center;
  align-items: center;
}

#gallery-pagination button {
  min-width: 44px;
  min-height: 44px;
  font-size: 1.1rem;
  margin: 0.15rem;
  border: none;
  outline: none;
  box-shadow: 0 1px 2px rgba(0,0,0,0.07);
  transition: background 0.2s, color 0.2s, transform 0.1s;
}

@media (max-width: 600px) {
  #gallery-pagination {
    position: sticky;
    bottom: 0;
    background: #fff;
    z-index: 100;
    padding: 0.5rem 0 0.5rem 0;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.07);
    margin-bottom: 0;
  }
  #gallery-pagination button {
    min-width: 38px;
    min-height: 38px;
    font-size: 1rem;
    margin: 0.1rem;
  }
}
/* Osnovni stilovi */
body {
  font-family: 'Open Sans', sans-serif;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Poppins', sans-serif;
}

/* Hero sekcija */
.hero-bg {
  background-image: url('./Images/hero-bg.webp');
  background-attachment: scroll;
  background-position: center;
  background-size: cover;
}

/* Navigacija */
nav {
  z-index: 1002;
}

#desktop-menu {
  display: flex;
}

#mobile-menu {
  display: none;
  /* Remove transform so only .hidden controls visibility */
}

#mobile-menu:not(.hidden) {
  display: block;
}

#mobile-menu ul {
  flex-direction: column;
  align-items: flex-start;
}

#mobile-menu a {
  font-size: 1.2rem;
  padding: 0.5rem 0;
  display: block;
  width: 100%;
}

#mobile-menu-close {
  font-size: 1.5rem;
}

/* Modal za galeriju */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal.show {
  display: flex;
}

.modal img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
}

/* Close, prev, next dugmad za galeriju modal */
.modal .relative {
  position: relative;
  display: inline-block;
}

.close {
  position: absolute;
  top: 5px;
  right: 5px;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.close:hover {
  background: rgba(0, 0, 0, 1);
}

.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.7);
  padding: 0.5rem;
  border-radius: 50%;
}

.prev:hover, .next:hover {
  background: rgba(0, 0, 0, 1);
}

.prev {
  left: 0;
}

.next {
  right: 0;
}

/* Modal za eksterni link */
#external-link-modal {
  transition: opacity 0.3s ease;
  z-index: 1000 !important;
}

#external-link-modal.hidden {
  display: none !important;
}

#external-link-modal:not(.hidden) {
  display: flex !important;
  opacity: 1;
}

#external-link-modal .bg-white {
  animation: fadeIn 0.3s ease-out;
  max-width: 90%;
}

/* Animacije */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 1s ease-out forwards;
}

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

.hover-glow {
  transition: all 0.3s ease;
}

.hover-glow:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
}

.logo-pulse {
  animation: pulse 2s infinite;
}

.icon-pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/* Skaliranje slika za Lasersko sečenje i Graviranje */
.max-w-md {
  max-width: 100%;
  max-height: 300px;
  object-fit: cover;
}

/* 2x2 mreža za Personalizovane poklone */
.gift-gallery img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  cursor: pointer;
}

/* Cookie Consent Banner */
#cookie-consent {
  z-index: 1001 !important;
  padding: 1rem;
}

#cookie-consent p {
  font-size: 0.9rem;
}

#cookie-consent button {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

/* TikTok Feed */
#tiktok-feed-container {
  overflow-x: hidden;
}

#sk-tiktok-feed {
  max-width: 100%;
  overflow-x: hidden;
}

/* Footer */
.social-icons a {
  font-size: 1.5rem;
}

/* Privacy Policy stilovi */
.privacy-policy {
  line-height: 1.6;
}

.privacy-policy ul {
  margin-bottom: 1.5rem;
}

.privacy-policy li {
  margin-bottom: 0.5rem;
}

.privacy-policy a {
  transition: color 0.3s ease;
}

/* Kontakt stranica stilovi */
#contact-form input,
#contact-form textarea {
  transition: all 0.3s ease;
  width: 100%;
  padding: 0.5rem;
}

#contact-form input:focus,
#contact-form textarea:focus {
  border-color: #16a34a;
}

#form-message.text-green-600 {
  color: #16a34a;
}

#form-message.text-red-600 {
  color: #dc2626;
}

/* Galerija */
#gallery img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  cursor: pointer;
}

/* Responsive dizajn */
@media (max-width: 768px) {
  /* Hero sekcija */
  .hero-bg {
    background-attachment: scroll;
    height: 80vh;
  }

  .hero-bg h1 {
    font-size: 2.5rem;
  }

  .hero-bg p {
    font-size: 1rem;
  }

  .hero-bg a {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }

  /* Navigacija */
  #desktop-menu {
    display: none;
  }

  #mobile-menu-btn {
    display: block;
  }

  /* Sekcije */
  section {
    padding: 2rem 0;
  }

  section h2 {
    font-size: 1.75rem;
  }

  section p {
    font-size: 0.9rem;
  }

  section a, section button {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }

  /* Modal za galeriju */
  .modal img {
    max-width: 95%;
    max-height: 80vh;
  }

  .close {
    top: 5px;
    right: 5px;
    font-size: 1.25rem;
    width: 28px;
    height: 28px;
  }

  .prev, .next {
    font-size: 1.25rem;
    padding: 0.4rem;
  }

  .prev {
    left: 0;
  }

  .next {
    right: 0;
  }

  /* Modal za eksterni link */
  #external-link-modal .bg-white {
    max-width: 95%;
    padding: 1rem;
  }

  #external-link-modal h2 {
    font-size: 1.5rem;
  }

  #external-link-modal p {
    font-size: 0.9rem;
  }

  #external-link-modal a, #external-link-modal button {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  /* TikTok Feed */
  #sk-tiktok-feed {
    max-width: 100%;
  }

  /* Footer */
  .social-icons a {
    font-size: 1.75rem;
    margin: 0 0.5rem;
  }

  footer p {
    font-size: 0.85rem;
  }

  /* Galerija */
  #gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  #gallery img {
    height: 120px;
  }

  .gift-gallery img {
    height: 120px;
  }

  /* Kontakt forma */
  #contact-form h1 {
    font-size: 1.75rem;
  }

  #contact-form h2 {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .hero-bg h1 {
    font-size: 2rem;
  }

  .hero-bg p {
    font-size: 0.9rem;
  }

  #cookie-consent p {
    font-size: 0.8rem;
  }

  #cookie-consent button {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }

  #gallery {
    grid-template-columns: 1fr;
  }
}