/* ==========================================
   CREATE LEAGUE PAGE STYLES
   ========================================== */

/* Back link in header */
.create-back-link {
  font-family: "nta", Arial, sans-serif;
  font-size: 0.875rem;
  color: #1d70b8;
  text-decoration: underline;
}

.create-back-link:hover {
  color: #003078;
}

/* Main container */
.create-main {
  padding-top: 24px;
  padding-bottom: 40px;
}

/* ==========================================
   STEP INDICATOR
   ========================================== */
.create-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 30px;
}

.create-step {
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.4;
}

.create-step.active {
  opacity: 1;
}

.create-step.done {
  opacity: 0.7;
}

.create-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #0b0c0c;
  color: #ffffff;
  font-family: "nta", Arial, sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  flex-shrink: 0;
}

.create-step.active .create-step-number {
  background: #1d70b8;
}

.create-step.done .create-step-number {
  background: #00703c;
}

.create-step-label {
  font-family: "nta", Arial, sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  color: #0b0c0c;
}

.create-step-connector {
  flex: 1;
  height: 2px;
  background: #b1b4b6;
  margin: 0 8px;
}

@media (max-width: 480px) {
  .create-step-label {
    display: none;
  }
  .create-step-connector {
    margin: 0 4px;
  }
}

/* ==========================================
   PANELS
   ========================================== */
.create-panel {
  background: #ffffff;
  border: 1px solid #b1b4b6;
  padding: 24px;
}

.create-panel-title {
  font-family: "nta", Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0b0c0c;
  margin: 0 0 8px;
}

/* ==========================================
   FORMS
   ========================================== */
.create-form-group {
  margin-bottom: 20px;
}

.create-label {
  display: block;
  font-family: "nta", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #0b0c0c;
  margin-bottom: 4px;
}

.create-hint {
  font-family: "nta", Arial, sans-serif;
  font-size: 0.875rem;
  color: #505a5f;
  margin-bottom: 6px;
}

.create-form-row {
  display: flex;
  gap: 16px;
}

.create-form-half {
  flex: 1;
}

/* Inline label + input on the same row */
.create-form-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.create-form-inline .create-label {
  margin-bottom: 0;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Compact input — auto-width, not full-width */
.govuk-input--compact {
  width: auto;
  flex: 1;
  min-width: 0;
}

/* Narrow input for small number fields */
.govuk-input--narrow {
  width: 80px;
  flex: none;
}

@media (max-width: 480px) {
  .create-form-row {
    flex-direction: column;
    gap: 0;
  }
}

/* ==========================================
   NAVIGATION BUTTONS
   ========================================== */
.create-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #b1b4b6;
}

/* ==========================================
   PEOPLE LIST (Step 2)
   ========================================== */
.create-people-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  min-height: 40px;
}

.create-person-tag {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f3f2f1;
  border: 1px solid #b1b4b6;
  padding: 8px 12px;
  font-family: "nta", Arial, sans-serif;
  font-size: 0.9375rem;
  color: #0b0c0c;
}

.create-person-name {
  font-weight: 700;
}

