/**
 * Recipe Widget Styles
 */

.rwe-recipe-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    margin: 20px 0;
}

/* Actions */
.rwe-recipe-actions {
    text-align: right;
    margin-bottom: 20px;
}

.rwe-print-recipe-btn {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    background: #3498db;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.rwe-print-recipe-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.rwe-button-icon {
    display: inline-flex;
    align-items: center;
}

.rwe-button-icon svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}

/* Image */
.rwe-recipe-image {
    margin-bottom: 25px;
}

.rwe-recipe-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

/* Header */
.rwe-recipe-header {
    margin-bottom: 25px;
}

.rwe-recipe-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 15px 0;
    color: #2c3e50;
}

.rwe-recipe-summary {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    font-style: italic;
}

/* Meta */
.rwe-recipe-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 25px;
}

.rwe-meta-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.rwe-meta-icon {
    font-size: 24px;
    color: #3498db;
    margin-bottom: 5px;
}

.rwe-meta-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.rwe-meta-label {
    display: block;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    color: #7f8c8d;
    margin-bottom: 5px;
}

.rwe-meta-value {
    display: block;
    font-size: 18px;
    color: #2c3e50;
    font-weight: 500;
}

/* Details */
.rwe-recipe-details {
    margin-bottom: 25px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.rwe-detail-item {
    padding: 8px 0;
}

.rwe-detail-label {
    font-weight: 600;
    color: #7f8c8d;
    margin-right: 8px;
}

.rwe-detail-value {
    color: #2c3e50;
}

/* Sections */
.rwe-section-title {
    font-size: 24px;
    font-weight: 700;
    margin: 30px 0 15px 0;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 8px;
}

/* Ingredients */
.rwe-recipe-ingredients {
    margin-bottom: 30px;
}

.rwe-ingredients-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rwe-ingredient-item {
    padding: 10px 0;
    border-bottom: 1px dotted #ddd;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.rwe-ingredient-icon {
    flex-shrink: 0;
    color: #3498db;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
}

.rwe-ingredient-icon svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}

.rwe-ingredient-text {
    flex: 1;
}

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

/* Instructions */
.rwe-recipe-instructions {
    margin-bottom: 30px;
}

.rwe-instructions-list {
    counter-reset: step-counter;
    list-style: none;
    padding: 0;
    margin: 0;
}

.rwe-instruction-item {
    counter-increment: step-counter;
    padding: 15px 0 15px 50px;
    position: relative;
    margin-bottom: 15px;
}

.rwe-instruction-item:before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 15px;
    width: 35px;
    height: 35px;
    background: #3498db;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
}

/* Notes */
.rwe-recipe-notes {
    margin-top: 30px;
}

.rwe-notes-content {
    padding: 20px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .rwe-recipe-card {
        padding: 20px;
    }

    .rwe-recipe-title {
        font-size: 24px;
    }

    .rwe-section-title {
        font-size: 20px;
    }

    .rwe-recipe-meta {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .rwe-recipe-meta {
        grid-template-columns: 1fr;
    }
}
