/**
 * Components CSS - Shared UI components used across multiple views
 * Includes: breadcrumb, stats, tags, image cards, buttons, forms
 * Extracted from inline styles to reduce duplication
 */

/* ============================================
   BREADCRUMB NAVIGATION
   ============================================ */
/* Full-width wrapper for border-bottom */
nav[aria-label="breadcrumb"] {
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
  margin-bottom: 1.5rem;
}

.breadcrumb {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
}

.breadcrumb-item {
  font-size: 0.875rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  position: relative;
}

/* Override Bootstrap breadcrumb separator - use > instead of / */
.breadcrumb-item + .breadcrumb-item::before {
  content: ">";
  float: none;
  padding-right: 0.5rem;
  color: var(--text-secondary);
  opacity: 0.5;
}

.breadcrumb-link {
  color: var(--text-primary);
  text-decoration: none;
  transition: text-decoration 0.2s ease;
}

.breadcrumb-link:hover {
  text-decoration: underline;
  color: var(--primary-color);
}

.breadcrumb-link:before {
  content: none;
}

.breadcrumb-item.active {
  color: var(--text-primary);
  font-weight: 400;
}

.breadcrumb-item.active .breadcrumb-link {
  color: var(--text-primary);
  cursor: default;
  text-decoration: none;
}

/* Breadcrumb Variants */

/* Compact - reduced padding and font size */
.breadcrumb.compact {
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-md);
}

.breadcrumb.compact .breadcrumb-item {
  font-size: 0.8125rem;
}

/* Flat - transparent background, no border/shadow, Font Awesome separators */
.breadcrumb.flat {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  margin: 0;
}

.breadcrumb.flat .breadcrumb-link:hover {
  background: rgba(37, 99, 235, 0.05);
}

/* Simple - text separator (/), bg-secondary background, secondary link colors */
.breadcrumb.simple {
  background: var(--bg-secondary);
  padding: 0.75rem 1rem;
  box-shadow: none;
}

.breadcrumb.simple .breadcrumb-item:not(:last-child)::after {
  content: "/";
  font-family: inherit;
  font-weight: inherit;
  color: var(--text-secondary);
  opacity: 0.5;
  margin-left: 0.5rem;
  margin-right: 0;
}

.breadcrumb.simple .breadcrumb-link {
  color: var(--text-secondary);
  padding: 0;
}

.breadcrumb.simple .breadcrumb-link:hover {
  background: transparent;
  transform: none;
  color: var(--primary-color);
}

.breadcrumb.simple .breadcrumb-link:before {
  content: none;
}

.breadcrumb.simple .breadcrumb-item.active {
  color: var(--text-primary);
  font-weight: 600;
}

.breadcrumb.simple .breadcrumb-item.active .breadcrumb-link {
  color: var(--text-primary);
  background: transparent;
}

/* Minimal - no separators, transparent, primary link colors (for categories) */
.breadcrumb.minimal {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  margin: 0;
}

.breadcrumb.minimal .breadcrumb-item:not(:last-child)::after {
  content: none;
}

.breadcrumb.minimal .breadcrumb-link {
  color: var(--primary-color);
  padding: 0;
  background: transparent;
}

.breadcrumb.minimal .breadcrumb-link:hover {
  background: transparent;
  transform: none;
  color: #1d4ed8;
}

.breadcrumb.minimal .breadcrumb-link:before {
  content: none;
}

.breadcrumb.minimal .breadcrumb-item.active {
  color: var(--text-secondary);
  font-weight: 400;
}

.breadcrumb.minimal .breadcrumb-item.active .breadcrumb-link {
  color: var(--text-secondary);
  background: transparent;
}

