/* Body Golden Ratio Calculator */
/* Kadence Theme Compatible - Max Width 1290px */

.brc-container {
  max-width: 1290px;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #2d3748;
  line-height: 1.6;
}

/* Remove default margins and padding */
.brc-container * {
  box-sizing: border-box;
}

/* Header Section */
.brc-header {
  text-align: center;
  margin-bottom: 3rem;
}

.brc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
  border-radius: 16px;
  margin-bottom: 1rem;
  color: #ffffff;
}

.brc-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
  background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brc-description {
  font-size: 1.125rem;
  color: #718096;
  margin: 0 auto;
  max-width: 800px;
}

/* Card Styles */
.brc-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.brc-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 1.5rem 0;
  color: #2d3748;
}

.brc-subsection-title {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #718096;
  margin: 0 0 1rem 0;
}

/* Form Elements */
.brc-form-group {
  margin-bottom: 1.5rem;
}

.brc-label-main,
.brc-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #2d3748;
}

.brc-required {
  color: #e53e3e;
}

.brc-optional {
  color: #718096;
  font-weight: 400;
}

.brc-help-text {
  font-size: 0.75rem;
  color: #718096;
  margin: 0.25rem 0 0 0;
}

/* Radio Groups */
.brc-radio-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.brc-radio-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-weight: 500;
}

.brc-radio-label input[type="radio"] {
  width: 16px;
  height: 16px;
  border: 2px solid #4299e1;
  cursor: pointer;
  accent-color: #4299e1;
}

/* Input Fields */
.brc-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.brc-height-inputs {
  display: flex;
  gap: 1rem;
}

.brc-height-inputs .brc-input-wrapper {
  flex: 1;
}

.brc-input {
  width: 100%;
  padding: 0.75rem 3.5rem 0.75rem 0.75rem;
  font-size: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  transition: all 0.2s;
}

