/* =========================================================
   THE ALCHEMIST ARTISTS — THE CREATIVE SPARK STYLES
   Simplified 2-Studio Experience
   ========================================================= */

.spark-page-container {
  max-width: 1200px;
  margin: 32px auto 60px;
  padding: 0 24px;
  box-sizing: border-box;
}

/* Page Hero */
.spark-hero {
  text-align: center;
  margin-bottom: 36px;
}

.spark-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(229, 185, 95, 0.2);
  color: #7d5218;
  border: 1px solid rgba(229, 185, 95, 0.45);
  margin-bottom: 14px;
}

.spark-hero-title {
  font-size: 38px;
  color: #2e2010;
  font-weight: 800;
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.2;
  margin-bottom: 12px;
}

.spark-hero-tagline {
  font-size: 20px;
  color: #7d5218;
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  margin-bottom: 14px;
}

.spark-hero-desc {
  font-size: 15.5px;
  color: #5c4e3c;
  line-height: 1.65;
  max-width: 820px;
  margin: 0 auto 24px;
}

/* Master Action Toolbar */
.spark-master-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.btn-spark-primary {
  background: linear-gradient(135deg, #7d5218 0%, #a46d20 100%);
  color: #ffffff;
  border: 1px solid #613e10;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(125, 82, 24, 0.25);
  transition: all 0.2s ease;
}

.btn-spark-primary:hover {
  background: linear-gradient(135deg, #613e10 0%, #8c5a15 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(125, 82, 24, 0.35);
}

.btn-spark-secondary {
  background: #fff9f0;
  border: 1px solid rgba(229, 185, 95, 0.5);
  color: #613e10;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-spark-secondary:hover {
  background: #faeecf;
  border-color: #d49f38;
  transform: translateY(-1px);
}

/* Dual Studio Workstation Grid (Two Main Sections) */
.spark-workstation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
  align-items: stretch;
}

@media (max-width: 980px) {
  .spark-workstation-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Workstation Card Box */
.spark-card {
  background: #ffffff;
  border: 1px solid rgba(229, 185, 95, 0.45);
  border-radius: 20px;
  padding: 30px 26px;
  box-shadow: 0 10px 32px rgba(90, 70, 40, 0.07);
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}

.spark-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 1px solid rgba(229, 185, 95, 0.25);
  padding-bottom: 14px;
}

.spark-card-header h2 {
  font-size: 21px;
  color: #2e2010;
  font-weight: 800;
  font-family: 'Playfair Display', Georgia, serif;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.spark-card-header p {
  margin: 4px 0 0;
  font-size: 13px;
  color: #7d5218;
  font-weight: 600;
}

/* Prompt Category Tabs */
.prompt-category-bar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.btn-prompt-cat {
  background: #fffdfa;
  border: 1px solid rgba(229, 185, 95, 0.4);
  color: #6d5b45;
  padding: 5px 12px;
  border-radius: 16px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-prompt-cat:hover {
  background: #faeecf;
  color: #3a2b18;
}

.btn-prompt-cat.active {
  background: #7d5218;
  color: #fff;
  border-color: #613e10;
}

/* Prompt Details Slots Box */
.prompt-slots-container {
  background: #fffdf9;
  border: 1px solid rgba(229, 185, 95, 0.35);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
  flex: 1;
}

.prompt-slot-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.prompt-slot-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #7d5218;
  display: flex;
  align-items: center;
  gap: 6px;
}

.prompt-slot-text {
  font-size: 14.5px;
  line-height: 1.55;
  color: #2e2010;
  font-family: 'Playfair Display', Georgia, serif;
}

/* Palette Studio Swatches */
.studio-swatches-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.studio-swatch-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  transition: transform 0.2s ease;
}

.studio-swatch-column.is-locked {
  transform: translateY(-4px);
}

.studio-swatch-column.is-locked .studio-swatch-block {
  border: 2px solid #2e2010;
  box-shadow: 0 4px 14px rgba(46, 32, 16, 0.25);
}

.studio-swatch-block {
  width: 100%;
  height: 130px;
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.12);
  transition: all 0.2s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 6px;
  box-sizing: border-box;
}

.studio-swatch-block:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.swatch-lock-btn {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.2);
  color: #2e2010;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 6px;
  border-radius: 6px;
  cursor: pointer;
  align-self: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: all 0.15s ease;
}

.studio-swatch-column.is-locked .swatch-lock-btn {
  background: #2e2010;
  color: #ffd700;
  border-color: #ffd700;
}

