/* =========================================================
   Editör inceleme çalışma ekranı
   ========================================================= */

.editor-review-page {
    min-height: 100vh;
    color: var(--color-text);
    background: var(--color-background-soft);
}

.editor-review-container {
    width: min(
        calc(100% - 40px),
        var(--container-width)
    );
    margin-inline: auto;
}

.editor-review-page section[id] {
    scroll-margin-top:
        calc(var(--header-height) + 25px);
}

/* =========================================================
   Üst alan
   ========================================================= */

.editor-review-header {
    padding: 30px 0 68px;
    color: #fff;
    background:#212121;
}

.editor-review-breadcrumb {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 43px;
    color: rgb(255 255 255 / 43%);
    font-size: 9px;
    font-weight: 750;
}

.editor-review-breadcrumb a {
    color: rgb(255 255 255 / 68%);
    text-decoration: none;
}

.editor-review-breadcrumb a:hover {
    color: #fff;
}

.editor-review-header-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(280px, 0.4fr);
    align-items: end;
    gap: 65px;
}

.editor-review-eyebrow {
    display: block;
    margin-bottom: 11px;
    color: #ff929c;
    font-size: 8px;
    font-weight: 850;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.editor-review-title h1 {
    max-width: 850px;
    margin: 0;
    color: #fff;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 0.97;
    letter-spacing: -0.06em;
}

.editor-review-title-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 19px;
    margin-top: 18px;
}

.editor-review-title-meta span {
    position: relative;
    color: rgb(255 255 255 / 58%);
    font-size: 8px;
    font-weight: 750;
}

.editor-review-title-meta span:not(:last-child)::after {
    position: absolute;
    top: 50%;
    right: -11px;
    width: 3px;
    height: 3px;
    background: rgb(255 255 255 / 28%);
    content: "";
    transform: translateY(-50%);
}

.editor-review-assignment-info {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    background: rgb(255 255 255 / 13%);
    border: 1px solid rgb(255 255 255 / 16%);
    gap: 1px;
}

.editor-review-assignment-info > div {
    padding: 17px;
    background: rgb(20 27 39 / 78%);
}

.editor-review-assignment-info span,
.editor-review-assignment-info strong {
    display: block;
}

.editor-review-assignment-info span {
    color: rgb(255 255 255 / 43%);
    font-size: 7px;
    font-weight: 850;
    text-transform: uppercase;
}

.editor-review-assignment-info strong {
    margin-top: 7px;
    color: #fff;
    font-size: 10px;
}

/* =========================================================
   Bildirim ve geri bildirim
   ========================================================= */

.editor-review-alert {
    margin-top: 25px;
    padding: 16px 18px;
    font-size: 9px;
    line-height: 1.65;
}

.editor-review-alert.is-success {
    color: #076047;
    background: #ecfdf5;
    border: 1px solid #abe8d5;
    border-left: 4px solid #0b956d;
}

.editor-review-alert.is-error {
    color: #9f2828;
    background: #fff1f1;
    border: 1px solid #efbebe;
    border-left: 4px solid #dc3535;
}

.editor-review-alert strong {
    display: block;
}

.editor-review-alert ul {
    margin: 8px 0 0;
    padding-left: 18px;
}

.editor-review-feedback {
    margin-top: 25px;
    padding: 19px 21px;
    background: #fff8e8;
    border: 1px solid #ead29f;
    border-left: 4px solid #c67d0e;
}

