@font-face {
  font-family: "Vazir";
  src: url("./Vazir.woff2") format("woff2");
}

body {
  font-family: "Vazir", Arial, sans-serif;
  background-color: #f4f4f4;
  margin: 0;
  padding: 0;
  direction: rtl;
  text-align: right;
}

*,
button,
input {
  font-family: "Vazir", Arial, sans-serif;
}

.title {
  font-size: 28px;
  text-align: center;
  margin: 20px 0;
  color: #333;
  font-weight: bold;
}

.container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  padding: 10px;
  max-width: 1200px;
  margin: auto;
}

.item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  height: 280px;
  background-color: white;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.item:hover {
  transform: scale(1.025);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.item:hover img {
  filter: blur(1px);
}

@media only screen and (min-width: 768px) {
  .item:hover {
    transform: scale(1.05);
  }
}

.item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: blur(4px);
  transition: all 0.15s ease-in-out 0.02s;
}

.gradient {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 5rem;
  transform: translateY(-50%);
  background: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.3) 40%,
    rgba(0, 0, 0, 0) 100%
  );
  pointer-events: none;
}

.text {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80%;
  transform: translate(-50%, -50%);
  color: yellow;
  text-shadow: 1px 1px 1rem #333;
  font-size: 22px;
  font-weight: bold;
  text-align: center;
  line-height: 1.5;
}

.actions {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: flex;
  gap: 10px;
}

.like-btn,
.dislike-btn {
  background-color: #ffcc00;
  border: none;
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  transition: 0.2s;
}

.like-btn:hover {
  background-color: #ffdd33;
}

.dislike-btn {
  background-color: #ff6666;
  color: white;
}

.dislike-btn:hover {
  background-color: #ff4444;
}

/* ریسپانسیو */
@media (max-width: 1024px) {
  .container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .container {
    grid-template-columns: 1fr;
  }
}
