/* =========================================
   MODAL - BURGER EM CASA
   Interface inspirada em sci-fi / Mass Effect
   ========================================= */


/* ---------- TELA DO MODAL ---------- */

.modalScreen {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 3000;

    justify-content: center;
    align-items: center;

    padding: 25px;

    background:
        radial-gradient(
            circle at center,
            rgba(26, 79, 103, 0.35),
            rgba(2, 12, 18, 0.92) 70%
        );

    backdrop-filter: blur(6px);
}


/* ---------- PAINEL PRINCIPAL ---------- */

.modal {
    position: relative;

    width: 100%;
    max-width: 900px;
    max-height: 92vh;

    padding: 30px;

    overflow-y: auto;

    color: #eaf6fa;

    background:
        linear-gradient(
            145deg,
            rgba(17, 48, 64, 0.96),
            rgba(5, 21, 30, 0.98)
        );

    border: 1px solid rgba(79, 195, 232, 0.45);
    border-radius: 12px;

    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.03),
        0 20px 60px rgba(0, 0, 0, 0.55),
        0 0 30px rgba(79, 195, 232, 0.08);
}


/* detalhe superior */

.modal::before {
    content: '';

    position: absolute;
    top: 0;
    left: 30px;

    width: 120px;
    height: 3px;

    background: #d8a93d;

    box-shadow: 0 0 12px rgba(216, 169, 61, 0.55);
}


/* ---------- FECHAR ---------- */

.closeButton {
    display: flex;
    justify-content: flex-end;

    height: auto;
    margin-bottom: 5px;
}

.closeButton p {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 36px;
    height: 36px;

    margin: 0;

    color: #9edcec;
    background: rgba(79, 195, 232, 0.08);

    border: 1px solid rgba(79, 195, 232, 0.35);
    border-radius: 6px;

    font-size: 0;

    cursor: pointer;

    transition: 0.2s ease;
}


/* substitui visualmente o emoji */

.closeButton p::after {
    content: '×';
    font-size: 28px;
    line-height: 1;
}

.closeButton p:hover {
    color: #ffffff;
    background: rgba(79, 195, 232, 0.18);

    border-color: #4fc3e8;

    box-shadow: 0 0 12px rgba(79, 195, 232, 0.25);
}


/* ---------- ÁREA DO BURGER ---------- */

.burgerArea {
    display: grid;
    grid-template-columns: minmax(250px, 0.8fr) 1.2fr;

    width: 100%;
    min-height: auto;

    gap: 35px;

    align-items: center;
}


/* ---------- IMAGEM ---------- */

.burgerArea img {
    width: 100%;
    max-width: 330px;
    height: 330px;

    justify-self: center;

    object-fit: cover;

    border: 1px solid rgba(79, 195, 232, 0.55);
    border-radius: 8px;

    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.35),
        0 0 20px rgba(79, 195, 232, 0.08);
}


/* ---------- INFORMAÇÕES ---------- */

.burgerOptions {
    padding: 0;
}

.burgerOptions h1 {
    margin: 0 0 5px;

    color: #ffffff;

    text-align: left;

    font-size: 42px;
    font-weight: 700;
    letter-spacing: 1px;

    text-shadow: none;
}

.burgerDesc > p {
    margin: 0 0 22px;

    color: #9fb8c3;

    text-align: left;

    font-size: 19px;
    line-height: 1.35;
}


/* ---------- VARIAÇÕES ---------- */

.variationArea {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 10px;

    margin: 15px 0 20px;
}

.variationBlue,
.variationRed {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    width: auto;
    min-height: 52px;

    margin: 0;
    padding: 8px 12px;

    color: #b9e7f2;

    background:
        linear-gradient(
            90deg,
            rgba(45, 127, 158, 0.28),
            rgba(18, 66, 86, 0.18)
        );

    border: 1px solid rgba(79, 195, 232, 0.45);
    border-radius: 4px;

    box-shadow: none;

    font-size: 21px;
    font-weight: 600;
    text-align: center;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}


/* estado hover */

