/* Tulsa Resources Page Styles */

/* Page Header */
.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;
}

/* Resource Cards */
.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;
  overflow: hidden;
}

.resource-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.resource-card .card-img-top {
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.resource-card:hover .card-img-top {
  transform: scale(1.05);
}

.resource-card .card-body {
  padding: 1.5rem;
}

.resource-card .card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #2c3e50;
}

.resource-card .card-text {
  color: #6c757d;
  line-height: 1.5;
  margin-bottom: 0;
}

.resource-card .card-footer {
  background-color: #f8f9fa;
  border-top: 1px solid #e9ecef;
  padding: 1rem 1.5rem;
}

/* Star Rating */
.rating .star {
  color: #ffc107;
  font-size: 1.1rem;
}

/* Pricing */
.pricing {
  font-weight: 600;
  color: #28a745;
  font-size: 1.1rem;
}

.pricing:contains("$$") {
  color: #ffc107;
}

.pricing:contains("$$$") {
  color: #dc3545;
}

/* Age/Grade Badges */
.badge {
  font-size: 0.75rem;
  padding: 0.4rem 0.8rem;
  border-radius: 12px;
  font-weight: 500;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  display: inline-block;
}

.badge-primary {
  background-color: #007bff;
  color: white;
}

.badge-success {
  background-color: #28a745;
  color: white;
}

.badge-secondary {
  background-color: #6c757d;
  color: white;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #000000;
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.back-to-top:hover {
  background-color: #333333;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:focus {
  outline: 2px solid #007bff;
  outline-offset: 2px;
}

/* Search and Filter Functionality */
.search-container {
  margin-bottom: 1.5rem;
}

.search-box {
  padding: 0.75rem 1rem 0.75rem 3rem;
  border: 2px solid #e9ecef;
  border-radius: 25px;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-box:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
  outline: none;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #6c757d;
  pointer-events: none;
}

/* Filter Buttons */
.filter-buttons {
  text-align: center;
  margin-bottom: 1.5rem;
}

.filter-buttons .btn {
  margin: 0.25rem;
  border-radius: 20px;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
}

.filter-buttons .btn:hover {
  transform: translateY(-1px);
}

.filter-buttons .btn.active {
  background-color: #000000;
  border-color: #000000;
  color: white;
}

/* No Results Message */
.no-results {
  text-align: center;
  padding: 3rem 1rem;
  color: #6c757d;
}

.no-results h3 {
  margin-bottom: 1rem;
  color: #495057;
}

.no-results a {
  color: #007bff;
  text-decoration: none;
}

.no-results a:hover {
  text-decoration: underline;
}

/* Hidden class for filtering */
.hidden {
  display: none !important;
}

/* Resource count and last updated */
.resource-info {
  margin-bottom: 1rem;
  padding: 0.5rem 0;
}

/* SEO Content Styling */
.lead {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #495057;
  margin-bottom: 1.5rem;
}

.lead strong {
  color: #2c3e50;
  font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-title {
    font-size: 2rem;
  }
  
  .page-subtitle {
    font-size: 1rem;
  }
  
  .resource-card .card-body {
    padding: 1rem;
  }
  
  .resource-card .card-footer {
    padding: 0.75rem 1rem;
  }
  
  .back-to-top {
    width: 45px;
    height: 45px;
    font-size: 16px;
    bottom: 15px;
    right: 15px;
  }
}

/* Print Styles */
@media print {
  .page-header {
    margin-bottom: 1rem !important;
  }
  
  .back-to-top {
    display: none !important;
  }
  
  .resource-card {
    break-inside: avoid;
    box-shadow: none !important;
    border: 1px solid #ddd !important;
    margin-bottom: 1rem !important;
  }
  
  .resource-card:hover {
    transform: none !important;
  }
  
  .rating .star {
    color: #000 !important;
  }
}