.editor-review-feedback > span {
    display: block;
    margin-bottom: 7px;
    color: #8a580c;
    font-size: 7px;
    font-weight: 850;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.editor-review-feedback p {
    margin: 0;
    color: #765e38;
    font-size: 9px;
    line-height: 1.7;
}

/* =========================================================
   Form ve bölüm navigasyonu
   ========================================================= */

.editor-review-form {
    padding: 25px 0 100px;
}

.editor-review-navigation {
    position: sticky;
    z-index: 20;
    top: var(--header-height);
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    margin-bottom: 22px;
    background: #dce3ec;
    border: 1px solid #dce3ec;
    box-shadow:
        0 10px 25px rgb(24 32 44 / 7%);
    gap: 1px;
}

.editor-review-navigation a {
    display: flex;
    min-height: 56px;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    color: #526076;
    background: #fff;
    text-decoration: none;
}

.editor-review-navigation a:hover {
    color: var(--color-primary);
    background: #fbfcfe;
}

.editor-review-navigation small {
    color: var(--color-primary);
    font-size: 7px;
    font-weight: 850;
}

.editor-review-navigation strong {
    font-size: 9px;
    font-weight: 850;
}

/* =========================================================
   Form bölümleri
   ========================================================= */

.editor-review-section {
    margin-bottom: 24px;
    background: #fff;
    border: 1px solid #dce3ec;
}

.editor-review-section > header {
    display: grid;
    grid-template-columns:
        48px
        minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    padding: 23px 26px;
    border-bottom: 1px solid #dce3ec;
}

.editor-review-section > header > span {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    color: #fff;
    background: #172033;
    font-size: 10px;
    font-weight: 850;
}

.editor-review-section > header small {
    display: block;
    margin-bottom: 4px;
    color: var(--color-primary);
    font-size: 7px;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.editor-review-section > header h2 {
    margin: 0;
    color: #172033;
    font-size: clamp(20px, 3vw, 28px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.editor-review-section > header p {
    margin: 7px 0 0;
    color: #8290a3;
    font-size: 8px;
    line-height: 1.6;
}

.editor-review-section-body {
    display: grid;
    gap: 25px;
    padding: 27px;
}

.editor-review-decision-grid {
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
}

/* =========================================================
   Form alanları
   ========================================================= */

.editor-review-field {
    min-width: 0;
}

.editor-review-field label {
    display: block;
    margin-bottom: 8px;
    color: #526076;
    font-size: 8px;
    font-weight: 850;
}

.editor-review-field input,
.editor-review-field select,
.editor-review-field textarea {
    width: 100%;
    color: #172033;
    background: #f7f9fc;
    border: 1px solid #d2dae5;
    outline: 0;
    font: inherit;
    font-size: 10px;
    transition:
        background 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease;
}

.editor-review-field input,
.editor-review-field select {
    height: 45px;
    padding: 0 12px;
}

.editor-review-field textarea {
    min-height: 110px;
    padding: 13px;
    line-height: 1.75;
    resize: vertical;
}

.editor-review-field input:hover,
.editor-review-field select:hover,
.editor-review-field textarea:hover {
    background: #fff;
}

.editor-review-field input:focus,
.editor-review-field select:focus,
.editor-review-field textarea:focus {
    background: #fff;
    border-color: var(--color-primary);
    box-shadow:
        0 0 0 3px var(--color-primary-soft);
}

.editor-review-field > small {
    display: block;
    margin-top: 7px;
    color: #929ba9;
    font-size: 7px;
    line-height: 1.55;
}

/* =========================================================
   Oyuncular ve kişiler
   ========================================================= */

.editor-credit-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding-bottom: 21px;
    border-bottom: 1px solid #e1e6ed;
}

.editor-credit-heading strong {
    display: block;
    color: #172033;
    font-size: 11px;
}

.editor-credit-heading p {
    margin: 5px 0 0;
    color: #8290a3;
    font-size: 8px;
}

.editor-credit-heading button {
    min-height: 40px;
    padding: 0 14px;
    color: #fff;
    background: #172033;
    border: 1px solid #172033;
    cursor: pointer;
    font: inherit;
    font-size: 8px;
    font-weight: 850;
}

.editor-credit-heading button:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

/* Kişi arama */

.editor-person-search {
    position: relative;
}

.editor-person-search > label {
    display: block;
    margin-bottom: 8px;
    color: #526076;
    font-size: 8px;
    font-weight: 850;
}

.editor-person-search > input {
    width: 100%;
    height: 47px;
    padding: 0 14px;
    color: #172033;
    background: #f7f9fc;
    border: 1px solid #d2dae5;
    outline: 0;
    font: inherit;
    font-size: 10px;
}

.editor-person-search > input:focus {
    background: #fff;
    border-color: var(--color-primary);
    box-shadow:
        0 0 0 3px var(--color-primary-soft);
}

.editor-person-search-results {
    position: absolute;
    z-index: 30;
    top: calc(100% + 5px);
    right: 0;
    left: 0;
    max-height: 370px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #ccd5e1;
    box-shadow:
        0 20px 50px rgb(24 32 44 / 15%);
}

.editor-person-result {
    display: grid;
    width: 100%;
    grid-template-columns:
        42px
        minmax(0, 1fr)
        auto;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    color: #172033;
    background: #fff;
    border: 0;
    border-bottom: 1px solid #e2e7ed;
    cursor: pointer;
    text-align: left;
}

.editor-person-result:last-child {
    border-bottom: 0;
}

.editor-person-result:hover {
    background: #f7f9fc;
}

.editor-person-result-visual {
    display: grid;
    width: 42px;
    height: 42px;
    overflow: hidden;
    place-items: center;
    color: #fff;
    background: #172033;
    font-size: 13px;
    font-weight: 850;
}

.editor-person-result-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.editor-person-result-content strong,
.editor-person-result-content small {
    display: block;
}

.editor-person-result-content strong {
    color: #172033;
    font-size: 9px;
}

.editor-person-result-content small {
    margin-top: 4px;
    color: #8290a3;
    font-size: 7px;
}

.editor-person-result-content small.is-pending {
    color: #9a620d;
}

.editor-person-result-action {
    color: var(--color-primary);
    font-size: 7px;
    font-weight: 850;
    text-transform: uppercase;
}

.editor-person-search-loading,
.editor-person-search-error {
    margin: 0;
    padding: 16px;
    color: #788598;
    font-size: 8px;
}

.editor-person-search-error {
    color: #a1333d;
}

.editor-person-search-empty {
    padding: 17px;
}

.editor-person-search-empty p {
    margin: 0 0 11px;
    color: #788598;
    font-size: 8px;
}

.editor-person-search-empty button {
    min-height: 35px;
    padding: 0 11px;
    color: #fff;
    background: #172033;
    border: 1px solid #172033;
    cursor: pointer;
    font: inherit;
    font-size: 7px;
    font-weight: 850;
}

/* Seçilen kişiler */

.editor-selected-credits {
    display: grid;
    background: #e0e5ec;
    border: 1px solid #e0e5ec;
    gap: 1px;
}

.editor-selected-credits:empty {
    display: none;
}

.editor-credit-row {
    display: grid;
    grid-template-columns:
        minmax(170px, 1fr)
        minmax(130px, 0.5fr)
        minmax(150px, 0.7fr)
        75px
        auto;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #fff;
    transition:
        background 350ms ease;
}

.editor-credit-row.is-new {
    background: #ecfdf5;
}

.editor-credit-person strong,
.editor-credit-person small {
    display: block;
}

.editor-credit-person strong {
    color: #172033;
    font-size: 9px;
}

.editor-credit-person small {
    margin-top: 4px;
    color: #9a620d;
    font-size: 7px;
}

.editor-credit-row select,
.editor-credit-row input {
    width: 100%;
    height: 39px;
    padding: 0 10px;
    color: #354257;
    background: #f7f9fc;
    border: 1px solid #d5dde8;
    outline: 0;
    font: inherit;
    font-size: 8px;
}

.editor-credit-row select:focus,
.editor-credit-row input:focus {
    background: #fff;
    border-color: var(--color-primary);
}

.editor-credit-row > button {
    height: 37px;
    padding: 0 10px;
    color: #a1333d;
    background: #fff;
    border: 1px solid #e4c6ca;
    cursor: pointer;
    font: inherit;
    font-size: 7px;
    font-weight: 800;
}

.editor-credit-row > button:hover {
    color: #fff;
    background: #a1333d;
    border-color: #a1333d;
}

/* =========================================================
   İçerik kriterleri
   ========================================================= */

.editor-rating-list {
    display: grid;
    background: #dce3ec;
    gap: 1px;
}

.editor-rating-card {
    padding: 24px 26px;
    background: #fff;
}

.editor-rating-card > header {
    display: grid;
    grid-template-columns:
        39px
        minmax(0, 1fr);
    align-items: start;
    gap: 14px;
    margin-bottom: 20px;
}

.editor-rating-card > header > span {
    display: grid;
    width: 39px;
    height: 39px;
    place-items: center;
    color: var(--color-primary);
    background: var(--color-primary-soft);
    font-size: 8px;
    font-weight: 850;
}

.editor-rating-card h3 {
    margin: 1px 0 0;
    color: #172033;
    font-size: 15px;
    letter-spacing: -0.025em;
}

.editor-rating-card header p {
    margin: 5px 0 0;
    color: #8995a6;
    font-size: 8px;
    line-height: 1.55;
}

.editor-rating-fields {
    display: grid;
    grid-template-columns:
        120px
        150px
        minmax(0, 1fr);
    align-items: start;
    gap: 13px;
}

.editor-rating-fields .is-description textarea {
    min-height: 90px;
}

.editor-spoiler-toggle {
    display: flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    margin-top: 13px;
    color: #667489;
    cursor: pointer;
    font-size: 8px;
    font-weight: 750;
}

.editor-spoiler-toggle input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--color-primary);
}

/* =========================================================
   Form işlemleri
   ========================================================= */

.editor-review-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 22px 24px;
    background: #fff;
    border: 1px solid #dce3ec;
    border-top: 4px solid #172033;
}