.variationBlue:not(.selected):not(.unavailable):hover,
.variationRed:not(.selected):not(.unavailable):hover {
    color: #ffffff;

    background: rgba(79, 195, 232, 0.20);

    border-color: #4fc3e8;

    box-shadow:
        inset 0 0 18px rgba(79, 195, 232, 0.08),
        0 0 12px rgba(79, 195, 232, 0.12);

    transform: translateY(-1px);
}


/* ---------- SELECIONADO - DOURADO ---------- */

.variationBlue.selected,
.variationRed.selected {
    color: #fff2c5;

    background:
        linear-gradient(
            90deg,
            rgba(216, 169, 61, 0.35),
            rgba(113, 81, 22, 0.22)
        );

    border-color: #d8a93d;

    box-shadow:
        inset 0 0 18px rgba(216, 169, 61, 0.10),
        0 0 14px rgba(216, 169, 61, 0.16);

    transform: none;
}


/* pequena linha indicando seleção */

.variationBlue.selected::before,
.variationRed.selected::before {
    content: '';

    width: 35px;
    height: 2px;

    margin-bottom: 4px;

    background: #d8a93d;

    box-shadow: 0 0 7px rgba(216, 169, 61, 0.6);
}


/* ---------- INDISPONÍVEL ---------- */

.variationBlue.unavailable,
.variationRed.unavailable {
    opacity: 0.38;

    color: #84959c;

    background: rgba(75, 88, 94, 0.16);

    border-color: rgba(140, 155, 162, 0.25);

    cursor: not-allowed;

    filter: grayscale(0.8);

    box-shadow: none;
}

.unavailable span {
    display: block;

    margin-top: 3px;

    color: #c5cdd0;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.4px;
}


/* ---------- INGREDIENTES ---------- */

.variationDesc {
    padding: 15px;

    background: rgba(79, 195, 232, 0.05);

    border-left: 2px solid rgba(79, 195, 232, 0.55);
}

.variationDesc p {
    margin: 0;

    color: #c8d8de;

    font-size: 17px;
    line-height: 1.4;
    text-align: left;
}


/* ---------- VALORES ---------- */

.values {
    display: grid;
    grid-template-columns: 1fr 1fr;

    align-items: center;

    margin-top: 28px;
    padding-top: 20px;

    border-top: 1px solid rgba(79, 195, 232, 0.18);

    font-size: 20px;
}


/* ---------- QUANTIDADE ---------- */

.quantity {
    display: flex;
    align-items: center;

    gap: 0;
}

.quantity p {
    margin: 0 12px 0 0;

    color: #9fb8c3;
}

.quantity .burgerQt {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 42px;
    height: 38px;

    color: #ffffff;
    background: rgba(0, 0, 0, 0.22);

    border-top: 1px solid rgba(79, 195, 232, 0.45);
    border-bottom: 1px solid rgba(79, 195, 232, 0.45);
}

.quantity button {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 38px;
    height: 38px;

    padding: 0;

    color: #b9e7f2;
    background: rgba(79, 195, 232, 0.12);

    border: 1px solid rgba(79, 195, 232, 0.45);

    font-size: 22px;

    cursor: pointer;

    transition: 0.2s ease;
}

#qtMinus {
    border-radius: 5px 0 0 5px;
}

#qtPlus {
    border-radius: 0 5px 5px 0;
}

.quantity button:hover {
    color: #ffffff;
    background: rgba(79, 195, 232, 0.28);

    border-color: #4fc3e8;
}


/* ---------- PREÇO ---------- */

.burgerPrice {
    display: flex;
    justify-content: flex-end;
    align-items: baseline;

    color: #d8a93d;

    font-weight: 700;
}

.burgerPrice p {
    margin: 0 3px;

    font-size: 24px;
}

.burgerPrice .total {
    font-size: 34px;
}


/* ---------- BOTÃO CARRINHO ---------- */

.addCart {
    display: flex;
    justify-content: flex-end;

    margin-top: 25px;
}

