/* ==== پلنک کالری کالکولاتور: استایل مدرن و علمی ==== */
#calorie-calculator-container {
    max-width: 640px;
    margin: 38px auto 38px auto;
    padding: 28px 20px;
    background: linear-gradient(135deg, #fffbe7 80%, #f9f9f9 100%);
    border: 2px solid #ffd600;
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(255, 152, 0, 0.09);
    font-family: inherit;
    color: #333;
    direction: rtl;
    position: relative;
}

#calorie-calculator-container h2 {
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(90deg, #ff9800 10%, #ffd600 85%);
    padding: 16px 22px;
    border-radius: 13px;
    box-shadow: 0 5px 14px rgba(255,152,0,0.12);
    margin-bottom: 25px;
    letter-spacing: 1px;
    text-transform: uppercase;
    animation: plank-fadeInUp 0.8s;
    transition: transform 0.18s, box-shadow 0.18s;
}
#calorie-calculator-container h2:hover {
    transform: scale(1.025);
    box-shadow: 0 10px 28px rgba(255, 214, 0, 0.18);
}

/* ==== فرم ورودی ==== */
#calorie-form > div {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
}
#calorie-form label {
    font-size: 15.5px;
    font-weight: 600;
    margin-bottom: 7px;
    color: #FF9800;
}
#calorie-form input[type="number"],
#calorie-form select {
    width: 100%;
    padding: 10px 13px;
    font-size: 15px;
    border-radius: 8px;
    border: 1.4px solid #ffd600;
    background: #fff;
    color: #444;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.17s;
    box-shadow: 0 1.5px 4px rgba(255,214,0,0.07);
}
#calorie-form input[type="number"]:focus,
#calorie-form select:focus {
    border-color: #ff9800;
    box-shadow: 0 0 8px rgba(255,152,0,0.12);
}
/* حذف اسپینر عددی */
#calorie-form input[type="number"]::-webkit-inner-spin-button,
#calorie-form input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none; margin: 0;
}
#calorie-form input[type="number"] { -moz-appearance: textfield; appearance: textfield; }

/* ==== دکمه ها ==== */
#calorie-form > div[style*="flex"] {
    justify-content: space-between;
    gap: 16px;
}
#calorie-form button {
    flex: 1;
    padding: 13px 0;
    font-size: 16px;
    font-weight: bold;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.26s;
    box-shadow: 0 3px 10px rgba(255, 152, 0, 0.09);
    margin: 0 1px;
}
#calorie-form button[type="submit"] {
    background: linear-gradient(90deg, #ff9800 20%, #ffd600 90%);
    color: #fff;
}
#calorie-form button[type="submit"]:hover {
    background: linear-gradient(90deg, #ffd600 0%, #ff9800 100%);
    box-shadow: 0 8px 20px rgba(255,152,0,0.17);
    transform: translateY(-2px) scale(1.04);
}
#reset-form {
    background: linear-gradient(90deg, #f44336 12%, #ff9800 88%);
    color: #fff;
}
#reset-form:hover {
    background: linear-gradient(90deg, #ff9800 0%, #f44336 100%);
    box-shadow: 0 7px 14px rgba(244,67,54,0.17);
    transform: translateY(-2px) scale(1.03);
}