.create-person-remove {
  background: none;
  border: none;
  color: #d4351c;
  font-family: "nta", Arial, sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

.create-person-remove:hover {
  color: #942514;
}

.create-add-person {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.create-add-person .govuk-input {
  flex: 1;
}

.create-add-person .govuk-button {
  flex-shrink: 0;
  white-space: nowrap;
}

.create-people-count {
  font-family: "nta", Arial, sans-serif;
  font-size: 0.875rem;
  color: #505a5f;
  margin-bottom: 4px;
}

/* Empty state */
.create-people-empty {
  font-family: "nta", Arial, sans-serif;
  font-size: 0.875rem;
  color: #505a5f;
  font-style: italic;
  padding: 12px 0;
}

/* ==========================================
   DETAILS / ACCORDION (Step 3)
   ========================================== */
.create-details {
  border: 1px solid #b1b4b6;
  margin-bottom: 12px;
}

.create-details-summary {
  font-family: "nta", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #1d70b8;
  padding: 12px 16px;
  cursor: pointer;
  list-style: none;
}

.create-details-summary::-webkit-details-marker {
  display: none;
}

.create-details-summary::before {
  content: "\25B6";
  display: inline-block;
  margin-right: 8px;
  font-size: 0.75rem;
  transition: transform 0.15s;
}

.create-details[open] .create-details-summary::before {
  transform: rotate(90deg);
}

.create-details-summary:hover {
  color: #003078;
  background: #f3f2f1;
}

.create-details-body {
  padding: 0 16px 16px;
  border-top: 1px solid #b1b4b6;
}

/* Drink units grid */
.create-units-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 16px;
}

.create-unit-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.create-unit-item label {
  font-family: "nta", Arial, sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  color: #0b0c0c;
  min-width: 50px;
}

.create-unit-item input {
  width: 70px;
  flex: none;
  box-sizing: border-box;
}

.create-unit-item .create-unit-remove {
  background: none;
  border: none;
  color: #d4351c;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.create-unit-item .create-unit-remove:hover {
  color: #942514;
}

/* Add drink type row */
.create-add-drink-type {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  align-items: center;
}

.create-add-drink-type input {
  width: 120px;
  flex: none;
}

.create-add-drink-type input[type="number"] {
  width: 70px;
}

@media (max-width: 480px) {
  .create-units-grid {
    grid-template-columns: 1fr;
  }
}

/* Person weights list */
.create-person-weights {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.create-person-weight-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.create-person-weight-row span {
  font-family: "nta", Arial, sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  color: #0b0c0c;
  min-width: 80px;
}

.create-person-weight-row input {
  width: 80px;
}

/* Checkbox */
.create-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "nta", Arial, sans-serif;
  font-size: 1rem;
  color: #0b0c0c;
  cursor: pointer;
}

.create-checkbox-label input[type="checkbox"] {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* ==========================================
   REVIEW CARD (Step 4)
   ========================================== */
.create-review-card {
  border: 1px solid #b1b4b6;
  margin-bottom: 20px;
}

.create-review-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid #f3f2f1;
  font-family: "nta", Arial, sans-serif;
  font-size: 0.9375rem;
}

.create-review-row:last-child {
  border-bottom: none;
}

.create-review-label {
  color: #505a5f;
  font-weight: 400;
}

.create-review-value {
  color: #0b0c0c;
  font-weight: 700;
  text-align: right;
}

/* ==========================================
   COST CARD (Step 4)
   ========================================== */
.create-cost-card {
  background: #f3f2f1;
  border: 1px solid #b1b4b6;
  padding: 20px;
  margin-bottom: 20px;
}

.create-cost-title {
  font-family: "nta", Arial, sans-serif;
  font-size: 1.0625rem;
  font-weight: 700;
  color: #0b0c0c;
  margin: 0 0 8px;
}

.create-cost-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 16px 0;
  flex-wrap: wrap;
}

.create-cost-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.create-cost-number {
  font-family: "nta", Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #0b0c0c;
}

.create-cost-label {
  font-family: "nta", Arial, sans-serif;
  font-size: 0.75rem;
  color: #505a5f;
}

.create-cost-multiply {
  font-family: "nta", Arial, sans-serif;
  font-size: 1.25rem;
  color: #505a5f;
}

.create-cost-total .create-cost-number {
  font-size: 2rem;
  color: #00703c;
}

.create-cost-note {
  margin-top: 12px;
  margin-bottom: 0;
  font-style: italic;
}

/* ==========================================
   AUTH SECTION (Step 4)
   ========================================== */
.create-auth-prompt {
  border: 2px solid #1d70b8;
  padding: 16px;
  margin-bottom: 16px;
  background: #f3f2f1;
}

.create-auth-ready {
  border: 2px solid #00703c;
  padding: 16px;
  margin-bottom: 16px;
  background: #f3f2f1;
}

/* ==========================================
   SUCCESS
   ========================================== */
.create-success {
  text-align: center;
  padding: 20px 0;
}

.create-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #00703c;
  color: #ffffff;
  font-size: 2rem;
  margin-bottom: 16px;
}

.create-link-box {
  display: flex;
  gap: 8px;
  max-width: 500px;
  margin: 12px auto;
}

.create-link-box .govuk-input {
  flex: 1;
  text-align: center;
  font-size: 0.875rem;
}

.create-link-copied {
  color: #00703c;
  font-weight: 700;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 640px) {
  .create-panel {
    padding: 16px;
  }
  .create-cost-grid {
    gap: 8px;
  }
  .create-cost-number {
    font-size: 1.25rem;
  }
  .create-cost-total .create-cost-number {
    font-size: 1.5rem;
  }
}