.editor-review-actions strong {
    display: block;
    margin-bottom: 5px;
    color: #172033;
    font-size: 10px;
}

.editor-review-actions p {
    max-width: 570px;
    margin: 0;
    color: #8290a3;
    font-size: 8px;
    line-height: 1.6;
}

.editor-review-actions > div:last-child {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
}

.editor-review-actions a,
.editor-review-actions button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    font: inherit;
    font-size: 8px;
    font-weight: 850;
    text-decoration: none;
}

.editor-review-actions a {
    color: #526076;
    background: #fff;
    border: 1px solid #ccd5e1;
}

.editor-review-actions button {
    color: #172033;
    background: #f1f4f7;
    border: 1px solid #ccd5e1;
    cursor: pointer;
}

.editor-review-actions button.is-submit {
    color: #fff;
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.editor-review-actions button:hover,
.editor-review-actions a:hover {
    color: #fff;
    background: #172033;
    border-color: #172033;
}

.editor-review-actions button:disabled {
    opacity: 0.6;
    cursor: wait;
}

/* =========================================================
   Yeni kişi dialog
   ========================================================= */

.editor-person-dialog {
    width: min(
        calc(100% - 30px),
        530px
    );
    padding: 0;
    color: #172033;
    background: #fff;
    border: 1px solid #172033;
    box-shadow:
        0 30px 90px rgb(0 0 0 / 28%);
}

.editor-person-dialog::backdrop {
    background: rgb(10 15 23 / 70%);
    backdrop-filter: blur(2px);
}

.editor-person-dialog > header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 25px;
    padding: 22px 24px;
    color: #fff;
    background: #172033;
    border-bottom: 4px solid var(--color-primary);
}

