@charset "UTF-8";
:root {
  --catalog-height: calc(100vh - 100px);
  --a4-ratio: 0.67;
  --page-width: calc(var(--catalog-height) * var(--a4-ratio));
  --index-width: 45px;
  --anim-speed: 0.8s;
  --bezier: cubic-bezier(0.645, 0.045, 0.355, 1);
}

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: #000;
  overflow: auto; /* Zoom yapılınca scroll çıksın */
}

/* Sadece yatay konumda çalışan uyarı */
@media screen and (orientation: portrait) and (max-width: 768px) {
  body::after {
    content: "Lütfen daha iyi bir deneyim için cihazınızı yatay çevirin 📱🔄";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    color: #fff;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    font-size: 1.2rem;
  }
  .catalog-wrapper {
    display: none;
  }
}
.catalog-wrapper {
  position: relative;
  min-width: 100vw;
  min-height: 100vh;
  padding: 30px;
  box-sizing: border-box;
  background-image: linear-gradient(rgba(20, 20, 20, 0.95), rgba(32, 32, 32, 0.95)), url("/catalog/images/mp-logo-b2.png");
  background-size: contain, 60px 67px;
  background-repeat: no-repeat, space;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow: auto; /* Zoom sonrası scroll çıksın */
}

#catalog {
  position: relative;
  width: calc(var(--page-width) * 2);
  height: var(--catalog-height);
  perspective: 2000px;
  transform-origin: top left; /* Zoom için sol üst sabitlendi */
  transition: transform 0.3s ease-out;
  /* Sayfalar arası çok ince, temiz bir hat (opsiyonel) */
}
#catalog::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 1px;
  height: 100%;
  background: rgba(32, 32, 32, 0.1);
  z-index: 500;
}

.catalog-page-container {
  position: absolute;
  width: var(--page-width);
  height: 100%;
  right: 0;
  transform-origin: left;
  /* KRİTİK: Kendi içindeki ön/arka yüzü korumak için */
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  transition: transform var(--anim-speed) var(--bezier);
  pointer-events: none; /* Konteyner tıklamayı geçirmeli */
}
.catalog-page-container.flipped {
  transform: rotateY(-180deg);
  box-shadow: -15px 0 30px rgba(0, 0, 0, 0.4);
}
.catalog-page-container::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.1), transparent);
  pointer-events: none;
  z-index: 100;
}

.page-front,
.page-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  cursor: pointer;
  pointer-events: auto !important; /* Sayfalar tıklanabilir */
  box-shadow: 0 0 1px rgba(0, 0, 0, 0.05);
}
.page-front::before,
.page-back::before {
  content: "";
  position: absolute;
  top: 0;
  width: 30px;
  height: 100%;
  pointer-events: none;
  transition: opacity var(--anim-speed);
  z-index: 10;
}
.page-front img,
.page-back img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  -webkit-user-drag: none; /* Yanlışlıkla imajı sürüklemeyi engelle */
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.page-front {
  border-left: thin solid rgba(51, 51, 51, 0.2);
}

.page-back {
  transform: rotateY(180deg);
}
.page-back .page-tab {
  /* Sol tabları 3D uzayda 1px öne çıkarıyoruz */
  transform: rotateY(180deg);
  left: calc(var(--index-width) * -1 + 1px);
  display: flex !important;
  visibility: visible !important;
}

.page-front::before {
  left: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.1), transparent);
}

.page-back::before {
  right: 0;
  background: linear-gradient(to left, rgba(0, 0, 0, 0.1), transparent);
}

/* Gölgeleri Sıfırlıyoruz */
.catalog-page-container, .page-front, .page-back {
  box-shadow: none !important;
}
.catalog-page-container::before, .catalog-page-container::after, .page-front::before, .page-front::after, .page-back::before, .page-back::after {
  display: none !important;
}

/* TABLAR */
.page-tab {
  position: absolute;
  top: 0;
  width: var(--index-width);
  display: flex;
  align-items: center;
  justify-content: end;
  letter-spacing: 0;
  text-align: end;
  box-sizing: border-box;
  padding-bottom: 10px;
  color: #fff;
  font-weight: bold;
  font-size: 11px;
  writing-mode: vertical-rl;
  text-transform: uppercase;
  cursor: pointer;
  z-index: 100;
  transition: width 0.2s;
  pointer-events: auto !important;
}
.page-tab:hover {
  width: calc(var(--index-width) + 10px);
}

.page-front .page-tab {
  right: calc(var(--index-width) * -1);
  border-radius: 0 8px 8px 0;
}

.page-back .page-tab {
  left: calc(var(--index-width) * -1);
  border-radius: 8px 0 0 8px;
  writing-mode: vertical-rl;
  transform: rotateY(180deg);
}

/* NAVİGASYON (EN ÖN KATMAN) */
.navigation-section {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4rem;
  box-sizing: border-box;
  padding: 0.5rem;
  display: flex;
  justify-content: space-between;
}

.slide-nav,
.catalog-zoom,
.catalog-nav {
  background: rgba(64, 64, 64, 0.5);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 10px;
  border-radius: 5px;
  display: flex;
  justify-content: center;
  gap: 15px;
  z-index: 999999;
  box-sizing: border-box;
  pointer-events: auto; /* Tıklama aktif */
  box-shadow: 3px 3px 2px rgba(50, 50, 50, 0.8);
}