.plank-dev-signature {
    margin: 34px auto 0 auto;
    padding: 18px 24px;
    max-width: 390px;
    background: linear-gradient(135deg, #f8fafc 75%, #e3f2fd 100%);
    border-radius: 18px;
    box-shadow: 0 6px 18px 0 rgba(30, 136, 229, 0.06), 0 1.5px 4px #90caf980;
    text-align: center;
    font-family: inherit;
    font-size: 15px;
    opacity: 0.92;
    position: relative;
    overflow: hidden;
    border: 1.5px solid #e3f2fd;
    transition: box-shadow 0.2s;
}
.plank-dev-signature:hover {
    box-shadow: 0 12px 32px 0 rgba(30, 136, 229, 0.13), 0 2px 10px #90caf940;
    background: linear-gradient(135deg, #e3f2fd 65%, #bbdefb 100%);
}
.plank-dev-signature .dev-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 2px;
    flex-wrap: wrap;
    font-family: inherit;
}
.plank-dev-signature .dev-line.fa span:first-child {
    color: #607d8b;
    font-weight: 500;
    letter-spacing: 0.09em;
}
.plank-dev-signature .dev-line.fa b {
    color: #1976d2;
    font-size: 17px;
    font-family: inherit;
    letter-spacing: 0.06em;
    font-weight: 700;
}
.plank-dev-signature .dev-line.en span {
    color: #7b1fa2;
    font-weight: 500;
    letter-spacing: 0.04em;
}
.plank-dev-signature .dev-line.en b {
    color: #00897b;
    font-family: 'Montserrat', 'Vazirmatn', inherit;
    font-size: 15.5px;
    font-weight: 700;
    letter-spacing: 0.03em;
}
@media (max-width: 600px) {
    .plank-dev-signature {
        padding: 11px 4px;
        max-width: 97vw;
        font-size: 12.5px;
        border-radius: 13px;
    }
    .plank-dev-signature .dev-line {
        flex-direction: column;
        gap: 0;
        margin-bottom: 4px;
        line-height: 1.6;
    }
    .plank-dev-signature .dev-line.fa b,
    .plank-dev-signature .dev-line.en b {
        font-size: 13.2px;
    }
}

/* ==== بخش نتیجه ==== */
.plank-calorie-result-section {
    margin-top: 34px;
    padding: 24px 15px;
    background: linear-gradient(135deg, #fffde7 0%, #ffe0b2 100%);
    border: 2px solid #ffecb3;
    border-radius: 17px;
    box-shadow: 0 10px 28px rgba(255, 193, 7, 0.11);
    animation: plank-fadeInUp 0.7s;
    direction: rtl;
}
.plank-calorie-result-title {
    font-size: 25px;
    font-weight: bold;
    color: #FF9800;
    text-align: center;
    margin-bottom: 19px;
    letter-spacing: .6px;
}

/* جدول نتیجه */
.plank-calorie-vertical-table {
    width: 100%;
    max-width: 100%;
    margin: 0 0 17px 0;
    border-collapse: separate;
    border-spacing: 0 4px;
    background: transparent;
    font-family: inherit;
    direction: rtl;
    box-shadow: none;
}
.plank-calorie-vertical-table th,
.plank-calorie-vertical-table td {
    font-size: 15.2px;
    padding: 14px 8px 14px 3px;
    border: none;
    border-radius: 7px;
    text-align: right !important;
    vertical-align: middle;
    background: #fffbe7;
    transition: background 0.16s;
    word-break: break-word;
}
.plank-calorie-vertical-table th {
    color: #212121;
    background: #ffe0b2;
    font-weight: 600;
    min-width: 185px;
    border-right: 3px solid #ffd600;
    font-size: 15.4px;
    text-align: right !important;
}
.plank-calorie-vertical-table td {
    color: #212529;
    background: #fffde7;
    font-weight: 500;
}
.plank-calorie-vertical-table tr:hover td, .plank-calorie-vertical-table tr:hover th {
    background: #ffe57f !important;
}

/* جمع و جور و فلت در موبایل */
@media (max-width: 700px) {
    .plank-calorie-vertical-table th,
    .plank-calorie-vertical-table td {
        font-size: 91%;
        padding: 10px 4px 10px 2px;
        border-radius: 5px;
    }
    .plank-calorie-vertical-table th { min-width: 90px; }
}

.plank-calorie-extra {
    margin-top: 14px;
}
.plank-calorie-tip,
.plank-calorie-warning {
    margin-bottom: 10px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14.5px;
    background: #fffde7;
    box-shadow: 0 1px 7px rgba(255,193,7,0.07);
}
.plank-calorie-tip { border-right: 3px solid #42a5f5; }
.plank-calorie-warning { border-right: 3px solid #f44336; background: #fff8e1; color: #b71c1c;}
/* اشتراک‌گذاری */
.plank-calorie-share-native-btn {
    margin: 23px auto 0 auto;
    display: block;
    background: linear-gradient(90deg, #ffd600 0%, #ff9800 100%);
    color: #222;
    border: none;
    border-radius: 13px;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 17px rgba(255,193,7,0.13);
    transition: background 0.16s, box-shadow 0.18s;
    outline: none;
}
.plank-calorie-share-native-btn:hover {
    background: linear-gradient(90deg, #ff9800 0%, #ffd600 100%);
    color: #fff;
    box-shadow: 0 8px 21px rgba(255,152,0,0.17);
}

@media (max-width: 700px) {
    #calorie-calculator-container {
        padding: 12px 3px;
    }
    #calorie-calculator-container h2 {
        font-size: 20px;
        padding: 9px 4px;
    }
    #calorie-form input,
    #calorie-form select,
    #calorie-form button {
        font-size: 13.4px;
    }
    .plank-calorie-result-title {
        font-size: 17px;
    }
    .plank-dev-signature {
        padding: 10px 4px;
        max-width: 97vw;
        font-size: 12.7px;
        border-radius: 12px;
    }
    .plank-dev-signature .dev-line {
        flex-direction: column;
        gap: 0;
        margin-bottom: 4px;
        line-height: 1.55;
    }
    .plank-dev-signature .dev-line.fa b,
    .plank-dev-signature .dev-line.en b {
        font-size: 13px;
    }
}

@media (max-width: 600px) {
    .plank-calorie-result-section { padding: 11px 2px; }
}

/* FadeIn انیمیشن */
@keyframes plank-fadeInUp {
    0% { opacity: 0; transform: translateY(28px);}
    100% { opacity: 1; transform: translateY(0);}
}
