/* ========================================
   LIST PAGE STYLES
   Modern card-based layout for list pages
   ======================================== */

/* List Section Container */
.list-section {
  padding: 3rem 0;
  background: var(--light-bg, #f8f9fa);
  min-height: 60vh;
}

/* Page Title Styling */
.list-section .page-title {
  color: var(--primary-color, #2c3e50);
  font-weight: 600;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.list-section .page-title i {
  color: var(--gold-color, #f39c12);
}

.list-section .title-divider {
  border: 2px solid var(--gold-color, #f39c12);
  width: 80px;
  margin: 0 auto 3rem;
  opacity: 0.8;
}

/* RTL Support for Title */
.list-section .text-end .title-divider {
  margin-left: auto;
  margin-right: 0;
}

/* List Card Styling */
.list-card {
  transition: all 0.3s ease;
}

.list-card:hover {
  transform: translateY(-5px);
}

.list-card .card {
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  background: var(--white, #ffffff);
}

.list-card .card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

/* Card Image Container */
.card-img-top-container {
  position: relative;
  overflow: hidden;
  background: var(--light-gray, #f8f9fa);
}

.list-card .card-img-top {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.list-card:hover .card-img-top {
  transform: scale(1.05);
}

/* Card Body */
.list-card .card-body {
  padding: 1.5rem;
}

.list-card .card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-color, #2c3e50);
  line-height: 1.4;
  margin-bottom: 1rem;
}

.list-card .card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.list-card .card-title a:hover {
  color: var(--gold-color, #f39c12);
}

.list-card .card-text {
  color: var(--text-muted, #6c757d);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Card Button */
.list-card .btn {
  border-radius: 8px;
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
}

.list-card .btn:hover {
  transform: translateX(3px);
}

/* RTL Support for Cards */
.list-card.rtl .card-title {
  text-align: right;
}

.list-card.rtl .card-text {
  text-align: right;
}

.list-card.rtl .btn {
  text-align: right;
}

.list-card.rtl .btn:hover {
  transform: translateX(-3px);
}

/* Alert Styling */
.list-section .alert {
  border-radius: 12px;
  border: none;
  padding: 2rem;
  background: var(--white, #ffffff);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.list-section .alert-info {
  background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
  color: var(--primary-color, #2c3e50);
}

.list-section .alert-warning {
  background: linear-gradient(135deg, #fff3e0 0%, #fce4ec 100%);
  color: var(--warning-color, #f57c00);
}

/* Responsive Design */
@media (max-width: 768px) {
  .list-section {
    padding: 2rem 0;
  }

  .list-section .page-title {
    font-size: 2rem;
  }

  .list-card .card-body {
    padding: 1.25rem;
  }

  .list-card .card-title {
    font-size: 1.1rem;
  }

  .list-card .card-img-top {
    height: 180px;
  }
}

@media (max-width: 576px) {
  .list-section .page-title {
    font-size: 1.75rem;
  }

  .list-card .card-body {
    padding: 1rem;
  }

  .list-card .card-title {
    font-size: 1rem;
  }

  .list-card .card-img-top {
    height: 160px;
  }
}

/* Loading States */
.list-card.loading {
  opacity: 0.7;
  pointer-events: none;
}

.list-card.loading .card-img-top {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Empty State Styling */
.list-section .empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted, #6c757d);
}

.list-section .empty-state i {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

/* Accessibility */
.list-card .card:focus-within {
  outline: 2px solid var(--gold-color, #f39c12);
  outline-offset: 2px;
}

.list-card .btn:focus {
  box-shadow: 0 0 0 0.2rem rgba(243, 156, 18, 0.25);
}

/* Print Styles */
@media print {
  .list-section {
    background: white;
    padding: 1rem 0;
  }

  .list-card .card {
    box-shadow: none;
    border: 1px solid #ddd;
  }

  .list-card .btn {
    display: none;
  }
}
