/* ---------------------------------------------------------- color -------------------------------------------------------------*/


:root {

  --bg-color-1: #FFFFFF;
  --bg-color-2: #ffffff00;
  --bg-color-3: #3A3A3A;
  --bg-color-4: #5a5a5a;
  --bg-color-5: #3AA3AF;
  --bg-color-footer: #f7f7f7;
  /* footer bg */
  --bg-color-footer-slide: #ffffff;
  /* footer slide */
  --bg-color-tools: #ffffff;
  /* tools popup */
  --bg-color-popup: #ffffff;
  /* popup */
  --bg-color-popup-box: #f5f5f5;
  /* popup box */
  --bg-color-close: #FFFFFF;
  --bg-color-hamberger: #000000;
  --bg-color-hamberger-menu: #fdfafa;


  --bg-blur-1: rgba(255, 255, 255, 0.1);
  --bg-blur-2: rgba(24, 24, 24, 0.12);
  --bg-blur-3: rgba(255, 255, 255, 0.1);
  --bg-blur-overlay: blur(180px);

  --text-color-1: #000000;
  --text-color-1-1: #000000;
  /**/
  --text-color-2: #504f4f;
  --text-color-3: #504f4f;
  --text-color-4: #FFFFFF;
  --text-color-4-1: #ffffff;
  /**/
  --text-color-4-2: #ffffff;
  /**/
  --text-color-4-btn: #ffffff;
  /**/
  --text-color-4-right: #ffffff;
  /**/
  --text-color-5: #F6F6F6;
  --text-color-6: #4d4d4d;
  --text-color-7: #3a3a3a;
  --text-color-8: #0056A7;
  /**/
  --text-color-cart: #ffffff;
  --text-color-box-popup: #000000c4;



  --title-color-1: #3a3a3a;
  --title-color-2: #000000;

  --hover-color-1: #000000;
  --hover-color-2: #58bfff;
  --hover-color-2-right: #58bfff;
  --hover-color-3: #2d2d2d;
  --hover-color-tools: #eaf6ff;

}


.dark-mode {

  --bg-color-main: #010101;
  --bg-color-1: #ffffff00;
  --bg-color-2: #FFFFFF;
  --bg-color-3: #F9F9F9;
  --bg-color-4: #fafdfd;
  --bg-color-5: #3AA3AF;
  --bg-color-footer: #050505;
  /* footer bg */
  --bg-color-footer-slide: #0c0c0cea;
  /* footer slide */
  --bg-color-tools: #030303;
  /* tools popup */
  --bg-color-popup: #151515;
  /* popup */
  --bg-color-popup-box: #0b0b0b;
  /* popup box */
  --bg-color-close: #151515;
  --bg-color-hamberger: #ffffff;
  --bg-color-hamberger-menu: #3a3a3a;


  --bg-blur-1: rgba(24, 24, 24, 0.1);
  --bg-blur-2: rgba(24, 24, 24, 0.95);
  --bg-blur-3: rgba(0, 0, 0, 0.1);
  --bg-blur-overlay: blur(280px);

  --text-color-3: #ffffff;
  /**/
  --text-color-1: #ffffff;
  /**/
  --text-color-1-1: #b9b9b9;
  /**/
  --text-color-2: #6c6c6c;
  --text-color-3: #504f4f;
  --text-color-4: #010101;
  /**/
  --text-color-4-1: #ffffff;
  /**/
  --text-color-4-2: #0c0c0c;
  /**/
  --text-color-4-btn: #ffffff;
  /**/
  --text-color-4-right: #010101;
  /**/
  --text-color-5: #F6F6F6;
  --text-color-6: #ffffff;
  /**/
  --text-color-7: #F6F6F6;
  /**/
  --text-color-8: #518aae;
  /**/
  --text-color-box-popup: #bfbfbf;


  --title-color-1: #3a3a3a;
  --title-color-2: #000000;

  --hover-color-1: #a5a5a5;
  --hover-color-2: #58bfff;
  --hover-color-2-right: #58bfff;
  --hover-color-3: #ffffff;
  --hover-color-tools: #3e3e3e8b;

}



