/* Spider Chart Section Styles */

/* SVG Element Styles */
.spider-ring {
  fill: none;
  stroke: #d0d0d0;
  stroke-width: 2;
}

.spider-axis {
  stroke: #999;
  stroke-width: 2;
  stroke-dasharray: 5, 5;
  opacity: 0.5;
}

.spider-poly {
  stroke-width: 3;
  stroke-linejoin: round;
}

.spider-poly.poly-red {
  fill: rgba(220, 53, 69, 0.15);
  stroke: #dc3545;
}

.spider-poly.poly-green {
  fill: rgba(40, 167, 69, 0.2);
  stroke: #28a745;
}

.spider-label {
  fill: #333;
  font-size: 35px;
  font-weight: 700;
  font-family: inherit;
}

.spider-dot {
  stroke: #fff;
  stroke-width: 3;
}

.spider-dot.dot-red {
  fill: #dc3545;
}

.spider-dot.dot-green {
  fill: #28a745;
}

.spider-chart-content {
  display: flex;
  justify-content: center;
  align-items: center;
}

.spider-chart-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 1800px;
  width: 100%;
}

.spider-chart-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: .6rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(255, 107, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Spider chart - smaller */
.spider-chart-image-container.chart-container {
  flex: 2;
  min-width: 250px;
  max-width: 615px;
}

/* Table - much larger */
.spider-chart-image-container.table-container {
  flex: 2;
  min-width: 992px;
  max-width: 1200px;
}

.spider-chart-image-container:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(255, 107, 0, 0.15);
  border-color: rgba(255, 107, 0, 0.3);
}

.spider-chart-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: contain;
}

/* Spider Chart SVG Styles */
.spider-chart-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, #fafafa 0%, #f0f0f0 100%);
  border-radius: 8px;
}

.spider-chart-svg {
  width: 100%;
  max-width: 500px;
  height: auto;
  overflow: visible;
}

/* Spider Chart Legend */
.spider-chart-legend {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legend-color {
  width: 20px;
  height: 12px;
  border-radius: 3px;
}

.legend-traditional {
  background-color: #dc3545;
}

.legend-aayuna {
  background-color: #28a745;
}

.legend-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
}

/* Comparison Table Styles */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.1rem;
  background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 107, 0, 0.3);
}

.comparison-table thead tr {
  background: linear-gradient(90deg, #FF6B00 0%, #ff8533 100%);
}

.comparison-table th {
  padding: 1.25rem 1rem;
  text-align: center;
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 3px solid rgba(255, 255, 255, 0.2);
}

.metric-header {
  width: 15%;
  background: linear-gradient(180deg, #FF6B00 0%, #e55d00 100%);
}

.traditional-header {
  width: 42.5%;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.aayuna-header {
  width: 42.5%;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(90deg, #ff8533 0%, #FF6B00 100%);
}

.comparison-table tbody tr {
  border-bottom: 1px solid rgba(255, 107, 0, 0.2);
  transition: background-color 0.2s ease;
}

.comparison-table tbody tr:hover {
  background-color: rgba(255, 107, 0, 0.1);
}

.comparison-table tbody tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.5);
}

.comparison-table tbody tr:nth-child(even):hover {
  background-color: rgba(255, 107, 0, 0.15);
}

.comparison-table td {
  padding: .5rem;;
  vertical-align: middle;
  color: #333;
  line-height: 1.5;
  font-size: 1.05rem;
}

.metric-cell {
  background: linear-gradient(90deg, #FF6B00 0%, #ff8533 100%);
  color: #fff !important;
  font-weight: 700;
  text-align: center;
  font-size: 1.1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.traditional-cell {
  text-align: center;
  background-color: rgba(200, 200, 200, 0.3);
  border-right: 1px solid rgba(255, 107, 0, 0.15);
}

.aayuna-cell {
  text-align: center;
  background-color: rgba(255, 107, 0, 0.08);
  position: relative;
}

.aayuna-cell::after {
  content: "✓";
  display: inline-block;
  margin-left: 0.5rem;
  color: #28a745;
  font-weight: 700;
  font-size: 1.2rem;
  vertical-align: middle;
}

/* Highlight styles */
.highlight-bad {
  color: #d84315;
  font-weight: 700;
}

.highlight-good {
  color: #2e7d32;
  font-weight: 700;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .spider-chart-content {
    padding: 2rem;
  }

  .spider-chart-row {
    flex-direction: column;
    gap: 2rem;
  }

  .spider-chart-image-container, .spider-chart-image-container.chart-container, .spider-chart-image-container.table-container {
    max-width: 100%;
    min-width: unset;
  }

  .comparison-table {
    font-size: 0.95rem;
  }

  .comparison-table th {
    padding: 0.75rem 0.5rem;
    font-size: 1rem;
  }

  .comparison-table td {
    padding: 0.6rem 0.5rem;
    font-size: 0.9rem;
  }

  .spider-chart-legend {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
  }

  .spider-chart-svg {
    max-width: 400px;
  }
}

@media (max-width: 576px) {
  .spider-chart-content {
    padding: 1rem;
  }

  .spider-chart-svg {
    max-width: 320px;
  }

  .legend-label {
    font-size: 0.8rem;
  }

  .spider-chart-image-container {
    padding: 0.5rem;
  }

  .comparison-table {
    font-size: 0.85rem;
  }

  .comparison-table th {
    padding: 0.6rem 0.4rem;
    font-size: 0.9rem;
  }

  .comparison-table td {
    padding: 0.5rem 0.4rem;
    font-size: 0.8rem;
  }
}
