/**
 * @file
 * Styles for the Shaqraa Services module.
 */

/* Services List Styling */
.services-list-page {
  margin: 20px 0;
}

.services-filters-wrapper {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
}

.services-filters-wrapper h3 {
  margin-top: 0;
  color: #333;
}

.active-filters {
  background: #e9ecef;
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 20px;
}

.active-filters h4 {
  margin: 0 0 10px 0;
  color: #495057;
}

.filter-tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-tag {
  background: #007bff;
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 14px;
}

.services-count {
  margin-bottom: 20px;
  padding: 10px 0;
  border-bottom: 2px solid #dee2e6;
}

.services-count p {
  margin: 0;
  font-weight: 600;
  color: #495057;
  font-size: 16px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.service-item {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.service-content {
  padding: 20px;
}

.service-title {
  margin: 0 0 15px 0;
  font-size: 18px;
}

.service-title a {
  color: #007bff;
  text-decoration: none;
}

.service-title a:hover {
  text-decoration: underline;
}

.service-code {
  margin-bottom: 15px;
  font-size: 14px;
}

.code-label {
  font-weight: 600;
  color: #495057;
}

.service-description {
  margin-bottom: 15px;
  color: #6c757d;
  line-height: 1.5;
}

.service-metadata {
  margin-bottom: 15px;
}

.service-meta-item {
  margin-bottom: 8px;
  font-size: 14px;
}

.meta-label {
  font-weight: 600;
  color: #495057;
}

.service-actions {
  text-align: center;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.2s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: #007bff;
  color: white;
  border-color: #007bff;
}

.btn-primary:hover {
  background-color: #0056b3;
  border-color: #0056b3;
  color: white;
  text-decoration: none;
}

.btn-secondary {
  background-color: #6c757d;
  color: white;
  border-color: #6c757d;
}

.btn-secondary:hover {
  background-color: #545b62;
  border-color: #545b62;
  color: white;
  text-decoration: none;
}

.no-services {
  text-align: center;
  padding: 40px 20px;
  background: #f8f9fa;
  border-radius: 8px;
  color: #6c757d;
}

.no-services p {
  margin: 10px 0;
}

.no-services a {
  color: #007bff;
  text-decoration: none;
}

  .no-services a:hover {
    text-decoration: underline;
  }

/* Pagination Styling */
.services-pagination {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #dee2e6;
  text-align: center;
}

.services-pagination .pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.services-pagination .pager__item {
  display: inline-block;
}

.services-pagination .pager__link {
  display: inline-block;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  color: #007bff;
  text-decoration: none;
  transition: all 0.2s ease;
  min-width: 40px;
  text-align: center;
}

.services-pagination .pager__link:hover {
  background: #e9ecef;
  border-color: #adb5bd;
}

.services-pagination .pager__item--current .pager__link {
  background: #007bff;
  color: white;
  border-color: #007bff;
}

.services-pagination .pager__item--current .pager__link:hover {
  background: #0056b3;
  border-color: #0056b3;
}

.services-pagination .pager__item--first .pager__link,
.services-pagination .pager__item--previous .pager__link,
.services-pagination .pager__item--next .pager__link,
.services-pagination .pager__item--last .pager__link {
  font-weight: 600;
}

.services-pagination .pager__item--ellipsis {
  padding: 8px 4px;
  color: #6c757d;
}

/* Service Detail Page Styles */
.service-detail-page {
  margin: 20px 0;
}

.service-navigation {
  margin-bottom: 20px;
}

.service-header {
  background: #f8f9fa;
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 30px;
}

.service-detail-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 1rem;
}

.service-detail-code {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.service-detail-description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #666;
}

.service-section {
  margin-bottom: 30px;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
  border-bottom: 2px solid #007bff;
  padding-bottom: 5px;
}

.section-content {
  line-height: 1.6;
  color: #666;
}

.service-info-card {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  margin-bottom: 20px;
}

.service-info-card .card-header {
  background: #f8f9fa;
  padding: 15px 20px;
  border-bottom: 1px solid #dee2e6;
  font-weight: 600;
}

.service-info-card .card-body {
  padding: 20px;
}

.info-item {
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.info-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.info-label {
  font-weight: 600;
  color: #495057;
  margin-bottom: 5px;
}

.info-value {
  color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .filter-tags {
    flex-direction: column;
  }
  
  .service-actions {
    flex-direction: column;
  }
  
  .services-pagination .pager {
    flex-wrap: wrap;
    gap: 5px;
  }
  
  .services-pagination .pager__link {
    padding: 6px 10px;
    font-size: 14px;
  }
  
  .service-header {
    padding: 20px;
  }
  
  .service-detail-title {
    font-size: 2rem;
  }
}

/* Focus and accessibility styles */
/* .service-title a:focus,
.btn:focus,
.no-services a:focus {
  outline: 2px solid #007bff;
  outline-offset: 2px;
} */

/* Print styles */
@media print {
  .service-navigation,
  .services-filters-wrapper,
  .service-actions {
    display: none;
  }
  
  .service-detail-page {
    margin: 0;
  }
  
  .service-header {
    background: transparent;
    border: 1px solid #000;
  }
} 