/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Arial", sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.highlight {
  color: #e56f15;
}

/* Header Styles */
.header {
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1000;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo img {
  height: 60px;
  width: auto;
}

/* Navigation Menu */
.nav-menu {
  display: flex;
  align-items: center;
}

.menu-items {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 0;
}

.menu-item {
  position: relative;
}

.menu-link {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding: 25px 20px;
  display: block;
  transition: all 0.3s ease;
  font-size: 14px;
}

.menu-link:hover,
.menu-link.active {
  color: #e31e24;
}

/* Language Selector */
.menu-item.language .menu-link {
  background: #e31e24;
  color: white;
  border-radius: 4px;
  margin-left: 10px;
  padding: 8px 15px;
  height: auto;
}

.menu-item.language .menu-link:hover {
  background: #c41a1f;
  color: white;
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 280px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  list-style: none;
  padding: 10px 0;
  z-index: 999;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  padding: 0;
}

.dropdown-menu a {
  display: block;
  padding: 12px 20px;
  color: #333;
  text-decoration: none;
  font-size: 13px;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.dropdown-menu a:hover,
.dropdown-menu a.active {
  background: #f8f8f8;
  color: #e31e24;
  border-left-color: #e31e24;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 5px;
}

.mobile-menu-btn span {
  width: 25px;
  height: 3px;
  background: #333;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

/* Breadcrumb */
.breadcrumb {
  background: #f8f9fa;
  padding: 15px 0;
  border-bottom: 1px solid #e0e0e0;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.breadcrumb-nav a {
  color: #666;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-nav a:hover {
  color: #e56f15;
}

.breadcrumb-nav span {
  color: #999;
}

.breadcrumb-nav .current {
  color: #4f4f4e;
  font-weight: 500;
}

/* Quick CTA */
.quick-cta {
  background-color: #3a3a3a;
  padding: 60px 0;
}

.quick-cta .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.cta-box {
  background-color: #4f4f4e;
  color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  transition: all 250ms ease-in-out;
  border: 2px solid transparent;
}

.cta-box:hover,
.cta-box:focus-visible {
  background-color: #e56f15;
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

.cta-box:focus-visible {
  outline: 3px solid #e56f15;
  outline-offset: 4px;
}

.cta-icon {
  margin-bottom: 20px;
}

.cta-icon svg {
  width: 40px;
  height: 40px;
  stroke-width: 1.5;
  color: #ffffff;
}

.cta-box h3 {
  font-size: 22px;
  margin-bottom: 10px;
  font-weight: 600;
}

.cta-box p {
  font-size: 15px;
  line-height: 1.6;
  opacity: 0.9;
  margin: 0;
}

/* Footer Styles */
.site-footer {
  background-color: #1f1f1f;
  color: #a0a0a0;
  padding: 80px 0 0;
  font-size: 15px;
}

.footer-main {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 40px;
  margin-bottom: 60px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 25px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul a {
  color: #a0a0a0;
  text-decoration: none;
  transition: color 200ms ease;
}

.footer-col ul a:hover,
.footer-col ul a:focus-visible {
  color: #e56f15;
  outline: none;
}

.footer-social {
  text-align: center;
  padding-bottom: 40px;
  border-bottom: 1px solid #3a3a3a;
}

.footer-social a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  margin: 0 12px;
  color: #a0a0a0;
}

.footer-social a::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(45deg, #e56f15, #d65d0d);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.footer-social a:hover,
.footer-social a:focus-visible {
  color: white;
  transform: scale(1.1);
  outline: none;
}

.footer-social a:hover::before {
  opacity: 1;
}

.footer-social svg {
  width: 24px;
  height: 24px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 0;
  font-size: 13px;
}

.footer-legal-links a {
  color: #a0a0a0;
  text-decoration: none;
  margin-left: 20px;
  transition: color 200ms ease;
}

.footer-legal-links a:hover,
.footer-legal-links a:focus-visible {
  color: #e56f15;
  outline: none;
}

/* === Rande Çelik Kapı - Yeni Katalog Stilleri Başlangıcı (BÜKÜLME EFEKTLİ) === */
#rande-celik-kapi {
  --orange: #e56f15;
  --gray: #4f4f4e;
  --dark-gray: #2c2c2b;
  --light-gray: #f0f0f0;
  --white: #ffffff;
  --progress: 0; /* JS tarafından güncellenecek */
  --tilt: 25deg; /* Başlangıç eğim açısı */
}

#rande-celik-kapi .flip-scroll {
  position: relative;
  background-color: var(--dark-gray);
  color: var(--white);
}

/* Sayfa Listesi Kapsayıcısı */
#rande-celik-kapi .pages-container {
  scroll-snap-type: y mandatory;
  height: 100svh;
  overflow-y: scroll;
  outline: none;
}

#rande-celik-kapi .pages-container:focus-visible {
  box-shadow: 0 0 0 4px var(--orange) inset;
}

/* Tekil Sayfa Stilleri */
#rande-celik-kapi .page {
  scroll-snap-align: start;
  min-height: 100svh;
  padding: 80px 20px 40px;
  display: grid;
  place-items: center;
  position: relative; /* Pseudo-elementler için gerekli */

  /* Animasyon Hazırlığı */
  opacity: calc(var(--progress) * 1.5);
  transform: perspective(1500px)
    rotateX(calc((1 - var(--progress)) * var(--tilt)));
  transform-style: preserve-3d;
  transition: opacity 0.3s ease, transform 0.3s ease-out;
}

