/* Основна картичка */
.forum-card {
  position: relative;
  display: block;
  border-radius: 1rem;
  border: 1px solid #d1d5db;
  background-color: #f0f4fa;
  color: #111827;
  padding: 1.5rem;
  overflow: hidden;
  transition: all 0.3s ease-out;
  text-decoration: none;
}

/* Gradient overlay налево */
.forum-card::after {
  content: "";
  position: absolute;
  top: -10%;
  right: 0;
  width: 80%;
  height: 120%;
  /* Ако нема custom --gradient-color, користи default плаво */
  background: linear-gradient(
    -35deg,
    var(--gradient-color, rgba(59,130,246,0.4)) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

@media (max-width: 768px) {
  .forum-card::after {
    width: 100%;
    height: 180%;
  }
}


/* Hover ефект */
.forum-card:hover {
  transform: translateY(-2px) scale(1.01);
  border-color: #3b82f6;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

/* Внатрешни елементи над gradient */
.forum-card h2,
.forum-card p,
.forum-card .forum-meta {
  position: relative;
  z-index: 1;
}

/* Forum meta (дата, автор, коментари) */
.forum-card .forum-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: #6b7280;
}

/* Икони во meta */
.forum-card .forum-meta svg {
  vertical-align: middle;
  width: 1rem;
  height: 1rem;
}

/* Dark Mode */
.dark .forum-card {
  background-color: #1f2937;
  color: #f3f4f6;
  border-color: #374151;
}

.dark .forum-card::after {
  background: linear-gradient(
    -35deg,
    var(--gradient-color, rgba(96,165,250,0.3)) 0%,
    transparent 70%
  );
}

.dark .forum-card .forum-meta {
  color: #d1d5db;
}

/* Responsive tweaks */
@media (max-width: 640px) {
  .forum-card {
    padding: 1rem;
  }
}

/* Kликање на цела картичка */
.forum-card .full-link {
  position: absolute;
  inset: 0;
  z-index: 10;
  text-indent: -9999px;
}

/* Зголемување на фонтот */
.forum-card h2 {
  font-size: 1.25rem;
  line-height: 1.4;
}

/* Фонт на мобилни уреди */
@media (max-width: 768px) {
  body {
      font-size: 1.2rem !important;
      line-height: 1.5 !important;
  }

  .prose p {
      font-size: 1.1rem !important;
  }

  h1 {
      font-size: 1.8rem !important;
  }

  h2 {
      font-size: 1.4rem !important;
  }
  .prose li {
    font-size: 1.04rem !important;
  }
  footer,
  footer p,
  footer li {
      font-size: 0.78rem !important; /* или text-xs ако сакаш Tailwind класа */
      line-height: 1.2;
}
}


/* Сите параграфи и текстови justify */
.prose p,
.prose li {
  text-align: justify;
}

/* Сите наслови лев align */
.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
  text-align: left;
}

/* h1 на предна центрирано на мобилни */
@media (max-width: 768px) {
  .author-header h1 {
    text-align: center;
    justify-content: center; /* ако е flex */
  }
}
