/* Import Inter font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

body {
    font-family: 'Inter', sans-serif;
}

.gradient-bg {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.recipe-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.nav-link::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #4b5563;
    transition: width .3s;
}

.nav-link:hover::after {
    width: 100%;
}

/* Product page specific styles */
.product-card {
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.15);
}

.filter-btn {
    transition: all 0.3s ease;
}

.filter-btn.active {
    background-color: #1f2937;
    color: white;
    border-color: #1f2937;
}

.filter-btn:hover:not(.active) {
    border-color: #1f2937;
    color: #1f2937;
}

/* Common food safety styles used across pages */
.food-card.safe {
    border-color: #4ade80;
}

.food-card.unsafe {
    border-color: #f87171;
}

.food-card.caution {
    border-color: #facc15;
}

.category-tab {
    transition: all 0.3s ease;
}

.category-tab.active {
    border-bottom-width: 3px;
    border-bottom-color: #6366f1;
}

.tooltip {
    visibility: hidden;
    width: 200px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip-container:hover .tooltip {
    visibility: visible;
    opacity: 1;
}