.editor-person-dialog header span {
    display: block;
    margin-bottom: 5px;
    color: #ff8c97;
    font-size: 7px;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.editor-person-dialog header h2 {
    margin: 0;
    color: #fff;
    font-size: 22px;
}

.editor-person-dialog header p {
    max-width: 400px;
    margin: 7px 0 0;
    color: rgb(255 255 255 / 58%);
    font-size: 8px;
    line-height: 1.6;
}

.editor-person-dialog header > button {
    width: 35px;
    height: 35px;
    flex: 0 0 auto;
    color: #fff;
    background: rgb(255 255 255 / 8%);
    border: 1px solid rgb(255 255 255 / 17%);
    cursor: pointer;
    font-size: 19px;
}

.editor-person-dialog-body {
    padding: 24px;
}

.editor-person-dialog-body label {
    display: block;
    margin-bottom: 8px;
    color: #526076;
    font-size: 8px;
    font-weight: 850;
}

.editor-person-dialog-body input {
    width: 100%;
    height: 46px;
    padding: 0 12px;
    color: #172033;
    background: #f7f9fc;
    border: 1px solid #d2dae5;
    outline: 0;
    font: inherit;
    font-size: 10px;
}

.editor-person-dialog-body input:focus {
    background: #fff;
    border-color: var(--color-primary);
    box-shadow:
        0 0 0 3px var(--color-primary-soft);
}

.editor-person-dialog-message {
    margin-top: 12px;
    padding: 11px 13px;
    font-size: 8px;
    line-height: 1.6;
}

.editor-person-dialog-message.is-error {
    color: #9f2828;
    background: #fff1f1;
    border-left: 3px solid #dc3535;
}

.editor-person-dialog-message.is-success {
    color: #076047;
    background: #ecfdf5;
    border-left: 3px solid #0b956d;
}

.editor-person-dialog > footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 17px 24px;
    background: #f7f9fc;
    border-top: 1px solid #dce3ec;
}

