/* ==========================================================================
   LUXURIA STUDIO - DEDICATED UPLOAD PAGE STYLESHEET
   Monochrome dark cyber-retro studio interface for Songs, Beats, Albums & Samples
   ========================================================================== */

.studio-view {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto 30px auto;
  box-sizing: border-box;
}

.studio-box {
  background-color: var(--bg-box, #1a1a1a);
  border: 1px solid var(--border-medium, #333333);
  border-radius: 4px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

/* Header */
.studio-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: linear-gradient(180deg, var(--box-header-from, #282828) 0%, var(--box-header-to, #1c1c1c) 100%);
  border-bottom: 1px solid var(--border-medium, #333333);
  gap: 12px;
}

.studio-header-title-block {
  display: flex;
  align-items: center;
  gap: 14px;
}

.studio-icon-badge {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--text-primary, #ffffff);
  color: var(--bg-page, #111111);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
}

.studio-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--box-header-text, #ffffff);
}

.studio-tagline {
  display: block;
  font-size: 11px;
  color: #999999;
  margin-top: 2px;
}

/* Studio Mode Switcher Tabs */
.studio-type-selector {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-medium, #333333);
  border-bottom: 1px solid var(--border-medium, #333333);
}

.studio-type-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #191919;
  border: none;
  color: #888888;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  position: relative;
  outline: none;
}

.studio-type-tab:hover {
  background: #222222;
  color: #dddddd;
}

.studio-type-tab.active {
  background: #252525;
  color: #ffffff;
}

.studio-type-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #ffffff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.studio-tab-icon {
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
  opacity: 0.8;
  filter: grayscale(100%);
  transition: transform 0.2s ease;
}

.studio-type-tab.active .studio-tab-icon {
  opacity: 1;
  transform: scale(1.1);
  filter: none;
}

.studio-tab-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.studio-tab-name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.studio-tab-desc {
  font-size: 10px;
  color: #777777;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.studio-type-tab.active .studio-tab-desc {
  color: #aaaaaa;
}

/* Studio Content Container */
.studio-content {
  padding: 24px;
  background: #161616;
}

.studio-panel {
  display: none;
  animation: studioFadeIn 0.25s ease-out;
}

.studio-panel.active {
  display: block;
}

@keyframes studioFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 2-Column Responsive Layout */
.studio-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 24px;
}

@media (max-width: 860px) {
  .studio-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* Dropzones */
.studio-dropzone-wrap {
  margin-bottom: 18px;
}

.studio-dropzone-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  color: #cccccc;
}

.studio-dropzone {
  border: 2px dashed #444444;
  border-radius: 6px;
  background: #1a1a1a;
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.studio-dropzone:hover {
  border-color: #888888;
  background: #202020;
}

.studio-dropzone.is-dragover {
  border-color: #ffffff;
  background: #292929;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.15) inset;
}

.studio-dropzone-icon {
  margin-bottom: 10px;
  color: #aaaaaa;
}

.studio-dropzone-title {
  font-size: 13px;
  font-weight: 600;
  color: #eeeeee;
  margin-bottom: 4px;
}

.studio-dropzone-sub {
  font-size: 11px;
  color: #777777;
  margin-bottom: 8px;
}

.studio-format-badges {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
}

.studio-format-badge {
  font-size: 9px;
  font-family: monospace;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  background: #2a2a2a;
  color: #bbbbbb;
  border: 1px solid #3a3a3a;
}

/* Audio Preview Card (when audio is loaded) */
.studio-audio-card {
  background: #202020;
  border: 1px solid #3c3c3c;
  border-radius: 6px;
  padding: 14px;
  margin-bottom: 18px;
}

.studio-audio-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.studio-audio-info {
  min-width: 0;
  flex: 1;
}

.studio-audio-name {
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.studio-audio-meta {
  font-size: 10px;
  color: #888888;
  font-family: monospace;
}

.studio-audio-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.studio-play-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  color: #111111;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.15s ease, background 0.15s ease;
}

.studio-play-btn:hover {
  transform: scale(1.06);
  background: #e5e5e5;
}

.studio-scrub-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.studio-scrub-bar {
  width: 100%;
  accent-color: #ffffff;
  cursor: pointer;
}

.studio-time-display {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-family: monospace;
  color: #888888;
}

/* Visualizer Bars */
.studio-visualizer {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 24px;
  padding: 4px 0;
}

.studio-vis-bar {
  width: 3px;
  height: 4px;
  background: #555555;
  border-radius: 1px;
  transition: height 0.1s ease, background 0.1s ease;
}

.studio-audio-card.is-playing .studio-vis-bar {
  background: #ffffff;
  animation: studioVisBounce 0.6s infinite ease-in-out alternate;
}

.studio-audio-card.is-playing .studio-vis-bar:nth-child(2) { animation-delay: 0.1s; }
.studio-audio-card.is-playing .studio-vis-bar:nth-child(3) { animation-delay: 0.25s; }
.studio-audio-card.is-playing .studio-vis-bar:nth-child(4) { animation-delay: 0.15s; }
.studio-audio-card.is-playing .studio-vis-bar:nth-child(5) { animation-delay: 0.3s; }
.studio-audio-card.is-playing .studio-vis-bar:nth-child(6) { animation-delay: 0.05s; }
.studio-audio-card.is-playing .studio-vis-bar:nth-child(7) { animation-delay: 0.2s; }
.studio-audio-card.is-playing .studio-vis-bar:nth-child(8) { animation-delay: 0.35s; }
.studio-audio-card.is-playing .studio-vis-bar:nth-child(9) { animation-delay: 0.12s; }
.studio-audio-card.is-playing .studio-vis-bar:nth-child(10) { animation-delay: 0.28s; }

@keyframes studioVisBounce {
  0% { height: 4px; }
  100% { height: 22px; }
}

/* Cover Dropzone (Square 1:1) */
.studio-cover-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 280px;
  margin: 0 auto 16px auto;
  border: 2px dashed #444444;
  border-radius: 6px;
  background: #191919;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
}

.studio-cover-box:hover {
  border-color: #888888;
  background: #202020;
}

.studio-cover-preview {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.studio-cover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.2s ease;
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
}

.studio-cover-box:hover .studio-cover-overlay {
  opacity: 1;
}

/* 15s Story Hook Selector */
.studio-story-box {
  background: #1f1f1f;
  border: 1px solid #333333;
  border-radius: 5px;
  padding: 12px;
  margin-bottom: 16px;
}

.studio-story-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.studio-story-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #eeeeee;
  display: flex;
  align-items: center;
  gap: 6px;
}

.studio-story-badge {
  font-size: 9px;
  background: #333333;
  color: #bbbbbb;
  padding: 1px 5px;
  border-radius: 3px;
}

.studio-story-display {
  font-size: 11px;
  font-family: monospace;
  color: #aaaaaa;
}

.studio-story-slider-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Tap Tempo Tool */
.studio-tempo-tool {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #1c1c1c;
  border: 1px solid #333333;
  border-radius: 5px;
  padding: 10px;
  margin-bottom: 12px;
}

.studio-tap-btn {
  background: #2c2c2c;
  color: #ffffff;
  border: 1px solid #444444;
  border-radius: 4px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.1s ease;
  user-select: none;
}

.studio-tap-btn:active {
  background: #ffffff;
  color: #111111;
  transform: scale(0.96);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

.studio-tap-pulse {
  animation: studioTapPulse 0.3s ease-out;
}

@keyframes studioTapPulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
  100% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
}

/* Interactive Genre Pills */
.studio-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
  margin-bottom: 12px;
}

.studio-pill {
  background: #222222;
  color: #aaaaaa;
  border: 1px solid #383838;
  border-radius: 14px;
  padding: 5px 12px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.studio-pill:hover {
  background: #2a2a2a;
  color: #ffffff;
  border-color: #555555;
}

.studio-pill.active {
  background: #ffffff;
  color: #111111;
  border-color: #ffffff;
  font-weight: 600;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

/* Suggested Tags */
.studio-tags-suggest {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.studio-tag-chip {
  background: #1c1c1c;
  color: #888888;
  border: 1px dashed #333333;
  border-radius: 3px;
  padding: 2px 7px;
  font-size: 10px;
  cursor: pointer;
}

.studio-tag-chip:hover {
  color: #ffffff;
  border-color: #666666;
}

/* Form Sections */
.studio-section {
  background: #1c1c1c;
  border: 1px solid #2d2d2d;
  border-radius: 5px;
  padding: 16px;
  margin-bottom: 16px;
}

.studio-section-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #dddddd;
  margin: 0 0 12px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.studio-section-title svg {
  color: #888888;
}

/* Tracklist Builder for Albums */
.studio-tracklist {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
  margin-bottom: 14px;
}

.studio-track-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #222222;
  border: 1px solid #333333;
  border-radius: 4px;
  padding: 8px 12px;
  transition: background 0.15s ease;
}

.studio-track-item:hover {
  background: #282828;
}

.studio-track-num {
  font-size: 11px;
  font-family: monospace;
  font-weight: 700;
  color: #777777;
  width: 20px;
}

.studio-track-play {
  background: none;
  border: none;
  color: #cccccc;
  cursor: pointer;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.studio-track-play:hover {
  color: #ffffff;
}

.studio-track-meta {
  flex: 1;
  min-width: 0;
}

.studio-track-title {
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.studio-track-artist {
  font-size: 10px;
  color: #888888;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.studio-track-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.studio-track-action-btn {
  background: #2f2f2f;
  border: 1px solid #444444;
  color: #bbbbbb;
  border-radius: 3px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 11px;
}

.studio-track-action-btn:hover {
  background: #444444;
  color: #ffffff;
}

.studio-track-action-btn.danger:hover {
  background: #882222;
  border-color: #aa3333;
}

/* Album inline track form drawer */
.studio-inline-drawer {
  background: #181818;
  border: 1px dashed #555555;
  border-radius: 4px;
  padding: 14px;
  margin: 10px 0;
}

/* Bulk apply bar */
.studio-bulk-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  background: #181818;
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid #2e2e2e;
  margin-top: 8px;
}

.studio-bulk-label {
  font-size: 10px;
  color: #777777;
  text-transform: uppercase;
  font-weight: 600;
}

/* Terms and checkboxes */
.studio-terms-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 11px;
  color: #aaaaaa;
  line-height: 1.4;
  cursor: pointer;
}

.studio-terms-row input[type="checkbox"] {
  margin-top: 2px;
  accent-color: #ffffff;
  cursor: pointer;
}

.studio-terms-row a {
  color: #ffffff;
  text-decoration: underline;
}

/* Action Submit Bar */
.studio-submit-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid #2d2d2d;
  margin-top: 20px;
  gap: 14px;
  flex-wrap: wrap;
}

.studio-submit-btn {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 10px 24px;
  border-radius: 4px;
  cursor: pointer;
  background: #ffffff;
  color: #111111;
  border: none;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.2);
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.studio-submit-btn:hover {
  background: #eeeeee;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.35);
}

.studio-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Progress Overlay */
.studio-progress-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.studio-progress-card {
  background: #1c1c1c;
  border: 1px solid #444444;
  border-radius: 8px;
  padding: 28px;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  text-align: center;
}

.studio-progress-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.studio-progress-desc {
  font-size: 12px;
  color: #999999;
  margin-bottom: 18px;
}

.studio-progress-bar-bg {
  width: 100%;
  height: 8px;
  background: #2e2e2e;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 12px;
}

.studio-progress-bar-fill {
  height: 100%;
  width: 0%;
  background: #ffffff;
  border-radius: 4px;
  transition: width 0.15s ease;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.studio-progress-status {
  font-size: 11px;
  font-family: monospace;
  color: #aaaaaa;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .studio-type-selector {
    grid-template-columns: repeat(2, 1fr);
  }
  .studio-type-tab {
    padding: 10px 12px;
  }
  .studio-content {
    padding: 16px;
  }
  .studio-cover-box {
    max-width: 220px;
  }
  .studio-submit-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .studio-submit-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Light Mode Overrides for Studio */
html[data-theme="light"] .studio-box {
  background-color: var(--bg-box);
  color: var(--text-primary);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
html[data-theme="light"] .studio-type-selector,
html[data-theme="light"] .studio-section-card,
html[data-theme="light"] .studio-dropzone,
html[data-theme="light"] .studio-track-row,
html[data-theme="light"] .studio-genre-chip {
  background-color: var(--bg-subtle);
  border-color: var(--border-medium);
  color: var(--text-primary);
}
html[data-theme="light"] .studio-type-tab {
  color: var(--text-secondary);
}
html[data-theme="light"] .studio-type-tab.active {
  background-color: var(--bg-box);
  color: var(--text-primary);
}
html[data-theme="light"] .studio-tagline,
html[data-theme="light"] .studio-section-sub {
  color: var(--text-secondary);
}