.swatch-copy-hint {
  font-size: 9px;
  font-weight: 700;
  text-align: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.studio-swatch-block:hover .swatch-copy-hint {
  opacity: 0.9;
}

.studio-swatch-info {
  text-align: center;
  width: 100%;
}

.studio-swatch-name {
  font-size: 11px;
  font-weight: 700;
  color: #2e2010;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.studio-swatch-hex {
  font-family: monospace;
  font-size: 10.5px;
  color: #7d5218;
  font-weight: 700;
  background: rgba(229, 185, 95, 0.18);
  padding: 2px 4px;
  border-radius: 4px;
  display: inline-block;
}

/* Value & Temperature Diagnostic Meter */
.palette-value-meter {
  background: #fffdf9;
  border: 1px solid rgba(229, 185, 95, 0.35);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 24px;
}

.value-meter-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  font-weight: 700;
  color: #7d5218;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.value-meter-bar {
  display: flex;
  height: 10px;
  border-radius: 5px;
  overflow: hidden;
  background: #e0d8cc;
  margin-bottom: 8px;
}

.meter-segment.seg-light { background: #e5b95f; }
.meter-segment.seg-mid { background: #62826c; }
.meter-segment.seg-dark { background: #2e2010; }

.value-meter-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #6d5b45;
  font-weight: 600;
}

/* Workstation Card Action Buttons */
.spark-card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
}

.btn-card-action {
  flex: 1;
  min-width: 120px;
  background: #fff9f0;
  border: 1px solid rgba(229, 185, 95, 0.5);
  color: #613e10;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.btn-card-action:hover {
  background: #faeecf;
  border-color: #d49f38;
}

.btn-card-action.primary {
  background: linear-gradient(135deg, #e5b95f 0%, #c49a45 100%);
  color: #2e2010;
  border-color: #b88d37;
}

.btn-card-action.primary:hover {
  background: linear-gradient(135deg, #d4a94f 0%, #b38935 100%);
}

/* Homepage Showcase Card Styles */
.homepage-spark-section {
  max-width: 1080px;
  margin: 36px auto;
  padding: 0 24px;
  box-sizing: border-box;
}

.homepage-spark-card {
  background: linear-gradient(135deg, #fffdf9 0%, #fff8ea 100%);
  border: 2px solid rgba(229, 185, 95, 0.6);
  border-radius: 24px;
  padding: 36px 40px;
  box-shadow: 0 12px 36px rgba(125, 82, 24, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.homepage-spark-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #7d5218;
  background: rgba(229, 185, 95, 0.25);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
  border: 1px solid rgba(229, 185, 95, 0.45);
}

.homepage-spark-title {
  font-size: 32px;
  color: #2e2010;
  font-weight: 800;
  font-family: 'Playfair Display', Georgia, serif;
  margin: 0 0 6px;
}

.homepage-spark-tagline {
  font-size: 18px;
  color: #7d5218;
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  margin-bottom: 14px;
}

.homepage-spark-desc {
  font-size: 14.5px;
  color: #5c4e3c;
  line-height: 1.65;
  max-width: 780px;
  margin: 0 auto 20px;
}

.homepage-spark-palette-preview {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 24px;
}

.spark-mini-swatch {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.spark-mini-swatch:hover {
  transform: scale(1.15);
}

.btn-spark-launch {
  background: linear-gradient(135deg, #7d5218 0%, #a46d20 100%);
  color: #ffffff;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(125, 82, 24, 0.25);
  transition: all 0.2s ease;
}

.btn-spark-launch:hover {
  background: linear-gradient(135deg, #613e10 0%, #8c5a15 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(125, 82, 24, 0.35);
  color: #ffffff;
}

/* Floating Toast Notification */
.alchemist-toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: #2e2010;
  color: #fff9f0;
  font-size: 13.5px;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 10px;
  border-left: 4px solid #e5b95f;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 9999;
  pointer-events: none;
}

.alchemist-toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.alchemist-toast.success { border-left-color: #2ea043; }
.alchemist-toast.error { border-left-color: #cb6b5c; }
.alchemist-toast.info { border-left-color: #e5b95f; }

/* Mobile Optimizations */
@media (max-width: 640px) {
  .spark-page-container {
    padding: 0 14px;
    margin: 20px auto 40px;
  }
  .spark-hero-title {
    font-size: 26px;
  }
  .spark-hero-tagline {
    font-size: 15px;
  }
  .spark-hero-desc {
    font-size: 13.5px;
  }
  .spark-master-actions {
    flex-direction: column;
    width: 100%;
    gap: 8px;
  }
  .btn-spark-primary, .btn-spark-secondary {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }
  .spark-card {
    padding: 18px 14px;
    border-radius: 16px;
  }
  .studio-swatches-container {
    gap: 4px;
  }
  .studio-swatch-block {
    height: 90px;
    padding: 4px 2px;
  }
  .swatch-lock-btn {
    font-size: 9px;
    padding: 2px 4px;
  }
  .studio-swatch-name {
    font-size: 9.5px;
  }
  .studio-swatch-hex {
    font-size: 9px;
    padding: 1px 2px;
  }
  .homepage-spark-card {
    padding: 24px 16px;
    border-radius: 18px;
  }
  .homepage-spark-title {
    font-size: 24px;
  }
  .homepage-spark-tagline {
    font-size: 15px;
  }
}
