/* Prompts List Page Dark Mode Styles */

.post-type-archive-prompt,
.tax-prompts {
  background: #0f172a;
  /* Dark blue background */
}

/* Filter Sidebar */
.filter-sidebar {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: sticky;
}

.filter-sidebar h5,
.filter-sidebar h6 {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-item {
  padding: 12px 16px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.filter-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.filter-item.active {
  background: rgba(61, 59, 110, 0.2);
  color: #fff;
  border-left: 3px solid var(--primary-color);
}

.filter-item i {
  font-size: 0.85rem;
  opacity: 0.9;
}

/* Dark Prompt Cards */
.prompt-card-dark {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.prompt-card-dark:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.prompt-card-dark .badge {
  font-size: 0.7rem;
  padding: 4px 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.code-block-dark {
  background: rgba(0, 0, 0, 0.4) !important;
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.75) !important;
  line-height: 1.6;
  max-height: 120px;
  overflow: hidden;
}

.credit-badge-dark {
  background: rgba(255, 167, 38, 0.15);
  color: #FFA726;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid rgba(255, 167, 38, 0.3);
}

.credit-badge-dark.credit-free {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border-color: rgba(34, 197, 94, 0.3);
}

.credit-badge-dark.credit-paid {
  background: rgba(255, 167, 38, 0.15);
  color: #FFA726;
  border-color: rgba(255, 167, 38, 0.3);
}

.copy-btn-dark {
  border-color: rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8rem;
  transition: all 0.3s ease;
}

.copy-btn-dark:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}

/* Card Fade Effect - Cards 5-9 */
.card-fade {
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.card-fade:hover {
  opacity: 1;
}

/* Dark Pagination */
.page-link-dark {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  padding: 8px 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  margin: 0 4px;
  text-decoration: none;
  display: inline-block;
}

.page-link-dark:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  transform: translateY(-2px);
}

.page-item.active .page-link-dark {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
  box-shadow: 0 4px 12px rgba(61, 59, 110, 0.3);
}

.page-item.disabled .page-link-dark,
.page-item.disabled .page-link-dark:hover {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.3);
  cursor: not-allowed;
  transform: none;
}

/* Responsive */
@media (max-width: 991px) {
  .filter-sidebar {
    position: relative;
    top: 0;
    margin-bottom: 30px;
  }
}

.post-type-archive-prompt .text-white,
.tax-prompts .text-white {
  color: #ffffff !important;
}

.post-type-archive-prompt .text-white-50,
.tax-prompts .text-white-50 {
  color: #b6b6b6 !important;
}

/* Masonry Grid with CSS Columns */
.posts-grid {
  position: relative;
  width: 100%;
  margin: 0 auto;
  column-count: 3;
  /* Changed to 3 for col-lg-9 content area, user asked 6 but usually 3 fits better in 75% width */
  column-gap: 0.7rem;
}

.prompt-grid-item {
  display: inline-block;
  width: 100%;
  margin-bottom: 0.7rem;
  break-inside: avoid;
}

@media (max-width: 1200px) {
  .posts-grid {
    column-count: 2;
  }
}

@media (max-width: 768px) {
  .posts-grid {
    column-count: 1;
  }
}