@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Poppins:wght@100;200;300;400;600;700&display=swap");

:root {
  --Bg-Color: #0d1f16;
  --Element-Bg: #142b20;
  --Border-Color: #1f3d2e;
  --Main-Text: #ffffff;
  --Sub-Text: #cccccc;
  --Accent-Color: hsl(24, 78%, 56%);
  --Hover-Green: #1e8449;
}

* {
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
  border: none;
  text-transform: capitalize;
  transition: 0.2s ease-in-out;
  text-decoration: none;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
  overflow-x: hidden;
  background-color: var(--Bg-Color);
}

section {
  padding: 2rem 9%;
  scroll-margin-top: 8.5rem;
}

/* --- HEADER --- */
.header {
  padding: 1.5rem 9%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  background-color: var(--Element-Bg);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid var(--Border-Color);
}

.header .icons {
  display: flex;
  align-items: center;
}

.logo-container h1 {
  font-family: "Playfair Display", serif;
  font-size: 3.5rem;
  /* Biraz büyüttüm */
  color: var(--Main-Text);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.header .navbar a {
  margin-left: 2rem;
  font-size: 1.6rem;
  color: var(--Main-Text);
}

.header .navbar a:hover {
  color: var(--Accent-Color);
}

.header .navbar .btn {
  padding: 0.7rem 2rem;
  background-color: var(--Accent-Color);
  color: #fff !important;
  border-radius: 0.5rem;
}

.header .navbar .btn:hover {
  background-color: #fff;
  color: #000 !important;
}

#menu-btn {
  font-size: 2.5rem;
  margin-left: 2rem;
  cursor: pointer;
  color: var(--Main-Text);
  display: none;
}

#theme-btn {
  font-size: 2.5rem;
  margin-left: 2rem;
  cursor: pointer;
  color: var(--Main-Text);
  display: block;
  /* Always visible */
  animation: rotate 10s linear infinite;
}

#theme-btn:hover {
  color: var(--Accent-Color);
  transform: rotate(180deg);
}

/* --- YAZAR (HERO) --- */
.author {
  padding-top: 14rem;
  width: 100%;
  min-height: 70vh;
  display: flex;
  align-items: center;
  background-color: var(--Bg-Color);
  overflow: hidden;
}

.author .row {
  display: flex;
  flex-wrap: wrap;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.author .content {
  flex: 2 1 50rem;
}

.author .image {
  flex: 1 1 30rem;
  text-align: center;
}

.author .image img {
  width: 100%;
  max-width: 400px;
  border-radius: 1rem;
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.5);
  transform: none;
  border: 5px solid var(--Element-Bg);
}

.author .content h3 {
  font-size: 4.5rem;
  color: var(--Main-Text);
}

.author .content>span {
  font-size: 2rem;
  color: var(--Accent-Color);
  display: block;
  margin-bottom: 2rem;
}

.author .content p {
  font-size: 1.6rem;
  color: var(--Sub-Text);
  line-height: 1.8;
  margin-bottom: 3rem;
  text-transform: none;
}

.author .content p span {
  text-transform: none;
}

.author .content .home-btn {
  padding: 1rem 3rem;
  background: #fff;
  color: #000;
  font-size: 1.7rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: 600;
}

.author .content .home-btn:hover {
  background: var(--Accent-Color);
  color: #fff;
}

/* --- KİTAPLAR (GÜNCELLENDİ) --- */
.books {
  background-color: var(--Bg-Color);
  padding-top: 5rem;
  padding-bottom: 5rem;
  width: 100%;
}

.books .heading {
  text-align: center;
  margin-bottom: 4rem;
}

.books .heading h1 {
  font-size: 3.5rem;
  color: var(--Main-Text);
}

.books .heading p {
  font-size: 1.5rem;
  color: var(--Sub-Text);
}

.books .box-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
  gap: 3rem;
}

.books .box-container .box {
  border: 1px solid var(--Border-Color);
  border-radius: 1rem;
  background: var(--Element-Bg);
  padding: 2rem;
  text-align: center;
  transition: 0.3s all ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* İçeriği dikeyde yayar */
}

.books .box-container .box:hover {
  transform: translateY(-5px);
  box-shadow: 0 1.5rem 2.5rem rgba(0, 0, 0, 0.6);
  border-color: var(--Accent-Color);
  background: var(--Element-Bg);
  /* Arkaplan rengini sabit tut veya değiştirme */
}

