/* css/forum-category-recent-posts.css */

.forum-category-recent-posts {
  background: #ffffff;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(14, 27, 119, 0.05);
}

.forum-category-recent-posts__header {
  background: #f8f9fa;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #dee2e6;
}

.forum-category-recent-posts__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #0e1b77;
}

.forum-category-recent-posts__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.forum-category-recent-posts__item {
  border-bottom: 1px solid #e9ecef;
  transition: background-color 0.2s ease;
}

.forum-category-recent-posts__item:last-child {
  border-bottom: none;
}

.forum-category-recent-posts__item:hover {
  background-color: #f8f9fa;
}

/* Tryb pełny */
.forum-category-recent-posts__content--full {
  padding: 1.25rem;
}

.forum-category-recent-posts__topic {
  margin: 0 0 0.75rem 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.forum-category-recent-posts__topic-link {
  color: #0e1b77;
  text-decoration: none;
  transition: color 0.2s ease;
}

.forum-category-recent-posts__topic-link:hover {
  color: #2938a0;
  text-decoration: underline;
}

.forum-category-recent-posts__excerpt {
  color: #495057;
  line-height: 1.5;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.forum-category-recent-posts__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.forum-category-recent-posts__meta {
  font-size: 0.875rem;
  color: #6c757d;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.forum-category-recent-posts__author a {
  color: #495057;
  text-decoration: none;
  font-weight: 500;
}

.forum-category-recent-posts__author a:hover {
  color: #0e1b77;
  text-decoration: underline;
}

.forum-category-recent-posts__separator {
  color: #ced4da;
}

.forum-category-recent-posts__action {
  font-size: 0.875rem;
  color: #0e1b77;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  background: #f8f9fa;
}

.forum-category-recent-posts__action:hover {
  background: #e9ecef;
  color: #2938a0;
}

/* Tryb kompaktowy */
.forum-category-recent-posts__content--compact {
  padding: 1rem 1.25rem;
}

.forum-category-recent-posts--compact .forum-category-recent-posts__topic {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.forum-category-recent-posts--compact .forum-category-recent-posts__meta {
  margin-bottom: 0.5rem;
}

.forum-category-recent-posts__read-more {
  font-size: 0.825rem;
  color: #0e1b77;
  text-decoration: none;
  transition: color 0.2s ease;
}

.forum-category-recent-posts__read-more:hover {
  color: #2938a0;
  text-decoration: underline;
}

/* Tryb minimalny */
.forum-category-recent-posts--minimal .forum-category-recent-posts__item {
  padding: 0.75rem 1.25rem;
}

.forum-category-recent-posts__link {
  color: #0e1b77;
  text-decoration: none;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s ease;
}

.forum-category-recent-posts__link:hover {
  color: #2938a0;
  transform: translateX(3px);
}

/* Pusty stan */
.forum-category-recent-posts__empty {
  padding: 2rem;
  text-align: center;
  color: #6c757d;
  font-style: italic;
}

/* Responsywność */
@media (max-width: 768px) {
  .forum-category-recent-posts__header {
    padding: 0.875rem 1rem;
  }

  .forum-category-recent-posts__title {
    font-size: 1rem;
  }

  .forum-category-recent-posts__content--full {
    padding: 1rem;
  }

  .forum-category-recent-posts__content--compact {
    padding: 0.75rem 1rem;
  }

  .forum-category-recent-posts__footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .forum-category-recent-posts__meta {
    font-size: 0.8rem;
  }

  .forum-category-recent-posts__action {
    align-self: flex-end;
    margin-top: 0.5rem;
  }
}

/* Warianty kolorystyczne dla różnych regionów */
.region-sidebar-first .forum-category-recent-posts,
.region-sidebar-second .forum-category-recent-posts {
  box-shadow: none;
}

.region-sidebar-first .forum-category-recent-posts__header,
.region-sidebar-second .forum-category-recent-posts__header {
  padding: 0.875rem 1rem;
}

.region-sidebar-first .forum-category-recent-posts__title,
.region-sidebar-second .forum-category-recent-posts__title {
  font-size: 1rem;
}

/* Ciemny motyw (opcjonalnie) */
.theme-dark .forum-category-recent-posts {
  background: #1a1a1a;
  border-color: #333;
}

.theme-dark .forum-category-recent-posts__header {
  background: #222;
  border-bottom-color: #333;
}

.theme-dark .forum-category-recent-posts__title {
  color: #fff;
}

.theme-dark .forum-category-recent-posts__item {
  border-bottom-color: #333;
}

.theme-dark .forum-category-recent-posts__item:hover {
  background-color: #222;
}

.theme-dark .forum-category-recent-posts__excerpt {
  color: #ccc;
}

.theme-dark .forum-category-recent-posts__meta {
  color: #999;
}

.theme-dark .forum-category-recent-posts__action {
  background: #333;
  color: #fff;
}

.theme-dark .forum-category-recent-posts__action:hover {
  background: #444;
}
