/* =========================================
DREAMVERSE NFT STUDIO
PREMIUM OFF-WHITE THEME
========================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #f4f1e8;
  color: #171717;
  line-height: 1.6;
}

a {
  color: inherit;
}

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

.studio-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 6%;
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.4px;
}

.logo img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.studio-header > a:last-child {
  text-decoration: none;
  font-weight: 700;
  opacity: 0.75;
}

/* =========================================
ADS
========================================= */

.ad-slot {
  width: min(100% - 32px, 1000px);
  min-height: 70px;
  margin: 18px auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

main {
  width: min(100% - 32px, 1000px);
  margin: 0 auto;
}

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

.studio-title {
  text-align: center;
  padding: 42px 10px 28px;
}

.studio-title p:first-child {
  margin: 0 0 7px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #8a6a16;
}

.studio-title h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 6vw, 3.3rem);
  color: #151515;
}

.studio-title p:last-child {
  max-width: 620px;
  margin: 0 auto;
  color: #666158;
}

/* =========================================
GENERATOR
========================================= */

.generator {
  width: 100%;
}

/* =========================================
STEPS
========================================= */

.steps {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.steps span {
  padding: 7px 13px;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.55);
  color: #777168;
  font-size: 0.78rem;
  font-weight: 600;
}

.steps .active {
  background: #191919;
  color: #fff;
  border-color: #191919;
}

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

.panel {
  padding: clamp(22px, 5vw, 40px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 35px rgba(60, 50, 30, 0.07);
}

.panel.hidden {
  display: none;
}

.panel h2 {
  margin: 0 0 8px;
  color: #181818;
  font-size: 1.5rem;
}

.panel h3 {
  margin-top: 28px;
  margin-bottom: 12px;
}

.panel > p {
  color: #706b63;
}

/* =========================================
FORM ELEMENTS
========================================= */

label {
  display: block;
  margin: 20px 0 7px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #292723;
}

input,
textarea,
select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(0, 0, 0, 0.13);
  border-radius: 9px;
  outline: none;
  background: #fffdf8;
  color: #181818;
  font: inherit;
}

input::placeholder,
textarea::placeholder {
  color: #aaa49a;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #a98222;
  box-shadow: 0 0 0 3px rgba(169, 130, 34, 0.1);
}

textarea {
  min-height: 110px;
  resize: vertical;
}

small {
  display: block;
  margin-top: 6px;
  font-size: 0.78rem;
  color: #8b857b;
}

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

button {
  border: 0;
  padding: 12px 19px;
  border-radius: 9px;
  background: #191919;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease,
    box-shadow 0.2s ease;
}

button:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

button:active {
  transform: translateY(0);
}

#continue-layers,
#continue-traits,
#continue-generate,
#generate-button {
  margin-top: 25px;
}

.button-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

/* =========================================
LAYERS
========================================= */

.layer-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.layer-item {
  padding: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 11px;
  background: #fffdf8;
}

/* =========================================
TRAITS
========================================= */

.trait-editor {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.rarity-settings,
.generation-options {
  margin-top: 25px;
  padding: 19px;
  border-radius: 11px;
  background: #faf8f1;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.generation-options label {
  margin: 12px 0;
  font-weight: 600;
}

.generation-options input[type="checkbox"] {
  width: auto;
  margin-right: 8px;
}

/* =========================================
SUMMARY
========================================= */

.summary {
  margin: 22px 0;
  padding: 18px;
  border-radius: 11px;
  background: #faf8f1;
  border: 1px solid rgba(0, 0, 0, 0.07);
}

.summary p {
  margin: 7px 0;
}

.summary strong {
  float: right;
}

/* =========================================
PROGRESS
========================================= */

.progress {
  width: 100%;
  height: 10px;
  margin-top: 25px;
  overflow: hidden;
  border-radius: 20px;
  background: #e2ddd1;
}

.progress-bar {
  width: 0;
  height: 100%;
  background: #191919;
  transition: width 0.2s ease;
}

#progress-text {
  text-align: center;
  font-size: 0.85rem;
  color: #706b63;
}

/* =========================================
PREVIEW
========================================= */

.preview-section {
  margin-top: 25px;
}

.nft-preview {
  width: min(100%, 400px);
  aspect-ratio: 1 / 1;
  margin: 15px auto;
  overflow: hidden;
  border-radius: 14px;
  background: #ebe6da;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.nft-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nft-info {
  text-align: center;
  color: #706b63;
}

/* =========================================
EXPORT
========================================= */

.export-options {
  display: grid;
  gap: 12px;
  margin-top: 25px;
}

.export-options h3 {
  margin-bottom: 5px;
}

#new-collection {
  width: 100%;
  margin-top: 25px;
}

/* =========================================
FOOTER
========================================= */

footer {
  width: min(100% - 32px, 1000px);
  margin: 60px auto 30px;
  padding-top: 25px;
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

footer p {
  color: #777168;
  font-size: 0.9rem;
}

footer a {
  font-weight: 700;
  text-decoration: none;
}

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

@media (max-width: 600px) {
  .studio-header {
    padding: 13px 15px;
  }

  .logo span {
    font-size: 0.82rem;
  }

  .logo img {
    width: 30px;
    height: 30px;
  }

  main {
    width: min(100% - 20px, 1000px);
  }

  .studio-title {
    padding: 34px 5px 24px;
  }

  .studio-title h1 {
    font-size: 2rem;
  }

  .steps {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 5px;
  }

  .steps span {
    white-space: nowrap;
  }

  .panel {
    padding: 20px 16px;
    border-radius: 13px;
  }

  .button-row {
    flex-direction: column;
  }

  .button-row button {
    width: 100%;
  }

  button {
    min-height: 46px;
  }

  .summary strong {
    float: none;
    margin-left: 5px;
  }
  }
