/* =========================================
   FS25 modDesc Generator styles
   Scoped so it only affects the modDesc tool
   Wrapper: <section class="moddesc-section">...</section>
========================================= */

/* Layout shell */
.moddesc-section {
  width: 100%;
  margin: 1.5rem auto 0;
  padding: 1.4rem 1.6rem 1.8rem;
  border-radius: 18px;
  background: linear-gradient(135deg, #050816, #020617);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-sizing: border-box;
}

/* Optional inner container if you add it */
.moddesc-section .moddesc-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* -----------------------------------------
   Header
----------------------------------------- */

.moddesc-section .moddesc-header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.5rem;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.1rem;
}

.moddesc-section .moddesc-header-main {
  max-width: 640px;
}

.moddesc-section .moddesc-title-label {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  margin-bottom: 0.35rem;
  border-radius: 999px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(248, 250, 252, 0.06);
  color: #e5e7eb;
  border: 1px solid rgba(148, 163, 184, 0.45);
}

.moddesc-section .moddesc-header h2 {
  font-size: 1.5rem;
  line-height: 1.3;
  margin: 0 0 0.25rem;
  color: #f9fafb;
}

.moddesc-section .moddesc-header p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #9ca3af;
}

/* Little status block on the right if used */
.moddesc-section .moddesc-meta {
  padding: 0.5rem 0.9rem;
  border-radius: 0.9rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.35);
  font-size: 0.8rem;
  color: #e5e7eb;
}

/* -----------------------------------------
   Steps summary / top toolbar
----------------------------------------- */

.moddesc-section .moddesc-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.1rem 0 1.2rem;
}

.moddesc-section .moddesc-step-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.moddesc-section .moddesc-step-pill span {
  opacity: 0.8;
}

/* Toolbar row (buttons like "Load for editing", "Clear form", etc.) */
.moddesc-section .moddesc-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 1.3rem;
}

/* -----------------------------------------
   Buttons
----------------------------------------- */

.moddesc-section .btn-md-primary,
.moddesc-section .btn-md-secondary,
.moddesc-section .btn-md-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    transform 0.08s ease,
    box-shadow 0.1s ease;
}

.moddesc-section .btn-md-primary {
  background: linear-gradient(135deg, #ea580c, #f97316);
  border-color: #f97316;
  color: #0b1120;
  box-shadow: 0 10px 25px rgba(248, 113, 113, 0.4);
}

.moddesc-section .btn-md-primary:hover {
  background: linear-gradient(135deg, #f97316, #fb923c);
  border-color: #fb923c;
  transform: translateY(-1px);
}

.moddesc-section .btn-md-primary:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.6);
}

.moddesc-section .btn-md-secondary {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.6);
  color: #e5e7eb;
}

.moddesc-section .btn-md-secondary:hover {
  background: rgba(15, 23, 42, 1);
}

.moddesc-section .btn-md-ghost {
  background: transparent;
  border-color: transparent;
  color: #9ca3af;
}

.moddesc-section .btn-md-ghost:hover {
  background: rgba(15, 23, 42, 0.7);
  border-color: rgba(148, 163, 184, 0.4);
}

/* Icon in buttons if you use <span class="btn-icon"> */
.moddesc-section .btn-md-primary .btn-icon,
.moddesc-section .btn-md-secondary .btn-icon,
.moddesc-section .btn-md-ghost .btn-icon {
  display: inline-flex;
}

/* -----------------------------------------
   Form shells and groups
----------------------------------------- */

.moddesc-section .moddesc-form {
  margin-top: 0.4rem;
}

/* Big blocks for sections of the form */
.moddesc-section .moddesc-fieldset {
  margin-bottom: 1.45rem;
  padding: 1.05rem 1.15rem 1.25rem;
  border-radius: 14px;
  background: radial-gradient(circle at top left, #0f172a, #020617 52%);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.moddesc-section .moddesc-fieldset-header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  align-items: baseline;
  margin-bottom: 0.85rem;
}

.moddesc-section .moddesc-fieldset-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #e5e7eb;
}