/* Resim ve etrafındaki bükülme efektlerini içeren sarmalayıcı */
#rande-celik-kapi .page-content {
  position: relative;
  display: block;
  max-width: 90%;
  width: 600px;
  aspect-ratio: 210 / 297; /* A4 Oranı */
  transform-style: preserve-3d; /* Çocuk elementlerin 3D kalmasını sağlar */
}

#rande-celik-kapi .page img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;

  /* 1. İÇ GÖLGE (Bükülme Hissi) */
  box-shadow: 
    /* Statik, yumuşak dış gölge */ 0 2px 8px rgba(0, 0, 0, 0.3),
    /* Dinamik, bükülme için iç gölge */ inset 0
      calc((1 - var(--progress)) * -30px) 30px -10px rgba(0, 0, 0, 0.4);

  transition: box-shadow 0.3s ease-out;
}

/* 2. PARLAMA/YANSIMA EFEKTİ */
#rande-celik-kapi .page-content::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(
    190deg,
    transparent 50%,
    rgba(255, 255, 255, 0.2) 80%,
    transparent 100%
  );

  /* Sayfa düzleşince parlama kaybolur */
  opacity: calc(1 - var(--progress));

  /* Paralamanın açısını değiştirerek daha dinamik bir his verir */
  transform: rotateZ(calc((0.5 - var(--progress)) * -10deg));
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
  pointer-events: none; /* Üzerine tıklamayı engeller */
}

/* 3. KIVRILAN KÖŞE EFEKTİ (İsteğe bağlı, en gelişmiş efekt) */
#rande-celik-kapi .page-content::before {
  content: "";
  position: absolute;
  bottom: 5px;
  right: 5px;
  width: 60px;
  height: 60px;
  background: linear-gradient(
    315deg,
    var(--dark-gray) 25%,
    #f0f0f0 50%,
    white 100%
  );
  box-shadow: -2px -2px 10px rgba(0, 0, 0, 0.3);
  border-radius: 0 0 100% 0; /* Köşeyi yuvarlatarak kıvrım hissi verir */

  /* Sayfa görünmeye başlarken kıvrım ortaya çıkar ve sonra kaybolur */
  opacity: calc(
    sin(var(--progress) * 3.14159)
  ); /* Sinüs fonksiyonu ile yumuşak giriş-çıkış */

  /* Kıvrımın açısını ve konumunu ayarlar */
  transform: translateY(calc((1 - var(--progress)) * 20px))
    rotateZ(calc((1 - var(--progress)) * -45deg));
  transition: opacity 0.4s ease, transform 0.4s ease-out;
  pointer-events: none;
}

