/**
 * @file
 * Clean, minimal styles for the Entity Overview block using SAHO card system.
 * Focused on content display only.
 */

/* ==========================================================================
   ENTITY OVERVIEW BLOCK STYLES
   ========================================================================== */

.entity-overview-block {
  margin-bottom: 2rem;
  border: none !important; /* Remove any unwanted borders */
}

.entity-overview-block * {
  border-color: #cbd5e1 !important; /* Override any blue borders with neutral gray */
}

.entity-overview-block .saho-card {
  border: 1px solid #e2e8f0 !important; /* Ensure cards have proper neutral border */
}

.entity-overview-block .block-title {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: #2c3e50;
  font-weight: 600;
  line-height: 1.3;
}

.entity-overview-block .block-intro {
  font-size: 1rem;
  line-height: 1.6;
  color: #6c757d;
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   CARD GRID LAYOUT
   ========================================================================== */

.entity-overview-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* ==========================================================================
   SAHO CARD ENHANCEMENTS FOR ENTITY OVERVIEW
   ========================================================================== */

.entity-overview-block .saho-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: fit-content;
}

.entity-overview-block .saho-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.entity-overview-block .saho-card-title a {
  color: #2c3e50;
  text-decoration: none;
  transition: color 0.2s ease;
}

.entity-overview-block .saho-card-title a:hover {
  color: #8B4513;
}

.entity-overview-block .saho-card-teaser {
  margin-bottom: 1rem;
}

.entity-overview-block .saho-card-teaser p {
  color: #495057;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

.entity-overview-block .saho-card-meta {
  color: #6c757d;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.entity-overview-block .saho-card-meta .separator {
  margin: 0 0.5rem;
  opacity: 0.6;
}

.entity-overview-block .saho-card-actions .btn {
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.entity-overview-block .saho-card-actions .btn svg {
  transition: transform 0.2s ease;
}

.entity-overview-block .saho-card-actions .btn:hover svg {
  transform: translateX(2px);
}

/* Simple card animations */
.entity-overview-item {
  transition: all 0.3s ease;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 1024px) {
  .entity-overview-items {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .entity-overview-block .block-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
  }

  .entity-overview-items {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .entity-overview-block {
    margin-bottom: 1.5rem;
  }

  .entity-overview-items {
    gap: 1rem;
  }
}

/* ==========================================================================
   ACCESSIBILITY ENHANCEMENTS
   ========================================================================== */

.entity-overview-block .btn:focus {
  outline: 2px solid #8B4513 !important;
  outline-offset: 2px;
  border-color: #8B4513 !important;
  box-shadow: 0 0 0 0.25rem rgba(139, 69, 19, 0.25) !important;
}

.entity-overview-block .saho-card:focus-within {
  outline: 2px solid #8B4513 !important;
  outline-offset: 2px;
  border-radius: 8px;
  border-color: #8B4513 !important;
  box-shadow: 0 0 0 0.25rem rgba(139, 69, 19, 0.25) !important;
}

/* Override any Bootstrap focus states that might be causing blue borders */
.entity-overview-block *:focus,
.entity-overview-block *:focus-visible {
  outline-color: #8B4513 !important;
  border-color: #8B4513 !important;
  box-shadow: 0 0 0 0.25rem rgba(139, 69, 19, 0.25) !important;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .entity-overview-block *,
  .entity-overview-block *::before,
  .entity-overview-block *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .entity-overview-block .saho-card:hover {
    transform: none;
  }

  .entity-overview-load-more-button:hover {
    transform: none;
  }
}