.editor-person-dialog footer button {
    min-height: 40px;
    padding: 0 13px;
    color: #526076;
    background: #fff;
    border: 1px solid #ccd5e1;
    cursor: pointer;
    font: inherit;
    font-size: 8px;
    font-weight: 850;
}

.editor-person-dialog footer button:last-child {
    color: #fff;
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.editor-person-dialog footer button:hover {
    color: #fff;
    background: #172033;
    border-color: #172033;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 900px) {
    .editor-review-header-grid {
        grid-template-columns: 1fr;
    }

    .editor-review-assignment-info {
        max-width: 500px;
    }

    .editor-rating-fields {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .editor-rating-fields .is-description {
        grid-column: 1 / -1;
    }

    .editor-credit-row {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .editor-credit-person {
        grid-column: 1 / -1;
    }

    .editor-review-actions {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 650px) {
    .editor-review-container {
        width: min(
            calc(100% - 28px),
            var(--container-width)
        );
    }

    .editor-review-navigation {
        position: static;
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .editor-review-decision-grid,
    .editor-rating-fields {
        grid-template-columns: 1fr;
    }

    .editor-rating-fields .is-description {
        grid-column: 1;
    }

    .editor-credit-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .editor-credit-heading button {
        width: 100%;
    }

    .editor-review-actions > div:last-child {
        width: 100%;
        flex-direction: column;
    }

    .editor-review-actions a,
    .editor-review-actions button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .editor-review-assignment-info {
        grid-template-columns: 1fr;
    }

    .editor-review-section > header {
        grid-template-columns: 40px 1fr;
        padding: 19px;
    }

    .editor-review-section > header > span {
        width: 40px;
        height: 40px;
    }

    .editor-review-section-body,
    .editor-rating-card {
        padding: 19px;
    }

    .editor-credit-row {
        grid-template-columns: 1fr;
    }

    .editor-credit-person {
        grid-column: 1;
    }

    .editor-credit-row > button {
        width: 100%;
    }

    .editor-person-dialog > footer {
        flex-direction: column;
    }

    .editor-person-dialog footer button {
        width: 100%;
    }
}