/*
 ASEMANEEHA PHASE 465
 Martyr edit visual refinement
 Scope: .edit_martyr
 No behavior changes
*/

/* Overall form */
.edit_martyr {
    --asem465-navy: #17365d;
    --asem465-border: #e3eaf2;
    --asem465-muted: #64748b;
    --asem465-text: #334155;
    --asem465-soft: #f8fafc;
    line-height: 1.75;
}

.edit_martyr *,
.edit_martyr *::before,
.edit_martyr *::after {
    box-sizing: border-box;
}

/* Form headings */
.edit_martyr p.text-xl {
    color: var(--asem465-navy) !important;
    font-weight: 750 !important;
    margin-bottom: 14px;
}

.edit_martyr label {
    color: #43566d;
    line-height: 1.7;
}

/* Inputs and controls */
.edit_martyr input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.edit_martyr select {
    min-height: 43px;
    border-radius: 10px !important;
}

.edit_martyr textarea {
    width: 100%;
    min-height: 145px;
    border-radius: 12px !important;
    line-height: 2;
    padding: 14px !important;
}

.edit_martyr textarea:focus {
    background: #fff !important;
}

.edit_martyr input:disabled,
.edit_martyr select:disabled,
.edit_martyr textarea:disabled {
    cursor: not-allowed;
    opacity: .7;
}

/* Section spacing */
.edit_martyr .grid {
    row-gap: 17px;
    column-gap: 17px;
}

.edit_martyr .grid > * {
    min-width: 0;
}

/* Media upload inputs */
.edit_martyr input[type="file"] {
    max-width: 100%;
}

.edit_martyr input[type="file"]::file-selector-button {
    background: #eaf0f7;
    color: #17365d;
    border: 1px solid #d8e3ee;
    border-radius: 9px;
    padding: 9px 13px;
    margin-left: 10px;
    font-weight: 600;
    cursor: pointer;
}

/* Existing media cards */
.edit_martyr img {
    object-fit: contain;
}

.edit_martyr video {
    max-height: 260px;
    background: #0f172a;
}

.edit_martyr audio {
    width: 100%;
    max-width: 360px;
}

/* Long form blocks */
.edit_martyr textarea + p,
.edit_martyr textarea + span {
    color: var(--asem465-muted);
}

/* Actions */
.edit_martyr button {
    transition:
        background-color .18s ease,
        border-color .18s ease,
        box-shadow .18s ease;
}

.edit_martyr button:focus-visible,
.edit_martyr a:focus-visible {
    outline: 3px solid rgba(23,54,93,.25);
    outline-offset: 2px;
}

.edit_martyr button:disabled {
    opacity: .65;
}

/* Main submit button - preserve click behavior */
.edit_martyr > div > button:last-child {
    min-width: 130px;
    min-height: 46px;
    border-radius: 11px !important;
    font-weight: 700;
}

/* Desktop readability */
@media (min-width: 1100px) {
    .edit_martyr {
        padding: 26px 30px;
    }

    .edit_martyr textarea {
        min-height: 155px;
    }
}

/* Tablet */
@media (max-width: 900px) {
    .edit_martyr {
        padding: 18px;
    }

    .edit_martyr .grid {
        row-gap: 14px;
        column-gap: 14px;
    }
}

/* Mobile */
@media (max-width: 640px) {
    .edit_martyr {
        padding: 12px !important;
    }

    .edit_martyr .grid {
        grid-template-columns: minmax(0,1fr) !important;
        gap: 13px !important;
    }

    .edit_martyr textarea {
        min-height: 135px;
        font-size: 14px;
    }

    .edit_martyr input,
    .edit_martyr select,
    .edit_martyr button {
        max-width: 100%;
    }

    .edit_martyr > div > button:last-child {
        min-width: 150px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .edit_martyr button,
    .edit_martyr input,
    .edit_martyr select,
    .edit_martyr textarea {
        transition: none !important;
    }
}