/* ---------------------------------------------------------- Fonts -------------------------------------------------------------*/

@font-face {
  font-family: "Reagular";
  src: url(/Font/static/Inter_18pt-Regular.ttf) format('truetype');
}

@font-face {
  font-family: "Black";
  src: url(/Font/static/Inter_18pt-Black.ttf) format('truetype');
}

@font-face {
  font-family: "Medium";
  src: url(/Font/static/Inter_18pt-Medium.ttf) format('truetype');
}

@font-face {
  font-family: "Bold";
  src: url(/Font/static/Inter_18pt-Bold.ttf) format('truetype');
}

@font-face {
  font-family: "ExtraLight";
  src: url(/Font/static/Inter_18pt-ExtraLight.ttf) format('truetype');
}

@font-face {
  font-family: "Light";
  src: url(/Font/static/Inter_18pt-Light.ttf) format('truetype');
}

/* ------------------------------------------------------- Normalize Css ---------------------------------------------------------*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;

}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* ----------------------------------------------- Main ----------------------------------------------- */

.main {
  position: relative;
  background-color: var(--bg-color-main);
  min-height: 100vh;

}

.main__background {
  position: relative;
  overflow: hidden;
}

.background-shapes {}

.circle__left,
.circle__right {}

.circle__left {
  width: 35.4375rem;
  height: 35.4375rem;
  border-radius: 35.4375rem;
  background: #58BFFF;
  position: absolute;
  top: 386px;
  left: -308px;
  z-index: 0;
}

.circle__right {
  width: 35.5rem;
  height: 35.4375rem;
  border-radius: 35.5rem;
  background: #5AC4C9;
  position: absolute;
  top: 218px;
  right: -330px;
  z-index: 0;
}

.blur-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-blur-1);
  /* background-color: var(--bg-blur-2); */
  backdrop-filter: var(--bg-blur-overlay);
  z-index: 1;

}

.container {
  position: relative;
  z-index: 3;
}

/* ------------------------------------------------- Header ------------------------------------------------- */

.header {
  z-index: 100;
  position: fixed;
  flex-direction: row;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 30px;
  background-color: var(--bg-blur-3);
  backdrop-filter: blur(15px);

  display: flex;
  align-items: center;
  justify-content: space-between;


}


.logo {
  text-decoration: none;
  color: var(--text-color-1);
  font-size: 17px;
  font-family: 'Reagular';
}

.navbar {
  display: flex;
  gap: 30px;
  margin-right: 6.5%;
}

.navbar__item {
  list-style: none;
}

.navbar__link {
  text-decoration: none;
  color: var(--text-color-6);
  font-family: 'Medium';
  font-size: 16px;
}

.navbar__link:hover {
  color: var(--hover-color-1);
}

.navbar__btn {
  /* padding: 9px 11px; */
  display: flex;
  /* border-radius: 10px; */
  /* color: rgb(0, 0, 0); opacity: .5; */
  /* background-color: rgb(58, 58, 58); opacity: 0.5; */
}

.navbar__btn svg {
  color: inherit;
  width: 18px;
  height: auto;
}

.navbar__right-placeholder {
  color: rgb(255, 255, 255);
  opacity: 0.5;

}

.poster-btn__btn {
  color: var(--text-color-4);
  text-decoration: none;
  font-family: 'Bold';
  text-align: center;
  display: flex;
  justify-content: center;
  margin-top: 70px;
  background-color: var(--bg-color-3);
  width: 220px;
  align-items: center;
  margin: 70px auto;
  padding: 8px 50px;
  border-radius: 10px;
  font-family: 'Bold';
}

