/* Recipe Styles */
.mpr-recipe-container {
    max-width: 800px;
    margin: 0 auto 40px;
    font-family: inherit;
}

.mpr-recipe {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 2.5em;
    margin-bottom: 2em;
    color: #333;
}

/* Dashicon specific styles to ensure they appear correctly */
.mpr-recipe-container .dashicons {
    display: inline-block !important;
    width: 20px !important;
    height: 20px !important;
    font-size: 20px !important;
    line-height: 1 !important;
    font-family: "dashicons" !important;
    text-decoration: inherit;
    font-weight: normal;
    font-style: normal;
    vertical-align: top;
    text-align: center;
    transition: color .1s ease-in;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.mpr-recipe-title {
    font-size: 2.5em;
    margin-bottom: 0.8em;
    text-align: center;
    font-weight: 700;
    color: #333;
}

.mpr-recipe-image {
    margin-bottom: 2em;
    text-align: center;
    position: relative;
    width: 100%;
    /* 16:9 aspect ratio container using padding-bottom trick */
    padding-bottom: 56.25%; 
    overflow: hidden;
}

.mpr-recipe-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the area without distortion */
    object-position: center; /* Centers the image */
}

.mpr-icon-bar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.5em;
    gap: 0.75em;
}

.mpr-icon-bar button {
    background: #f2f2f2;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.mpr-icon-bar button:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.15);
}

.mpr-icon-bar .dashicons {
    color: #333 !important;
    font-size: 18px !important;
}

.mpr-icon-bar .dashicons-heart.mpr-saved {
    color: #e74c3c !important;
}

/* Ensure unsaved heart icons are grey and visible */
.mpr-icon-bar .dashicons-heart:not(.mpr-saved) {
    color: #666 !important;
}

/* More specific targeting for Font Awesome heart icons to ensure visibility */
.mpr-recipe-save-button .fa-heart,
.mpr-recipe-save-button .fa-regular,
.mpr-recipe-save-button .fa-solid {
    color: #666 !important;
}

/* Ensure unsaved hearts are specifically grey, not white */
.mpr-recipe-save-button:not(.mpr-saved) i,
.mpr-recipe-save-button:not(.mpr-saved) .fa-heart {
    color: #666 !important;
}

/* Login button heart should also be grey */
.mpr-recipe-login-button i,
.mpr-recipe-login-button .fa-heart {
    color: #666 !important;
}

.mpr-overview-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5em;
    margin-bottom: 2em;
    padding: 1.2em 1.5em;
    background-color: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #4CAF50;
}

.mpr-overview-bar span {
    display: flex;
    align-items: center;
    gap: 0.5em;
    font-size: 0.95em;
}

.mpr-overview-bar .dashicons {
    color: #4CAF50 !important;
    font-size: 1.2em !important;
}

.mpr-overview-bar select {
    font-size: 0.95em;
    padding: 2px 4px;
    border-radius: 4px;
    border: 1px solid #ddd;
    background-color: #fff;
}

.mpr-units-switcher {
    margin-bottom: 1.5em;
    display: flex;
    align-items: center;
    gap: 0.5em;
    justify-content: flex-end;
}

.mpr-units-switcher select {
    padding: 5px 8px;
    border-radius: 4px;
    border: 1px solid #ddd;
    background-color: #fff;
    font-size: 0.9em;
}

.mpr-recipe-description {
    margin-bottom: 2.5em;
    line-height: 1.6;
}

.mpr-ingredients, .mpr-directions {
    margin-bottom: 2.5em;
}

.mpr-ingredients h2, .mpr-directions h2 {
    font-size: 1.6em;
    margin-bottom: 1em;
    padding-bottom: 0.5em;
    border-bottom: 2px solid #f0f0f0;
    font-weight: 600;
    color: #333;
}

.mpr-ingredients ul {
    list-style: none;
    padding-left: 0.5em;
}

.mpr-ingredients li {
    display: flex;
    align-items: center;
    padding: 0.5em 0;
    border-bottom: 1px dotted #f0f0f0;
    line-height: 1.5;
}

.mpr-ingredients input[type="checkbox"] {
    margin-right: 1em;
    transform: scale(1.2);
    accent-color: #4CAF50;
}

.mpr-directions ol {
    padding-left: 1.2em;
    counter-reset: item;
    list-style-type: none;
}

.mpr-directions li {
    margin-bottom: 1.2em;
    position: relative;
    padding-left: 2em;
    counter-increment: item;
    line-height: 1.6;
}

.mpr-directions li:before {
    content: counter(item);
    background: #4CAF50;
    border-radius: 50%;
    color: white;
    width: 1.5em;
    height: 1.5em;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 0;
    top: 0;
    font-size: 0.9em;
    font-weight: bold;
}

.mpr-notes {
    margin-top: 2em;
    padding: 1.5em;
    background-color: #fff9e6;
    border-radius: 8px;
    border-left: 4px solid #FFD54F;
}

.mpr-notes h3 {
    margin-top: 0;
    color: #333;
    font-size: 1.3em;
    margin-bottom: 0.8em;
    font-weight: 600;
}

.mpr-dietary-tags {
    margin-bottom: 2em;
    padding: 1em 1.5em;
    background-color: #f1f8e9;
    border-radius: 8px;
}

.mpr-dietary-tags h3 {
    margin-top: 0;
    color: #333;
    font-size: 1.3em;
    margin-bottom: 0.5em;
    font-weight: 600;
}

.mpr-recipe-author {
    margin-top: 3em;
    display: flex;
    align-items: center;
    gap: 1em;
    background-color: #f5f5f5;
    padding: 1.2em;
    border-radius: 8px;
}

.mpr-recipe-author h3 {
    margin: 0;
    font-size: 1.1em;
    color: #555;
    font-weight: 600;
}

.mpr-avatar {
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    width: 50px;
    height: 50px;
}

.mpr-recipe-rating {
    margin-top: 2em;
    text-align: center;
}

.mpr-recipe-rating h3 {
    font-size: 1.2em;
    margin-bottom: 0.5em;
    font-weight: 600;
    color: #333;
}

.mpr-stars {
    display: flex;
    justify-content: center;
    gap: 0.3em;
    margin-bottom: 0.5em;
}

.mpr-stars .dashicons {
    color: #FFD700 !important;
    font-size: 1.5em !important;
}

.mpr-stars .mpr-empty {
    color: #ddd !important;
}

/* Simplified modal */
.mpr-simplified-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 1em;
}

.mpr-modal-content {
    background-color: white;
    border-radius: 8px;
    padding: 2em;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.mpr-close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: #555;
}

.mpr-close-modal:hover {
    color: #000;
}

@media (max-width: 768px) {
    .mpr-recipe {
        padding: 1.5em;
    }
    .mpr-overview-bar {
        flex-direction: column;
        gap: 0.8em;
        padding: 1em;
    }
    .mpr-recipe-title {
        font-size: 1.8em;
    }
    .mpr-ingredients h2, .mpr-directions h2 {
        font-size: 1.4em;
    }
}

/* Print styles */
@media print {
    .mpr-recipe-container {
        max-width: 100%;
    }
    .mpr-recipe {
        box-shadow: none;
        padding: 0;
    }
    .mpr-icon-bar, .mpr-units-switcher, .mpr-recipe-rating {
        display: none;
    }
}

/* Add specific styles for featured images */
.mpr-recipe-featured-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Recipe archive/listing image styles */
.mpr-recipe-card .mpr-recipe-featured-image {
    aspect-ratio: 16/9;
    width: 100%;
    height: auto;
    object-fit: cover;
} 