/* ========================================
   DIETARY BADGES - Halal, Veg, Vegan, etc.
   ======================================== */

/* Dietary Badges Container - Bottom Left of Image */
.dietary-badges {
    position: absolute;
    bottom: 12px;
    left: 12px;
    display: flex;
    gap: 6px;
    z-index: 2;
    flex-wrap: wrap;
    max-width: calc(100% - 70px); /* Leave space for favorite button */
}

/* Individual Dietary Badge */
.dietary-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.dietary-badge i {
    font-size: 10px;
}

/* Halal Badge - Islamic Green */
.dietary-badge.halal {
    background: rgba(0, 150, 0, 0.95);
    color: white;
}

.dietary-badge.halal:hover {
    background: rgba(0, 150, 0, 1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 150, 0, 0.4);
}

/* Vegetarian Badge - Orange */
.dietary-badge.vegetarian {
    background: rgba(255, 152, 0, 0.95);
    color: white;
}

.dietary-badge.vegetarian:hover {
    background: rgba(255, 152, 0, 1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
}

/* Vegan Badge - Green */
.dietary-badge.vegan {
    background: rgba(76, 175, 80, 0.95);
    color: white;
}

.dietary-badge.vegan:hover {
    background: rgba(76, 175, 80, 1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

/* Gluten-Free Badge - Blue */
.dietary-badge.gluten-free {
    background: rgba(33, 150, 243, 0.95);
    color: white;
}

.dietary-badge.gluten-free:hover {
    background: rgba(33, 150, 243, 1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
}

/* Menu Item Dietary Icons - Inline Display (Sharp Squares) */
.menu-item-dietary-tags {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.menu-dietary-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    transition: all 0.2s ease;
    border: 2px solid;
}

.menu-dietary-icon:hover {
    transform: scale(1.1);
}

.menu-dietary-icon.halal {
    background: rgba(0, 150, 0, 0.1);
    color: #009600;
    border-color: #009600;
}

.menu-dietary-icon.vegetarian {
    background: rgba(255, 152, 0, 0.1);
    color: #FF9800;
    border-color: #FF9800;
}

.menu-dietary-icon.vegan {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
    border-color: #4CAF50;
}

.menu-dietary-icon.gluten-free {
    background: rgba(33, 150, 243, 0.1);
    color: #2196F3;
    border-color: #2196F3;
}

.menu-dietary-icon.spicy {
    background: rgba(244, 67, 54, 0.1);
    color: #F44336;
    border-color: #F44336;
}

/* Allergen Warning */
.allergen-warning {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: rgba(255, 152, 0, 0.1);
    border: 1px solid #FF9800;
    border-radius: 6px;
    font-size: 11px;
    color: #F57C00;
    margin-top: 4px;
}

.allergen-warning i {
    font-size: 10px;
}

/* Tooltip for Dietary Icons */
.dietary-tooltip {
    position: relative;
}

.dietary-tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    border-radius: 6px;
    font-size: 11px;
    white-space: nowrap;
    margin-bottom: 5px;
    z-index: 10;
}

.dietary-tooltip:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
    margin-bottom: -5px;
}

/* Certification Modal Trigger */
.halal-certified-link {
    cursor: pointer;
    text-decoration: underline;
    text-decoration-style: dotted;
}

/* Responsive */
@media (max-width: 768px) {
    .dietary-badges {
        max-width: calc(100% - 60px);
    }
    
    .dietary-badge {
        padding: 5px 10px;
        font-size: 10px;
    }
    
    .menu-dietary-icon {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }
}

