/* Han Food Menu - Frontend Styles */

.hfm-menu-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 10px 40px;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.hfm-category-block {
    background: #000;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.09);
    padding: 24px 24px 28px;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
}

.hfm-category-block::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.9;
    pointer-events: none;
}

.hfm-category-title {
    position: relative;
    margin: 0 0 20px;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.01em;
}

.hfm-items-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
}

.hfm-card {
    background: #ffff;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hfm-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.16);
}

.hfm-card-image {
    position: relative;
    height: 150px;
    background: linear-gradient(135deg, #f97316, #facc15);
    display: flex;
    align-items: stretch;
    justify-content: center;
    overflow: hidden;
}

.hfm-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hfm-card-image-placeholder {
    padding: 14px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #111827;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hfm-card-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hfm-card-title {
    margin: 0;
    font-size: 1rem;
    line-height: 1.3;
    font-weight: 700;
    color: #111827;
}

.hfm-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.82rem;
    color: #6b7280;
}

.hfm-card-category {
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.06);
    border: 1px solid rgba(249, 115, 22, 0.28);
    color: #92400e;
    font-weight: 500;
}

.hfm-card-rating {
    font-size: 0.82rem;
    color: #fbbf24;
    letter-spacing: 1px;
}

.hfm-order-btn {
    margin-top: 4px;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 999px;
    background: #E9DC44
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 8px 16px rgba(234, 88, 12, 0.42);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.hfm-order-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(234, 88, 12, 0.6);
    filter: brightness(1.03);
}

.hfm-order-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(234, 88, 12, 0.5);
}

/* Modal */

.hfm-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.hfm-modal-overlay.hfm-active {
    display: flex;
}

.hfm-modal {
    background: #ffffff;
    border-radius: 18px;
    padding: 20px 20px 18px;
    width: 100%;
    max-width: 340px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.45);
    position: relative;
}

.hfm-modal-title {
    margin: 0 0 12px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
}

.hfm-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: none;
    background: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: #6b7280;
}

.hfm-modal-platforms {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hfm-modal-platforms li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    border-radius: 999px;
    text-decoration: none;
    background: #f9fafb;
    color: #111827;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid #e5e7eb;
    transition: background 0.15s ease, transform 0.12s ease, box-shadow 0.12s ease;
}

.hfm-modal-platforms li a:hover {
    background: #f97316;
    color: #ffffff;
    border-color: #ea580c;
    box-shadow: 0 8px 20px rgba(234, 88, 12, 0.5);
    transform: translateY(-1px);
}

.hfm-modal-platforms li i {
    font-size: 1rem;
}

/* Responsive */

@media (max-width: 768px) {
    .hfm-menu-wrapper {
        padding: 16px 10px 32px;
    }

    .hfm-category-block {
        border-radius: 16px;
        padding: 18px 16px 20px;
    }

    .hfm-items-grid {
        grid-template-columns: 1fr;
    }

    .hfm-card {
        border-radius: 16px;
    }
}