.poster-btn__btn:hover {
  background-color: var(--button-3-bg-color);
  color: var(--text-color);
  box-shadow: 0 4px 15px rgba(88, 191, 255, 0.4);
  transform: translateY(-3px);
  transition: all 0.2s ease-in-out;
}

.poster-zoom {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.poster-zoom:hover {
  transform: scale(1.015);
  box-shadow: 0 5px 10px rgb(0, 0, 0, 0.1);
}

/* -------------------------------------------fotter---------------------------------------------- */

.footer {
  background-color: var(--bg-color-footer);
  position: relative;
  z-index: 1;
}

.fotter-top {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 40px 20px 50px 35px;
  z-index: 1;
}

.fotter-item {
  width: 50%;
  display: flex;
  justify-content: space-around;
  align-items: start;
  line-height: 21px;

}

.fotter-tex {
  line-height: 21px;
}

.fotter-tex h4 {
  margin-bottom: 10px;
  font-family: 'Bold';
  font-size: 16px;
  color: var(--text-color-1);
}

.fotter-tex p {
  font-family: 'medium';
  font-size: 14px;
  width: 400px;
  color: var(--text-color-2);
}


.footer-links h4 {
  font-family: 'Bold';
  font-size: 16px;
  color: var(--text-color-1);
  margin-bottom: 10px;
}

.fotter-linl-1 {
  text-decoration: none;
  font-family: 'medium';
  font-size: 14px;
  color: var(--text-color-2);
}

.fotter-linl-2 {
  text-decoration: none;
  font-family: 'medium';
  font-size: 14px;
  color: var(--text-color-2);

}

.fotter-linl-2 {
  text-decoration: none;
  font-family: 'medium';
  font-size: 14px;
  color: var(--text-color-2);

}

.fotter-contact h4 {
  font-family: 'Bold';
  font-size: 16px;
  color: var(--text-color-1);
  margin-bottom: 10px;
}

.fotter-contact-1 {
  text-decoration: none;
  font-family: 'medium';
  font-size: 14px;
  color: var(--text-color-2);
}

.fotter-contact-2 {
  text-decoration: none;
  font-family: 'medium';
  font-size: 14px;
  color: var(--text-color-2);
}

.fotter-contact-3 {
  text-decoration: none;
  font-family: 'medium';
  font-size: 14px;
  color: var(--text-color-2);
}

.fotter-contact-btn {
  background-color: #5a5a5a;
  padding: 8px 8px;
  color: #fafafa;
  text-decoration: none;
  font-family: 'medium';
  font-size: 12px;
  border-radius: 10px;
  justify-content: center;
  align-items: center;
  display: flex;
}

.fotter-contact-btn:hover {
  background-color: #58bfff;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(88, 191, 255, 0.4);
  transform: translateY(-3px);
  transition: all 0.2s ease-in-out;
}

.fotter-copyright {
  padding: 20px;
  color: var(--text-color-2);
  position: relative;
  z-index: 1;
  text-align: center;
  font-family: 'medium';
  font-size: 14px;
}

.footer-content__continer{
  width: 350px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}





/* ------------------------------------------------- Popup  ------------------------------------------------- */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;

}


.popup.show {
  display: flex;
}

.popup-content {
  background: var(--bg-color-popup);
  padding: 20px;
  border-radius: 12px;
  max-width: 800px;
  width: 90%;
  height: 450px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  position: relative;
  display: flex;
  gap: 30px;
  /*   
  transform: translateY(40px) scale(0.95) rotateX(30deg);
 
  animation: popupVocherFancyIn 0.8s cubic-bezier(.22,1,.36,1) forwards; */

}


.popup-content-left {
  width: 45%;
  margin-left: 10px;
  margin-top: 35px;

}

.popup-content-left h4 {
  font-family: 'Reagular';
  font-size: 20px;
  margin-bottom: 30px;
  margin-left: 10px;

}

.popup-menu {
  list-style: disc inside;
  padding-left: 1.5em;
  text-indent: -1.5em;
  line-height: 1.8;
}

