/* WYNE Music Video Studio — styles
   Complements clean-style.css (reuses .container, .btn-primary, .btn-secondary,
   .form-group, .form-row, inputs). */

.studio-section {
    padding: 3rem 0 5rem;
    background: linear-gradient(180deg, #fafafa 0%, #fff 100%);
    min-height: 80vh;
}

.studio-header { text-align: center; margin-bottom: 2.5rem; }
.studio-header h1 { font-size: 2.25rem; margin-bottom: 0.5rem; }
.studio-header p { color: #666; max-width: 640px; margin: 0 auto; }

/* Stepper */
.studio-steps {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}
.step-btn {
    background: #fff;
    border: 1px solid #e5e5e5;
    color: #555;
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}
.step-btn:hover { border-color: #000; color: #000; }
.step-btn.active { background: #000; color: #fff; border-color: #000; }

/* Cards */
.step-content { display: none; }
.step-content.active { display: block; animation: fadeIn 0.25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.studio-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 2rem;
    max-width: 880px;
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.studio-card h2 { margin-bottom: 0.25rem; }
.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}
.muted { color: #888; font-size: 0.92rem; }
.hidden { display: none !important; }

/* Forms */
.studio-form { margin-top: 1.5rem; }
.studio-form .form-group { margin-bottom: 1.25rem; }
.studio-form .form-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.studio-form .form-row .form-group { flex: 1; min-width: 200px; }
.studio-form label { display: block; font-weight: 600; margin-bottom: 0.4rem; }
.studio-form input,
.studio-form select,
.studio-form textarea {
    width: 100%;
    padding: 0.65rem 0.8rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font: inherit;
    background: #fff;
}
.studio-form textarea { resize: vertical; }
.studio-form small { display: block; margin-top: 0.3rem; }

/* Empty / status */
.empty-state {
    margin-top: 1.5rem;
    padding: 2rem;
    text-align: center;
    color: #999;
    background: #fafafa;
    border: 1px dashed #ddd;
    border-radius: 8px;
}
.status-box { margin-top: 1rem; color: #555; min-height: 1.5rem; }
.progress-pill {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.1rem 0.6rem;
    border-radius: 999px;
    background: #f0f0f0;
    color: #555;
    font-size: 0.78rem;
    font-weight: 600;
}

/* Direction */
.treatment-box {
    white-space: pre-wrap;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1rem;
    margin: 0.5rem 0 1.5rem;
    line-height: 1.6;
}
.bible-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
    margin: 0.5rem 0 1.5rem;
}
.bible-item {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 0.9rem;
}
.bible-key {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #999;
    margin-bottom: 0.25rem;
}

/* Shot list (text) */
.shot-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 1.5rem 0 0.5rem;
}
.shot-list-head h3 { margin: 0; }
.toolbar { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.toolbar .btn-secondary { font-size: 0.8rem; padding: 0.35rem 0.9rem; }

.shot-list { display: flex; flex-direction: column; gap: 0.6rem; }
.shot-row {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 0.75rem 1rem;
}
.shot-row-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.3rem;
}
.shot-meta { font-size: 0.78rem; color: #999; }
.shot-prompt { font-size: 0.92rem; }
.copy-shot { font-size: 0.72rem; padding: 0.25rem 0.7rem; flex-shrink: 0; }

/* Shot grid (media) */
.shot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}
.shot-card {
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}
.shot-card-media { aspect-ratio: 16 / 9; background: #111; }
.shot-card-media video { width: 100%; height: 100%; object-fit: cover; }
.shot-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: #777; font-size: 0.8rem; letter-spacing: 0.05em;
}
.shot-card-body { padding: 0.75rem; }
.shot-card-body p {
    font-size: 0.82rem; color: #555;
    margin: 0.3rem 0 0.6rem;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.shot-card.status-rendering { border-color: #ffc107; }
.shot-card.status-ready { border-color: #00b368; }
.shot-card.status-failed { border-color: #ff0040; }
.regen-btn { font-size: 0.8rem; padding: 0.35rem 0.9rem; }

/* Final */
#finalVideoWrap { margin-top: 1.5rem; }
#finalVideo { width: 100%; border-radius: 10px; background: #000; }
.final-actions { display: flex; gap: 0.75rem; margin-top: 1rem; flex-wrap: wrap; }

@media (max-width: 600px) {
    .studio-card { padding: 1.25rem; }
    .studio-header h1 { font-size: 1.75rem; }
}
