/* Restaurant Menu Plugin Styles */

/* Block Editor Previews */
.restaurant-menu-block-preview {
    border: 2px dashed #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    background: #f9fafb;
}

.restaurant-menu-block-preview .preview-header {
    text-align: center;
    margin-bottom: 20px;
}

.restaurant-menu-block-preview .preview-header h3 {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: bold;
    color: #111827;
}

.restaurant-menu-block-preview .preview-header p {
    margin: 0;
    color: #6b7280;
}

.restaurant-menu-block-preview .preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.restaurant-menu-block-preview .preview-item {
    background: white;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.restaurant-menu-block-preview .preview-image {
    width: 100%;
    height: 120px;
    background: #e5e7eb;
    border-radius: 6px;
    margin-bottom: 12px;
}

.restaurant-menu-block-preview .preview-content h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.restaurant-menu-block-preview .preview-content p {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #6b7280;
}

.restaurant-menu-block-preview .preview-price {
    font-weight: bold;
    color: #059669;
}

/* Menu Page Preview */
.restaurant-menu-page-preview {
    border: 2px dashed #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    background: #f9fafb;
}

.restaurant-menu-page-preview .preview-layout {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 24px;
}

.restaurant-menu-page-preview .preview-sidebar {
    background: white;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.restaurant-menu-page-preview .preview-sidebar h4 {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.restaurant-menu-page-preview .preview-categories {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.restaurant-menu-page-preview .preview-category {
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    color: #6b7280;
    background: #f3f4f6;
}

.restaurant-menu-page-preview .preview-category.active {
    background: #fef3c7;
    color: #92400e;
}

.restaurant-menu-page-preview .preview-content h3 {
    margin: 0 0 20px 0;
    font-size: 24px;
    font-weight: bold;
    color: #111827;
}

.restaurant-menu-page-preview .preview-hero-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.restaurant-menu-page-preview .preview-hero-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.restaurant-menu-page-preview .preview-hero-image {
    width: 100%;
    height: 120px;
    background: #e5e7eb;
}

.restaurant-menu-page-preview .preview-hero-content {
    padding: 16px;
}

.restaurant-menu-page-preview .preview-hero-content h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.restaurant-menu-page-preview .preview-hero-content p {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}

.restaurant-menu-page-preview .preview-menu-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.restaurant-menu-page-preview .preview-menu-item {
    display: flex;
    align-items: center;
    background: white;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.restaurant-menu-page-preview .preview-item-content {
    flex: 1;
}

.restaurant-menu-page-preview .preview-item-content h5 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.restaurant-menu-page-preview .preview-item-content p {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}

.restaurant-menu-page-preview .preview-item-image {
    width: 60px;
    height: 60px;
    background: #e5e7eb;
    border-radius: 6px;
    margin-left: 16px;
}

/* Frontend Styles */
.restaurant-featured-dishes {
    max-width: 1200px;
    margin: 0 auto;
}

.restaurant-menu-page {
    max-width: 1200px;
    margin: 0 auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .restaurant-menu-page-preview .preview-layout {
        grid-template-columns: 1fr;
    }
    
    .restaurant-menu-page-preview .preview-hero-items {
        grid-template-columns: 1fr;
    }
    
    .restaurant-menu-page-preview .preview-menu-item {
        flex-direction: column;
        text-align: center;
    }
    
    .restaurant-menu-page-preview .preview-item-image {
        margin-left: 0;
        margin-top: 12px;
    }
    
    /* Mobile optimizations for menu items */
    .menu-item {
        padding: 16px !important;
    }
    
    .menu-categories-nav {
        padding: 16px !important;
        margin-bottom: 16px;
    }
    
    .category-header {
        margin-bottom: 24px !important;
    }
    
    .hero-items {
        margin-bottom: 32px !important;
    }
    
    .regular-items .space-y-6 > * + * {
        margin-top: 16px !important;
    }
    
    /* Mobile-friendly featured dishes */
    .restaurant-featured-dishes-with-images .container {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
    
    .restaurant-featured-dishes-with-images .grid-cols-2 {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 640px) {
    /* Extra small screens */
    .menu-filter-btn {
        font-size: 14px;
        padding: 8px 12px;
    }
    
    .restaurant-menu-dynamic-filter .container {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    /* Smaller images on mobile */
    .w-20.h-20 {
        width: 16px !important;
        height: 16px !important;
    }
    
    /* Better spacing for mobile */
    .space-y-4 > * + * {
        margin-top: 12px !important;
    }
}

/* Admin styles */
.menu-item-admin-layout {
    display: flex;
    gap: 20px;
}

.menu-item-column {
    flex: 1;
}

.menu-item-field {
    margin-bottom: 20px;
}

.menu-item-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.menu-item-thumbnail img {
    max-width: 200px;
    height: auto;
    border-radius: 4px;
}

.menu-item-no-thumbnail {
    border: 2px dashed #ddd;
    padding: 20px;
    text-align: center;
    color: #666;
    border-radius: 4px;
    background: #f9f9f9;
}

.menu-item-properties label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
}

/* Loading animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 1s linear infinite;
}