.books .box-container .box .image {
  height: 350px;
  width: 100%;
  overflow: hidden;
  margin-bottom: 1.5rem;
  border-radius: 0.5rem;
  transition: transform 0.3s ease;
}

.books .box-container .box:hover .image img {
  transform: scale(1.1);
  transition: transform 0.3s ease;
}

.books .box-container .box .image img {
  height: 100%;
  width: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}



/* KİTAP BAŞLIĞI AYARLARI */
.books .box-container .box .content h3 {
  font-size: 2.2rem;
  color: var(--Main-Text);
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  line-height: 1.4;
  /* Satır aralığı */
  white-space: normal;
  /* Alt satıra geçmesine izin ver */
  word-wrap: break-word;
  /* Uzun kelimeleri böl */
}

/* ÖZET METNİ STİLİ */
.books .box-container .box .content .summary {
  font-size: 1.4rem;
  color: #bbb;
  margin: 0 0 2rem 0;
  text-transform: none;
  line-height: 1.6;
  font-style: italic;
  flex-grow: 1;
  font-style: italic;
  flex-grow: 1;
  text-align: left;
  /* Metni sola yasla */
}

.books .box-container .box .content .btn {
  display: inline-block;
  margin-top: auto;
  background: transparent;
  color: var(--Accent-Color);
  border: 1px solid var(--Accent-Color);
  padding: 0.8rem 2rem;
  font-size: 1.5rem;
  border-radius: 0.5rem;
  width: 100%;
}

.books .box-container .box .content .btn:hover {
  background: var(--Accent-Color);
  color: #fff;
}

/* --- YEŞİL BANNER (PARALLAX) --- */
.green-banner {
  background-image:
    linear-gradient(rgba(20, 90, 50, 0.8), rgba(10, 50, 30, 0.9)),
    url("images/bulut.jpg");
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  padding: 15rem 9%;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  overflow: hidden;
}

.green-banner .content {
  max-width: 900px;
  width: 100%;
}

.green-banner h1 {
  font-size: 4rem;
  color: #fff;
  margin-bottom: 2rem;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.green-banner p {
  font-size: 2rem;
  color: #ddd;
  line-height: 1.8;
  margin-bottom: 4rem;
  text-transform: none;
  font-weight: 500;
}

.green-btn {
  display: inline-block;
  padding: 1.5rem 5rem;
  background-color: #fff;
  color: #145a32;
  font-size: 1.8rem;
  border-radius: 0.5rem;
  font-weight: 700;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.green-btn:hover {
  background-color: var(--Accent-Color);
  color: #fff;
  transform: scale(1.05);
}

/* --- SATIŞ NOKTALARI --- */
.order {
  background: var(--Bg-Color);
  width: 100%;
}

.order .heading {
  text-align: center;
  margin-bottom: 3rem;
}

.order .heading h1 {
  color: var(--Main-Text);
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.order .heading p {
  color: var(--Sub-Text);
  font-size: 1.6rem;
  line-height: 1.6;
}

/* Grid Yapısı */
.stores-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(28rem, 1fr));
  gap: 2rem;
}

/* Mağaza Kutuları */
/* Mağaza Kutuları */
.store-box {
  background-color: var(--Element-Bg);
  border: 1px solid var(--Border-Color);
  border-radius: 1rem;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

/* ... (unchanged) ... */

.books .box-container .box {
  position: relative;
  border: 1px solid var(--Border-Color);
  border-radius: 1rem;
  background: var(--Element-Bg);
  padding: 2rem;
  text-align: center;
  transition: all 0.1s ease-out !important;
  /* Force fast transition */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* ... (skip to overlay) ... */

.series-continuation .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: none;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 0;
  border-radius: 0;
  backdrop-filter: blur(5px);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.store-box:hover {
  background-color: var(--Hover-Green);
  transform: translateY(-5px);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.3);
  border-color: #fff;
}

.store-box .icon {
  height: 5rem;
  width: 5rem;
  line-height: 5rem;
  text-align: center;
  background: #fff;
  color: var(--Bg-Color);
  border-radius: 50%;
  font-size: 2rem;
}

.store-box:hover .icon {
  color: var(--Hover-Green);
}

.store-box .info {
  flex: 1;
  margin-left: 1.5rem;
  text-align: left;
}

.store-box .info h3 {
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.store-box .info span {
  font-size: 1.4rem;
  color: #ddd;
  text-transform: none;
}

.store-box .arrow {
  font-size: 1.5rem;
  color: var(--Accent-Color);
  transition: 0.3s;
}

.store-box:hover .arrow {
  color: #fff;
  transform: translateX(5px);
}

/* --- SİZDEN GELENLER (GALLERY) --- */
.gallery {
  background: var(--Bg-Color);
  width: 100%;
}

.gallery .heading {
  text-align: center;
  margin-bottom: 3rem;
}

.gallery .heading h1 {
  color: var(--Main-Text);
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.gallery .heading p {
  color: var(--Sub-Text);
  font-size: 1.6rem;
}

.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
  gap: 2rem;
}

.gallery-box {
  height: 40rem;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.5);
  border: 1px solid var(--Border-Color);
  position: relative;
  transition: all 0.3s ease;
}

.gallery-box:hover {
  transform: translateY(-5px);
  border-color: var(--Accent-Color);
}

.gallery-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-box:hover img {
  transform: scale(1.1);
}

/* --- FOOTER --- */
.footer {
  background: var(--Element-Bg);
  border-top: 1px solid var(--Border-Color);
  width: 100%;
}

.footer .box-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
  gap: 2rem;
}

.footer .box h3 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  color: var(--Main-Text);
}

