:root {
  --ana-beyaz: #e5e5e5;
  --acik-beyaz: #ffffff;
  --ana-siyah: #000000;
  --ink-siyah: #212122;
  --pre-siyah: #100e09;
  --cre-red: #960018;
  --ana-red: #ce1427;
  --dark-mode-bg: var(--ink-siyah);
  --dark-mode-text: var(--ana-beyaz);
  --dark-mode-header-footer-bg: var(--pre-siyah);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

img,
video {
  max-width: 100%;
  height: auto;
}

body {
  background-color: var(--ana-beyaz);
  color: var(--pre-siyah);
  font-family: Roboto, sans-serif;
  height: auto;
}

header {
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  background-color: var(--ana-beyaz);
  font-family: Inter;
  padding: 0 20px;
  box-sizing: border-box;
}

header a {
  color: var(--pre-siyah);
  text-decoration: none;
}

body.dark-mode {
  background-color: var(--dark-mode-bg);
  color: var(--dark-mode-text);
}

body.dark-mode header {
  background-color: var(--dark-mode-header-footer-bg);
}

body.dark-mode header a {
  color: var(--dark-mode-text);
}

body.dark-mode header ul li a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .shop-button {
  background-color: var(--cre-red);
  color: white;
}

.shop-button {
  border-radius: 10px;
  width: 80px;
  height: 40px;
  background-color: var(--ana-red);
  color: white;
  border: none;
  text-decoration: none;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: 10px;
  margin-right: 0;
  font-weight: bold;
  transition: background-color 0.3s;
}

.shop-button:hover {
  background-color: var(--cre-red);
}

header section {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  height: 80px;
  width: auto;
  min-width: 200px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

header .logo-link img {
  height: 60px;
  width: auto;
}

header h1 {
  font-size: 28px;
  font-weight: 800;
  white-space: nowrap;
  letter-spacing: 0.5px;
  margin: 0;
  line-height: normal;
  display: flex;
  align-items: center;
}

header ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

header ul li a {
  text-decoration: none;
  font-weight: bold;
  display: block;
  transition: background-color 0.3s ease, color 0.3s ease;
  padding: 10px 15px;
}

header ul li a:hover {
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 5px;
}

header nav {
  margin-left: auto;
  margin-right: 20px;
  width: auto;
}

.theme-switch-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto !important;
  margin: 0;
}

header button {
  margin: 0;
  border: none;
  background: transparent;
}

.main-section {
  margin: 0 auto;
  text-align: center;
  max-width: 100%;
  padding-top: 50px;
  padding-bottom: 80px;
}

footer {
  display: flex;
  width: 100%;
  margin-top: auto;
  padding: 20px 0;
  letter-spacing: 0.5px;
  background-color: var(--ana-beyaz);
  border-top: 0.3px solid rgba(0, 0, 0, 0.3);
  color: var(--pre-siyah);
  font-family: "Open Sans";
}

body.dark-mode footer {
  background-color: var(--dark-mode-header-footer-bg);
  border-top: 0.3px solid rgba(255, 255, 255, 0.3);
  color: var(--dark-mode-text);
}

footer ul {
  list-style-type: none;
  line-height: 30px;
  padding: 0;
  margin: 0;
}

footer ul li a {
  font-family: "Open Sans";
  text-decoration: none;
  color: #0a0a0a;
  text-shadow: 1px 1px rgb(235, 235, 235);
  letter-spacing: 1px;
}

body.dark-mode footer ul li a {
  color: var(--dark-mode-text);
  text-shadow: none;
}

.footer-colums {
  display: flex;
  width: 90%;
  justify-content: space-between;
  align-items: flex-start;
  margin: 10px auto 0 auto;
  gap: 10px;
}

.footer-colom {
  width: 200px;
  flex-direction: column;
  justify-items: center;
  align-items: center;
  text-align: center;
  display: flex;
}

.footer-colom h2 {
  font-family: "Open Sans";
}

.footer-colom:first-child {
  align-items: center;
  text-align: center;
}

.footer-colom ul li:first-child {
  font-weight: bold;
  margin-bottom: 1px;
}

.footer-colom img {
  width: 80px;
  height: 80px;
}

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--acik-beyaz);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s, visibility 0.5s;
}

body.dark-mode #preloader {
  background-color: var(--dark-mode-bg);
}

.loading-gif {
  width: 150px;
  height: auto;
}

.preloader-hidden {
  opacity: 0 !important;
  visibility: hidden !important;
}

.theme-toggle-button {
  width: 40px;
  height: 40px;
  border-radius: 40px;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  background-color: var(--acik-beyaz);
  border: 0.5px solid black;
  transition: background-color 0.4s ease,
    transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

body.dark-mode .theme-toggle-button {
  background-color: var(--pre-siyah);
  border: 0.5px solid rgb(255, 255, 255);
}

.theme-toggle-button.is-rotating {
  transform: rotate(360deg);
}

.icon {
  position: absolute;
  font-size: 24px;
  line-height: 1;
  color: var(--pre-siyah);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

body.dark-mode .icon {
  color: var(--ana-beyaz);
}

.moon-icon {
  opacity: 0;
  transform: scale(0);
}

.sun-icon {
  opacity: 1;
  transform: scale(1);
}

body.dark-mode .theme-toggle-button .sun-icon {
  opacity: 0;
  transform: scale(0);
}

body.dark-mode .theme-toggle-button .moon-icon {
  opacity: 1;
  transform: scale(1);
}

.hamburger-btn {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  color: var(--pre-siyah);
  cursor: pointer;
}

body.dark-mode .hamburger-btn {
  color: var(--dark-mode-text);
}

@media (max-width: 900px) {
  header {
    height: 60px;
    padding: 0 10px;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 0;
  }

  header section {
    flex: 0 0 auto;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
  }

  header h1 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
  }

  header .logo-link {
    gap: 8px;
  }

  header .logo-link img {
    height: 35px;
  }

  header nav {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--ana-beyaz);
    flex-direction: column;
    padding: 20px;
    z-index: 1000;
    margin: 0;
    width: 100%;
  }

  header.menu-open nav {
    display: flex;
  }

  body.dark-mode header nav {
    background: var(--dark-mode-header-footer-bg);
  }

  .shop-button {
    display: none !important;
  }

  .theme-switch-wrapper {
    display: none !important;
  }

  .hamburger-btn {
    display: block !important;
    background: none;
    border: none;
    font-size: 24px;
    padding: 5px;
    margin: 0;
    cursor: pointer;
  }

  header ul {
    flex-direction: column;
    width: 100%;
    margin: 0;
    gap: 0;
  }

  header ul li {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  body.dark-mode header ul li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  header ul li a {
    display: block;
    padding: 20px;
  }

  .footer-colums {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 30px;
  }

  .footer-colom {
    width: 100%;
    margin-bottom: 20px;
    text-align: center;
    align-items: center;
    padding: 0 20px;
  }

  html.menu-open-html,
  body.menu-open-body {
    overflow: hidden;
    height: 100vh;
  }
}

/* Utility Classes */
.text-red {
  color: var(--ana-red) !important;
}

.bolder {
  font-weight: bold !important;
}
