 /* =========================================================
    TV12 PRODUCTION
    Page-specific styling only.
    Colors come from theme-iron.css.
 ========================================================= */

* {
    box-sizing: border-box;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}


/* =========================================================
   APP
 ========================================================= */

.production-app {
    width: 100%;
    max-width: 760px;
    min-height: 100vh;
    margin: 0 auto;
}


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

.production-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 60px;
    padding: 9px 14px;
    background: var(--theme-bg-secondary);
    border-bottom: 1px solid var(--theme-border);
}

.production-header h1 {
    margin: 0;
    font-size: 19px;
    line-height: 1.2;
}

.production-header small {
    display: block;
    margin-top: 2px;
    color: var(--theme-text-secondary);
    font-size: 11px;
}

.production-back {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border: 1px solid var(--theme-border-light);
    border-radius: 9px;
    background: transparent;
    color: var(--theme-text);
    font-size: 20px;
}

.production-back:hover {
    background: var(--theme-gradient-button-hover);
}


/* =========================================================
   CONTENT
 ========================================================= */

.production-content {
    padding: 14px;
}

.production-section {
    margin-bottom: 22px;
}

.production-section-title {
    margin-bottom: 9px;
    color: var(--theme-text-secondary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}


/* =========================================================
   SEARCH
 ========================================================= */

.production-search {
    width: 100%;
    height: 52px;
    padding: 0 15px;
    border: 1px solid var(--theme-border-light);
    border-radius: 10px;
    background: var(--theme-input);
    color: var(--theme-text);
    outline: none;
}

.production-search:focus {
    border-color: var(--theme-primary);
    box-shadow:
        0 0 0 2px var(--theme-primary-soft);
}


/* =========================================================
   LIST
 ========================================================= */

.production-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.production-list-item {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--theme-border);
    border-radius: 10px;
    background: var(--theme-panel-secondary);
    color: var(--theme-text);
    text-align: left;
}

.production-list-item:hover {
    background: var(--theme-gradient-button-hover);
    border-color: var(--theme-border-light);
}

.production-list-item-title {
    font-size: 16px;
    font-weight: 650;
    line-height: 1.3;
}

.production-list-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 7px;
    color: var(--theme-text-secondary);
    font-size: 12px;
}


/* =========================================================
   STATUS
 ========================================================= */

.production-status {
    display: inline-flex;
    align-items: center;
    padding: 3px 7px;
    border-radius: 5px;
    background: var(--theme-border);
    color: var(--theme-text-secondary);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .02em;
}

.production-status.RECORDING {
    background: var(--theme-danger-soft);
    color: var(--theme-danger);
}

.production-status.EDITING {
    background: var(--theme-warning-soft);
    color: var(--theme-warning);
}

.production-status.QC {
    background: var(--theme-virtual-soft);
    color: var(--theme-virtual);
}

.production-status.READY {
    background: var(--theme-success-soft);
    color: var(--theme-success);
}

.production-status.BROADCAST {
    background: var(--theme-info-soft);
    color: var(--theme-info);
}


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

.production-episode-header {
    margin-bottom: 18px;
}

.production-episode-number {
    color: var(--theme-text-secondary);
    font-size: 12px;
    font-weight: 700;
}

.production-episode-title {
    margin: 3px 0 0;
    font-size: 23px;
    line-height: 1.2;
}


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

.production-form-section {
    margin-bottom: 18px;
    padding: 15px;
    border: 1px solid var(--theme-border);
    border-radius: 12px;
    background: var(--theme-panel);
}

.production-form-section h2 {
    margin: 0 0 14px;
    font-size: 15px;
}

.production-field {
    margin-bottom: 14px;
}

.production-field:last-child {
    margin-bottom: 0;
}

.production-field label {
    display: block;
    margin-bottom: 6px;
    color: var(--theme-text-secondary);
    font-size: 13px;
    font-weight: 600;
}

.production-field input,
.production-field textarea,
.production-field select {
    width: 100%;
    border: 1px solid var(--theme-border-light);
    border-radius: 9px;
    background: var(--theme-input);
    color: var(--theme-text);
    outline: none;
}

.production-field input,
.production-field select {
    min-height: 47px;
    padding: 9px 11px;
}

.production-field textarea {
    min-height: 105px;
    padding: 10px 11px;
    resize: vertical;
}

.production-field input:focus,
.production-field textarea:focus,
.production-field select:focus {
    border-color: var(--theme-primary);
    box-shadow:
        0 0 0 2px var(--theme-primary-soft);
}

.production-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}


/* =========================================================
   CHECKBOX
 ========================================================= */

.production-checks {
    display: flex;
    flex-direction: column;
}

.production-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
}

.production-check input {
    width: 21px;
    height: 21px;
    margin: 1px 0 0;
    flex-shrink: 0;
}

.production-check strong {
    display: block;
    font-size: 14px;
}

.production-check small {
    display: block;
    margin-top: 2px;
    color: var(--theme-text-muted);
    font-size: 11px;
}


/* =========================================================
   ADD EPISODE
 ========================================================= */

.production-add-episode {
    display: block;
    width: calc(100% - 28px);
    min-height: 46px;
    margin: 12px 14px;
    border: 1px solid var(--theme-border-light);
    border-radius: 10px;
    background: var(--theme-panel-secondary);
    color: var(--theme-text);
    font-weight: 700;
    text-align: center;
}

.production-add-episode:hover {
    background: var(--theme-gradient-button-hover);
    border-color: var(--theme-primary);
}

.production-add-episode:disabled {
    opacity: .65;
    cursor: wait;
}


/* =========================================================
   SAVE
 ========================================================= */

.production-save {
    position: sticky;
    bottom: 0;
    z-index: 30;
    padding: 10px 14px 14px;
    background:
        linear-gradient(
            to top,
            var(--theme-bg) 75%,
            transparent
        );
}

.production-save button {
    width: 100%;
    min-height: 52px;
    border: 1px solid var(--theme-primary-dark);
    border-radius: 10px;
    background: var(--theme-gradient-primary);
    color: var(--theme-text);
    font-weight: 700;
}

.production-save button:hover {
    background: var(--theme-gradient-primary-hover);
    border-color: var(--theme-primary);
    box-shadow:
        0 0 12px var(--theme-primary-glow);
}

.production-save button:disabled {
    opacity: .65;
    cursor: wait;
}


/* =========================================================
   MESSAGES
 ========================================================= */

.production-message {
    padding: 30px 10px;
    color: var(--theme-text-muted);
    text-align: center;
}

.production-error {
    padding: 14px;
    border: 1px solid var(--theme-danger);
    border-radius: 9px;
    background: var(--theme-danger-soft);
    color: var(--theme-danger);
}


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

@media (max-width: 600px) {

    .production-content {
        padding: 10px;
    }

    .production-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .production-form-section {
        padding: 13px;
        margin-bottom: 12px;
    }

    .production-episode-title {
        font-size: 21px;
    }

}