.nav {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.nav-btn {
  position: relative;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  transition: 0.2s;
  box-sizing: border-box;
}
.nav-btn:hover {
  transform: scale(1.2);
  color: #00d2ff;
}
.nav-btn svg {
  display: block;
  margin: auto;
  overflow: visible;
}
.nav-btn {
  /* Tooltip Konteynırı */
}
.nav-btn::before {
  content: attr(data-tip);
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
  z-index: 10001;
}
.nav-btn:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.goto-wrapper {
  display: inline-block;
  min-width: 90px;
}

.goto-input {
  width: 50px;
  background: #333;
  padding: 0.2rem;
  border: 1px solid #555;
  text-align: right;
  color: #ddd;
  border-radius: 4px;
  text-align: center;
}

.goto-btn {
  padding: 0.2rem 0.5rem;
  border: 1px solid #555;
  background-color: #444;
  color: #ddd;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
}
.goto-btn:hover {
  color: #fff;
  background-color: #000;
}

.empty-div {
  width: 20rem;
  flex-basis: 20rem;
}

/* TIKLAMA ENGELİNİ KALDIRAN ARAMA PANELİ */
.search-container {
  width: 20rem;
  background: transparent;
  box-sizing: border-box;
  z-index: 9999;
  pointer-events: none; /* Konteyner tıklamayı geçirmeli */
  flex-basis: 20rem;
}
.search-container .input-group,
.search-container .side-panel {
  cursor: pointer;
  pointer-events: auto; /* Sadece içindekiler tıklanabilir */
}

.input-group {
  display: block;
  position: relative;
  border: 1px solid #666;
  height: 2.5rem;
  background: rgba(30, 30, 30, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: white;
  padding: 0.2rem;
  overflow: hidden;
}

.search-input {
  position: absolute;
  top: 0;
  left: 0;
  width: calc(100% - 2.4rem);
  height: 100%;
  background-color: transparent;
  border: none;
  color: #e6e6e6;
  font-size: 1rem;
  padding: 0.5rem;
  box-sizing: border-box;
  z-index: 5002;
}
.search-input:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.fa-search {
  position: absolute;
  width: 2.9rem;
  height: 2.9rem;
  top: 0;
  right: 0;
  text-align: center;
  line-height: 2.9rem;
  background-color: #111;
  color: rgba(255, 255, 255, 0.5);
  border-left: 1px solid #555;
  z-index: 5003;
  cursor: pointer;
}
.fa-search:hover {
  color: #fff;
}

.side-panel {
  display: none;
  position: fixed;
  bottom: 0; /* Başlangıçta gizli */
  left: 0;
  width: 320px;
  height: 0;
  padding-top: 5rem;
  background: rgba(20, 20, 20, 0.85);
  backdrop-filter: blur(15px);
  transition: height 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: white;
  box-sizing: border-box;
  z-index: 5001; /* Kataloğun çok üstünde */
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #555 #1a1a1a;
  /* Chrome, Edge ve Safari */
}
.side-panel::-webkit-scrollbar {
  width: 6px;
}
.side-panel::-webkit-scrollbar-track {
  background: #1a1a1a;
}
.side-panel::-webkit-scrollbar-thumb {
  background: #555;
  border-radius: 10px;
}
.side-panel::-webkit-scrollbar-thumb:hover {
  background: #777;
}
.side-panel.active {
  display: block;
  height: 100vh;
}

.panel-header {
  position: fixed;
  width: 100%;
  top: 0;
  padding: 1rem;
  color: #a9a9a9;
  font-weight: bold;
  text-transform: uppercase;
  border-bottom: 1px solid #3a3c42;
  box-sizing: border-box;
}

.results-list {
  height: calc(100% - 60px);
  overflow-y: auto;
  padding: 0 1rem;
}

.result-item {
  display: block;
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  color: #999;
  transition: background 0.2s;
}
.result-item span {
  pointer-events: none;
}

.result-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.result-item .page-badge {
  float: right;
  background: #2c3e50;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
}

.lang-wrapper {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  display: inline-block;
  cursor: pointer;
  font-family: inherit;
  margin-top: 0;
  z-index: 5001;
}
@media (max-width: 56.25em) {
  .lang-wrapper {
    top: 2.8rem;
    right: 7rem;
  }
}
.lang-wrapper::before {
  content: "";
  position: absolute;
  top: -15px;
  left: 0;
  width: 100%;
  height: 15px;
  background: transparent;
}
.lang-wrapper .lang-current {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(125, 125, 125, 0.4);
  border-radius: 4px;
  color: black;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
}
.lang-wrapper .lang-current i {
  font-size: 12px;
  opacity: 0.8;
}
.lang-wrapper .lang-list {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0;
  min-width: 140px;
  background: #1a1a1a;
  border-radius: 4px;
  padding: 8px 0;
  list-style: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  transition-delay: 0.1s;
  z-index: 1000;
}
.lang-wrapper .lang-list li a {
  display: block;
  padding: 8px 16px;
  color: #ccc;
  text-decoration: none;
  font-size: 13px;
  transition: 0.2s;
}
.lang-wrapper .lang-list li a span {
  font-size: 11px;
  opacity: 0.6;
  margin-left: 5px;
}
.lang-wrapper .lang-list li a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}
.lang-wrapper .lang-list li.active a {
  color: #3498db;
  font-weight: bold;
}
.lang-wrapper:hover .lang-current {
  background: rgba(255, 255, 255, 0.1);
}
.lang-wrapper:hover .lang-list {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

/*# sourceMappingURL=catalog.css.map */
