* {
  box-sizing: border-box;
}

:root {
  --main-color: #000000;
  --dark-text-color: #B9ADAD;
  --light-text-color: #ffffff;

  --text-gradient-1: linear-gradient(90deg, #ffffff, #c077d3);
  --text-gradient-2: linear-gradient(90deg, #8df6a1, #57d57e);
}

body,
html {
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  min-height: 100%;
  background-color: #000000;
  color: #fff;
  overscroll-behavior: none; /* iOS bounce'u kırmak için */
  touch-action: none;
}

#main-layout {
  display: flex;
  height: 100vh;
  width: 100%;
}

/*INFO-----------------------------------------------------------------------------------------------*/
.navbar {
  width: 100%;
  height: auto;
  background-color: transparent;
  display: flex;
  position: sticky;
  align-items: center;
  top: 0;
  padding: 0;
  margin-bottom: 30px;
  margin-top: 10px;

  /* BURASI ÖNEMLİ */
  box-shadow: none;
}


.navbar-logo {
  height: 20px;
}

#info-panel {
  width: 30%;
  max-width: 450px;
  padding: 20px 20px;
  background-color: var(--main-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  overflow-y: auto;
  z-index: 999;
  transition: transform 0.3s ease;

  /* Scrollbar gizleme */
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE/Edge */
}

#info-panel::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari */
}

.intro-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-left: 20px;
  margin-bottom: 5px;
}

.details-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-left: 20px;
  gap: 20px;
  width: 90%;
}

.gradient-heading {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  width: 100%;
  color: var(--light-text-color);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.grad1 {
  background: var(--text-gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.grad2 {
  background: var(--text-gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sofa-img {
  width: 70%;
  border-radius: 10px;
}

.product-details {
  margin-bottom: 5px;
}

.product-details h2 {
  font-size: 24px;
  font-weight: 100;
  margin: 0;
  color: var(--dark-text-color);
}

.product-details p {
  margin: 4px 0;
  color: var(--dark-text-color);
  font-size: 14px;
  font-weight: 100;
}

.color-card {
  width: 100%;
  max-width: 100%;
  padding: 16px 20px;
  border: 1px solid var(--dark-text-color);
  border-radius: 10px;
  margin-bottom: 10px;
  box-sizing: border-box;
}


.color-card h3 {
  margin: 0 0 5px 0;
  font-size: 15px;
}

.color-card p {
  font-size: 12px;
  color: var(--dark-text-color);
  margin-bottom: 14px;
}

.color-buttons {
  display: flex;
  gap: 14px;
}

.color-buttons button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  outline: none;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.color-buttons button.selected {
  outline: 4px solid white;
}

.primary-button {
  width: 100%;
  padding: 12px 0;
  background-color: var(--light-text-color);
  color: var(--main-color);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid var(--dark-text-color);
  border-radius: 12px;

  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.primary-button:hover {
  background-color: #f0f0f0;
}

.primary-button:active {
  transform: scale(0.98);
}


.footer {
  width: 100%;
  text-align: left;
  font-size: 12px;
  color: var(--dark-text-color);

}


.copyright {
  font-size: 11px;
  color: var(--dark-text-color);
  margin-left: 20px;
  margin-top: 10px;
}
/* Butonları içeren kapsayıcı */
.mobile-toggle-wrapper {
  display: none;
}
.mobile-toggle-button {
  display: none;
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 10px 18px;
  border-radius: 20px;
  font-weight: 600;
  border: none;
  z-index: 1000;

  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.dark {
  background: black;
  color: white;
}

.light {
  background: white;
  color: black;
  top: -10px !important;
  right: 0px !important;
}

/*INFO-----------------------------------------------------------------------------------------------*/
/*UNITY-----------------------------------------------------------------------------------------------*/
#unity-wrapper {
  width: 80%;
  position: relative;
  overflow: hidden;
}

#unity-container {
  width: 100%;
  height: 100%;
}

#unity-canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
  
}

#unity-loading-bar {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 20px;
  background-color: var(--main-color);
  border-radius: 10px;
  overflow: hidden;
  z-index: 10;
}

#unity-progress-bar-empty {
  width: 100%;
  height: 100%;
  background-color: var(--main-color);
}

#unity-progress-bar-full {
  width: 0%;
  height: 100%;
  background-color: var(--light-text-color);
  transition: width 0.3s ease;
}

.color-card-mobile {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 320px;
  background: #000;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid var(--dark-text-color);
  z-index: 5;
  display: none; /* Default gizli */
}

/*UNITY-----------------------------------------------------------------------------------------------*/
@media (max-width: 1024px) {
  #info-panel {
    overflow-y: auto;
  }

  .intro-box {
    margin-left: 10px;
    margin-bottom: 20px;
  }

  .details-box {
    margin-left: 10px;
  }

  .gradient-heading {
    font-size: 32px;
  }

  .product-details {
    margin-bottom: 10px;
  }

  .product-details h2 {
    font-size: 22px;
  }

  .product-details p {
    font-size: 12px;
  }

  .color-card {
    padding: 16px 20px;
    margin-bottom: 15px;
  }

  .copyright {
    margin-top: 20px;
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  #info-panel {
    position: absolute;
    overflow-y: auto;
    justify-content: baseline;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    transform: translateX(-100%);
    background-color: var(--main-color);
  }

  #info-panel.open {
    transform: translateX(0);
  }

  #unity-wrapper {
    width: 100%;
  }
  .mobile-toggle-wrapper {
    display: block;
  }
   .color-card-mobile {
    display: block;
  }
}