/* ============================================
   تنظیمات پایه و ریست
   ============================================ */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #0a0a0a;
}
::-webkit-scrollbar-thumb {
  background: #374151;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: #8b5cf6;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

@font-face {
    font-family: 'kalame'; /* نام دلخواه شما برای این فونت */
    src: url('fount/Kalameh-Medium.ttf') format('ttf'),url("fount/KalamehWeb-Medium.woff2" ) format('woff2');
    /* برای پشتیبانی از مرورگرهای قدیمی‌تر، فرمت‌های بیشتری اضافه کنید */
    font-weight: normal;
    font-style: normal;
    font-display: swap; /* برای بهبود عملکرد بارگذاری */
}

body {
  font-family: 'kalame', Arial, Helvetica, sans-serif;
  background: linear-gradient(to right, #320D5D 0%, #120521 75%);
  color: #fff;
  overflow-x: hidden;
}

/* ============================================
   هدر (Header)
   ============================================ */
.heade {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0 20px;
  height: 90px;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.header-container {
  max-width: 1680px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: -0.5px;
  transition: 0.3s;
}
.brand-link i {
  font-size: 2rem;
  color: #8b5cf6;
  transition: 0.3s;
}
.brand-link:hover i {
  transform: scale(1.1) rotate(-5deg);
}
.brand-link span {
  background: linear-gradient(135deg, #f0f0f0, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* لوگو */
.brand-logo {
  height: 80px;
  transition: height 0.3s ease;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap; /* برای جلوگیری از سرریز در موبایل */
}

.btn-login,
.btn-register,
.btn-logout {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  cursor: pointer;
  background: transparent;
  color: #d1d5db;
}
.btn-login i,
.btn-logout i {
  font-size: 1.2rem;
}
.btn-login:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: #fff;
  transform: translateY(-2px);
}

.btn-register {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  color: #fff;
  border: none;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}
.btn-register:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
}

.btn-logout {
  color: #f87171;
}
.btn-logout:hover {
  background: rgba(248, 113, 113, 0.1);
  border-color: rgba(248, 113, 113, 0.2);
  color: #fca5a5;
  transform: translateY(-2px);
}

.user-profile {
  display: flex;
  align-items: center;
}

.profile-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #fff;
  padding: 4px 12px 4px 4px;
  border-radius: 40px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.3s ease;
}
.profile-link i {
  font-size: 2rem;
  color: #a78bfa;
}
.profile-link .username {
  font-weight: 500;
  font-size: 0.95rem;
}
.profile-link .badge {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 30px;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.profile-link:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

/* دکمه حمایت */
.support-btn {
  padding: 0.6em 2em;
  border: none;
  outline: none;
  color: rgb(255, 255, 255);
  background: #2C0C51;
  cursor: pointer;
  position: relative;
  z-index: 0;
  border-radius: 10px;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  font-weight: bolder;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.support-btn:before {
  content: "";
  background: linear-gradient(
    45deg,
    #ff0000, #ff7300, #fffb00, #48ff00,
    #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000
  );
  position: absolute;
  top: -2px;
  left: -2px;
  background-size: 400%;
  z-index: -1;
  filter: blur(5px);
  -webkit-filter: blur(5px);
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  animation: glowing-button-85 20s linear infinite;
  transition: opacity 0.3s ease-in-out;
  border-radius: 10px;
}

@keyframes glowing-button-85 {
  0% { background-position: 0 0; }
  50% { background-position: 400% 0; }
  100% { background-position: 0 0; }
}

.support-btn:after {
  z-index: -1;
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: #471298;
  left: 0;
  top: 0;
  border-radius: 10px;
}

/* ============================================
   بخش قهرمان (Hero)
   ============================================ */
.abbas {
  padding: 30px 110px;
  max-width: 100%;
  margin: 0 auto;
}
.abbas h1 {
  font-size: clamp(2rem, 8vw, 4rem);
  margin-bottom: 15px;
}
.abbas p {
  color: #6B7280;
  line-height: 1.6;
  max-width: 800px;
}

/* ============================================
   کارت‌ها (Cards)
   ============================================ */
.row1 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 55px;
  padding: 20px 110px;
  max-width: 100%;
  margin: 0 auto;
}

.cards {
  width: 100%;
  margin-bottom: 30px;
}

.card-wrapper {
  position: relative;
  width: 100%;
}

.image-container {
  border: 2px solid #8DAEFF ;
  box-shadow: 10px 5px 0px -1px rgba(158, 158, 158, 0.58),20px 10px 0px -1px rgba(87, 87, 87, 0.58);
  transform: translateY(-7px);
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 20px;
  transition: transform 0.4s ease;
}

.babak {
  width: 100%;
  aspect-ratio: 6 / 4;
  border-radius: 20px;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
  background-color: aliceblue;
  /*box-shadow: 17px 8px 10px -1px rgba(0, 0, 0, 0.48);*/
  /*-webkit-box-shadow: 17px 8px 10px -1px rgba(0, 0, 0, 0.48);*/
}



.play-button {
  position: absolute;
  bottom: 20px;
  left: 20px;
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 2px solid #320D5D;
}

.play-button i {
  font-size: 32px;
  color: #320D5D;
  margin-left: 3px;
  transition: all 0.3s ease;
}

.image-container:hover .babak {
  transform: scale(1.05);
}


.image-container:hover{
  transform: scale(1.05);
}

.image-container:hover .play-button {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 4px 30px rgba(255, 255, 255, 0.3);
}
.image-container:hover .play-button i {
  transform: scale(1.05) rotate(2deg);
}
.bx-play:before {
  content: "\ebbd";
  font-size: larger;
}

.play-button:hover {
  transform: scale(1.2) !important;
  background: #320D5D !important;
  box-shadow: 0 4px 40px rgba(255, 255, 255, 0.5) !important;
  border: 2px solid #8DAEFF;
}
.play-button:hover i {
  transform: scale(1.15) !important;
  color: #8DAEFF;
}

.info {
  margin-top: 20px;
}
.info-link {
  text-decoration: none;
  color: white;
  display: block;
}
.info h3 {
  font-size: 24px;
  margin-bottom: 10px;
  transition: color 0.3s ease;
}
.info h3:hover {
  color: #4278D0;
}
.info p {
  color: #9CA3AF;
  font-size: 16px;
  line-height: 1.5;
}

/* ============================================
   ریسپانسیو (Responsive) – اصلاح‌شده
   ============================================ */

/* تبلت و صفحه‌های متوسط */
@media (max-width: 1200px) {
  .abbas {
    padding: 30px 60px;
  }
  .row1 {
    padding: 20px 60px;
    gap: 30px;
  }
  .play-button {
    width: 60px;
    height: 60px;
  }
  .play-button i {
    font-size: 28px;
  }
}

@media (max-width: 900px) {
  .row1 {
    grid-template-columns: repeat(2, 1fr);
    padding: 20px 40px;
  }
  .abbas {
    padding: 30px 40px;
  }
}

/* موبایل بزرگ (تبلت کوچک) */
@media (max-width: 768px) {
  .heade {
    height: 64px;
    padding: 0 15px;
  }
  .brand-logo {
    height: 50px !important; /* کاهش اندازه لوگو */
  }
  .brand-link {
    font-size: 1.1rem;
  }
  .brand-link i {
    font-size: 1.6rem;
  }
  .header-actions {
    gap: 8px;
  }
  .btn-login,
  .btn-register,
  .btn-logout {
    padding: 6px 14px;
    font-size: 0.85rem;
  }
  /* در موبایل، متن دکمه‌های ورود/خروج را مخفی می‌کنیم */
  .btn-login span,
  .btn-logout span {
    display: none;
  }
  .btn-login i,
  .btn-logout i {
    font-size: 1.4rem;
    margin: 0;
  }
  /* برای دکمه عضویت، آیکون را نشان می‌دهیم و متن را کوچک می‌کنیم */
  .btn-register span {
    font-size: 0.85rem;
  }
  .btn-register i {
    font-size: 1.2rem;
  }

  /* دکمه حمایت را کوچک‌تر می‌کنیم */
  .support-btn {
    padding: 0.4em 1.2em;
    font-size: 0.8rem;
  }

  .profile-link .username {
    display: none;
  }
  .profile-link .badge {
    display: none;
  }
  .profile-link i {
    font-size: 1.8rem;
  }
  .profile-link {
    padding: 4px 8px;
    background: transparent;
    border: none;
  }

  .play-button {
    width: 60px;
    height: 60px;
    bottom: 15px;
    left: 15px;
  }
  .play-button i {
    font-size: 28px;
  }
}

/* موبایل کوچک */
@media (max-width: 600px) {
  .row1 {
    grid-template-columns: 1fr;
    padding: 20px 20px;
    gap: 25px;
  }
  .abbas {
    padding: 30px 20px;
    text-align: center;
  }
  .abbas p {
    max-width: 100%; /* استفاده از تمام عرض */
    margin: 0 auto;
  }
  .play-button {
    width: 60px;
    height: 60px;
  }
  .play-button i {
    font-size: 28px;
  }
}

/* موبایل خیلی کوچک (زیر ۴۸۰px) */
@media (max-width: 480px) {
  .heade {
    height: 56px;
    padding: 0 12px;
  }
  .brand-logo {
    height: 40px !important;
  }
  .brand-link {
    font-size: 1rem;
  }
  .brand-link i {
    font-size: 1.4rem;
  }

  .header-actions {
    gap: 6px;
  }
  .btn-login,
  .btn-register,
  .btn-logout {
    padding: 4px 10px;
    font-size: 0.75rem;
  }
  .btn-login i,
  .btn-logout i {
    font-size: 1.2rem;
  }
  .btn-register span {
    font-size: 0.7rem;
  }
  .btn-register i {
    font-size: 1rem;
  }
  .support-btn {
    padding: 0.3em 1em;
    font-size: 0.7rem;
  }

  .abbas {
    padding: 20px 15px;
  }
  .play-button {
    width: 50px;
    height: 50px;
    bottom: 12px;
    left: 12px;
  }
  .play-button i {
    font-size: 24px;
    margin-left: 2px;
  }
}