.footer .box a {
  display: block;
  font-size: 1.5rem;
  color: var(--Sub-Text);
  padding: 1rem 0;
}

.footer .box a i {
  color: var(--Accent-Color);
  padding-right: 0.5rem;
}

.footer .box a:hover {
  color: var(--Accent-Color);
  padding-left: 1rem;
}

.footer .box p {
  font-size: 1.5rem;
  color: var(--Sub-Text);
  line-height: 1.8;
  text-transform: none;
}

.footer .credit {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid var(--Border-Color);
  font-size: 1.6rem;
  color: var(--Sub-Text);
}

.footer .credit span {
  color: var(--Main-Text);
  font-weight: 700;
}

/* --- INSTAGRAM ANIMASYONU --- */
.float-ig {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 30px;
  right: 30px;
  background: #f09433;
  background: -moz-linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  background: -webkit-linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f09433', endColorstr='#bc1888', GradientType=1);
  color: #fff;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.5);
  animation: pulse 2s infinite;
}

.float-ig:hover {
  transform: scale(1.1);
  /* Hafif büyüsün */
}

.my-float {
  margin-top: 2px;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(188, 24, 136, 0.7);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(188, 24, 136, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(188, 24, 136, 0);
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* --- WARNING BOX INSTAGRAM BTN --- */
.instagram-btn {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 1rem 3rem;
  background: #f09433;
  background: -moz-linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  background: -webkit-linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f09433', endColorstr='#bc1888', GradientType=1);
  color: #fff;
  font-size: 1.6rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.instagram-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.4);
  color: #fff;
}

/* --- RESPONSIVE --- */
@media (max-width: 991px) {
  html {
    font-size: 55%;
  }

  .header {
    padding: 2rem;
  }

  section {
    padding: 2rem;
  }
}

/* Tablet / Küçük Laptop Navbar Ayarı */
@media (max-width: 1100px) {
  .header {
    padding: 1.5rem 2rem;
  }

  .header .navbar a {
    font-size: 1.4rem;
    margin-left: 1rem;
  }

  .logo-container h1 {
    font-size: 2.8rem;
  }
}

@media (max-width: 768px) {
  section {
    scroll-margin-top: 7rem;
  }

  .footer {
    padding-bottom: 100px;
    /* Instagram butonu için boşluk */
  }

  /* Mobilde satış noktaları başlık ayarı */
  .order .heading {
    margin-bottom: 2rem;
  }

  .order .heading h1 {
    font-size: 3rem;
  }

  /* MOBİLDE TEK SÜTUN OLSUN (Kutular rahat yüklenir) */
  .stores-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

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

  .header .navbar {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--Element-Bg);
    border-top: 1px solid var(--Border-Color);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: 0.3s linear;
  }

  .header .navbar.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }

  .header .navbar a {
    display: block;
    padding: 1.5rem;
    margin: 1.5rem;
    background: #0d1f16;
    background: #0d1f16;
    text-align: center;
    border-radius: 0.5rem;
  }

  /* Mobil için (Devamını oku) butonu alt satıra geçsin */
  #dots {
    display: block;
    margin-top: 1rem;
  }

  /* Tablet ve Mobilde Serinin Devamı tam genişlik olsun */
  .series-continuation {
    grid-column: 1 / -1;
    height: auto;
    /* Mobilde içeriğe göre uzasın */
  }
}

/* --- READ MORE (YENİ) --- */
#more {
  display: none;
}