.popup-menu-item {
  margin-left: 10px;
  font-family: 'Light';
  font-size: 17px;


}

.popup-menu-item a {
  color: var(--text-color-8);
  text-decoration: none;
}

.popup-box {
  position: absolute;
  bottom: 23px;
  background-color: rgb(255, 255, 255);
  width: 342px;
  height: 90px;
  border-radius: 15px;
  filter: drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.30));


}

.popup-content-left {
  color: var(--text-color-1);
}

.popup-content-right {
  width: 50%;
  border-radius: 15px;
  position: relative;
}

.close-btn {
  display: flex;
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-color-1);
  background-color: var(--bg-color-close);
  backdrop-filter: blur(15px);
  width: 28px;
  height: 28px;
  justify-content: center;
  align-self: center;
  border-radius: 7px;
  z-index: 3;
}

/* ------------------------------------------------------- container-img-prompts ------------------------------------------------------- */

.container-img-prompts {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 15px;
}

.container-img-prompts img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  /* بسیار مهم: جلوگیری از کشیدگی و زوم */
  user-select: none;
  pointer-events: none;
}

.before {
  z-index: 1;
  clip-path: inset(0 50% 0 0);
  /* نصف عکس اول نمایش داده میشه */
}

.after {
  z-index: 0;
}

.popup-slider {

  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: white;
  cursor: ew-resize;
  z-index: 2;
  outline: none;
}

/* ----*/

.popup-box-container {
  position: relative;
  margin-top: 20px;
}

.popup-box {
  /* background-color: #f5f5f5; */
  background-color: var(--bg-color-popup-box);
  border: 1px solid var(--bg-color-popup-box);
  padding: 12px 16px 12px 16px;
  /* پدینگ مساوی */
  white-space: pre-wrap;
  box-sizing: border-box;
  border-radius: 8px;
  font-family: monospace;
  white-space: pre-wrap;
  min-height: 60px;
  line-height: 1.2;

  user-select: none;
  /* جلوگیری از انتخاب متن */
  -webkit-user-select: none;
  /* برای مرورگرهای وب‌کیت */
  -moz-user-select: none;
  /* برای فایرفاکس */
  -ms-user-select: none;
  /* برای اینترنت اکسپلورر/ادج */
}

#promptText {
  position: absolute;
  top: 11px;
  left: 15px;
  width: 290px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  line-height: 1rem;
  max-height: calc(1.5em * 4);
  word-break: break-word;
  white-space: normal;
  color: var(--text-color-box-popup);

  user-select: none;
  /* جلوگیری از انتخاب متن */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}


.copy-btn {
  cursor: pointer;
  width: 20px;

  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background-color: transparent;
  border: none;
  font-size: 18px;
  cursor: pointer;
  stroke: var(--text-color-1);
}

.copy-btn:hover {
  transform: scale(1.1);
}

/* --------------------------------------------------------------------------------------------------------- */
/* ...tools... */
.navbar {
  display: flex;
  list-style: none;
  gap: 20px;
  position: relative;
}

.navbar__item {
  position: relative;
}

.navbar__link {
  text-decoration: none;

  padding: 0px 10px;
  display: inline-block;
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  /* دقیقاً زیر Tools */
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  /* عرض مشابه سایت نمونه */
  background: var(--bg-color-tools);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;

}

/* زمانی که هاور می‌کنی */
.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(30px);
  /* کمی پایین‌تر بیاد نرم */
}

/* ...existing code... */

/* استایل برای آیتم‌های داخل منوی Tools */
.dropdown-menu {
  padding: 20px 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: flex-start;
  align-items: flex-start;
  border-radius: 12px;
}

