/**
 * XLL Restaurant Menu - Frontend Styles
 */

/* Category Section */
.xll-menu-category-section {
    margin-bottom: 2.5rem;
}

.xll-menu-category-section:last-child {
    margin-bottom: 0;
}

.xll-category-title {
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.5;
    margin: 0 0 1.5rem 0;
    text-align: center;
    color: #030213;
}

@media (min-width: 640px) {
    .xll-menu-category-section {
        margin-bottom: 3.5rem;
    }

    .xll-category-title {
        margin: 0 0 2rem 0;
    }
}

@media (min-width: 1024px) {
    .xll-menu-category-section {
        margin-bottom: 4rem;
    }

    .xll-category-title {
        font-size: 1.5rem;
    }
}

.xll-category-description {
    text-align: center;
    color: #6b7280;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

@media (min-width: 640px) {
    .xll-category-description {
        margin-bottom: 2rem;
    }
}

/* Menu List */
.xll-restaurant-menu-list {
    display: grid;
    gap: 1rem;
    margin: 0;
}

@media (min-width: 640px) {
    .xll-restaurant-menu-list {
        gap: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .xll-restaurant-menu-list {
        gap: 2rem;
    }
}

.xll-restaurant-menu-list.columns-1 {
    grid-template-columns: 1fr;
}

.xll-restaurant-menu-list.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.xll-restaurant-menu-list.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.xll-restaurant-menu-list.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Responsive */
@media (max-width: 1024px) {
    .xll-restaurant-menu-list.columns-3,
    .xll-restaurant-menu-list.columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .xll-restaurant-menu-list {
        grid-template-columns: 1fr !important;
    }
}

/* Menu Item */
.xll-menu-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.xll-menu-item:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.xll-menu-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.xll-menu-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.xll-menu-content {
    padding: 1rem;
}

@media (min-width: 640px) {
    .xll-menu-content {
        padding: 1.25rem;
    }
}

@media (min-width: 1024px) {
    .xll-menu-content {
        padding: 1.5rem;
    }
}

.xll-menu-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    color: #111827;
    line-height: 1.4;
}

@media (min-width: 640px) {
    .xll-menu-title {
        font-size: 1.25rem;
        margin: 0 0 1rem 0;
    }
}

.xll-menu-description {
    font-size: 0.8125rem;
    color: #6b7280;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

@media (min-width: 640px) {
    .xll-menu-description {
        font-size: 0.875rem;
        margin-bottom: 1rem;
        line-height: 1.6;
    }
}

.xll-menu-description p {
    margin: 0 0 0.5rem 0;
}

.xll-menu-description p:last-child {
    margin-bottom: 0;
}

/* Tags */
.xll-menu-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 0.75rem;
}

@media (min-width: 640px) {
    .xll-menu-tags {
        gap: 0.5rem;
        margin-bottom: 1rem;
    }
}

.xll-menu-tag {
    display: inline-block;
    padding: 0.1875rem 0.625rem;
    background: #f3f4f6;
    color: #374151;
    font-size: 0.6875rem;
    border-radius: 9999px;
    font-weight: 500;
}

@media (min-width: 640px) {
    .xll-menu-tag {
        padding: 0.25rem 0.75rem;
        font-size: 0.75rem;
    }
}

/* Price */
.xll-menu-price {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: stretch;
    padding-top: 0.75rem;
    border-top: 1px solid #e5e7eb;
}

@media (min-width: 640px) {
    .xll-menu-price {
        flex-direction: row;
        gap: 1rem;
        align-items: center;
        padding-top: 1rem;
    }
}

.xll-price-lunch,
.xll-price-dinner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.xll-price-label {
    font-size: 0.8125rem;
    color: #6b7280;
}

@media (min-width: 640px) {
    .xll-price-label {
        font-size: 0.875rem;
    }
}

.xll-price-amount {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
}

@media (min-width: 640px) {
    .xll-price-amount {
        font-size: 1.125rem;
    }
}

/* Single Menu Item */
.xll-restaurant-menu-single {
    max-width: 800px;
    margin: 2rem auto;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.xll-restaurant-menu-single .xll-menu-image {
    aspect-ratio: 16 / 9;
}

.xll-restaurant-menu-single .xll-menu-content {
    padding: 2rem;
}

.xll-restaurant-menu-single .xll-menu-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.xll-restaurant-menu-single .xll-menu-description {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.xll-restaurant-menu-single .xll-menu-price {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
}

.xll-restaurant-menu-single .xll-price-lunch,
.xll-restaurant-menu-single .xll-price-dinner {
    width: 100%;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 6px;
}

/* Error & No items messages */
.xll-menu-error,
.xll-menu-no-items {
    padding: 1rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    color: #991b1b;
    margin: 1rem 0;
}

.xll-menu-no-items {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #4b5563;
}