#dots {
  cursor: pointer;
  color: var(--Accent-Color);
  /* Belirgin renk */
  font-weight: 600;
  /* Biraz kalın */
}

#dots:hover {
  color: #fff;
  /* Üzerine gelince beyaz olsun (veya tam tersi) */
  text-decoration: underline;
}


/* --- SERIES CONTINUATION (YENİ) --- */
/* --- SERIES CONTINUATION (YENİ) --- */
.series-continuation {
  grid-column: 1 / -1;
  /* Varsayılan: Tam genişlik (Mobil/Tablet) */
  width: 100%;
  margin-top: 2rem;
  position: relative;
  text-align: center;
  display: block;
  transition: transform 0.3s ease;
}

.series-continuation:hover {
  transform: scale(1.02);
}

.series-continuation .image-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 250px;
  /* Görsel kalktığı için yükseklik veriyoruz */
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.5);
  background-color: var(--Element-Bg);
  transition: all 0.3s ease;
  /* Hover efekti için geçiş */
}

/* Series Continuation Wrapper Hover Effect */
.series-continuation .image-wrapper:hover {
  transform: translateY(-5px);
  box-shadow: 0 1.5rem 2.5rem rgba(0, 0, 0, 0.6);
  border: 1px solid var(--Accent-Color);
}

.series-continuation img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  opacity: 0.8;
  transition: transform 0.3s ease;
}

.series-continuation .image-wrapper:hover img {
  transform: scale(1.05);
}

.series-continuation .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: none;
  background-color: rgba(255, 255, 255, 0.05);
  /* Blur azaltıldı */
  padding: 0;
  border-radius: 0;
  backdrop-filter: blur(3px);
  /* Blur 8px -> 3px'e düştü */
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.series-continuation .overlay span {
  font-size: 3rem;
  color: #fff;
  font-weight: 700;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
  font-family: "Playfair Display", serif;
  background: rgba(0, 0, 0, 0.6);
  /* Metin arkasına hafif koyuluk okunaklılık için */
  padding: 1rem 2rem;
  border-radius: 0.5rem;
}

/* --- RESPONSIVE GRID LAYOUT --- */

/* Büyük Tablet / Küçük Laptop (991px - 1200px arası) -> 3 Sütun */
@media (min-width: 991px) and (max-width: 1200px) {
  .books .box-container {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .series-continuation {
    grid-column: auto;
    /* 2 sütun kapla yerine otomatik */
    margin-top: 0;
    height: 100%;
    display: flex;
    align-items: stretch;
  }

  .series-continuation .image-wrapper {
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
  }

  .series-continuation img {
    height: 100%;
    object-fit: cover;
  }
}

/* Tablet (768px - 991px arası) -> 2 Sütun */
@media (min-width: 768px) and (max-width: 991px) {
  .books .box-container {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .series-continuation {
    grid-column: 2 / 3;
    /* Tek sütun ama yanına */
    margin-top: 0;
    height: 100%;
    display: flex;
    align-items: stretch;
  }

  .series-continuation .image-wrapper {
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
  }

  .series-continuation img {
    height: 100%;
    object-fit: cover;
  }
}

/* PC (1200px ve üzeri) -> 4 Sütun (MEVCUT PLANI KORU) */
@media (min-width: 1200px) {
  .books .box-container {
    grid-template-columns: repeat(4, 1fr) !important;
    /* 4 Sütun sabit */
  }

  .series-continuation {
    grid-column: 2 / 5;
    /* 1. kitaptan sonraki 3 sütunu kapla */
    margin-top: 0;
    height: 100%;
    /* Satır yüksekliğini doldur */
    display: flex;
    align-items: stretch;
  }

  .series-continuation .image-wrapper {
    height: 100%;
    width: 100%;
    position: absolute;
    /* Yüksekliği doldurması için */
    top: 0;
    left: 0;
  }

  .series-continuation img {
    height: 100%;
    object-fit: cover;
  }
}

/* --- YARIŞMALAR --- */
.competitions {
  background-color: var(--Bg-Color);
  width: 100%;
  padding-top: 5rem;
  padding-bottom: 5rem;
  border-top: 1px solid var(--Border-Color);
}

.competitions .heading {
  text-align: center;
  margin-bottom: 3rem;
}

.competitions .heading h1 {
  font-size: 3.5rem;
  color: var(--Main-Text);
  font-weight: 700;
}

.competitions .heading p {
  font-size: 1.6rem;
  color: var(--Sub-Text);
}

.competitions .video-wrapper {
  max-width: 800px;
  width: 90%;
  margin: 0 auto 3rem auto;
  text-align: center;
  aspect-ratio: 16 / 9;
  /* Enforce wide aspect ratio */
  overflow: hidden;
  /* Clip cropped parts */
  border-radius: 1rem;
  /* Move border radius to wrapper for clean clipping */
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.5);
  border: 1px solid var(--Border-Color);
}

.competitions .video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Zoom to fill, cropping bars */
  object-position: center 55%;
  /* Shift view to show bottom (subtitles) */
  border-radius: 0;
  /* Let wrapper handle radius */
  border: none;
}