/* Plain - text separator (>), no style, simple text only */
.breadcrumb.plain {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumb.plain .breadcrumb-item {
  font-size: 0.875rem;
  display: flex;
  align-items: center;
}

.breadcrumb.plain .breadcrumb-item:not(:last-child)::after {
  content: ">";
  font-family: inherit;
  font-weight: inherit;
  color: var(--text-secondary);
  margin-left: 0.5rem;
  margin-right: 0;
}

.breadcrumb.plain .breadcrumb-link {
  color: var(--text-primary);
  text-decoration: none;
  padding: 0;
  background: transparent;
  transition: text-decoration 0.2s ease;
}

.breadcrumb.plain .breadcrumb-link:hover {
  text-decoration: underline;
  background: transparent;
  transform: none;
}

.breadcrumb.plain .breadcrumb-link:before {
  content: none;
}

.breadcrumb.plain .breadcrumb-item.active {
  color: var(--text-primary);
  font-weight: 400;
}

.breadcrumb.plain .breadcrumb-item.active .breadcrumb-link {
  color: var(--text-primary);
  background: transparent;
  cursor: default;
  text-decoration: none;
}

/* Dark Mode Enhancements */
/* Breadcrumb is now simple - no special dark mode styles needed */

/* Responsive */
/* Breadcrumb is simple text - no special responsive styles needed */

/* ============================================
   STATS COMPONENT
   ============================================ */
.stats-row {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

/* Base stat item */
.stat-item {
  text-align: center;
  padding: 1rem;
}

/* Modifier: Card-style stat with background and border */
.stat-item--card {
  background: var(--bg-secondary, #f9fafb);
  border-radius: var(--radius-md, 0.5rem);
  border: 1px solid var(--border-color, #e5e7eb);
}

/* Modifier: Minimal stat (no background/border/padding) */
.stat-item--minimal {
  background: transparent;
  border: none;
  padding: 0;
}

/* Modifier: Flex stat with horizontal layout */
.stat-item--flex {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Modifier: Flex stat with vertical layout */
.stat-item--flex-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Modifier: Stat with fixed minimum width */
.stat-item--fixed-sm {
  min-width: 60px;
}

.stat-item--fixed-md {
  min-width: 80px;
}

.stat-item--fixed-lg {
  min-width: 100px;
}

/* Modifier: Left-aligned stat */
.stat-item--left {
  text-align: left;
}

/* ========== Action Button Modifier System ========== */

/* Base action button - flexible with standard styling */
.action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-primary);
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius-md, 0.5rem);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Modifier: Circular overlay button (48px, glass effect) */
.action-btn--circular {
  width: 48px;
  height: 48px;
  padding: 0;
  gap: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: white;
}

/* Modifier: Small rectangular button (32px) */
.action-btn--small {
  width: 32px;
  height: 32px;
  padding: 0;
  gap: 0;
  border-radius: 6px;
  background: var(--action-bg, #f3f4f6);
  font-size: 14px;
  position: relative;
  z-index: 1;
}

.action-btn--small:hover:not(:disabled) {
  transform: scale(1.1);
  background: var(--action-bg-hover, #e5e7eb);
}

/* ========== Summary Card Modifier System ========== */

/* Base summary card - medium size */
.summary-card {
  background: var(--card-bg, #fff);
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: var(--radius-md, 8px);
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

/* Modifier: Large summary card */
.summary-card--large {
  padding: 1.5rem;
  gap: 1rem;
  border-radius: 12px;
}

/* Modifier: Small summary card */
.summary-card--small {
  padding: 0.75rem 1rem;
  gap: 0.75rem;
  border-radius: 8px;
  min-width: 120px;
}

/* ========== Form Control Modifier System ========== */

/* Base form control - standard 1px border */
.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: var(--radius-md, 0.5rem);
  font-size: 1rem;
  background: var(--card-bg, #fff);
  color: var(--text-primary, #374151);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color, #3b82f6);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Modifier: Thick border (2px) */
.form-control--thick {
  border: 2px solid var(--border-color, #e5e7eb);
}

.form-control--thick:focus {
  border-color: var(--primary-color, #3b82f6);
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

.stat-icon {
  /* display: block; */
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.25rem;
}

/* Dark mode: brighter icon colors for better contrast */
[data-theme="dark"] .stat-item.primary .stat-icon {
  color: var(--primary-light-dm, #60a5fa);
}

[data-theme="dark"] .stat-item.success .stat-icon {
  color: var(--success-light-dm, #34d399);
}

[data-theme="dark"] .stat-item.warning .stat-icon {
  color: var(--warning-light-dm, #fbbf24);
}

[data-theme="dark"] .stat-item.danger .stat-icon {
  color: var(--danger-light-dm, #f87171);
}

/* Stat variations */
.stat-item.primary .stat-icon {
  color: var(--primary-color);
}

.stat-item.success .stat-icon {
  color: var(--success-color);
}

.stat-item.warning .stat-icon {
  color: #f59e0b;
}

.stat-item.danger .stat-icon {
  color: #ef4444;
}

/* ============================================
   TAGS COMPONENT
   ============================================ */
.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.tag-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.tag-item:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  text-decoration: none;
  transform: translateY(-1px);
}

.tag-item i {
  font-size: 0.75rem;
}

/* Tag variations */
.tag-item.primary {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.tag-item.success {
  background: var(--success-color);
  color: white;
  border-color: var(--success-color);
}

.tag-item.warning {
  background: var(--warning-color, #f59e0b);
  color: white;
  border-color: var(--warning-color, #f59e0b);
}

.tag-item.danger {
  background: var(--danger-color, #ef4444);
  color: white;
  border-color: var(--danger-color, #ef4444);
}

.tag-item.trending {
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  color: white;
  border-color: transparent;
}

/* ============================================
   TRENDING TAGS HORIZONTAL SCROLL
   ============================================ */
.trending-tags-section {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 0;
}

.trending-tags-scroll {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.trending-tags-wrapper {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  flex: 1;
}

.trending-tags-wrapper::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.trending-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.875rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 2rem;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.trending-tag-pill:hover {
  background: var(--primary-light);
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-1px);
}

.trending-tag-pill i {
  font-size: 0.75rem;
  opacity: 0.7;
}

.scroll-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.scroll-arrow:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.scroll-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.scroll-arrow i {
  font-size: 0.75rem;
}

/* ============================================
   IMAGE CARD COMPONENT - UNIFIED DESIGN
   ============================================ */
.image-card {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  border: none;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  height: 100%;
  /* Ensure square aspect ratio */
  aspect-ratio: 1 / 1;
}

.image-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Image wrapper - perfectly square */
.image-wrapper {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-secondary);
  width: 100%;
  height: 100%;
}

.image-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.image-card:hover .image-preview {
  transform: scale(1.05);
  opacity: 0.85;
}

/* Card overlay - slides up on hover */
.card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.5));
  padding: 1rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  display: flex;
  align-items: flex-end;
  z-index: 2;
}

.image-card:hover .card-overlay {
  transform: translateY(0);
}

.overlay-content {
  width: 100%;
  transform: translateY(10px);
  transition: transform 0.3s ease;
}

.image-card:hover .overlay-content {
  transform: translateY(0);
}

.card-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary) !important;
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  /* text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); */
}

/* Image info - visually hidden but available for screen readers */
.image-info {
  display: none;
}

.visually-hidden-title,
.visually-hidden-author {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Alternative class names for compatibility */
.image-card-image-wrapper {
  position: relative;
  padding-top: 75%; /* 4:3 aspect ratio */
  overflow: hidden;
  background: var(--bg-secondary);
}

.image-card-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.image-card:hover .image-card-image {
  transform: scale(1.05);
}

.image-card-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-card:hover .image-card-overlay {
  opacity: 1;
}

.image-card-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.image-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 0.5rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  min-height: 2.8em;
}

.image-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: auto;
}

.image-card-stats {
  display: flex;
  gap: 0.75rem;
}

.image-card-stat {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.image-card-stat i {
  font-size: 0.75rem;
}

/* Image author info */
.image-author {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: auto;
}

.author-icon {
  font-size: 0.625rem;
  opacity: 0.7;
}

.author-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.author-link:hover {
  color: var(--primary-color);
}

/* Image stats (views, downloads, likes) */
.image-stats {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.image-stat {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.image-stat i {
  font-size: 0.625rem;
  opacity: 0.7;
}

/* Trending indicator */
.trending-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: #ec4899;
  margin-top: 0.5rem;
}

.trending-icon {
  font-size: 0.75rem;
}

.trending-text {
  font-weight: 500;
}

/* ============================================
   CATEGORY-SPECIFIC CARD VARIANTS
   ============================================ */

/* Background Card */
.background-card {
  border-top: 3px solid #8b5cf6;
}

.background-card .image-wrapper {
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
}

.background-card:hover {
  border-top-color: #7c3aed;
}

/* Photo Card */
.photo-card {
  border-top: 3px solid #06b6d4;
}

.photo-card .image-wrapper {
  background: linear-gradient(135deg, #ecfeff 0%, #cffafe 100%);
}

.photo-card:hover {
  border-top-color: #0891b2;
}

/* Template Card */
.template-card {
  border-top: 3px solid #f59e0b;
}

.template-card .image-wrapper {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.template-card:hover {
  border-top-color: #d97706;
}

/* ============================================
   GENERIC ASSET CARD COMPONENTS
   ============================================

   These generic classes are shared across PNG, Background, and Template cards.
   Each card type extends these with category-specific features.
   */

/* Base Asset Card */
.asset-card {
  background: var(--bg-primary, #fff);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.asset-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Asset Card Image Wrapper */
.asset-card-image-wrapper {
  position: relative;
  overflow: hidden;
  background: var(--bg-secondary, #f5f5f5);
}

/* Square aspect ratio (default for PNG cards) */
.asset-card-image-wrapper {
  aspect-ratio: 1;
}

/* 4:3 aspect ratio (Background cards) */
.asset-card-image-wrapper.ratio-4-3 {
  padding-top: 75%;
  aspect-ratio: auto;
}

/* Card Link */
.asset-card-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

/* Card Image */
.asset-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.asset-card:hover .asset-card-image {
  transform: scale(1.05);
}

/* Card Overlay */
.asset-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.asset-card:hover .asset-card-overlay {
  opacity: 1;
}

/* Overlay Content */
.asset-card-overlay-content {
  transform: translateY(0);
  transition: transform 0.3s ease;
}

/* Card Content */
.asset-card-content {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Card Details (alternative to content) */
.asset-card-details {
  padding: 16px;
}

/* Card Title */
.asset-card-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.asset-card-title a {
  color: #333;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.asset-card-title a:hover {
  color: var(--primary-color, #11998e);
}

/* Card Metadata/Stats */
.asset-card-metadata {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.asset-card-metadata-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #666;
}

.asset-card-metadata-item svg {
  flex-shrink: 0;
  opacity: 0.7;
}

/* Card Stats */
.asset-card-stats {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
}

.asset-card-stat {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: #666;
}

.asset-card-stat svg {
  flex-shrink: 0;
}

/* Card Actions */
.asset-card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

/* Asset Card Buttons */
.asset-card-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
}

.asset-card-btn svg {
  flex-shrink: 0;
}

/* Primary action button (View) */
.asset-card-btn-primary {
  background: var(--primary-color, #11998e);
  color: white;
}

.asset-card-btn-primary:hover {
  background: var(--primary-color-dark, #0e8a7f);
}

/* Secondary action button (Download) */
.asset-card-btn-secondary {
  background: #28a745;
  color: white;
}

.asset-card-btn-secondary:hover {
  background: #218838;
}

/* Preview Button (in overlay) */
.asset-card-btn-preview {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: white;
  color: #333;
  border: none;
  border-radius: 24px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.asset-card-btn-preview:hover {
  background: #f0f0f0;
  transform: scale(1.05);
}

/* Badge positioning */
.asset-card-badge {
  position: absolute;
  top: 12px;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  z-index: 2;
}

/* Left badge */
.asset-card-badge-left {
  left: 12px;
}

/* Right badge */
.asset-card-badge-right {
  right: 12px;
}

/* Favorite Button */
.asset-card-btn-favorite {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  background: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  opacity: 0;
  transform: scale(0.8);
  z-index: 3;
}

.asset-card:hover .asset-card-btn-favorite {
  opacity: 1;
  transform: scale(1);
}

.asset-card-btn-favorite:hover {
  background: #ff4757;
  color: white;
}

.asset-card-btn-favorite.active {
  color: #ff4444;
}

.asset-card-btn-favorite.active svg {
  fill: #ff4444;
  stroke: #ff4444;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  line-height: 1.4;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Button sizes */
.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* Button variants */
.btn-primary {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.btn-primary:hover:not(:disabled) {
  background: #1d4ed8;
  border-color: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-secondary {
  background: var(--secondary-color);
  color: white;
  border-color: var(--secondary-color);
}

.btn-secondary:hover:not(:disabled) {
  background: #059669;
  border-color: #059669;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-color);
}

.btn-outline:hover:not(:disabled) {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: rgba(37, 99, 235, 0.05);
  transform: translateY(-1px);
}

.btn-danger {
  background: #ef4444;
  color: white;
  border-color: #ef4444;
}

.btn-danger:hover:not(:disabled) {
  background: #dc2626;
  border-color: #dc2626;
  transform: translateY(-1px);
}

.btn-success {
  background: var(--success-color);
  color: white;
  border-color: var(--success-color);
}

.btn-success:hover:not(:disabled) {
  background: #059669;
  border-color: #059669;
  transform: translateY(-1px);
}

/* ============================================
   ALERT BOXES
   ============================================ */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.alert-icon {
  flex-shrink: 0;
  font-size: 1.25rem;
}

.alert-content {
  flex: 1;
}

.alert-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.alert-message {
  font-size: 0.875rem;
  line-height: 1.4;
}

/* Alert variants */
.alert-primary {
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
}

.alert-primary .alert-icon {
  color: var(--primary-color);
}

.alert-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--success-color);
  color: var(--success-color);
}

.alert-success .alert-icon {
  color: var(--success-color);
}

.alert-warning {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid #f59e0b;
  color: #f59e0b;
}

.alert-warning .alert-icon {
  color: #f59e0b;
}

.alert-danger {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid #ef4444;
  color: #ef4444;
}

.alert-danger .alert-icon {
  color: #ef4444;
}

.alert-info {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid #3b82f6;
  color: #3b82f6;
}

.alert-info .alert-icon {
  color: #3b82f6;
}

/* ============================================
   CARD COMPONENT
   ============================================ */
.card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.card-header {
  padding: 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.card-subtitle {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.card-body {
  padding: 1.25rem;
}

.card-footer {
  padding: 1rem 1.25rem;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}

/* ============================================
   LOADING SPINNER
   ============================================ */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-color);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.spinner-sm {
  width: 20px;
  height: 20px;
  border-width: 2px;
}

.spinner-lg {
  width: 60px;
  height: 60px;
  border-width: 4px;
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
}

/* Modifier: Card-style empty state with background and border */
.empty-state--card {
  padding: 4rem 2rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}

.empty-state-icon {
  font-size: 3rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.empty-state-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.empty-state-message {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  margin: 2rem 0;
}

.pagination-item {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

.pagination-item:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.pagination-item.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.pagination-item.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.pagination-prev,
.pagination-next {
  padding: 0 0.75rem;
  width: auto;
}

/* ============================================
   TOOLTIP
   ============================================ */
[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.5rem 0.75rem;
  background: var(--text-primary);
  color: var(--bg-primary);
  font-size: 0.75rem;
  white-space: nowrap;
  border-radius: var(--radius-sm);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  margin-bottom: 0.5rem;
}

[data-tooltip]:hover::after {
  opacity: 1;
}

/* ============================================
   DIVIDER
   ============================================ */
.divider {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 2rem 0;
}

.divider-vertical {
  width: 1px;
  height: 100%;
  border: none;
  border-left: 1px solid var(--border-color);
  margin: 0 1rem;
}

/* ============================================
   BADGE
   ============================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  line-height: 1;
}

.badge-primary {
  background: var(--primary-color);
  color: white;
}

.badge-success {
  background: var(--success-color);
  color: white;
}

.badge-warning {
  background: #f59e0b;
  color: white;
}

.badge-danger {
  background: #ef4444;
  color: white;
}

.badge-secondary {
  background: var(--text-secondary);
  color: white;
}

.badge-light {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

/* ============================================
   FILTER SIDEBAR
   ============================================ */
.filter-sidebar {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

/* Filter Toggle Button (Mobile) */
.filter-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.05),
    rgba(16, 185, 129, 0.03)
  );
  border: none;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.3s ease;
  gap: 0.75rem;
}

.filter-toggle:hover {
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.1),
    rgba(16, 185, 129, 0.05)
  );
}

.filter-toggle-text {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.filter-toggle-text i {
  font-size: 1rem;
  color: var(--primary-color);
}

.filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: var(--primary-color);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 10px;
}

.toggle-icon {
  color: var(--text-secondary);
  font-size: 0.75rem;
  transition: transform 0.3s ease;
}

/* Active Filters Display */
.active-filters {
  padding: 1rem 1.25rem;
  background: rgba(37, 99, 235, 0.03);
  border-bottom: 1px solid var(--border-color);
}

.active-filters-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.active-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.clear-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

.clear-all-btn:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.active-filters-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.active-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 0.625rem;
  background: var(--bg-secondary);
  border: 1px solid var(--primary-color);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
}

.filter-label {
  color: var(--text-secondary);
}

.filter-value {
  font-weight: 500;
  color: var(--text-primary);
}

.filter-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-left: 0.25rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.filter-remove:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

/* Filter Sections Container */
.filter-sections {
  max-height: 2000px;
  transition: max-height 0.3s ease;
}

.filter-sections:not(.expanded) {
  max-height: 0;
  overflow: hidden;
}

.filter-section {
  border-bottom: 1px solid var(--border-color);
}

.filter-section:last-child {
  border-bottom: none;
}

.filter-section-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.25rem;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
  gap: 0.75rem;
}

.filter-section-toggle:hover {
  background: rgba(37, 99, 235, 0.03);
}

.filter-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.section-toggle-icon {
  color: var(--text-secondary);
  font-size: 0.625rem;
  transition: transform 0.3s ease;
}

.filter-section.open .section-toggle-icon {
  transform: rotate(180deg);
}

.filter-section-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.filter-section.open .filter-section-content {
  max-height: 500px;
}

/* Filter Lists */
.filter-list {
  list-style: none;
  margin: 0;
  padding: 0 0.75rem 0.75rem;
}

.filter-item {
  margin-bottom: 0.25rem;
}

.filter-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.625rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  font-size: 0.875rem;
}

.filter-link:hover {
  background: rgba(37, 99, 235, 0.05);
  color: var(--primary-color);
}

.filter-link.active {
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary-color);
  font-weight: 500;
}

.filter-icon {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.filter-link:hover .filter-icon {
  color: var(--primary-color);
}

.filter-link-text {
  flex: 1;
}

.filter-link .count {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-left: auto;
}

.active-indicator {
  font-size: 0.625rem;
  color: var(--primary-color);
  margin-left: 0.5rem;
}

/* Checkbox-style filters */
.filter-checkboxes {
  padding: 0 0.75rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.625rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease;
}

.filter-checkbox-item:hover {
  background: rgba(37, 99, 235, 0.03);
}

.filter-checkbox-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary-color);
  cursor: pointer;
}

.checkbox-label {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-primary);
}

.checkbox-label i {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.filter-count-badge {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* No filters state */
.no-filters {
  padding: 2rem 1.25rem;
  text-align: center;
  color: var(--text-secondary);
}

.no-filters p {
  margin: 0;
  font-size: 0.875rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
  .stats-row {
    justify-content: center;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .stat-value {
    font-size: 1.25rem;
  }

  .image-card-overlay {
    position: relative;
    background: none;
    opacity: 1;
    padding: 1rem;
  }

  .pagination {
    gap: 0.25rem;
  }

  .pagination-item {
    width: 36px;
    height: 36px;
    font-size: 0.875rem;
  }

  /* Filter Sidebar Mobile Adjustments */
  .filter-sidebar {
    border-radius: var(--radius-md);
  }

  .filter-toggle,
  .filter-section-toggle {
    padding: 0.75rem 1rem;
  }

  .active-filters {
    padding: 0.75rem 1rem;
  }

  .filter-list,
  .filter-checkboxes {
    padding: 0 0.5rem 0.5rem;
  }

  .filter-section.open .filter-section-content {
    max-height: 400px;
  }
}

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

  .image-card-content {
    padding: 0.75rem;
  }

  .card-header,
  .card-body,
  .card-footer {
    padding: 1rem;
  }
}

/* ============================================
   BACKGROUND CARD UNIQUE FEATURES
   ============================================

   Background-specific features that extend the generic asset-card.
   Base styles are in .asset-card section above.
   */

/* Background card aspect ratio variants */
.asset-card-image-wrapper.orientation-landscape {
  padding-top: 56.25%; /* 16:9 */
}

.asset-card-image-wrapper.orientation-portrait {
  padding-top: 133.33%; /* 3:4 */
}

.asset-card-image-wrapper.orientation-square {
  padding-top: 100%; /* 1:1 */
}

/* Background-specific orientation badge */
.orientation-badge {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Background-specific file type badge */
.background-card .file-type-badge {
  background: rgba(0, 0, 0, 0.7);
  font-size: 11px;
  padding: 4px 10px;
  text-transform: uppercase;
}

/* Background color palette */
.color-palette {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}

.color-swatch {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.color-swatch:hover {
  transform: scale(1.2);
}

/* ============================================
   TEMPLATE CARD UNIQUE FEATURES
   ============================================

   Template-specific features that extend the generic asset-card.
   Base styles are in .asset-card section above.
   */

/* Template card aspect ratio (4:3) */
.template-card .asset-card-image-wrapper {
  aspect-ratio: 4/3;
}

/* Template preview placeholder */
.template-preview-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 20px;
  text-align: center;
  background: var(--bg-secondary);
}

.template-preview-placeholder .placeholder-text {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Template badges column */
.template-badges {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
}

.template-badges .badge {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
  color: white;
}

.badge-vector {
  background: rgba(155, 225, 166, 0.9);
}

.badge-print {
  background: rgba(102, 126, 234, 0.9);
}

.badge-pages {
  background: rgba(255, 193, 7, 0.9);
  color: #333;
}

/* Template software compatibility */
.software-compatibility {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.software-icon {
  font-size: 18px;
  cursor: help;
}

.software-more {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font-size: 11px;
  background: var(--bg-secondary);
  border-radius: 50%;
  color: var(--text-secondary);
}

/* Template favorite button (inline style) */
.asset-card-btn-fav {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.asset-card-btn-fav:hover {
  background: #f0f0f0;
  border-color: #999;
}

/* ============================================
   RESPONSIVE DESIGN (Asset Cards)
   ============================================ */
@media (max-width: 480px) {
  .asset-card-actions {
    flex-direction: column;
  }

  .asset-card-btn {
    width: 100%;
  }

  .asset-card-content,
  .asset-card-details {
    padding: 12px;
  }
}

/* ============================================
   CATEGORY LAYOUT
   ============================================ */

/* Category Hero */
.category-hero {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  padding: 3rem 2rem;
  color: white;
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.category-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.05)"/></svg>');
  background-size: 200px;
  opacity: 0.5;
  pointer-events: none;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: white;
}

.hero-description {
  font-size: 1.125rem;
  opacity: 0.9;
  line-height: 1.6;
}

/* Category Stats */
.category-stats {
  display: flex;
  gap: 2rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.category-stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.85); /* More solid fallback */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-lg);
}

.category-stat .stat-icon {
  font-size: 1.25rem;
  opacity: 0.9;
}

.category-stat .stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
}

.category-stat .stat-label {
  font-size: 0.875rem;
  opacity: 0.85;
  color: white;
}

/* Category Layout */
.category-main {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.category-sidebar {
  position: sticky;
  top: 2rem;
  align-self: start;
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
}

.category-content {
  min-width: 0;
}

.featured-section {
  margin-bottom: 3rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card-placeholder {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-placeholder h3 {
  color: var(--text-secondary);
  font-weight: 500;
}

/* Responsive adjustments for category layout */
@media (max-width: 1024px) {
  .category-main {
    grid-template-columns: 1fr;
  }

  .category-sidebar {
    position: static;
    max-height: none;
  }

  .hero-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .category-hero {
    padding: 2rem 1.5rem;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .category-stats {
    gap: 1rem;
  }

  .category-stat {
    padding: 0.5rem 1rem;
  }

  .category-stat .stat-value {
    font-size: 1.25rem;
  }

  .asset-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .category-hero {
    padding: 1.5rem 1rem;
    border-radius: var(--radius-md);
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .hero-description {
    font-size: 0.9375rem;
  }

  .category-stats {
    flex-direction: column;
    gap: 0.75rem;
  }

  .category-stat {
    width: 100%;
  }

  .asset-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 1.25rem;
  }
}

/* ============================================
   ENHANCED FOOTER COMPONENT
   Moved to footer.css
   ============================================ */
