html, body {
  overscroll-behavior: none;
  touch-action: pan-x; /* permite doar swipe orizontal */
  overflow-x: hidden;
  overflow-y: hidden;
  height: 100%;
}
body.no-scroll {
  overflow: hidden !important;
  height: 100vh;
  touch-action: none; /* opțional pentru mobil */
}


/* Stil general */
body {
  margin: 0;
  background-color: #000;
  color: #fff;
  font-family: 'Segoe UI', sans-serif;
  overflow: hidden;
}
#mediaDisplay {
  position: relative;
  overflow: hidden;
  overflow-x: hidden;
}

.media-slider {
  display: flex;
  transition: transform 0.4s ease;
  width: 100%;
  height: 100%;
}

.media-slide {
  min-width: 100%;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.media-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 16px;
  scroll-behavior: smooth;
}

.carousel-item {
  flex: 0 0 100%;
  scroll-snap-align: center;
  position: relative;
  transition: transform 0.3s ease;
}


html, body {
  overflow: hidden;
  height: 100%;
  margin: 0;
  padding: 0;
  touch-action: pan-y; /* permite scroll doar pe verticală dacă e nevoie */
}

/* === Navbar Sticky – Stil actualizat === */
/* === Navbar din index – replicat complet === */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
  background: linear-gradient(to bottom, rgba(5, 0, 36, 0.742),rgba(6, 0, 37, 0.742),rgba(8, 0, 53, 0.742), rgba(8, 0, 53, 0.742));
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.74);
}


/* --- LOGO STÂNGA --- */
/* === STRUCTURĂ GENERALĂ === */
/* === FONT === */
@font-face {
  font-family: 'Decalotype';
  src: url('assets/fonts/Decalotype-Regular.ttf') format('truetype');
  font-weight: 400;
}
@font-face {
  font-family: 'DecalotypeL';
  src: url('assets/fonts/Decalotype-Light.ttf') format('truetype');
  font-weight: 700;
}
@font-face {
  font-family: 'DecalotypeM';
  src: url('assets/fonts/Decalotype-Medium.ttf') format('truetype');
  font-weight: 800;
}

.navbar,
.navbar * {
  font-family: 'DecalotypeL', sans-serif !important;
  box-sizing: border-box;
}

/* === CONTAINER NAVBAR === */
.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1830px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 60px;
  width: 100%;
}

/* === CENTRARE MENIU === */
.navbar-center {
  flex: 2;
  display: flex;
  justify-content: center;
}

/* === MENIU === */
.nav-menu {
  list-style: none;
  display: flex;
  gap: 2rem;
  padding: 0;
  margin: 0;
}

.nav-menu li a {
  font-weight: normal;
  font-size: 27px;
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-menu li a.active,
.nav-menu li a:hover {
  color: #ffffff;
  text-decoration: none;
}

.navbar.scrolled .nav-menu li a {
  color: #ffffff;
}

/* === LOGO === */
.logo {
  height: 100px;
}

/* === ICONIȚE DREAPTA === */
.navbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.navbar-right a img {
  height: 35px;
  transition: transform 0.2s ease;
}

.navbar-right a:hover img {
  transform: scale(1.2);
}


/* Player central overlay */
.media-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #220000 0%, #000 100%);
  z-index: 1;
}

.media-display {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.media-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}


.media-display img,
.media-display video,
.media-display iframe {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
}

