@import url("https://fonts.googleapis.com/css2?family=Anton&family=Barlow+Condensed:ital,wght@0,600;0,700;0,800;1,700;1,800&display=swap");

/* ======================================================
   THE SOLE LAB
====================================================== */

:root {

  /* Backgrounds */
--bg-main: #0d1014;
--bg-panel: #14191f;
--bg-panel-secondary: #191f26;
--bg-input: #10151a;

/* Borders */
--border-primary: #283039;
--border-hover: #39434e;

/* Text */
--text-primary: #f4f6f8;
--text-secondary: #9da7b2;
--text-muted: #68737e;

/* Sole Lab */
--sole-accent: #8ac73f;
--sole-accent-hover: #9ed653;
--sole-accent-soft: rgba(138, 199, 63, 0.10);
--sole-accent-border: rgba(138, 199, 63, 0.35);

/* Layout */
--content-width: 1400px;
--panel-radius: 12px;
}

/* ======================================================
   RESET
====================================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;

  background:
    radial-gradient(
      circle at top left,
      rgba(138, 199, 63, 0.06),
      transparent 30%
    ),
    var(--bg-main);

  color: var(--text-primary);

  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;

  font-size: 16px;
  line-height: 1.5;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}


/* ======================================================
   SHARED CONTAINER
====================================================== */

.container {
  width: min(
    calc(100% - 40px),
    var(--content-width)
  );

  margin: 0 auto;
}


/* ======================================================
   APP HEADER
====================================================== */

.app-header {
  border-bottom: 1px solid var(--border-primary);

  background: rgba(14, 17, 23, 0.94);

  position: sticky;
  top: 0;
  z-index: 100;

  backdrop-filter: blur(12px);
}

.app-header .container {
  min-height: 82px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 24px;
}


/* ======================================================
   SOLE LAB BRAND WORDMARK
====================================================== */

.brand-lockup {
  display: flex;
  align-items: center;

  width: auto;
}

.brand-wordmark {
  display: flex;
  flex-direction: column;

  flex: 1 1 auto;
  min-width: 220px;
}

.brand-eyebrow {
  display: flex;
  align-items: center;

  gap: 8px;

  width: 100%;

  margin-bottom: -2px;
}

.brand-the {
  color: #aeb7c2;

  font-family:
    "Barlow Condensed",
    sans-serif;

  font-size: 0.72rem;
  font-weight: 700;

  letter-spacing: 0.34em;

  line-height: 1;

  white-space: nowrap;
}

.brand-top-rule {
  flex: 0 0 76px;

  height: 1px;

  background:
    linear-gradient(
      to right,
      rgba(174, 183, 194, 0.75),
      rgba(174, 183, 194, 0.08)
    );
}


/* ======================================================
   MAIN TITLE
====================================================== */

.brand-title {
  display: flex;
  align-items: baseline;

  gap: 7px;

  font-family:
    "Barlow Condensed",
    sans-serif;

  font-size: 2.15rem;
  font-style: italic;
  font-weight: 800;

  line-height: 0.98;

  letter-spacing: -0.035em;

  text-transform: uppercase;

  white-space: nowrap;

  padding-right: 8px;
  overflow: visible;

  filter:
    drop-shadow(
      0 2px 1px rgba(0, 0, 0, 0.35)
    );
}


/* SOLE */

.brand-player {
  display: inline-block;

  padding-right: 4px;

  background:
    linear-gradient(
      to bottom,
      #ffffff 0%,
      #f4f4f4 45%,
      #c8cdd2 100%
    );

  -webkit-background-clip: text;
  background-clip: text;

  -webkit-text-fill-color: transparent;

  color: transparent;

  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08);
}


/* LAB */

.brand-lab {
  display: inline-block;

  padding-right: 8px;

  background:
    linear-gradient(
      to bottom,
      #a9df62 0%,
      #8ac73f 50%,
      #659b27 100%
    );

  -webkit-background-clip: text;
  background-clip: text;

  -webkit-text-fill-color: transparent;

  color: transparent;

  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05);
}


