/**
 * Menu Card Base Styles
 * Gemensamma stilar för alla menu card-varianter
 */

/* ======================
   COMMON IMAGE STYLES
   ====================== */

.menu-item .menu-item-image {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.menu-item .menu-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.menu-item .placeholder-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    opacity: 0.6;
}

/* ======================
   COMMON BADGES
   ====================== */

.menu-item .menu-item-badges {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    z-index: 2;
}

.menu-item .badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.menu-item .badge.popular {
    background: rgba(255, 215, 0, 0.95);
    color: #856404;
}

.menu-item .badge.new {
    background: rgba(76, 175, 80, 0.95);
    color: white;
}

.menu-item .badge.chef-special {
    background: rgba(193, 39, 45, 0.95);
    color: white;
}

/* ======================
   COMMON TYPOGRAPHY
   ====================== */

.menu-item .menu-item-title {
    font-weight: 700;
    color: var(--text, #333);
    margin: 0;
    line-height: 1.3;
}

.menu-item .menu-item-price {
    font-weight: 800;
    color: var(--accent, #C1272D);
    white-space: nowrap;
}

/* ======================
   COMMON META INFORMATION
   ====================== */

.menu-item-description {
    font-size: 0.9rem;
    color: var(--muted, #666);
    line-height: 1.5;
    margin: 0 0 16px 0;
    font-style: italic;
}

.menu-item-meta {
    border-top: 1px solid #e2e8f0;
    padding-top: 16px;
    margin-top: 16px;
}

.meta-row {
    display: flex;
    margin-bottom: 8px;
    font-size: 0.85rem;
}

.meta-label {
    font-weight: 600;
    color: #2d3748;
    min-width: 100px;
    flex-shrink: 0;
}

.meta-value {
    color: #4a5568;
    line-height: 1.4;
}

.menu-item-details {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: #4a5568;
    background: #f7fafc;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.detail-item.status-inactive {
    background: #fed7d7;
    color: #c53030;
    border-color: #feb2b2;
}

/* ======================
   COMMON HOVER EFFECTS
   ====================== */

.menu-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}
