/* Hero Image Styling */
.recipe-detail-hero {
    position: relative;
    width: 100%;
    height: 50vh;
    min-height: 350px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.recipe-detail-hero .hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* Creates a gradient so the top is dark (for navbar) and bottom fades to clear */
    background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,0) 100%);
}

/* Modal Star Rating Widget 
   Uses a flex-direction reverse trick so hovering over a lower star 
   highlights all the previous stars!
*/
.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    gap: 10px;
}

.star-rating input {
    display: none; /* Hide the actual radio buttons */
}

.star-rating label {
    cursor: pointer;
    font-size: 2.5rem;
    color: #ddd; /* Empty star color */
    transition: color 0.2s ease-in-out;
}

/* Hover logic */
.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
    color: #ffc107; /* Bootstrap Warning Yellow */
}

/* ==========================================
   NEW UX FIXES (Hover & Background)
   ========================================== */
.recipe-page-bg {
    background-color: #ffebeb; /* CookLoop Light Pink */
}

/* Make the new Back Button feel premium on hover */
.back-btn-hover:hover {
    transform: translateX(-3px);
    transition: transform 0.2s ease-in-out;
}