/* ==========================================================================
   LEONIE'S ADVENTURE STUDIO - CREATOR DASHBOARD STYLES
   ========================================================================== */

/* Studio Wrapper & Auth Guard */
.studio-wrapper {
  padding: 3rem 0 5rem;
  max-width: 900px;
  margin: 0 auto;
}

/* PIN Lock Screen */
.pin-auth-modal {
  max-width: 420px;
  margin: 4rem auto;
  padding: 2.5rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  text-align: center;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.pin-icon-wrap {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  box-shadow: 0 8px 20px rgba(132, 94, 194, 0.4);
}

.pin-title {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.pin-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.pin-input-group {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.pin-digit-box {
  width: 55px;
  height: 60px;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.7);
  border: 2px solid var(--border-color);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  text-align: center;
  outline: none;
  transition: all 0.2s ease;
}

body.light-theme .pin-digit-box {
  background: #ffffff;
}

.pin-digit-box:focus {
  border-color: var(--accent-purple);
  box-shadow: 0 0 15px rgba(132, 94, 194, 0.3);
}

.btn-unlock {
  width: 100%;
  padding: 0.85rem;
  background: var(--gradient-brand);
  border: none;
  border-radius: var(--radius-full);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(132, 94, 194, 0.4);
  transition: all 0.2s ease;
}

.btn-unlock:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(132, 94, 194, 0.6);
}

/* Studio Dashboard Main */
.studio-dashboard {
  display: none;
}

.studio-dashboard.unlocked {
  display: block;
}

.studio-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

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

.studio-title-block p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Studio Tabs */
.studio-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  background: var(--bg-card);
  padding: 0.4rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  width: fit-content;
}

.studio-tab-btn {
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.studio-tab-btn:hover {
  color: var(--text-main);
}

.studio-tab-btn.active {
  background: var(--gradient-brand);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(132, 94, 194, 0.35);
}

/* Form Cards */
.studio-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-md);
  margin-bottom: 3rem;
  display: none;
}

.studio-form-card.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease;
}

body.light-theme .form-input, 
body.light-theme .form-textarea, 
body.light-theme .form-select {
  background: #ffffff;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--accent-purple);
  box-shadow: 0 0 10px rgba(132, 94, 194, 0.2);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

/* Photo Upload Box */
.upload-dropzone {
  border: 2px dashed rgba(132, 94, 194, 0.4);
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.5rem;
  text-align: center;
  background: rgba(132, 94, 194, 0.05);
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}

.upload-dropzone:hover, .upload-dropzone.drag-over {
  border-color: var(--accent-coral);
  background: rgba(255, 107, 107, 0.08);
}

.upload-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  color: var(--accent-purple);
}

.upload-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.upload-hint {
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* Selected Photos Preview Grid & Reordering */
.photo-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.photo-preview-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.photo-preview-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
}

.photo-preview-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-preview-num {
  position: absolute;
  top: 0.4rem;
  left: 0.4rem;
  background: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 800;
}

.photo-preview-actions {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  display: flex;
  gap: 0.25rem;
}

.photo-preview-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.photo-preview-btn:hover {
  background: var(--accent-coral);
}

.photo-preview-caption-input {
  padding: 0.4rem 0.6rem;
  font-size: 0.8rem;
  background: transparent;
  border: none;
  border-top: 1px solid var(--border-color);
  color: var(--text-main);
  outline: none;
}

/* Submit Action Button */
.btn-publish {
  width: 100%;
  padding: 1rem;
  border-radius: var(--radius-full);
  background: var(--gradient-brand);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(132, 94, 194, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.25s ease;
  margin-top: 1rem;
}

.btn-publish:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(132, 94, 194, 0.6);
}

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

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  .studio-tabs {
    flex-wrap: wrap;
  }
}