/* ======================================================
   BOTTOM WORDMARK RULE
====================================================== */

.brand-bottom-rule {
  width: 112px;
  height: 2px;

  margin-top: 4px;

  background:
    linear-gradient(
      to right,
      #aeb7c2 0%,
      #c6cbd0 45%,
      #8ac73f 100%
    );

  opacity: 0.9;
}


/* ======================================================
   BRAND SUBTITLE
====================================================== */

.brand-subtitle {
  margin: 5px 0 0;

  color: var(--text-secondary);

  font-size: 0.72rem;
  font-weight: 600;

  letter-spacing: 0.035em;

  line-height: 1.2;

  white-space: nowrap;
}


/* ======================================================
   MAIN LAYOUT
====================================================== */

main.container {
  padding-top: 30px;
  padding-bottom: 40px;
}

/* ======================================================
   PANELS
====================================================== */

.panel {
  margin-bottom: 24px;

  padding: 24px;

  border: 1px solid var(--border-primary);
  border-radius: var(--panel-radius);

  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.015),
      transparent
    ),
    var(--bg-panel);

  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.18);
}


/* ======================================================
   SECTION HEADINGS
====================================================== */

.section-heading {
  margin-bottom: 22px;
}

.section-heading h1,
.section-heading h2 {
  margin: 0 0 6px;
}

.section-heading h1 {
  font-size: 1.25rem;
}

.section-heading h2 {
  font-size: 1.15rem;
}

.section-heading h1::after,
.section-heading h2::after {
  content: "";

  display: block;

  width: 38px;
  height: 2px;

  margin-top: 8px;

  background:
    var(--sole-accent);

  opacity: 0.75;
}

.section-heading p {
  margin: 0;

  max-width: 760px;

  color: var(--text-secondary);

  font-size: 0.9rem;
}

.section-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: center;

  gap: 20px;
}


/* ======================================================
   FORM FIELDS
====================================================== */

.shoe-info-grid {
  display: grid;

  grid-template-columns:
    minmax(0, 2fr)
    minmax(0, 1fr)
    minmax(0, 1fr);

  gap: 18px;
}

.field-group {
  display: flex;
  flex-direction: column;

  min-width: 0;

  gap: 7px;
}

.field-group label {
  color: #c9d1d9;

  font-size: 13px;
  font-weight: 700;
}