.moddesc-section .moddesc-fieldset-subtitle {
  font-size: 0.8rem;
  color: #9ca3af;
}

/* General field layout */
.moddesc-section .field-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  margin-bottom: 0.9rem;
}

.moddesc-section .field-group {
  flex: 1 1 220px;
  min-width: 0;
}

.moddesc-section .field-group.full {
  flex-basis: 100%;
}

.moddesc-section .field-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.25rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: #e5e7eb;
}

.moddesc-section .field-label span {
  opacity: 0.8;
}

.moddesc-section .field-label .label-tag {
  font-size: 0.7rem;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.8);
  color: #9ca3af;
  border: 1px solid rgba(148, 163, 184, 0.6);
}

/* Inputs */
.moddesc-section input[type="text"],
.moddesc-section input[type="number"],
.moddesc-section input[type="file"],
.moddesc-section textarea,
.moddesc-section select {
  width: 100%;
  box-sizing: border-box;
  padding: 0.4rem 0.55rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.95);
  color: #e5e7eb;
  font-size: 0.85rem;
  line-height: 1.35;
  outline: none;
  transition:
    border-color 0.12s ease,
    box-shadow 0.12s ease,
    background-color 0.12s ease;
}

.moddesc-section textarea {
  min-height: 3.4rem;
  resize: vertical;
}

.moddesc-section input[type="text"]:focus,
.moddesc-section input[type="number"]:focus,
.moddesc-section input[type="file"]:focus,
.moddesc-section textarea:focus,
.moddesc-section select:focus {
  border-color: #f97316;
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.4);
}

/* Helper text */
.moddesc-section .field-help {
  margin-top: 0.18rem;
  font-size: 0.75rem;
  color: #9ca3af;
}

/* Error text if you add it */
.moddesc-section .field-error {
  margin-top: 0.18rem;
  font-size: 0.75rem;
  color: #fca5a5;
}

/* -----------------------------------------
   Two and three column grids
----------------------------------------- */

.moddesc-section .moddesc-grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.9rem 1.1rem;
}

.moddesc-section .moddesc-grid-3 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.9rem 1.1rem;
}

@media (min-width: 768px) {
  .moddesc-section .moddesc-grid-2 {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  }

  .moddesc-section .moddesc-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* -----------------------------------------
   Repeater lists (store items, text blocks, etc.)
----------------------------------------- */

.moddesc-section .moddesc-repeater {
  margin-top: 0.5rem;
}

.moddesc-section .moddesc-repeater-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.7rem;
}

.moddesc-section .moddesc-repeater-item {
  padding: 0.4rem 0.55rem;
  border-radius: 0.6rem;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.4);
  font-size: 0.8rem;
  color: #e5e7eb;
}

.moddesc-section .moddesc-repeater-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-start;
}

/* -----------------------------------------
   Footer / bottom actions
----------------------------------------- */

.moddesc-section .moddesc-footer {
  margin-top: 1.4rem;
  padding-top: 0.95rem;
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  align-items: center;
  justify-content: space-between;
}

.moddesc-section .moddesc-footer-left {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.moddesc-section .moddesc-footer-text {
  font-size: 0.78rem;
  color: #9ca3af;
}

/* -----------------------------------------
   Responsive tweaks
----------------------------------------- */

@media (max-width: 768px) {
  .moddesc-section {
    padding: 1.05rem 1rem 1.3rem;
    margin-top: 1.1rem;
  }

  .moddesc-section .moddesc-header h2 {
    font-size: 1.25rem;
  }

  .moddesc-section .moddesc-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .moddesc-section .btn-md-primary,
  .moddesc-section .btn-md-secondary,
  .moddesc-section .btn-md-ghost {
    width: 100%;
    justify-content: center;
  }
}