.media-wrapper {
  opacity: 0;
  transform: translateX(0);
  animation: none;
  transition: transform 0.4s ease, opacity 0.4s ease;
  will-change: transform;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-wrapper.enter-left {
  animation: enter-left 0.5s ease forwards;
}

.media-wrapper.enter-right {
  animation: enter-right 0.5s ease forwards;
}

@keyframes enter-left {
  from {
    opacity: 0;
    transform: translateX(-80px) rotateY(-8deg) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateX(0) rotateY(0deg) scale(1);
  }
}

@keyframes enter-right {
  from {
    opacity: 0;
    transform: translateX(80px) rotateY(8deg) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateX(0) rotateY(0deg) scale(1);
  }
}


/* Carusel media jos */
.media-carousel {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(0, 0, 0, 0.85);
  overflow-x: auto;
  z-index: 3;
}


.media-carousel::-webkit-scrollbar {
  height: 6px;
}
.media-carousel::-webkit-scrollbar-thumb {
  background-color: #c00;
  border-radius: 3px;
}

.carousel-item {
  position: relative;
  flex: 0 0 auto;
  width: 220px;
  height: 124px;
  cursor: pointer;
  overflow: hidden;
  border: 2px solid transparent;
  transition: transform 0.3s ease, border 0.3s ease;
}
.carousel-item:hover {
  transform: scale(1.06);
  border: 2px solid #c00;
}

.carousel-item img,
.carousel-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-item.active {
  outline: 3px solid #ffd700;
  outline-offset: -3px;
  border-radius: 0px;
}


/* Info box pe hover – scurtă, trunchiată */
.item-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  color: white;
  padding: 0.5rem 0.75rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.carousel-item:hover .item-info {
  opacity: 1;
  pointer-events: auto;
}

.item-info h3 {
  font-size: 0.9rem;
  margin: 0 0 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-info p {
  font-size: 0.75rem;
  margin: 0;
  color: #ccc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Săgeți navigare */
/* Stil general pentru săgeți */
.arrow {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: white;
  cursor: pointer;
  z-index: 10;
  user-select: none;
  transition: background 0.3s ease, transform 0.2s ease;
  pointer-events: auto;
}

.arrow:focus,
.arrow:active {
  outline: none !important;
  box-shadow: none !important;
}
/* Eliminare chenar albastru doar pe mobil */
@media (max-width: 768px) {
  .arrow:focus {
    outline: none !important;
    box-shadow: none !important;
  }

  .arrow {
    -webkit-tap-highlight-color: transparent;
  }
  .arrow-left,
.arrow-right {
  -webkit-tap-highlight-color: transparent;
}

}
.arrow,
.arrow:focus,
.arrow:active {
  outline: none !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent;
}


/* Fade invers corect: întunecat spre interior */

.left-arrow {
  left: 0;
 /* background: linear-gradient(to right, rgba(0, 0, 0, 0.6), transparent); */
}

.right-arrow {
  right: 0;
  /*background: linear-gradient(to left, rgba(0, 0, 0, 0.6), transparent); */
}

.arrow:hover {
  transform: scale(1.15);
  color: red;
}

@media (hover: none) and (pointer: coarse) {
  .thumb:hover,
  .arrow:hover,
  .media-info-box:hover {
    background: none !important;
    transform: none !important;
  }
}

/* Info box jos-stanga */
.media-info-box {
  position: absolute;
  bottom: 140px;
  left: 100px;
  background: rgba(0, 0, 0, 0.6);
  padding: 1rem;
  max-width: 450px;
  border-left: 4px solid #c00;
  border-radius: 0px;
  z-index: 4;
}

.media-info-box h3 {
  font-size: 2.1rem;
  margin: 0 0 0.5rem;
  color: white;
}

.media-info-box p {
  font-size: 1.5rem;
  color: #ccc;
  margin: 0;
}

.media-background {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
  background-size: 180%;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  filter: blur(300px) brightness(0.4);
  transition: background-image 0.5s ease;
}
.media-background::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.087), rgba(0, 0, 0, 0.219));
  z-index: 1;
  pointer-events: none;
}

.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}

.gallery-filters button {
  width: 100px; /* dimensiune fixă */
  height: 35px; /* înălțime fixă */
  padding: 0; /* eliminăm variațiile */
  background: #222;
  color: white;
  border: 1px solid #c00;
  cursor: pointer;
  border-radius: 0px;
  transition: background 0.3s ease;
  font-size: 0.85rem;
  text-align: center;
  flex-shrink: 0; /* previne micșorarea */
}
.gallery-filters button:hover,
.gallery-filters button.active {
  background: #c00;
  font-weight: bold;
}


.popup-gallery {
  position: fixed;
  top: 45%;
  left: 85%;
  transform: translate(-50%, -50%);
  width: 20vw;
  height: 76vh;
  background: rgba(0, 0, 0, 0.95);
  padding: 20px;
  overflow-y: auto;
  gap: 10px;
  z-index: 9999;
  border: 2px solid #c00;
  box-shadow: 0 0 30px rgba(255, 0, 0, 0.3);
  border-radius: 1px;
  scrollbar-width: thin;
  scrollbar-color: #c00 transparent;

  display: none;
}

.popup-gallery.active {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  align-content: start; /* asigură alinierea de sus */
  justify-items: start;  /* opțional: aliniere pe orizontală la început */
}




.popup-gallery::-webkit-scrollbar {
  width: 8px;
}

.popup-gallery::-webkit-scrollbar-thumb {
  background-color: #c00;
  border-radius: 4px;
}

.popup-gallery .thumb {
  width: 100%;
  height: 100px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border 0.3s ease, transform 0.3s ease;
  box-sizing: border-box;
  border-radius: 4px;
  background: #111;
}