.brc-input:focus {
  outline: none;
  border-color: #4299e1;
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.brc-unit {
  position: absolute;
  right: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #718096;
  pointer-events: none;
}

/* Measurements Sections */
.brc-measurements-section {
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.brc-measurements-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

/* Buttons */
.brc-button-group {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.brc-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  flex: 1;
}

.brc-button-primary {
  background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
  color: #ffffff;
}

.brc-button-primary:hover {
  background: linear-gradient(135deg, #3182ce 0%, #2c5282 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(66, 153, 225, 0.3);
}

.brc-button-secondary {
  background: #ffffff;
  color: #2d3748;
  border: 1px solid #e2e8f0;
}

.brc-button-secondary:hover {
  background: #f7fafc;
  border-color: #cbd5e0;
}

/* Results Section */
.brc-results-section {
  margin-top: 2rem;
}

.brc-overall-score {
  background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
  border-radius: 12px;
  padding: 2rem;
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.brc-score-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.brc-score-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0;
}

.brc-score-value {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.brc-progress-bar {
  width: 100%;
  height: 12px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.brc-progress-fill {
  height: 100%;
  background: #ffffff;
  border-radius: 6px;
  transition: width 0.5s ease;
}

.brc-score-description {
  font-size: 0.875rem;
  margin: 0;
  opacity: 0.9;
}

/* Body Composition Grid */
.brc-body-composition {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.brc-stat-card {
  background: #f7fafc;
  border-radius: 8px;
  padding: 1rem;
}

.brc-stat-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.brc-stat-icon {
  color: #4299e1;
}

.brc-stat-title {
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0;
  color: #2d3748;
}

.brc-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2d3748;
  margin: 0.25rem 0;
}

.brc-stat-label {
  font-size: 0.875rem;
  color: #718096;
  margin: 0;
}

/* Ratio Analysis */
.brc-ratio-analysis {
  margin-bottom: 1.5rem;
}

.brc-ratio-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
  color: #2d3748;
}

.brc-ratio-item {
  background: #f7fafc;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.brc-ratio-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.brc-ratio-info {
  flex: 1;
}

.brc-ratio-label {
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brc-ratio-description {
  font-size: 0.75rem;
  color: #718096;
  margin-bottom: 0.5rem;
}

.brc-ratio-values {
  font-size: 0.875rem;
  color: #718096;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.brc-ratio-values span {
  display: inline-block;
}

.brc-ratio-values strong {
  color: #2d3748;
}

.brc-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.brc-badge-excellent {
  background: #38a169;
  color: #ffffff;
}

.brc-badge-good {
  background: #4299e1;
  color: #ffffff;
}

.brc-badge-fair {
  background: #ed8936;
  color: #ffffff;
}

.brc-badge-needs {
  background: #cbd5e0;
  color: #2d3748;
}

.brc-progress-bar-small {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}

.brc-progress-fill-small {
  height: 100%;
  background: #4299e1;
  border-radius: 4px;
  transition: width 0.5s ease;
}

/* Ideal Measurements */
.brc-ideal-measurements {
  background: rgba(237, 137, 54, 0.1);
  border: 1px solid rgba(237, 137, 54, 0.2);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.brc-ideal-title {
  font-weight: 600;
  margin: 0 0 0.75rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #2d3748;
}

.brc-ideal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
  font-size: 0.875rem;
}

.brc-ideal-item {
  display: flex;
  flex-direction: column;
}

.brc-ideal-label {
  color: #718096;
  margin-bottom: 0.25rem;
}

.brc-ideal-value {
  font-weight: 600;
  color: #2d3748;
}

.brc-ideal-note {
  font-size: 0.75rem;
  color: #718096;
  margin: 0.75rem 0 0 0;
}

/* Recommendations */
.brc-recommendations {
  background: rgba(66, 153, 225, 0.1);
  border: 1px solid rgba(66, 153, 225, 0.2);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.brc-recommendations-title {
  font-weight: 600;
  margin: 0 0 0.75rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #2d3748;
}

.brc-recommendations-list {
  list-style: disc;
  padding-left: 1.5rem;
  margin: 0;
  color: #718096;
  font-size: 0.875rem;
}

.brc-recommendations-list li {
  margin-bottom: 0.5rem;
}

.brc-recommendations-list strong {
  color: #2d3748;
}

/* Info Section */
.brc-info-section {
  background: linear-gradient(145deg, #ffffff 0%, #f7fafc 100%);
}

.brc-info-content p {
  margin: 0 0 1.5rem 0;
  color: #718096;
}

.brc-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.brc-info-subtitle {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.75rem 0;
  color: #2d3748;
}

.brc-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  color: #718096;
  font-size: 0.875rem;
}

.brc-info-list li {
  margin-bottom: 0.5rem;
}

.brc-info-list strong {
  color: #2d3748;
}

/* Empty State */
.brc-empty-state {
  text-align: center;
  padding: 3rem 1rem;
}

.brc-empty-icon {
  width: 64px;
  height: 64px;
  background: #f7fafc;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: #718096;
}

.brc-empty-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  color: #2d3748;
}

.brc-empty-text {
  color: #718096;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .brc-card {
    padding: 1.5rem;
  }

  .brc-title {
    font-size: 2rem;
  }

  .brc-description {
    font-size: 1rem;
  }

  .brc-height-inputs {
    flex-direction: column;
  }

  .brc-button-group {
    flex-direction: column;
  }

  .brc-info-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .brc-card {
    padding: 1rem;
  }

  .brc-title {
    font-size: 1.75rem;
  }

  .brc-section-title {
    font-size: 1.25rem;
  }
}

/* Print Styles */
@media print {
  .brc-button,
  .brc-button-group {
    display: none !important;
  }

  .brc-card {
    box-shadow: none;
    border: 1px solid #e2e8f0;
    page-break-inside: avoid;
  }

  .brc-container {
    max-width: 100%;
  }
}
