/* ==========================================================================
   AWEA Progress Bar — Zero-Shadow Architectural Meters
   ========================================================================== */

.awea-progress-wrapper {
  width: 100%;
  position: relative;
  box-sizing: border-box;
}

/* 1. Radial Circle Style */
.awea-style-circle {
  display: flex;
  justify-content: center;
  align-items: center;
}

.awea-radial-container {
  position: relative;
  width: 200px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

.awea-progress-svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
  display: block;
}

.awea-progress-svg circle {
  fill: none;
  stroke-linecap: round;
}

.awea-progress-track {
  stroke: #e2e8f0;
  stroke-width: 8px;
}

.awea-progress-circle-fill {
  stroke: var(--e-global-color-primary, #4f46e5);
  stroke-width: 8px;
  stroke-dasharray: 263.89;
  stroke-dashoffset: 263.89;
  transition: stroke 0.3s ease;
}

.awea-radial-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18px;
  box-sizing: border-box;
  pointer-events: none;
}

/* 2. Linear Bar Style */
.awea-style-line {
  width: 100%;
  box-sizing: border-box;
}

.awea-linear-container {
  width: 100%;
  box-sizing: border-box;
}

.awea-linear-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
  gap: 12px;
  box-sizing: border-box;
}

.awea-line-track {
  width: 100%;
  height: 10px;
  background-color: #e2e8f0;
  border-radius: 100px;
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
}

.awea-line-fill {
  height: 100%;
  width: 0%;
  background-color: var(--e-global-color-primary, #4f46e5);
  border-radius: 100px;
  transition: background-color 0.3s ease;
  will-change: width;
}

/* Typography Defaults */
.awea-progress-percent {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
  display: inline-block;
  white-space: nowrap;
}

.awea-style-line .awea-progress-percent {
  font-size: 1.15rem;
  line-height: 1.2;
}

.awea-progress-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #64748b;
  line-height: 1.35;
  word-break: break-word;
}

/* Mobile (<= 767px) */
@media (max-width: 767px) {
  .awea-radial-container {
    width: min(200px, 80vw);
    aspect-ratio: 1 / 1;
  }

  .awea-radial-content {
    padding: 12px;
  }

  .awea-radial-content .awea-progress-percent {
    font-size: 1.85rem;
  }
}