/* =========================================================
   MC2 DELIVERY — restaurante/editar.css
   FASE 4 — PADRONIZAÇÃO VISUAL
   Cores, raios e sombras usam o Design System global.
========================================================= */

/* =========================================================
   EDITAR RESTAURANTE
========================================================= */

.restaurant-edit-page {
    width: 100%;
    min-height: calc(100vh - 80px);
    padding: 40px 20px 60px;
    background: var(--mc2-bg, #F9FAFB);
}


/* =========================================================
   CARD PRINCIPAL
========================================================= */

.restaurant-edit-card {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    background: var(--mc2-surface, #FFFFFF);
    border-radius: var(--mc2-radius-xl, 18px);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
}


/* =========================================================
   CABEÇALHO
========================================================= */

.restaurant-edit-header {
    padding: 35px 40px 30px;
    text-align: center;
    border-bottom: 1px solid var(--mc2-border, #E5E7EB);
}

.restaurant-edit-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 15px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--mc2-danger-soft, #FEF2F2);
    border-radius: 50%;

    font-size: 30px;
}

.restaurant-edit-header h1 {
    margin: 0 0 8px;

    font-size: 28px;
    font-weight: 700;

    color: var(--mc2-text, #111827);
}

.restaurant-edit-header p {
    margin: 0;

    color: var(--mc2-text-secondary, #6B7280);
    font-size: 15px;
    line-height: 1.5;
}


/* =========================================================
   FORMULÁRIO
========================================================= */

.restaurant-edit-form {
    padding: 35px 40px 40px;
}


/* =========================================================
   SEÇÕES
========================================================= */

.restaurant-edit-section {
    margin-bottom: 25px;
}

.restaurant-edit-section:not(:first-child) {
    margin-top: 40px;
}

.restaurant-edit-section h2 {
    margin: 0 0 6px;

    font-size: 20px;
    font-weight: 700;

    color: var(--mc2-text, #111827);
}

.restaurant-edit-section p {
    margin: 0;

    color: var(--mc2-text-secondary, #6B7280);
    font-size: 14px;
}


/* =========================================================
   CAMPOS
========================================================= */

.restaurant-edit-field {
    margin-bottom: 20px;
}

.restaurant-edit-field label {
    display: block;

    margin-bottom: 8px;

    font-size: 14px;
    font-weight: 600;

    color: var(--mc2-text, #111827);
}


/* =========================================================
   INPUTS
========================================================= */

.restaurant-edit-field input,
.restaurant-edit-field select,
.restaurant-edit-field textarea {
    width: 100%;

    border: 1px solid var(--mc2-border-strong, #D1D5DB);
    border-radius: var(--mc2-radius-md, 12px);

    background: var(--mc2-surface, #FFFFFF);

    padding: 13px 14px;

    font-family: inherit;
    font-size: 14px;

    color: var(--mc2-text, #111827);

    outline: none;

    transition:
        border-color .2s,
        box-shadow .2s,
        background .2s;
}

.restaurant-edit-field input {
    height: 46px;
}

.restaurant-edit-field select {
    height: 46px;

    cursor: pointer;

    appearance: auto;
}

.restaurant-edit-field textarea {
    min-height: 120px;

    resize: vertical;

    line-height: 1.5;
}


/* =========================================================
   FOCUS
========================================================= */

.restaurant-edit-field input:focus,
.restaurant-edit-field select:focus,
.restaurant-edit-field textarea:focus {
    border-color: var(--mc2-primary, #EA1D2C);

    box-shadow: 0 0 0 3px rgba(var(--mc2-primary-rgb), .10);
}


/* =========================================================
   PLACEHOLDER
========================================================= */

.restaurant-edit-field input::placeholder,
.restaurant-edit-field textarea::placeholder {
    color: var(--mc2-text-muted, #9CA3AF);
}


/* =========================================================
   LINHA DE CAMPOS
========================================================= */

.restaurant-edit-row {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 18px;
}


/* =========================================================
   IMAGENS
========================================================= */

.restaurant-image-field {
    margin-top: 30px;
    padding: 24px;

    border: 1px solid var(--mc2-border, #E5E7EB);
    border-radius: var(--mc2-radius-lg, 16px);

    background: var(--mc2-bg-alt, #FAFAFA);
}

.restaurant-image-info {
    margin-bottom: 18px;
}

.restaurant-image-info h3 {
    margin: 0 0 5px;

    font-size: 16px;
    font-weight: 700;

    color: var(--mc2-text, #111827);
}

.restaurant-image-info p {
    margin: 0;

    font-size: 13px;

    color: var(--mc2-text-secondary, #6B7280);
}


/* =========================================================
   LOGO ATUAL
========================================================= */

.restaurant-current-logo {
    margin-bottom: 18px;
}

.restaurant-current-logo img {
    display: block;

    width: 130px;
    height: 130px;

    object-fit: cover;

    border-radius: 50%;

    border: 4px solid var(--mc2-surface, #FFFFFF);

    box-shadow:
        0 2px 10px rgba(0, 0, 0, .12);
}


/* =========================================================
   BANNER ATUAL
========================================================= */

.restaurant-current-banner {
    width: 100%;
    margin-bottom: 18px;

    overflow: hidden;

    border-radius: var(--mc2-radius-md, 12px);

    background: var(--mc2-border, #E5E7EB);
}

.restaurant-current-banner img {
    display: block;

    width: 100%;
    height: 230px;

    object-fit: cover;
}


/* =========================================================
   SEM IMAGEM
========================================================= */

.restaurant-no-image {
    display: flex;

    align-items: center;
    justify-content: center;

    min-height: 100px;

    margin-bottom: 18px;

    padding: 20px;

    border: 1px dashed var(--mc2-border-strong, #D1D5DB);
    border-radius: var(--mc2-radius-md, 12px);

    background: var(--mc2-surface, #FFFFFF);

    color: var(--mc2-text-muted, #9CA3AF);

    font-size: 14px;
}


/* =========================================================
   UPLOAD
========================================================= */

.restaurant-edit-upload {
    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    width: 100%;

    min-height: 120px;

    padding: 20px;

    border: 2px dashed var(--mc2-border-strong, #D1D5DB);
    border-radius: var(--mc2-radius-md, 12px);

    background: var(--mc2-surface, #FFFFFF);

    cursor: pointer;

    text-align: center;

    transition:
        border-color .2s,
        background .2s;
}

.restaurant-edit-upload:hover {
    border-color: var(--mc2-primary, #EA1D2C);

    background: var(--mc2-danger-soft, #FEF2F2);
}

.restaurant-edit-upload-icon {
    margin-bottom: 8px;

    font-size: 25px;
}

.restaurant-edit-upload-title {
    font-size: 14px;
    font-weight: 700;

    color: var(--mc2-text, #111827);
}

.restaurant-edit-upload-text {
    margin-top: 4px;

    font-size: 12px;

    color: var(--mc2-text-muted, #9CA3AF);
}


/* =========================================================
   INPUT FILE
========================================================= */

.restaurant-edit-file {
    display: none;
}


/* =========================================================
   AÇÕES
========================================================= */

.restaurant-edit-actions {
    display: flex;

    align-items: center;
    justify-content: flex-end;

    gap: 12px;

    margin-top: 40px;

    padding-top: 25px;

    border-top: 1px solid var(--mc2-border, #E5E7EB);
}


/* =========================================================
   CANCELAR
========================================================= */

.restaurant-edit-cancel {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 46px;

    padding: 0 20px;

    border: 1px solid var(--mc2-border-strong, #D1D5DB);
    border-radius: var(--mc2-radius-md, 12px);

    background: var(--mc2-surface, #FFFFFF);

    color: var(--mc2-text-soft, #4B5563);

    text-decoration: none;

    font-size: 14px;
    font-weight: 600;

    transition:
        background .2s,
        border-color .2s;
}

.restaurant-edit-cancel:hover {
    background: var(--mc2-surface-soft, #F3F4F6);

    border-color: var(--mc2-border-strong, #D1D5DB);
}


/* =========================================================
   BOTÃO SALVAR
========================================================= */

.restaurant-edit-button {
    min-height: 46px;

    padding: 0 24px;

    border: 0;
    border-radius: var(--mc2-radius-md, 12px);

    background: var(--mc2-primary, #EA1D2C);

    color: var(--mc2-surface, #FFFFFF);

    font-family: inherit;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background .2s,
        transform .2s;
}

.restaurant-edit-button:hover {
    background: var(--mc2-primary-hover, #D91827);

    transform: translateY(-1px);
}

.restaurant-edit-button:active {
    transform: translateY(0);
}


/* =========================================================
   RODAPÉ
========================================================= */

.restaurant-edit-footer {
    padding: 18px 40px;

    border-top: 1px solid var(--mc2-border, #E5E7EB);

    background: var(--mc2-bg-alt, #FAFAFA);

    text-align: center;

    color: var(--mc2-text-muted, #9CA3AF);

    font-size: 12px;
}


/* =========================================================
   RESPONSIVO
========================================================= */

@media (max-width: 768px) {

    .restaurant-edit-page {
        padding: 20px 12px 40px;
    }


    .restaurant-edit-card {
        border-radius: var(--mc2-radius-lg, 16px);
    }


    .restaurant-edit-header {
        padding: 28px 20px 25px;
    }


    .restaurant-edit-header h1 {
        font-size: 24px;
    }


    .restaurant-edit-form {
        padding: 28px 20px 30px;
    }


    .restaurant-edit-row {
        grid-template-columns: 1fr;

        gap: 0;
    }


    .restaurant-image-field {
        padding: 18px;
    }


    .restaurant-current-banner img {
        height: 180px;
    }


    .restaurant-edit-actions {
        flex-direction: column-reverse;

        align-items: stretch;
    }


    .restaurant-edit-cancel,
    .restaurant-edit-button {
        width: 100%;
    }


    .restaurant-edit-footer {
        padding: 16px 20px;
    }

}