.addCart button {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 8px;

    width: 230px;
    min-height: 48px;

    padding: 8px 20px;

    color: #07161d;
    background:
        linear-gradient(
            90deg,
            #d8a93d,
            #edca6a
        );

    border: 1px solid #f0d477;
    border-radius: 5px;

    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.25),
        0 0 12px rgba(216, 169, 61, 0.12);

    font-family: inherit;
    font-size: 20px;
    font-weight: 700;

    cursor: pointer;

    transition: 0.2s ease;
}

.addCart button:hover:not(:disabled) {
    background:
        linear-gradient(
            90deg,
            #e5b94f,
            #f5d985
        );

    border-color: #ffe29a;

    box-shadow:
        0 7px 22px rgba(0, 0, 0, 0.3),
        0 0 18px rgba(216, 169, 61, 0.22);

    transform: translateY(-1px);
}


/* botão indisponível */

.addCart button.disabled,
.addCart button:disabled {
    color: #77878e;
    background: rgba(87, 101, 107, 0.15);

    border-color: rgba(135, 150, 157, 0.25);

    box-shadow: none;

    opacity: 0.7;

    cursor: not-allowed;

    filter: none;
}

@media (min-width: 801px) {

    .modal {
        max-width: 1050px;
        padding: 28px 38px;
    }

    .burgerArea {
        grid-template-columns: 395px 1fr;
        gap: 42px;
    }

    .burgerArea img {
        width: 100%;
        height: 410px;
        max-width: 395px;
    }

    .values {
        margin-top: 25px;
        padding-top: 25px;
    }

    .addCart {
        margin-top: 18px;
    }
}


/* =========================================
   TABLET / TELAS MENORES
   ========================================= */

@media (max-width: 800px) {

    .modalScreen {
        padding: 15px;
        align-items: flex-start;

        overflow-y: auto;
    }

    .modal {
        max-height: none;

        margin: 15px 0;

        padding: 20px;
    }

    .burgerArea {
        grid-template-columns: 240px 1fr;

        gap: 22px;
    }

    .burgerArea img {
        height: 240px;
    }

    .burgerOptions h1 {
        font-size: 34px;
    }
}


/* =========================================
   CELULAR
   ========================================= */

@media (max-width: 600px) {

    .modalScreen {
        padding: 0;

        background: rgba(2, 12, 18, 0.97);
    }

    .modal {
        width: 100%;
        min-height: 100vh;
        max-height: none;

        margin: 0;
        padding: 18px 18px 30px;

        border: none;
        border-radius: 0;

        overflow: visible;
    }

    .modal::before {
        left: 18px;
        width: 80px;
    }

    .closeButton {
        margin-bottom: 10px;
    }

    .burgerArea {
        display: flex;
        flex-direction: column;

        gap: 22px;
    }

    .burgerArea img {
        width: 100%;
        max-width: 360px;
        height: 300px;

        object-fit: cover;
        object-position: center;
    }

    .burgerOptions {
        width: 100%;
    }

    .burgerOptions h1 {
        font-size: 36px;
        text-align: center;
    }

    .burgerDesc > p {
        margin-bottom: 18px;

        text-align: center;

        font-size: 18px;
    }

    .variationArea {
        grid-template-columns: 1fr 1fr;

        gap: 8px;
    }

    .variationBlue,
    .variationRed {
        min-height: 50px;

        padding: 8px;

        font-size: 19px;
    }

    .variationDesc {
        padding: 13px;
    }

    .variationDesc p {
        font-size: 16px;
    }

    .values {
        grid-template-columns: 1fr;

        gap: 20px;

        margin-top: 22px;
    }

    .quantity {
        justify-content: center;
    }

    .burgerPrice {
        justify-content: center;
    }

    .addCart {
        justify-content: center;

        margin-top: 22px;
    }

    .addCart button {
        width: 100%;
        max-width: 360px;

        min-height: 52px;
    }
}


/* celulares muito pequenos */

@media (max-width: 380px) {

    .variationArea {
        grid-template-columns: 1fr;
    }

    .burgerOptions h1 {
        font-size: 32px;
    }

    .quantity p {
        margin-right: 8px;
    }

    .burgerArea img {
    height: 260px;
}
}