/**
 * Razas Statistics Page Stylesheet
 * 
 * This file contains styles specific to the crop species and breeds display page.
 * It provides styling for expandable species cards with nested breed information.
 * 
 * Key features:
 * - Collapsible species cards with gradient headers
 * - Breed items with hover effects
 * - Statistics display with formatted layout
 * - Responsive design for mobile devices
 */

/* ============================================
   SPECIES CARD STYLES
   ============================================ */

/* Species card container - white box for each species */
.species-card {
  background: white;
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Species header - clickable section to expand/collapse breeds */
.species-header {
  padding: 20px;
  cursor: pointer; /* Indicates this is clickable */
  /* Green gradient background for visual appeal */
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  border-radius: 10px 10px 0 0; /* Rounded top corners only */
  transition: all 0.3s; /* Smooth animation on hover */
}

/* Species header hover state - darker green gradient */
.species-header:hover {
  background: linear-gradient(135deg, #218838 0%, #1aa179 100%);
}

/* Species header title - flex layout for title and icon alignment */
.species-header h4 {
  margin: 0;
  display: flex;
  justify-content: space-between; /* Title on left, icon on right */
  align-items: center;
}

/* ============================================
   BREED ITEM STYLES
   ============================================ */

/* Individual breed item within species card */
.breed-item {
  padding: 15px 20px;
  border-bottom: 1px solid #e9ecef; /* Separator between breeds */
  cursor: pointer;
  transition: background 0.2s; /* Smooth background change on hover */
}

/* Breed item hover state - light gray background */
.breed-item:hover {
  background: #f8f9fa;
}

/* Remove border from last breed item */
.breed-item:last-child {
  border-bottom: none;
}

/* Breed name - green text, bold for emphasis */
.breed-name {
  font-weight: 600;
  color: #28a745;
  margin-bottom: 5px;
}

/* ============================================
   STATISTICS DISPLAY STYLES
   ============================================ */

/* Statistics container - hidden by default, shown on breed selection */
.breed-stats {
  display: none; /* Hidden until breed is selected */
  margin-top: 15px;
  padding: 15px;
  background: #f8f9fa; /* Light gray background */
  border-radius: 5px;
}

/* Show class - applied when breed stats should be visible */
.breed-stats.show {
  display: block;
}

/* Individual stat row - displays label and value */
.stat-item {
  display: flex;
  justify-content: space-between; /* Label on left, value on right */
  padding: 8px 0;
  border-bottom: 1px solid #dee2e6;
}

/* Remove border from last stat item */
.stat-item:last-child {
  border-bottom: none;
}

/* Stat label - gray text for descriptive labels */
.stat-label {
  font-weight: 500;
  color: #6c757d;
}

/* Stat value - green text for actual values */
.stat-value {
  font-weight: 600;
  color: #28a745;
}

/* ============================================
   EMPTY STATE STYLES
   ============================================ */

/* No data message - centered gray text when no species exist */
.no-data {
  text-align: center;
  padding: 40px;
  color: #6c757d;
}
