/* Mad.tol.dk — Custom styles on top of Tailwind */

/* ── Star rating input ──────────────────────────────────────────────────────── */
.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 2px;
}

.star-rating input[type="radio"] {
    display: none;
}

.star-rating label {
    font-size: 1.75rem;
    color: #d1d5db;
    cursor: pointer;
    transition: color 0.15s;
    line-height: 1;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
    color: #f59e0b;
}

/* ── Meal image placeholder ──────────────────────────────────────────────────── */
.meal-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* ── Tag badges ──────────────────────────────────────────────────────────────── */
.tag-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

/* ── Recipe content (nl2br) ──────────────────────────────────────────────────── */
.recipe-text {
    white-space: pre-wrap;
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #374151;
}

/* ── Card hover lift ─────────────────────────────────────────────────────────── */
.card-hover {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
}

/* ── Smooth nav highlight ────────────────────────────────────────────────────── */
.nav-link {
    position: relative;
    padding-bottom: 2px;
}
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: #f59e0b;
    border-radius: 2px;
}

/* ── Prose / recipe instructions ─────────────────────────────────────────────── */
.prose-recipe h2, .prose-recipe h3 {
    font-weight: 600;
    margin: 1rem 0 0.4rem;
}
.prose-recipe ul {
    list-style: disc;
    padding-left: 1.25rem;
}
.prose-recipe ol {
    list-style: decimal;
    padding-left: 1.25rem;
}

/* ── Toast flash ─────────────────────────────────────────────────────────────── */
#flash-toast {
    animation: slideIn 0.3s ease;
}
@keyframes slideIn {
    from { transform: translateY(-12px); opacity: 0; }
    to   { transform: translateY(0);     opacity: 1; }
}

/* ── Mobile bottom nav spacing ───────────────────────────────────────────────── */
@media (max-width: 640px) {
    body {
        padding-bottom: 4.5rem;
    }
}
