@charset "UTF-8";

/* Модальное окно результата калькулятора — бенто, минимализм */

.swal2-popup.calculator-result-bento-popup {
    background: #272727 !important;
    border-radius: 20px;
    padding: 20px 20px 24px;
    max-width: 96vw;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.swal2-popup.calculator-result-bento-popup .swal2-title {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.swal2-popup.calculator-result-bento-popup .swal2-html-container {
    margin: 0;
    padding: 0;
    display: block;
}

/* Порядок контента: CTA и форма сверху, карточки результата ниже */
.swal2-popup.calculator-result-bento-popup .main.d-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Блок #diet — контейнер CTA и формы, лаконичная анимация фона */
.swal2-popup.calculator-result-bento-popup #diet {
    order: 1;
    flex-shrink: 0;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.swal2-popup.calculator-result-bento-popup .calculator-result.bento-result {
    order: 2;
}

.swal2-popup.calculator-result-bento-popup #diet::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(126, 206, 0, 0.06) 40%,
        rgba(126, 206, 0, 0.1) 50%,
        rgba(126, 206, 0, 0.06) 60%,
        transparent 100%);
    background-size: 200% 100%;
    background-position: 100% 0;
    pointer-events: none;
    z-index: 0;
    animation: diet-block-shimmer 5s ease-in-out infinite;
}

@keyframes diet-block-shimmer {
    0%, 100% { background-position: 100% 0; }
    50% { background-position: 0% 0; }
}

/* Блок призыва к действию — сверху, текст и кнопка по вертикали */
.calc-bento-cta-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(126, 206, 0, 0.12);
    border: 1px solid rgba(126, 206, 0, 0.35);
    border-radius: 16px;
    padding: 24px 18px;
    margin-bottom: 18px;
    text-align: center;
    overflow: visible;
    position: relative;
    z-index: 2;
    animation: diet-cta-border-pulse 2.5s ease-in-out infinite;
}

@keyframes diet-cta-border-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(126, 206, 0, 0.12); }
    50% { box-shadow: 0 0 12px 0 rgba(126, 206, 0, 0.22); }
}

.calc-bento-cta-text {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.95rem;
    line-height: 1.45;
    margin: 0 0 14px 0;
    order: 1;
    flex-shrink: 0;
}

.calc-bento-cta-btn {
    order: 2;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80%;
    max-width: 200px;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 600;
    color: #272727;
    background: rgba(126, 206, 0, 0.9);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.calc-bento-cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(126, 206, 0, 0.4);
}

/* Контейнер результата — ниже CTA по стеку */
.calculator-result.bento-result {
    position: relative;
    z-index: 1;
    background: transparent !important;
    padding: 0;
    margin: 0;
    border-radius: 0;
}

/* Карточки секций (PFC, BMI, BMR) */
.calc-bento-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 14px 2px;
    margin-bottom: 12px;
}

.calc-bento-card-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 10px 0;
}

/* PFC — нутриенты в ряд */
.calc-bento-pfc-row {
    display: flex;
    justify-content: space-around;
    gap: 8px;
    flex-wrap: wrap;
}

.calc-bento-pfc-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 64px;
}

.calc-bento-pfc-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.calc-bento-pfc-value {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: #272727;
}

.calc-bento-pfc-value.calories { background: #dedede; }
.calc-bento-pfc-value.proteins { background: rgba(172, 255, 172, 0.9); }
.calc-bento-pfc-value.fats { background: rgba(243, 255, 162, 0.9); }
.calc-bento-pfc-value.carbs { background: rgba(151, 176, 253, 0.9); }

/* BMI / BMR — строка с кругом */
.calc-bento-metric-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.calc-bento-metric-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
}

/* Шкала BMI */
.calc-bento-bmi-scale {
    position: relative;
    width: 100%;
    height: 10px;
    margin: 12px 0 6px;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(to right,
        rgba(133, 193, 233, 0.8) 0%, rgba(88, 214, 141, 0.8) 33%,
        rgba(244, 208, 63, 0.8) 66%, rgba(231, 76, 60, 0.8) 100%);
}

#bmi-indicator {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 28px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
    z-index: 2;
}

.calc-bento-bmi-legend {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.85);
}

.calc-bento-bmi-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.calc-bento-color-box {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    flex-shrink: 0;
}

/* Описание */
.calc-bento-desc {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.4;
    margin: 8px 0 0 0;
}

/* Форма выбора (скрыта по умолчанию) */
.calc-bento-form-wrap {
    margin-top: 16px;
}

.calc-bento-form-wrap.hidden {
    display: none !important;
}

.calc-bento-section-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 500;
    margin: 12px 0 8px 0;
}

/* Кнопка отправки формы рациона */
#dietmaker-submit-btn.bento-submit-btn {
    width: 100%;
    max-width: 280px;
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #272727;
    background: rgba(126, 206, 0, 0.9);
    border: none;
    border-radius: 12px;
    margin-top: 12px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#dietmaker-submit-btn.bento-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(126, 206, 0, 0.35);
}

/* Совместимость со старыми классами внутри модалки */
.calculator-result.bento-result .pfc-info-title h4,
.calculator-result.bento-result .bmi-info-col h4 {
    color: #fff !important;
    font-size: 0.95rem;
}

.calculator-result.bento-result .pfc-text,
.calculator-result.bento-result {
    color: #272727 !important;
}

.calculator-result.bento-result .bmi-info-p,
.calculator-result.bento-result .bmr-info-p {
    color: #fff !important;
}

.calculator-result.bento-result .desc {
    color: rgba(255, 255, 255, 0.65) !important;
}

.calculator-result.bento-result .bmi-scale {
    border-color: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
}

.calculator-result.bento-result .bmi-bmr-info-circle {
    border-color: rgba(255, 255, 255, 0.3);
}

.calculator-result.bento-result .bmi-categories {
    color: rgba(255, 255, 255, 0.85) !important;
}

.calculator-result.bento-result .color-box {
    border-color: rgba(255, 255, 255, 0.2);
}

.calculator-result.bento-result .diet-info-text {
    color: rgba(255, 255, 255, 0.9) !important;
}

.calculator-result.bento-result .time-to-eat_btn,
.calculator-result.bento-result .category_btn {
    border-radius: 12px;
}

.calculator-result.bento-result .invalid-feedback {
    color: #f88;
}

/* Круги категорий продуктов в модальном окне — уменьшенный размер, пропорции сохранены */
.swal2-popup.calculator-result-bento-popup .category_btn {
    width: 95px;
    height: 95px;
    border-radius: 50%;
}

.swal2-popup.calculator-result-bento-popup .calc_category_img {
    width: 95px;
    height: 95px;
    border-radius: 50%;
    padding: 4px 5px 5px 4px;
}

.swal2-popup.calculator-result-bento-popup .category_btn h6,
.swal2-popup.calculator-result-bento-popup .category_btn .category-p {
    font-size: 0.8rem;
    line-height: 1.2;
}

.swal2-popup.calculator-result-bento-popup .category_btn .category-p {
    font-size: 0.75rem;
}
