/* Page Navigation Section */
.page-navigation {
  margin: 20px 0 30px 0;
  padding: 0;
}

.nav-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
  max-width: 100%;
  margin: 0;
}

.nav-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 14px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  display: block;
}

.nav-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #007bff, #0056b3);
  border-radius: 8px 8px 0 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 123, 255, 0.12);
  border-color: #007bff;
  text-decoration: none;
  color: inherit;
}

.nav-card:hover::before {
  transform: scaleX(1);
}

.nav-card-icon {
  font-size: 1.6rem;
  margin-bottom: 8px;
  display: block;
  color: #007bff;
  transition: transform 0.3s ease;
}

.nav-card:hover .nav-card-icon {
  transform: scale(1.05);
}

.nav-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 4px;
  line-height: 1.2;
}

.nav-card-description {
  font-size: 0.85rem;
  color: #6c757d;
  line-height: 1.3;
  margin: 0;
}

.nav-card-meta {
  display: flex;
  align-items: center;
  margin-top: 12px;
  font-size: 0.8rem;
  color: #868e96;
  gap: 12px;
}

.nav-card-count {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-card-count i {
  font-size: 0.8rem;
}

.nav-card-badge {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .page-navigation {
    margin: 15px 0 25px 0;
  }
  
  .nav-cards-container {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .nav-card {
    padding: 12px;
    border-radius: 6px;
  }
  
  .nav-card-icon {
    font-size: 1.4rem;
    margin-bottom: 6px;
  }
  
  .nav-card-title {
    font-size: 1rem;
  }
  
  .nav-card-description {
    font-size: 0.8rem;
    line-height: 1.25;
  }
}

@media (max-width: 480px) {
  .page-navigation {
    margin: 10px 0 20px 0;
  }
  
  .nav-card {
    padding: 10px;
    border-radius: 6px;
  }
  
  .nav-card-icon {
    font-size: 1.3rem;
    margin-bottom: 5px;
  }
  
  .nav-card-title {
    font-size: 0.95rem;
  }
  
  .nav-card-description {
    font-size: 0.75rem;
  }
}

/* Dark mode support (if you use it) */
@media (prefers-color-scheme: dark) {
  .nav-card {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-color: #4a5568;
    color: #e2e8f0;
  }
  
  .nav-card-title {
    color: #f7fafc;
  }
  
  .nav-card-description {
    color: #cbd5e0;
  }
  
  .nav-card-meta {
    color: #a0aec0;
  }
  
  .nav-card:hover {
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.2);
  }
}

/* Ensure accessibility */
.nav-card:focus {
  outline: 2px solid #007bff;
  outline-offset: 2px;
}

.nav-card:focus:not(:focus-visible) {
  outline: none;
}

@media (prefers-reduced-motion: reduce) {
  .nav-card,
  .nav-card::before,
  .nav-card-icon {
    transition: none;
  }
  
  .nav-card:hover {
    transform: none;
  }
  
  .nav-card:hover .nav-card-icon {
    transform: none;
  }
}