.dropdown-row {
  display: flex;
  align-items: center;
  width: calc(50% - 8px);
  margin-bottom: 8px;
  background: var(--bg-color-tools);
  border-radius: 8px;
  padding: 8px 12px;
  /* پدینگ اضافه شد */
  box-sizing: border-box;
  transition: box-shadow 0.2s, background 0.2s;
  gap: 16px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.dropdown-row:hover {
  background: var(--hover-color-tools);
  box-shadow: 0 2px 8px rgba(88, 191, 255, 0.10);
}

.dropdown-img {
  width: 100px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  margin-left: 0;
  /* حذف فاصله اضافی */
  flex-shrink: 0;
  background: #eee;
}

.dropdown-text h5 {
  font-size: 16px;
  font-family: 'Reagular';
  margin: 0 0 4px 0;
  /* color: #222; */
  color: var(--text-color-1);
}

.dropdown-text p {
  font-size: 13px;
  /* color: #555; */
  color: var(--text-color-1-1);
  margin: 0;
  font-family: 'Light';
}


/* -------------------------------------------- ------------------------------------------------------ */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  /* border: 3.4px solid #1D1D1D; */
  border-radius: 50px;

}

.checkbox {
  opacity: 0;
  position: absolute;
}

/* ...existing code... */
.checkbox-label {
  background-color: #0F0F0F;
  width: 49px;
  height: 26px;
  border-radius: 50px;
  position: relative;
  padding: 4px 6px;
  /* فاصله داخلی چپ و راست */
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
}

.checkbox-label .ball {
  background-color: #fff;
  width: 18px;
  height: 18px;
  position: absolute;
  left: 6px;
  /* با padding هماهنگ شود */
  top: 4px;
  border-radius: 50%;
  transition: transform 0.2s linear;
  z-index: 3;
}

.checkbox:checked+.checkbox-label .ball {
  transform: translateX(20px);
  /* مقدار دقیق برای وسط خورشید */
}

/* ...existing code... */

button:hover:not(.no-global-style),
.gallery-btn:hover:not(.no-global-style),
.poster-btn:hover:not(.no-global-style),
.gallary-btn-Rigth:hover:not(.no-global-style),
.poster-btn__btn:hover:not(.no-global-style) {
  background-color: var(--hover-color-2);
  color: var(--text-color-4-btn);
  box-shadow: 0 4px 15px rgba(88, 191, 255, 0.4);
  transform: translateY(-3px);
  transition: all 0.2s ease-in-out;
}


/* ---------------------------darkmood speed------------------------------ */
/* ...existing code... */
:root,
.dark-mode {
  transition:
    background-color 0.4s cubic-bezier(.4, 0, .2, 1),
    color 0.4s cubic-bezier(.4, 0, .2, 1);
}

body,
.main,
.header,
.footer {
  transition:
    background-color 0.4s cubic-bezier(.4, 0, .2, 1),
    color 0.4s cubic-bezier(.4, 0, .2, 1);
}

/* ...box info... */

.info-bar {
  position: absolute;
  width: 342px;
  height: 70px;
  bottom: 100%;
  left: 50%;
  margin-bottom: 10px;
  transform: translateX(-50%) translateY(10px);
  background: var(--bg-color-popup-box);
  color: var(--text-color-1);
  padding: 10px 18px;
  border-radius: 8px;
  white-space: normal;
  word-wrap: break-word;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  font-size: 14px;
  z-index: 10;
  font-family: "Light";
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: left;
}


.info-bar.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.info-link {
  color: var(--text-color-8);
  text-decoration: none;
}

.info-bar>p {
  line-height: 1.2rem;

}

.info-bar>p>svg {
  fill: var(--text-color-1);

}


@media (max-width: 768px) {

  .circle__right {
    width: 231px;
    height: 230px;
    border-radius: 35.5rem;
    background: #5AC4C9;
    position: absolute;
    top: 100px;
    right: -130px;
    z-index: 0;
  }

  .circle__left {
    width: 231px;
    height: 230px;
    border-radius: 35.4375rem;
    background: #58BFFF;
    position: absolute;
    top: 549px;
    left: -131px;
    z-index: 0;
  }
}