/* ------------------------------------------------------------------------------------ */


.container {
  width: 1074px;
  margin: auto;
}

.home {
  padding-top: 150px;
  padding-bottom: 10px;
}

.home-content {
  display: none;
}


.poster {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 80px;

}

.poster-cards {
  width: 255px;
  height: 330px;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  background-size: cover;
  background-position: center;
  /* margin-bottom: 5px; */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.poster-wrapper {
  display: flex;
  /* یا grid یا هرچی استفاده می‌کنی */
  flex-wrap: wrap;
}

.poster-cards {
  position: relative;
  overflow: hidden;
}

/* .poster-cards::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: inherit;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
  z-index: 0;
} */





.poster-cards:nth-child(1) {
  background-image: url(/image/file_00000000eb3c61f7b9e0d955c96e5b23.webp);
  background-size: cover;
  background-position: center;
}

.poster-cards:nth-child(2) {
  background-image: url(/image/Muppetrealistic.webp);
  background-size: cover;
  background-position: center;
}

.poster-cards:nth-child(3) {
  background-image: url(/image/file_00000000afd061f781207413ae474318.webp);
  background-size: cover;
  background-position: center;
}

.poster-cards:nth-child(4) {
  background-image: url(/image/file_00000000711c61f89cca37a360755bf5.webp);
  background-size: cover;
  background-position: center;
}

.poster-cards:nth-child(5) {
  background-image: url(/image/Marble.webp);
  background-size: cover;
  background-position: center;
}

.poster-cards:nth-child(6) {
  background-image: url(/image/legostyle.webp);
  background-size: cover;
  background-position: center;
}

.poster-cards:nth-child(7) {
  background-image: url(/image/IMG_20250607_014124.webp);
  background-size: cover;
  background-position: center;
}

.poster-cards:nth-child(8) {
  background-image: url(/image/file_000000008bcc61f796169637e121274e.webp);
  background-size: cover;
  background-position: center;
}

.poster-cards:nth-child(9) {
  background-image: url(/image/file_000000009e8c61f7b6bf7c08bb604047.webp);
  background-size: cover;
  background-position: center;
}

.poster-cards:nth-child(10) {
  background-image: url(/image/file_0000000038d061f88565577aa27356bc.webp);
  background-size: cover;
  background-position: center;
}

.poster-cards:nth-child(11) {
  background-image: url(/image/IMG_4321.webp);
  background-size: cover;
  background-position: center;
}

.poster-cards:nth-child(12) {
  background-image: url(/image/file_000000008f0861f7b59b3c9011c4e0c9.webp);
  background-size: cover;
  background-position: center;
}

.poster-cards:nth-child(13) {
  background-image: url(/image/IMG_4324.webp);
  background-size: cover;
  background-position: center;
}

.poster-cards:nth-child(14) {
  background-image: url(/image/IMG_4195.webp);
  background-size: cover;
  background-position: center;
}

.poster-cards:nth-child(15) {
  background-image: url(/image/IMG_4328.webp);
  background-size: cover;
  background-position: center;
}

.poster-cards:nth-child(16) {
  background-image: url(/image/IMG_20250615_092557_457.webp);
  background-size: cover;
  background-position: center;
}

.poster-cards:nth-child(17) {
  background-image: url(/image/disneyclassic.webp);
  background-size: cover;
  background-position: center;
}

.poster-cards:nth-child(18) {
  background-image: url(/image/IMG_20250615_092602_746.webp);
  background-size: cover;
  background-position: center;
}

.poster-cards:nth-child(19) {
  background-image: url(/image/IMG_20250615_092916_931.webp);
  background-size: cover;
  background-position: center;
}

.poster-cards:nth-child(20) {
  background-image: url(/image/IMG_20250615_092531_548.webp);
  background-size: cover;
  background-position: center;
}


.poster-cards:nth-child(21) {
  background-image: url(/image/IMG_20250615_092550_644.webp);
  background-size: cover;
  background-position: center;
}

.poster-cards:nth-child(22) {
  background-image: url(/image/IMG_20250615_092544_191.webp);
  background-size: cover;
  background-position: center;
}

.poster-cards:nth-child(23) {
  background-image: url(/image/IMG_20250615_092536_731.webp);
  background-size: cover;
  background-position: center;
}

.poster-cards:nth-child(24) {
  background-image: url(/image/photo19452947249.webp);
  background-size: cover;
  background-position: center;
}

.poster-cards:nth-child(25) {
  background-image: url(/image/photo19452958925.webp);
  background-size: cover;
  background-position: center;
}

.poster-cards:nth-child(26) {
  background-image: url(/image/photo19452960004.webp);
  background-size: cover;
  background-position: center;
}

.poster-cards:nth-child(27) {
  background-image: url(/image/photo19452960895.webp);
  background-size: cover;
  background-position: center;
}

.poster-cards:nth-child(28) {
  background-image: url(/image/photo19453123364.webp);
  background-size: cover;
  background-position: center;
}

.poster-cards:nth-child(29) {
  background-image: url(/image/photo19453122129.webp);
  background-size: cover;
  background-position: center;
}

.poster-cards:nth-child(30) {
  background-image: url(/image/photo19453123736.webp);
  background-size: cover;
  background-position: center;
}

.poster-cards:nth-child(31) {
  background-image: url(/image/photo19453122591.webp);
  background-size: cover;
  background-position: center;
}

.poster-cards:nth-child(32) {
  background-image: url(/image/photo19453123966.webp);
  background-size: cover;
  background-position: center;
}


.poster-card__content {
  background-color: rgba(102, 102, 102, 0.08);
  backdrop-filter: blur(7.5px);
  border-top: 2px solid rgba(102, 102, 102, 0.09);
  display: flex;
  position: absolute;
  bottom: 0;
  width: 100%;
  justify-content: space-between;
  padding: 0px 17px;
  height: 80px;
  align-items: center;
}

.poster-text {}

.poster-text h4 {
  color: var(--text-color-cart);
  font-family: 'Reagular';
  font-size: 16px;

}

.poster-text p {
  margin-top: 5px;
}

.poster-text {
  font-family: 'ExtraLight';
  font-size: 14px;
  color: var(--text-color-cart);

}

.poster-card__btn {
  background-color: rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(75px);
  text-decoration: none;
  padding: 18px 25px;
  border-radius: 12px;
  font-family: 'Reagular';
  color: var(--text-color-cart);
  font-size: 14px;
  transition: all 0.3s ease;

}

.poster-card__btn:hover {
  color: var(--text-color-cart);
  transform: translateY(-3px);
  padding: 18.5px 25.5px;
  background-color: rgba(0, 0, 0, 0.4);

}

.hidden-card {
  display: none;
}

.poster-cards {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* حالت مخفی با انیمیشن */
.poster-cards.hidden-card {
  opacity: 0;
  transform: translateY(30px);
  pointer-events: none;
  position: absolute;
}

.poster-cards.hidden-card {
  opacity: 0;
  transform: translateY(30px) rotateX(15deg);

}

/*------------------------------------------------risponsive------------------------------------------------------ */

/* همبرگر آیکون پایه */
.heder__icon {
  width: 30px;
  height: 24px;
  position: relative;
  cursor: pointer;
  display: none;
  /* در مدیای کوئری فعال میشه */
  z-index: 1001;
}

/* سه خط همبرگر */
.heder__icon span {
  position: absolute;
  height: 3px;
  width: 100%;
  background: var(--bg-color-hamberger);
  border-radius: 3px;
  transition: all 0.4s ease;
}

.heder__icon span:nth-child(1) {
  top: 0;
}

.heder__icon span:nth-child(2) {
  top: 10px;
}

.heder__icon span:nth-child(3) {
  top: 20px;
}

/* حالت ضربدر */
.heder__icon.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 10px;
}

.heder__icon.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-20px);
}

