/**
 * Age Calculator Widget Styles (English)
 */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

[data-widget="age-calculator"] {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.5;
  color: #1f2937;
  -webkit-font-smoothing: antialiased;
}

.ac-widget {
  max-width: 480px;
  margin: 0 auto;
  padding: 16px;
}

.ac-widget *,
.ac-widget *::before,
.ac-widget *::after {
  box-sizing: border-box;
}

/* Updated English color to indigo #4F46E5 */
.ac-title {
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #4f46e5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.ac-title svg {
  width: 24px;
  height: 24px;
  stroke: #4f46e5;
  stroke-width: 2;
  fill: none;
}

.ac-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
}

.ac-card-header {
  margin-bottom: 16px;
}

.ac-card-title-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.ac-card-title-wrapper svg {
  width: 20px;
  height: 20px;
  stroke: #4f46e5;
  stroke-width: 2;
  fill: none;
}

.ac-card-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  color: #1f2937;
}

.ac-card-desc {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
}

.ac-input-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.ac-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ac-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.ac-select {
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  font-size: 0.875rem;
  color: #1f2937;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}

.ac-select:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.ac-calculate-btn {
  width: 100%;
  padding: 12px;
  background: #4f46e5;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.ac-calculate-btn:hover {
  background: #4338ca;
}

.ac-calculate-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.ac-result-card {
  background: rgba(79, 70, 229, 0.08);
  border: 2px solid rgba(79, 70, 229, 0.2);
}

.ac-result {
  text-align: center;
  padding: 16px 0;
}

.ac-result-age {
  font-size: 2.5rem;
  font-weight: 700;
  color: #4f46e5;
  margin: 0 0 8px 0;
  line-height: 1.2;
}

.ac-result-details {
  font-size: 1rem;
  color: #6b7280;
  margin: 0;
}

.ac-result-breakdown {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(79, 70, 229, 0.2);
}

.ac-breakdown-item {
  text-align: center;
}

.ac-breakdown-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #4f46e5;
  display: block;
}

.ac-breakdown-label {
  font-size: 0.75rem;
  color: #6b7280;
  text-transform: uppercase;
}
