/* Bunny Fonts Import */
@import url('https://fonts.bunny.net/css2?family=Roboto:wght@400;500&display=swap');

.responsive-svg-container {
  width: 100%;
  max-width: 1000px;
  position: relative;
  box-sizing: border-box;
  padding: 20px 0;
}

.responsive-svg-container svg {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%;
  overflow: visible;
}

@media screen and (max-width: 596px) {
  .responsive-svg-container {
    margin-bottom: 20px;
    padding: 10px 0;
  }
}

.tick text {
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
}

.tick line {
  stroke: #ccc;
  stroke-width: 0.5;
  stroke-opacity: 0.7;
}

.domain {
  stroke: #aaa;
  stroke-width: 0.5;
}

.legend-text {
  font-size: 80%;
}

.circular-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: start;
  justify-items: start;  /* Left align items in grid cells */
  width: 100%;
  max-width: 1200px;
  box-sizing: border-box;
  padding: 20px 0 60px 0;  /* Added 60px bottom padding to prevent overlap */
}

.circular-grid svg {
  width: 100%;
  height: auto;
  max-width: 280px;
  overflow: visible;
}

@media (max-width: 1200px) {
  .circular-grid { 
    grid-template-columns: repeat(2, 1fr);
    max-width: 900px;
    gap: 30px;
    padding-bottom: 50px;
  }
  .circular-grid svg {
    max-width: 350px;
  }
}

@media (max-width: 700px) {
  .circular-grid { 
    grid-template-columns: 1fr;
    max-width: 500px;
    gap: 40px;
    padding-bottom: 40px;
  }
  .circular-grid svg {
    max-width: 100%;
    max-height: 400px;
  }
}

/* Recommendations table styles */
.recommendations-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.recommendations-table th {
  background: linear-gradient(135deg, #495057 0%, #343a40 100%);
  color: white;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
}

.recommendations-table td {
  padding: 1rem;
  border-bottom: 1px solid #dee2e6;
}

.recommendations-table tr:hover {
  background: #f8f9fa;
}

.recommendations-table tr:last-child td {
  border-bottom: none;
}

.criteria-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-right: 0.5rem;
}

.badge-code {
  background: #d4edda;
  color: #155724;
}

.badge-standards {
  background: #cce5ff;
  color: #004085;
}

.badge-adfree {
  background: #f8d7da;
  color: #721c24;
}

.framework-tag {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background: #e9ecef;
  border-radius: 4px;
  font-size: 0.85rem;
  margin-right: 0.5rem;
  font-weight: 500;
}

.tutorial-link {
  color: #495057;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 2px solid #adb5bd;
  transition: all 0.2s;
}

.tutorial-link:hover {
  color: #212529;
  border-bottom-color: #495057;
}

.criteria-legend {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  border-left: 4px solid #28a745;
}

.criteria-legend h4 {
  margin-top: 0;
  color: #28a745;
}

.query-list {
  background: white;
  padding: 1rem;
  border-radius: 6px;
  font-family: monospace;
  font-size: 0.9rem;
  color: #495057;
  margin-top: 1rem;
}