.heder__icon.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 10px;
}

/* در اسکرین کوچیک نمایش بده */
@media (max-width: 768px) {
  .heder__icon {
    display: block;
  }
}


/* برای موبایل: مخفی کردن navbar و نمایش همبرگر */
@media (max-width: 768px) {
  .navbar {
    position: fixed;
    top: 0;
    left: -100%;
    /* ✅ تغییر از right به left */
    height: 100vh;
    width: 300px;
    background-color: var(--bg-color-hamberger-menu);
    flex-direction: column;
    padding: 2rem 1rem;
    gap: 1.5rem;
    transition: left 0.3s ease-in-out;
    /* ✅ تغییر transition به left */
    z-index: 999;
  }

  .navbar__btn {
    display: none;
  }

  .navbar.active {
    left: 0;
    /* ✅ منو باز بشه از چپ */
  }

  .heder__icon {
    display: block;
    cursor: pointer;
    z-index: 1000;
  }





}

/* --ی-حی-صحی-حص-ی-صحی-حصی */

@media (max-width: 768px) {
  .container {
    width: 100%;
    padding: 0 15px;
  }

  .home-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.home-title {
  width: 430px;
  font-size: 27px;
  color: var(--text-color-7);
  font-family: 'Bold';
}

.home-cption {
  max-width: 355px;
  min-width: 300px;
  font-size: 15px;
  margin-top: 22px;
  color: var(--text-color-7);
  font-family: 'Light';
}

  .poster {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .poster-cards {
    width: 70%;
    height: 330px;
    aspect-ratio: 3 / 4;
    border-radius: 20px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
  }

  .poster-card__content {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100px;
    padding: 15px 12px 20px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    gap: 12px; /* فاصله بین متن و دکمه */
  }

  .poster-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 92%;
    color: white;
    font-size: 14px;
  }

  .poster-text h4 {
    font-size: 16px;
    font-weight: bold;
    margin: 0;
  }

  .poster-text p {
    font-size: 14px;
    margin: 0;
    opacity: 0.9;
  }

  .poster-card__btn {
    background: white;
    border-radius: 15px;
    padding: 9px 24px;
    font-size: 15px;
    font-weight: 500;
    color: black;
    text-align: center;
    text-decoration: none;
    transition: background 0.3s ease;
    width: 100%;
  }

  .poster-card__btn:hover {
    background: #f0f0f0;
  }
}