.field-group input,
.field-group select {
  width: 100%;
  min-height: 46px;

  padding: 11px 13px;

  background: #0d1117;
  color: #ffffff;

  border: 1px solid #30363d;
  border-radius: 7px;

  outline: none;

  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.field-group input:hover,
.field-group select:hover {
  border-color: var(--border-hover);
}

.field-group input:focus,
.field-group select:focus {
  border-color: var(--sole-accent-border);

  box-shadow:
    0 0 0 3px var(--sole-accent-soft);
}

.field-group input::placeholder {
  color: var(--text-muted);
}


/* ======================================================
   DROPDOWNS
====================================================== */

.compact-select {
  width: 100%;
  max-width: 100%;
}

#brand,
#gameVersion,
.component-material {
  width: 220px !important;
  max-width: 100%;

  padding-right: 36px;
}


/* ======================================================
   COMPONENT CARD
====================================================== */

.component-card {
  margin-top: 20px;

  padding: 22px;

  background: var(--bg-input);

  border: 1px solid var(--border-primary);
  border-radius: 12px;

  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.component-card:focus-within {
  border-color:
    var(--sole-accent-border);

  box-shadow:
    0 0 0 1px rgba(138, 199, 63, 0.06);
}

.component-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding-bottom: 18px;
  margin-bottom: 20px;

  border-bottom: 1px solid #21262d;
}

.component-card-header h3 {
  margin: 0;

  font-size: 17px;
}

.remove-component-btn {
  padding: 7px 10px;

  background: transparent;
  color: #ff7b72;

  border: 0;

  cursor: pointer;
}


/* ======================================================
   COMPONENT MAIN FIELDS
====================================================== */

.component-main-grid {
  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 20px;

  align-items: start;
}

.component-main-grid .field-group {
  width: 100%;
}

.component-main-grid input,
.component-main-grid select,
.component-main-grid button {
  width: 100% !important;

  max-width: none;
}


/* ======================================================
   PATTERN PICKER
====================================================== */

.pattern-field-group {
  position: relative;
}

.pattern-picker-trigger {
  display: flex;
  align-items: center;

  gap: 12px;

  width: 100%;
  min-height: 70px;

  padding: 10px 12px;

  background: var(--bg-input);
  color: var(--text-primary);

  border: 1px solid var(--border-primary);
  border-radius: 7px;

  cursor: pointer;

  text-align: left;

  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.pattern-picker-trigger:hover {
  border-color:
    var(--sole-accent-border);
}

.component-card.pattern-picker-open
.pattern-picker-trigger {
  border-color:
    var(--sole-accent);

  box-shadow:
    0 0 0 3px var(--sole-accent-soft);
}

.pattern-trigger-preview {
  flex-shrink: 0;

  width: 50px;
  height: 50px;

  border-radius: 9px;
}

.pattern-trigger-copy {
  display: flex;
  flex-direction: column;

  gap: 3px;
}

.pattern-trigger-title {
  color: var(--text-primary);

  font-size: 14px;
  font-weight: 700;
}

.pattern-trigger-subtitle {
  color: var(--text-secondary);

  font-size: 12px;
}

/* ======================================================
   OPEN PATTERN GRID
====================================================== */

.pattern-picker {
  display: none;

  margin-top: 10px;

  padding: 18px;

  background: #161b22;

  border: 1px solid #30363d;
  border-radius: 10px;
}

.component-card.pattern-picker-open .pattern-picker {
  display: block;
}

.pattern-page-group + .pattern-page-group {
  margin-top: 22px;
}

.pattern-page-title {
  margin-bottom: 10px;

  color: #8b949e;

  font-size: 12px;
  font-weight: 800;

  text-transform: uppercase;
  letter-spacing: 0.5px;
}


/* ======================================================
   PATTERN SWATCH GRID
====================================================== */

.pattern-grid {
  display: grid;

  grid-template-columns:
    repeat(4, 68px);

  gap: 12px;
}

.pattern-option {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 68px !important;
  height: 68px;

  padding: 4px;

  background: transparent;

  border: 2px solid transparent;
  border-radius: 12px;

  cursor: pointer;
}

.pattern-option:hover {
  border-color: #4b5563;
}

.pattern-option.is-selected {
  border-color: var(--sole-accent);
  box-shadow: 0 0 0 2px var(--sole-accent-soft);
}

.pattern-swatch {
  display: block;

  width: 58px;
  height: 58px;

  background-color: #111827;

  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
}


/* ======================================================
   COMPONENT SECTIONS
====================================================== */

.component-section {
  margin-top: 26px;
}

.component-section-title {
  margin-bottom: 12px;

  padding-left: 10px;

  color: var(--text-secondary);

  border-left:
    3px solid var(--sole-accent);

  font-size: 13px;
  font-weight: 800;

  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ======================================================
   PATTERN COLORS
====================================================== */

.color-grid {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 16px;
}

.color-card {
  padding: 16px;

  background: #161b22;

  border: 1px solid #30363d;
  border-radius: 9px;
}

.color-card-title {
  margin-bottom: 12px;

  color: #f0f3f6;

  font-size: 14px;
  font-weight: 800;
}


/* ======================================================
   RGB INPUTS
====================================================== */

.rgb-stack {
  display: flex;
  flex-direction: column;

  gap: 8px;
}

.rgb-row {
  display: grid;

  grid-template-columns:
    32px
    minmax(0, 1fr);

  align-items: center;

  gap: 10px;
}

.rgb-label {
  color: #f5f5f5;

  font-size: 17px;
  font-weight: 800;
}

.rgb-value {
  width: 100%;
  min-height: 48px;

  padding: 8px 12px;

  text-align: center;

  font-size: 20px;
  font-weight: 700;

  background: #252b35 !important;
  color: #ffffff;

  border: 2px solid #454b58 !important;
  border-radius: 5px;
}

.rgb-value:focus {
  border-color:
    var(--sole-accent-border) !important;

  box-shadow:
    0 0 0 3px var(--sole-accent-soft);
}

/* ======================================================
   SCALE & ROTATION
====================================================== */

.position-grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 280px));

  gap: 18px;
}

