/* Digital Green Book Custom Styles */

:root {
  --forest-green: #1B4332;
  --dark-green: #2D5A27;
  --medium-green: #40916C;
  --light-green: #52B788;
  --cream: #F8F6E8;
}

/* Base Styles */
body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--medium-green);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--forest-green);
}

/* Header Animations */
header {
  background: linear-gradient(135deg, var(--forest-green) 0%, var(--dark-green) 100%);
}

/* Button Hover Effects */
.btn-primary {
  background: var(--light-green);
  color: var(--forest-green);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: var(--medium-green);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(27, 67, 50, 0.3);
}

/* Card Hover Effects */
.resource-card {
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
}

.resource-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: var(--light-green);
}

/* Grid Item Hover Effects */
.grid > div {
  transition: all 0.3s ease;
}

.grid > div:hover {
  transform: translateY(-2px);
}

/* Loading Animation */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.loading {
  animation: pulse 2s infinite;
}

/* Cultural Color Accents */
.community-black {
  border-left: 4px solid #8B4513;
}

.community-brown {
  border-left: 4px solid #D2691E;
}

.community-latin {
  border-left: 4px solid #DC143C;
}

.community-both {
  border-left: 4px solid var(--medium-green);
}

/* Category Icons */
.category-housing { color: #3B82F6; }
.category-jobs { color: #10B981; }
.category-health { color: #EF4444; }
.category-community { color: #8B5CF6; }
.category-education { color: #F59E0B; }
.category-financial { color: #06B6D4; }

/* Event Calendar Styling */
.event-card {
  position: relative;
  overflow: hidden;
}

.event-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--forest-green);
}

/* Historical Timeline */
.timeline-item {
  position: relative;
  padding-left: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 12px;
  height: 12px;
  background: var(--light-green);
  border-radius: 50%;
  border: 2px solid var(--forest-green);
}

.timeline-item::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1.25rem;
  width: 2px;
  height: calc(100% - 1rem);
  background: var(--medium-green);
}

.timeline-item:last-child::after {
  display: none;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .grid {
    grid-template-columns: 1fr;
  }
  
  .hero-section h2 {
    font-size: 1.875rem;
  }
  
  .hero-section p {
    font-size: 1rem;
  }
}

/* Accessibility */
.focus-visible:focus {
  outline: 2px solid var(--light-green);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .no-print {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  .bg-forest-green,
  .bg-dark-green,
  .bg-medium-green {
    background: white !important;
    color: black !important;
    border: 1px solid #ccc;
  }
}

/* Cultural Design Elements */
.african-pattern {
  background-image: 
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 2px,
      rgba(82, 183, 136, 0.1) 2px,
      rgba(82, 183, 136, 0.1) 4px
    );
}

.kente-border {
  border-image: linear-gradient(
    45deg,
    var(--forest-green),
    var(--light-green),
    #FFD700,
    #DC143C
  ) 1;
  border-width: 2px;
  border-style: solid;
}

/* Form Styling */
.form-input {
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.75rem;
  transition: border-color 0.3s ease;
}

.form-input:focus {
  border-color: var(--light-green);
  outline: none;
  box-shadow: 0 0 0 3px rgba(82, 183, 136, 0.1);
}

/* Search and Filter Styling */
.filter-section {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.search-highlight {
  background-color: rgba(82, 183, 136, 0.3);
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
}

/* Status Indicators */
.status-verified {
  background: #10B981;
  color: white;
}

.status-pending {
  background: #F59E0B;
  color: white;
}

.status-inactive {
  background: #6B7280;
  color: white;
}

/* Interactive Elements */
.interactive-hover {
  cursor: pointer;
  transition: all 0.2s ease;
}

.interactive-hover:hover {
  opacity: 0.8;
}

/* Navigation Breadcrumbs */
.breadcrumb {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  color: #6B7280;
  font-size: 0.875rem;
}

.breadcrumb a {
  color: var(--forest-green);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb-separator {
  margin: 0 0.5rem;
  color: #9CA3AF;
}

/* Social Media Integration */
.social-share {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.social-share button {
  padding: 0.5rem;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.social-share button:hover {
  opacity: 0.8;
}

.share-facebook { background: #1877F2; color: white; }
.share-twitter { background: #1DA1F2; color: white; }
.share-linkedin { background: #0A66C2; color: white; }

/* Emergency/Important Notices */
.notice-important {
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
  border-left: 4px solid #F59E0B;
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 0.5rem;
}

.notice-urgent {
  background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%);
  border-left: 4px solid #EF4444;
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 0.5rem;
}

/* Content Typography */
.content-header {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--forest-green);
  margin-bottom: 0.5rem;
}

.content-subheader {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--dark-green);
  margin-bottom: 1rem;
}

.content-body {
  color: #374151;
  line-height: 1.6;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--forest-green);
  color: white;
  border: none;
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  z-index: 100;
}

.back-to-top:hover {
  background: var(--dark-green);
  transform: translateY(-2px);
}

.back-to-top.visible {
  display: flex;
}

/* Map Integration Styles */
.map-container {
  height: 300px;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Rating System */
.rating-stars {
  display: flex;
  gap: 0.25rem;
  margin: 0.5rem 0;
}

.star {
  color: #D1D5DB;
  font-size: 1rem;
}

.star.filled {
  color: #F59E0B;
}

/* Quick Action Buttons */
.quick-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.quick-action {
  background: var(--light-green);
  color: var(--forest-green);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quick-action:hover {
  background: var(--medium-green);
}

/* Resource Type Icons */
.resource-type-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.type-housing { background: rgba(59, 130, 246, 0.1); color: #3B82F6; }
.type-jobs { background: rgba(16, 185, 129, 0.1); color: #10B981; }
.type-health { background: rgba(239, 68, 68, 0.1); color: #EF4444; }
.type-community { background: rgba(139, 92, 246, 0.1); color: #8B5CF6; }
.type-education { background: rgba(245, 158, 11, 0.1); color: #F59E0B; }
.type-financial { background: rgba(6, 182, 212, 0.1); color: #06B6D4; }