/* Recipe Main Image */
.recipe-main-card {
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.main-img {
    height: 450px;
    width: 100%;
    object-fit: cover;
    border-radius: 16px;
    /* Tambahin ini biar pojokannya cantik, Ma */
}

/* Ukuran khusus Mobile (Layar HP) */
@media (max-width: 768px) {
    .main-img {
        height: 280px;
        /* Ukuran yang pas buat jempol mama-mama pas nge-scroll */
        border-radius: 12px;
    }
}

/* Ingredients Box */
.ingredients-box {
    background-color: #f9fbfd;
    border-radius: 15px;
    border-left: 4px solid #ffb74d;
    /* Warna Aksen LittleMenu Mama */
    line-height: 1.8;
}

/* Nutrition Card ala Dashboard */
.nutrition-card,
.info-card {
    border-radius: 20px;
    background: #fff;
}

.nutrition-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.nutrition-item {
    padding: 15px;
    background: #fff9f0;
    border-radius: 12px;
    text-align: center;
}

.nutrition-item .label {
    display: block;
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
}

.nutrition-item .value {
    font-weight: 700;
    color: #ffb74d;
    font-size: 1.1rem;
}

.rounded-12 {
    border-radius: 12px; 
}

.line-item {
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
    color: #444;
    display: flex;
    align-items: center;
}

.custom-list .line-item::before {
    content: "•";
    color: #ffb74d;
    font-weight: bold;
    margin-right: 12px;
}

/* Hilangkan garis di item terakhir biar gak aneh */
.line-item:last-child {
    border-bottom: none;
}

/* Container Instruksi */
.custom-steps {
    margin-top: 20px;
}

/* Item Langkah */
.step-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f9f9f9;
}

/* Lingkaran Nomor */
.step-number {
    background-color: #fff9f0;
    /* Warna krem lembut */
    color: #ffb74d;
    /* Warna orange Mama */
    font-weight: 700;
    min-width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    margin-right: 15px;
    border: 1px solid #ffb74d;
}

/* Teks Instruksi */
.step-text {
    flex: 1;
    color: #555;
    line-height: 1.6;
    font-size: 1.05rem;
    padding-top: 2px;
}

.step-item:last-child {
    border-bottom: none;
}

/* Gallery Container */
.recipe-gallery {
    gap: 10px;
}

.gallery-item {
    width: 80px;
    height: 80px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.thumb-img:hover {
    border-color: #ffb74d;
    /* Warna orange Mama */
}

/* Gambar utama biar smooth pas ganti */
#mainRecipeImage {
    transition: opacity 0.3s ease-in-out;
    border-radius: 20px;
}

/* Floating Allergy Style */
.allergy-floating {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
    display: flex;
    gap: 8px;
}

.badge-allergy {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    color: #d9534f;
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(217, 83, 79, 0.2);
}

/* Meal Time Tag */
.meal-time-tag {
    position: absolute;
    bottom: 15px;
    right: 15px;
    /* Di pojok kanan bawah */
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-family: 'Alan Sans Regular', sans-serif;
    font-weight: bold;
    /* Sesuai request Mama tadi, kita buat bold */
    color: #ff9800;
    /* Warna orange agar kontras dengan Meal Time */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    backdrop-filter: blur(4px);
}


.texture-tag {
    position: absolute;
    bottom: 15px;
    right: 90px;
    /* Di pojok kanan bawah */
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-family: 'Alan Sans Regular', sans-serif;
    font-weight: bold;
    /* Sesuai request Mama tadi, kita buat bold */
    color: #ff9800;
    /* Warna orange agar kontras dengan Meal Time */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    backdrop-filter: blur(4px);
    /* Efek kaca kekinian */
}

.texture-tag i {
    margin-right: 5px;
}

/* Card Styling Update */
.nutrition-card {
    background: linear-gradient(145deg, #ffffff, #fffcf9);
    border-radius: 24px !important;
}

.nutrition-item {
    border: none !important;
    background: #ffffff !important;
    box-shadow: 0 4px 10px rgba(255, 183, 77, 0.1);
    border-radius: 16px !important;
}

.info-card {
    border-radius: 24px !important;
    background: #f8f9fa;
}

/* Ingredients & Steps Decoration */
.badge-icon {
    background: linear-gradient(45deg, #ffb74d, #ffa726);
    box-shadow: 0 4px 10px rgba(255, 183, 77, 0.3);
}

.custom-list .line-item {
    border-bottom: 1px dashed #eee !important;
    /* Gaya garis putus-putus lebih chic */
}

/* Warna khusus ikon-ikon di LittleMenu */
.bi-exclamation-circle-fill {
    color: #d9534f;
    /* Merah Peringatan */
}

.bi-clock {
    color: #ffb74d;
    /* Orange khas Mama */
}

.bi-egg-fried,
.bi-sun {
    color: #ffa726;
}

/* Gaya List Mikronutrisi */
.micro-nutrition-list {
    border-top: 1px dashed #eee !important;
}

.micro-label {
    font-size: 0.85rem;
    color: #777;
    font-weight: 500;
}

.micro-value {
    font-size: 0.85rem;
    color: #333;
    font-weight: 700;
}

/* Mempercantik unit satuan */
.nutrition-item .value small {
    font-size: 0.65rem;
    text-transform: lowercase;
    margin-left: 2px;
}

/* Efek Hover di Sidebar agar Interaktif */
.nutrition-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.3s ease;
}

/* Ukuran standar untuk Desktop */
.recipe-title {
    font-size: 2.5rem;
    line-height: 1.5;
    word-wrap: break-word;
}

/* Ukuran khusus untuk Mobile (Layar di bawah 768px) */
@media (max-width: 767.98px) {
    .recipe-title {
        font-size: 1.7rem;
        /* Ukuran lebih manis untuk jempol Mama */
        margin-bottom: 1rem !important;
        /* Kurangi jarak bawahnya juga */
    }
}

/* Style Tombol Favorit */
.btn-favorite-floating {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-favorite-floating:hover {
    transform: scale(1.1);
    background: #ffffff;
}

.btn-favorite-floating i {
    font-size: 20px;
    color: #ccc; /* Warna default abu-abu */
    transition: color 0.3s;
}

/* Warna saat sudah aktif (Favorited) */
.btn-favorite-floating.active i {
    color: #dd5c36; /* Warna utama Little Menu ID */
}

.btn-favorite-floating.active i::before {
    content: "\f415"; /* Kode Bootstrap Icon untuk Heart-Fill */
}