.popup-gallery .thumb:hover {
  border-color: #c00;
  transform: scale(1.02);
  z-index: 1;
}

.popup-gallery .thumb img,
.popup-gallery .thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  border-radius: 2px;
}

.toggle-gallery-btn {
  position: fixed;
  bottom: 150px;
  left: 85%;
  width: clamp(200px, 40vw, 560px);
  padding: 0.6rem 0;
  color: white;
  background: linear-gradient(to bottom, rgba(255, 0, 0, 0), rgba(255, 0, 0, 0.13));
  border: none;
  border-radius: 0px;
  cursor: pointer;
  z-index: 10000;
  transition: background 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
  transform: translateX(-50%);
  opacity: 1;
  backdrop-filter: blur(4px);
  box-shadow: 0 0 10px rgba(255, 0, 0, 0);
  text-align: center;
  font-size: 1.2rem;
}

.toggle-gallery-btn:hover {
  background: rgba(255, 0, 0, 0.3);
  transform: translateX(-50%);

}



.popup-gallery .gallery-filters {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .toggle-gallery-btn {
    width: 90vw;
    right: 5vw;
    left: 5vw;
    font-size: 1rem;
  }
}

/* Selectie slider + galerie */

.thumb.active {
  outline: 3px solid #ffc107; /* sau orice culoare preferi */
  outline-offset: 3px;
  border-radius: 0px;
}

.carousel-item.active {
  outline: 3px solid #ffd700; /* sau orice culoare vizibilă */
  outline-offset: -3px;
  border-radius: 0px;
}

@media (max-width: 768px) {
  #openGalleryBtn {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .item-info h3 {
    font-size: 0.5rem; /* mai mic decât 0.9 */
  }

  .item-info p {
    font-size: 0.5rem; /* mai mic decât 0.75 */
  }

  .gallery-filters button {
    font-size: 0.75rem; /* ajustează mărimea butoanelor de filtrare */
    padding: 6px 10px; /* opțional - mai compact */
  }
}

@media (max-width: 768px) {
  .media-info-box h3 {
    font-size: 1rem; /* sau mai mic, ex: 0.9rem */
  }

  .media-info-box p {
    font-size: 0.8rem; /* sau mai mic, ex: 0.75rem */
    line-height: 1.2;
  }

  .media-info-box {
    padding: 0.5rem 1rem; /* mai compact pentru mobil */
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 100%;
    background: rgba(39, 15, 15, 0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    display: none;
    z-index: 999;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu li {
    text-align: center;
  }

  .nav-menu li a {
    font-size: 1.5rem;
    color: white;
    text-decoration: none;
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
  }

  .hamburger .bar {
    width: 30px;
    height: 3px;
    background: white;
    transition: all 0.3s ease;
    border-radius: 2px;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }


  /* Ascunde navbar desktop și iconițe pe mobil */
  .navbar-center,
  .navbar-right {
    display: none !important;
  }
}

@media (max-width: 768px) {
  #mediaDisplay video,
  #mediaDisplay img {
    cursor: pointer;
  }
}

@media (max-width: 768px) {
  .carousel-item {
    width: 90px;         /* mai îngust */
    height: 180px;       /* mai înalt */
    aspect-ratio: auto;  /* evităm forțarea proporției default landscape */
  }

  .carousel-item img,
  .carousel-item video {
    object-fit: cover;
    width: 100%;
    height: 100%;
  }

  .item-info {
    font-size: 0.7rem;
    padding: 0.3rem;
  }
}

@media (max-width: 768px) {
  .media-background {
    background-image: url('images/harta-desktop.png'); /* ✅ același ca pe desktop */
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: scroll;
    filter: blur(160px) brightness(0.5);
    opacity: 1;
    z-index: 0 !important;
    display: block !important;
  }
}

@media (max-width: 768px) {
  body {
    background-color: transparent !important;
    overflow-y: auto;
  }
}

.gallery-filters {
  display: flex;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.gallery-filters button {
  width: 40px;         /* lățime fixă pătrată */
  height: 40px;        /* înălțime egală cu lățimea */
  padding: 0;          /* elimină paddingul intern */
  margin: 0 5px;       /* spațiu între butoane */
  border-radius: 8px;  /* colțuri ușor rotunjite */
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1rem;
}

.gallery-filters button.active,
.gallery-filters button:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.1);
  color: #ffd700;
}

.gallery-filters button i {
  pointer-events: none;
}

#prevBtn:focus,
#nextBtn:focus {
  outline: none;
  box-shadow: none;
}