/*
 * FINAL CORRECTED STYLESHEET (v1.4.0)
 * This version contains highly specific rules to prevent theme conflicts.
 * It fixes:
 * 1. The "edges" issue on the main website.
 * 2. The critical bug where card content overlays the image.
*/

/* --- GRID LAYOUT --- */
.elementor-widget-container .recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin: 20px auto;
    box-sizing: border-box;
}

/* --- CARD STRUCTURE --- */
.elementor-widget-container .recipe-card {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.elementor-widget-container .recipe-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* --- IMAGE AREA --- */
.elementor-widget-container .card-image {
    height: 200px;
    background-color: #f1f3f5;
    flex-shrink: 0;
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.elementor-widget-container .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- CONTENT AREA (BELOW IMAGE) --- */
.elementor-widget-container .card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: static;
    background: none;
    z-index: auto;
}

.elementor-widget-container .card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.elementor-widget-container .title-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.elementor-widget-container .title-section .icon {
    font-size: 1.5rem;
    margin-top: -2px;
}

.elementor-widget-container .title-section h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
}

.elementor-widget-container .card-price {
    font-size: 1rem;
    font-weight: 700;
    color: #28a745;
    background-color: #eaf6ec;
    padding: 4px 8px;
    border-radius: 8px;
    white-space: nowrap;
}

.elementor-widget-container .card-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #6c757d;
    margin-bottom: 16px;
}

.elementor-widget-container .card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.elementor-widget-container .tag {
    background-color: #e9ecef;
    color: #495057;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* --- LEVEL INDICATORS --- */
.elementor-widget-container .card-level {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.elementor-widget-container .level-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
}

.elementor-widget-container .level-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #495057;
    width: 90px;
    flex-shrink: 0;
}

.elementor-widget-container .level-icons {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.elementor-widget-container .level-icon {
    width: 18px;
    height: 18px;
}
.elementor-widget-container .level-icon.star { color: #ffc107; }
.elementor-widget-container .level-icon.spice { color: #e5534b; }

/* --- FOOTER & VOTING --- */
.elementor-widget-container .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-top: 1px solid #e9ecef;
    background-color: #fcfcfc;
    margin-top: auto;
    position: relative;
    z-index: 2;
}

.elementor-widget-container .vote-section {
    display: flex;
    align-items: center;
    gap: 8px;
}

.elementor-widget-container .vote-btn {
    background: none; border: none; cursor: pointer; padding: 6px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.elementor-widget-container .vote-btn svg { width: 20px; height: 20px; color: #868e96; transition: color 0.2s ease; }
.elementor-widget-container .vote-btn:hover { background-color: #e9ecef; }
.elementor-widget-container .vote-btn:active { transform: scale(0.9); }
.elementor-widget-container .vote-btn.voted svg { color: #007bff; }
.elementor-widget-container .vote-btn.downvoted svg { color: #dc3545; }

.elementor-widget-container .vote-count {
    font-size: 1rem;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
    transition: transform 0.2s ease;
}
.elementor-widget-container .vote-count.pop { animation: pop 0.3s ease; }
@keyframes pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Remove any global or body/html background or margin rules from this file to prevent affecting the dashboard or other site areas. */
