/**
 * Image Loader CSS - Styles for asynchronous image loading
 */

/* Image Placeholder */
.mpr-image-placeholder {
    position: relative;
    min-height: 200px;
    background-color: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

/* Loading Indicator */
.mpr-image-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    width: 100%;
}

.mpr-image-loading .spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #3498db;
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 10px;
}

.mpr-image-loading p {
    color: #666;
    font-size: 14px;
    margin: 5px 0 0 0;
}

/* Loaded Image */
.mpr-image-loaded {
    min-height: auto;
    background-color: transparent;
}

.mpr-recipe-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

/* Animation for spinner */
@keyframes spin {
    to { transform: rotate(360deg); }
} 