/* Custom styles for Open Data Scotland Communities */

:root {
  --odata-primary: #0d6efd;
  --odata-secondary: #6c757d;
  --odata-success: #198754;
  --odata-warning: #ffc107;
  --odata-info: #0dcaf0;
}

/* Override Bootstrap primary color for Scottish theme with better contrast */
.bg-primary {
  background-color: #1e3a8a !important; /* Scottish blue */
}

.btn-primary {
  background-color: #1e3a8a;
  border-color: #1e3a8a;
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #1d4ed8;
  border-color: #1d4ed8;
  color: #ffffff;
}

.btn-primary:focus {
  background-color: #1d4ed8;
  border-color: #1d4ed8;
  box-shadow: 0 0 0 0.25rem rgba(30, 58, 138, 0.25);
}

.navbar-brand {
  font-weight: 600;
}

/* Custom hero section styling with improved contrast */
.hero-section {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #ffffff;
  padding: 4rem 0;
}

.hero-section h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-section .lead {
  font-size: 1.25rem;
  color: #f1f5f9;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Card enhancements */
.card {
  border: none;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  transition: transform 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.card-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

/* Community and event grid styling */
.community-grid,
.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.community-card,
.event-card {
  height: 100%;
}

/* Badge styling */
.badge {
  font-size: 0.75rem;
  font-weight: 500;
}

/* Footer enhancements with better contrast */
footer {
  margin-top: auto;
  background-color: #f8f9fa;
  border-top: 1px solid #dee2e6;
  padding: 2rem 0;
}

footer a {
  color: #495057;
  text-decoration: none;
}

footer a:hover {
  color: #1e3a8a;
  text-decoration: underline;
}

footer .text-muted {
  color: #6c757d !important;
}

/* Content styling */
.content {
  line-height: 1.7;
}

.content h2,
.content h3,
.content h4 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.content p {
  margin-bottom: 1rem;
}

/* Container fluid adjustments for better spacing */
.container-fluid {
  max-width: 1400px;
  margin: 0 auto;
}

/* Better text contrast for cards */
.card-title a {
  color: #212529;
  text-decoration: none;
}

.card-title a:hover {
  color: #1e3a8a;
  text-decoration: none;
}

.text-muted {
  color: #6c757d !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  .hero-section .lead {
    font-size: 1.1rem;
  }
  
  .community-grid,
  .event-grid {
    grid-template-columns: 1fr;
  }
  
  .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Breadcrumb styling */
.breadcrumb {
  background-color: transparent;
  padding: 0;
  margin-bottom: 1rem;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: ">";
}

/* Search and filter styling */
.search-filters {
  background-color: #f8f9fa;
  padding: 1.5rem;
  border-radius: 0.5rem;
  margin-bottom: 2rem;
}

/* Status indicators */
.status-upcoming {
  color: #198754;
  font-weight: 600;
}

.status-past {
  color: #6c757d;
  font-weight: 600;
}

.status-active {
  color: #0d6efd;
  font-weight: 600;
}