.field-range {
  margin-top: 1px;

  color: #6e7681;

  font-size: 11px;
}


/* ======================================================
   NOTES
====================================================== */

.component-notes-field {
  margin-top: 26px;
}


/* ======================================================
   BUTTONS
====================================================== */

.button {
  padding: 11px 17px;

  border: 0;
  border-radius: 7px;

  font-weight: 700;

  cursor: pointer;

  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease;
}

.button-primary {
  background: var(--sole-accent);
  color: #0d1014;
  border: 1px solid var(--sole-accent);
}

.button-primary:hover {
  background: var(--sole-accent-hover);
  border-color: var(--sole-accent-hover);
}

.button-secondary {
  background: #21262d;
  color: #ffffff;

  border: 1px solid #30363d;
}

.button-secondary:hover {
  border-color: var(--border-hover);

  background: var(--bg-panel-secondary);
}

.button-danger {
  background: #3a1719;
  color: #ff7b72;

  border: 1px solid #6e292e;
}

.action-bar {
  display: flex;

  gap: 12px;

  margin-bottom: 24px;
}




/* ======================================================
   NUMBER INPUT CLEANUP
====================================================== */

input[type="number"] {
  appearance: textfield;

  -moz-appearance: textfield;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  margin: 0;

  -webkit-appearance: none;
}


/* ======================================================
   TABLET
====================================================== */

@media (max-width: 950px) {

  .shoe-info-grid,
  .component-main-grid,
  .color-grid {
    grid-template-columns: 1fr;
  }

  .position-grid {
    grid-template-columns: 1fr;
  }

    .section-heading-row {
    align-items: flex-start;

    flex-direction: column;
  }

}


/* ======================================================
   MOBILE
====================================================== */

@media (max-width: 700px) {

  .container {
    width: min(
      calc(100% - 24px),
      var(--content-width)
    );
  }

  .brand {
    width: 100%;
    min-width: 0;
  }

  .brand-lockup {
    width: 100%;
  }

  .brand-wordmark {
    min-width: 0;
  }

  .brand-title {
    font-size: 1.65rem;

    padding-right: 6px;

    overflow: visible;
  }

  .brand-the {
    font-size: 0.62rem;
  }

  .brand-top-rule {
    flex: 0 0 68px;
  }

  .brand-bottom-rule {
    width: 100px;
  }

  .brand-subtitle {
    font-size: 0.62rem;

    white-space: nowrap;
  }

  .app-header .container {
    min-height: 82px;

    padding-top: 10px;
    padding-bottom: 10px;

    align-items: center;
  }

  main.container {
  padding-top: 18px;
}

  .panel {
    padding: 18px;

    margin-bottom: 16px;
  }

  .action-bar {
    flex-direction: column;

    align-items: stretch;
  }

  .button {
    width: 100%;
  }

}


/* ======================================================
   SMALL MOBILE
====================================================== */

@media (max-width: 520px) {

  .pattern-grid {
    grid-template-columns:
      repeat(4, 1fr);
  }

  .pattern-option {
    width: 100% !important;
    height: 62px;
  }

  .pattern-swatch {
    width: 50px;
    height: 50px;
  }

}
