/* Online Resources Page Styles */

.resource-card {
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.resource-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.category-header {
  background: #000000;
  color: white;
  font-weight: 600;
  border: none;
  padding: 15px 20px;
}

.resource-item {
  border: none;
  border-bottom: 1px solid #f0f0f0;
  padding: 10px;
  transition: background-color 0.2s ease;
}

.resource-item:hover {
  background-color: #f8f9fa;
}

.resource-item:last-child {
  border-bottom: none;
}

.resource-link {
  color: #2c3e50;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
}

.resource-link:hover {
  color: #000000;
  text-decoration: none;
}

.resource-description {
  color: #6c757d;
  margin-top: 8px;
  line-height: 1.5;
}

.page-header {
  background: transparent;
  color: #000000;
  padding: 1rem 0;
  margin-bottom: 1rem;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.page-subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 0;
}

.category-icon {
  width: 24px;
  height: 24px;
  margin-right: 10px;
  vertical-align: middle;
}

/* Search functionality styles */
.search-container {
  max-width: 500px;
  margin: 0 auto 2rem auto;
}

.search-box {
  border: 2px solid #e9ecef;
  border-radius: 25px;
  padding: 12px 20px;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.search-box:focus {
  border-color: #000000;
  box-shadow: 0 0 0 0.2rem rgba(0,0,0,0.1);
}

.search-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #6c757d;
}

.no-results {
  text-align: center;
  padding: 2rem;
  color: #6c757d;
}

.hidden {
  display: none !important;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: #000000;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  z-index: 1000;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: #333333;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

.back-to-top:active {
  transform: translateY(0);
}

/* Print Styles */
@media print {
  .search-container, 
  .back-to-top, 
  .no-results,
  .alert,
  .breadcrumb {
    display: none !important;
  }
  
  .resource-card {
    break-inside: avoid;
    box-shadow: none !important;
    border: 1px solid #ddd !important;
    margin-bottom: 1rem !important;
  }
  
  .category-header {
    background: #f8f9fa !important;
    color: #000 !important;
    border-bottom: 2px solid #000 !important;
  }
  
  .resource-link {
    color: #000 !important;
    text-decoration: none !important;
  }
  
  .page-header {
    margin-bottom: 1rem !important;
  }
  
  .badge {
    border: 1px solid #000 !important;
    background: transparent !important;
    color: #000 !important;
  }
}

/* Quick Filter Buttons */
.filter-buttons {
  text-align: center;
  margin-bottom: 1rem;
}

.filter-buttons .btn {
  margin: 0 5px 10px 5px;
  border-radius: 20px;
  padding: 5px 15px;
  font-size: 0.875rem;
}

.filter-buttons .btn.active {
  background-color: #000000;
  border-color: #000000;
  color: white;
}

/* Share Buttons */
.share-buttons {
  text-align: center;
  margin-top: 2rem;
  padding: 1rem;
  border-top: 1px solid #e9ecef;
}

.share-buttons a {
  color: #6c757d;
  text-decoration: none;
  margin: 0 10px;
  padding: 8px 16px;
  border-radius: 20px;
  background-color: #f8f9fa;
  transition: all 0.2s ease;
}

.share-buttons a:hover {
  color: #000000;
  background-color: #e9ecef;
  text-decoration: none;
}

/* Badge styling */
.badge {
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-primary {
  background-color: #007bff;
}

.badge-success {
  background-color: #28a745;
}

.badge-secondary {
  background-color: #6c757d;
}

@media (max-width: 768px) {
  .page-title {
    font-size: 2rem;
  }
  
  .page-subtitle {
    font-size: 1rem;
  }
  
  .search-container {
    margin: 0 1rem 2rem 1rem;
  }
  
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
}