/* Sticky Araç Çubuğu (Değişiklik yok) */
#rande-celik-kapi .catalog-toolbar {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(44, 44, 43, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 10;
  font-variant-numeric: tabular-nums;
}
#rande-celik-kapi .progress-indicator {
  flex-grow: 1;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  overflow: hidden;
  margin-right: 20px;
}
#rande-celik-kapi #pageProgress {
  width: var(--total-progress, 0%);
  height: 100%;
  background-color: var(--orange);
  transition: width 0.1s linear;
}
#rande-celik-kapi .page-counter {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  flex-shrink: 0;
}
#rande-celik-kapi .page-counter #pageIndex {
  color: var(--orange);
}

/* Erişilebilirlik - Hareketi Azalt */
@media (prefers-reduced-motion: reduce) {
  #rande-celik-kapi .page {
    transform: none;
    opacity: var(--progress);
    transition: opacity 0.5s ease-in-out;
  }

  #rande-celik-kapi .page img {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  }

  /* Azaltılmış harekette ek efektleri kapat */
  #rande-celik-kapi .page-content::before,
  #rande-celik-kapi .page-content::after {
    display: none;
  }
}

/* Responsive Tasarım */
@media (max-width: 768px) {
  #rande-celik-kapi .page {
    padding: 90px 15px 30px;
  }
  #rande-celik-kapi .page-content {
    max-width: 100%;
    width: 100%;
  }
  #rande-celik-kapi .catalog-toolbar {
    padding: 10px 15px;
  }
  #rande-celik-kapi .page-counter {
    font-size: 0.9rem;
  }
  #rande-celik-kapi .page-content::before {
    width: 40px;
    height: 40px;
  }
}

/* === Rande Çelik Kapı - Yeni Katalog Stilleri Sonu === */

/* Responsive Design */
@media (max-width: 1024px) {
  .quick-cta .container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
  }

  .nav-menu {
    display: none;
  }

  .footer-main {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .footer-legal-links a {
    margin: 0 10px;
  }
}

@media (max-width: 480px) {
  .footer-main {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* Mobile Menu Styles */
.nav-menu.active {
  display: flex;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: white;
  flex-direction: column;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  z-index: 999;
}

.nav-menu.active .menu-items {
  flex-direction: column;
  width: 100%;
  gap: 0;
}

.nav-menu.active .menu-item {
  width: 100%;
  border-bottom: 1px solid #eee;
}

.nav-menu.active .menu-link {
  padding: 15px 20px;
}

.nav-menu.active .dropdown-menu {
  position: static;
  box-shadow: none;
  background: #f8f8f8;
  opacity: 1;
  visibility: visible;
  transform: none;
  border-radius: 0;
  margin-top: 0;
}

.nav-menu.active .dropdown-menu a {
  padding-left: 40px;
  font-size: 14px;
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .nav-menu.active {
    display: flex;
  }
}

/* ============== DİL SEÇİCİ STİLLERİ ============== */
.language-selector {
  position: relative;
}

.current-lang {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #e31e24;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  min-width: 80px;
  justify-content: space-between;
}

.current-lang:hover {
  background: #c41a1f;
}

.flag-icon {
  width: 20px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.current-lang svg {
  transition: transform 0.3s ease;
}

.language-selector.active .current-lang svg {
  transform: rotate(180deg);
}

.lang-options {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  list-style: none;
  padding: 8px 0;
  min-width: 180px;
  z-index: 1000;
  border: 1px solid #eee;
}

.language-selector:hover .lang-options,
.language-selector.active .lang-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.lang-option:hover {
  background: #f8f8f8;
  color: #e31e24;
  border-left-color: #e31e24;
}
