/*
 Theme Name:   Hello Elementor Child
 Template:     hello-elementor
 Version:      1.1.0
*/

@font-face {
    font-family: 'IRANSans';
    src: url('fonts/IRANSans.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

/* اینجا می‌تونی بقیه استایل‌های دلخواهت رو اضافه کنی */
/* ----------------------
  کانتینر کارت‌ها
------------------------ */
.articles-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  justify-content: center;
  margin: 40px 0;
}

/* ----------------------
  کارت‌ها
------------------------ */
.category-card {
  position: relative;
  background: linear-gradient(135deg, #ffe6f0, #ffd6d6);
  border-radius: 20px;
  overflow: hidden;
  flex: 1 1 calc(50% - 25px); /* دو کارت در هر ردیف دسکتاپ */
  max-width: 320px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* انیمیشن ورود کارت */
.category-card {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s forwards;
}
.category-card:nth-child(1) { animation-delay: 0.2s; }
.category-card:nth-child(2) { animation-delay: 0.4s; }
.category-card:nth-child(3) { animation-delay: 0.6s; }
.category-card:nth-child(4) { animation-delay: 0.8s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* گرادینت متحرک پشت کارت */
.category-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, #ff85a2, #ffb3b3, #ff85a2, #ffb3b3);
  background-size: 400% 400%;
  filter: blur(60px);
  opacity: 0.6;
  transition: opacity 0.5s ease;
  z-index: 0;
  animation: gradientMove 8s ease infinite;
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.category-card:hover::before {
  opacity: 0.8;
}

/* ----------------------
  لینک داخل کارت
------------------------ */
.category-card a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center; /* وسط چین کردن متن و آیکون دسکتاپ */
  flex-wrap: wrap; /* در موبایل به خط بعد می‌رود */
  gap: 8px; /* فاصله بین آیکون و متن */
  padding: 40px 20px;
  font-size: 20px;
  font-weight: 700;
  color: #333;
  text-decoration: none;
  z-index: 1;
  transition: color 0.3s ease;
}

/* آیکون کنار متن */
.category-card a::before {
  content: "🌸"; /* ایموجی یا آیکون دلخواه */
  font-size: 24px;
  transition: transform 0.3s ease;
}

/* افکت هاور روی کارت و آیکون */
.category-card:hover {
  transform: translateY(-15px) scale(1.05);
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

.category-card:hover a {
  color: #ff2e63;
}

.category-card:hover a::before {
  transform: rotate(20deg) scale(1.2);
}

/* ----------------------
  ریسپانسیو موبایل
------------------------ */
@media (max-width: 768px) {
  .articles-categories {
    gap: 15px;
  }
  .category-card {
    flex: 1 1 100%; /* تمام عرض صفحه */
  }
  .category-card a {
    justify-content: flex-start; /* متن و آیکون راست‌چین */
  }
}
