/* Dinner App — Custom Styles */

/* Smooth transitions on interactive elements */
button, a {
    transition: opacity 0.15s ease, background-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

/* Vote button active press effect */
.vote-btn:active {
    transform: scale(0.94);
}

/* Card shadow */
.card {
    box-shadow: 0 1px 3px rgba(0,0,0,.07), 0 4px 12px rgba(0,0,0,.04);
}

/* Meal image fallback gradient */
.meal-img-placeholder {
    background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%);
}

/* Checked shopping item — strike through text */
.item-checked label {
    text-decoration: line-through;
    opacity: 0.45;
}

/* Category badge colors */
.badge-produce  { background-color: #dcfce7; color: #15803d; }
.badge-dairy    { background-color: #dbeafe; color: #1d4ed8; }
.badge-meat     { background-color: #fee2e2; color: #b91c1c; }
.badge-pantry   { background-color: #fef9c3; color: #92400e; }
.badge-frozen   { background-color: #e0f2fe; color: #0369a1; }
.badge-other    { background-color: #f3f4f6; color: #6b7280; }

/* Loading spinner */
.spinner {
    border: 3px solid #e5e7eb;
    border-top-color: #f97316;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 0.7s linear infinite;
    display: inline-block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Toast notification */
.toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: #1c1917;
    color: #fff;
    padding: 10px 20px;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    z-index: 9999;
    white-space: nowrap;
    pointer-events: none;
}

/* Fade-in animation for vote cards */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.fade-in {
    animation: fadeIn 0.25s ease forwards;
}