.competitions .content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.competition-box {
  background: var(--Element-Bg);
  border: 1px solid var(--Accent-Color);
  padding: 3rem;
  border-radius: 1rem;
  text-align: center;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
}

.competition-box:hover {
  transform: translateY(-5px);
  background-color: #1a382b;
}

.competition-box h3 {
  font-size: 2.5rem;
  color: var(--Accent-Color);
  margin-bottom: 1.5rem;
  text-decoration: underline;
}

.competition-box p {
  font-size: 1.6rem;
  color: var(--Sub-Text);
  line-height: 1.8;
  text-transform: none;
}

/* --- WARNING BOX (UYARI) --- */
.warning-box {
  background-color: rgba(220, 53, 69, 0.1);
  /* Hafif kırmızı */
  border: 2px solid #dc3545;
  /* Kırmızı çerçeve */
  border-radius: 1rem;
  padding: 2rem;
  margin-bottom: 4rem;
  text-align: center;
  box-shadow: 0 0.5rem 1rem rgba(220, 53, 69, 0.2);
}

.warning-box h2 {
  color: #dc3545;
  /* Kırmızı başlık */
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.warning-box p {
  color: #ffdce0;
  /* Açık kırmızımsı beyaz yazı */
  font-size: 1.6rem;
  line-height: 1.6;
  text-transform: none;
  max-width: 900px;
  margin: 0 auto;
}

/* --- EXPERIMENTAL THEME (ALT THEME) --- */
body.alt-theme {
  --Bg-Color: #000000;
  --Element-Bg: #ffffff;
  background-color: #000000 !important;
  /* Pitch Black Global */
}

/* 1. Header & Top sections (Black Theme) */
body.alt-theme .header,
body.alt-theme .author,
body.alt-theme .competitions,
body.alt-theme .books {
  background-color: #000000;
  border-bottom: none;
}

body.alt-theme .header {
  border-bottom: 1px solid #333;
}

/* White Borders for specific sections (REMOVED) */
/* body.alt-theme .author ... removed */

/* Mobile Menu Visual Match (Dark Theme) */
@media (max-width: 991px) {

  /* 1. Menu Container Black */
  body.alt-theme .header .navbar {
    background-color: #000000 !important;
  }

  /* 2. Standard Links: Black with White Border */
  body.alt-theme .header .navbar a {
    background-color: #000000;
    border: 3px solid #ffffff;
    color: #ffffff;
    margin: 1rem;
    padding: 1.5rem;
    /* Increase padding for button look */
    display: block;
    text-align: center;
    /* Center text like buttons */
    border-radius: 0.5rem;
  }

  /* 3. Contact Button: Orange with White Border */
  body.alt-theme .header .navbar a.btn {
    background-color: var(--Accent-Color) !important;
    /* Use Accent/Orange Variable */
    border: 3px solid #ffffff;
    color: #ffffff;
  }
}

/* Smoother transitions for theme switch */
body,
section,
.header,
.box,
.store-box,
.gallery-box,
h1,
h2,
h3,
p,
span,
a,
i,
div {
  transition: background-color 0.8s ease, color 0.8s ease, border-color 0.8s ease, box-shadow 0.8s ease;
}

/* 2. Book Boxes (Black Theme) */
body.alt-theme .books .box {
  background-color: #000000;
  border: 1px solid #333;
}

body.alt-theme .books .box h3,
body.alt-theme .books .box p,
body.alt-theme .books .box .summary {
  color: #ffffff;
  /* White text on black background */
  font-weight: normal;
}

/* Ensure no color change on hover for books in dark theme */
body.alt-theme .books .box:hover {
  background-color: #000000;
  border-color: #333;
}

body.alt-theme .series-continuation {
  background-color: #000000;
  border: 1px solid #333;
  color: #ffffff;
}

/* Fix for Series Continuation Image Wrapper Background */
body.alt-theme .series-continuation .image-wrapper {
  background-color: #000000;
  /* Remove white/blue background */
  box-shadow: none;
  /* Optional: remove shadow if desired */
}

body.alt-theme .series-continuation .overlay span {
  color: #ffffff;
}

/* 3. Green Banner -> Blue Theme */
body.alt-theme .green-banner {
  background-image:
    linear-gradient(rgba(0, 50, 150, 0.5), rgba(0, 30, 100, 0.6)),
    url("images/bulut.jpg");
}

body.alt-theme .green-banner .green-btn {
  color: #003366;
}

/* Competitions Section (Black Theme & Disabled Hover) */
body.alt-theme .competition-box {
  background-color: #000000;
  border-color: #333;
}

body.alt-theme .competition-box h3,
body.alt-theme .competition-box p {
  color: #ffffff;
}

body.alt-theme .competition-box:hover {
  background-color: #000000;
  border-color: #333;
  transform: none;
  /* Disable movement */
  box-shadow: none;
}

body.alt-theme .competition-box:hover h3,
body.alt-theme .competition-box:hover p {
  color: #ffffff;
}

/* 4. Order Section (Red Theme) */
body.alt-theme .order {
  background-color: #8b0000;
  /* Dark Red */
}

body.alt-theme .order .heading h1,
body.alt-theme .order .heading p {
  color: #fff;
}

body.alt-theme .store-box {
  background-color: #fff;
  border-color: #a00000;
}

body.alt-theme .store-box .info h3 {
  color: #8b0000;
}

body.alt-theme .store-box .info span {
  color: #333;
}

body.alt-theme .store-box .icon {
  color: #8b0000;
}

/* Warning Box Adaptation in Red Theme */
body.alt-theme .warning-box {
  background-color: rgba(255, 255, 255, 0.9);
  border-color: #fff;
}

body.alt-theme .warning-box p {
  color: #8b0000;
  font-weight: 600;
}

/* 5. Below Order (Gallery & Footer) -> Pitch Black */
body.alt-theme .gallery,
body.alt-theme .footer {
  background-color: #000000;
}

body.alt-theme .gallery .heading h1,
body.alt-theme .gallery .heading p {
  color: #fff;
}

body.alt-theme .gallery-box {
  border-color: #0074d9;
}

body.alt-theme .footer .box h3,
body.alt-theme .footer .box a,
body.alt-theme .footer .box p,
body.alt-theme .footer .credit,
body.alt-theme .footer .credit span {
  color: #fff;
  /* Ensure text is visible on blue */
}

/* Store box hover fix for red theme */
body.alt-theme .store-box:hover {
  background-color: #ffcccc;
}

.competitions .video-wrapper {
  width: 100%;
  border-radius: 0;
}


/* NUCLEAR Safety Close */

/* FORCE 2-COLUMN LAYOUT FOR TABLET (Flexbox Override) */
/* FORCE 2-COLUMN LAYOUT FOR TABLET (Flexbox Override) */
@media (min-width: 590px) and (max-width: 1023px) {
  #books .box-container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 1rem !important;
    align-items: stretch !important;
  }

  /* Force 50% width for Book */
  #books .box-container .box {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    width: 50% !important;
    margin: 0 !important;
  }

  /* Force 50% width for Continuation */
  #books .series-continuation {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    width: 50% !important;
    margin: 0 !important;
    height: auto !important;
  }
}

/* DESKTOP LAYOUT (1024px+) - Centered & Fixed Size */
@media (min-width: 1024px) {
  #books .box-container {
    display: flex !important;
    justify-content: center !important;
    gap: 4rem !important;
    align-items: stretch !important;
    flex-wrap: nowrap !important;
    /* Force Equal Height & No Wrap */
  }

  /* Book Box */
  #books .box-container .box {
    width: 40rem !important;
    flex: none !important;
    max-width: 100% !important;
  }

  /* Series Continuation Box (Stretch to match Book Height) */
  #books .series-continuation {
    width: 40rem !important;
    flex: none !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    height: auto !important;
    /* Allow it to stretch */
  }

  /* Aggressively disable selection on box and all children */
  #books .series-continuation,
  #books .series-continuation * {
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
  }

  #books .series-continuation .image-wrapper {
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Disable Series Continuation Growth & Zoom on Desktop */
  #books .series-continuation:hover,
  #books .series-continuation:active {
    transform: none !important;
  }

  #books .series-continuation {
    touch-action: manipulation !important;
    /* Disables double-tap zoom */
  }
}