/**
 * Frontend Styles for Menu Restaurante Plugin
 */

/* Menu Display Template Styles */
.menu-restaurante-display-wrapper {
    padding: 40px 20px;
}

.menu-restaurante-display-wrapper .container {
    max-width: 1200px;
    margin: 0 auto;
}

.menu-restaurante-display-wrapper h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5em;
    color: #333;
}

/* Category Filter Styles */
.menu-categories-filter {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px;
    background: #f8f8f8;
    border-radius: 8px;
}

.category-filter-btn {
    background: #a4a4a4;
    border: 2px solid #ddd;
    padding: 10px 20px;
    margin: 5px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.category-filter-btn:hover {
    background: #f0f0f0;
    border-color: #999;
    color: black;
    text-decoration: none;
}

.category-filter-btn.active {
    background: #333;
    color: #ffffff;
    border-color: #333;
}

/* Products Grid Styles */
.menu-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.menu-product-item {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.menu-product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.menu-product-item.hidden {
    display: none;
}

.menu-product-item .product-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f5f5f5;
}

.menu-product-item .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.menu-product-item .product-content {
    padding: 20px;
}

.menu-product-item .product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.menu-product-item .product-title {
    font-size: 1.5em;
    margin: 0;
    color: #333;
    flex: 1;
}

.menu-product-item .product-price {
    font-size: 1.4em;
    font-weight: bold;
    color: #e74c3c;
    margin-left: 10px;
    white-space: nowrap;
}

.menu-product-item .product-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.menu-product-item .product-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.menu-product-item .product-category-badge {
    display: inline-block;
    background: #f0f0f0;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85em;
    color: #555;
}

.no-products-message {
    text-align: center;
    font-size: 1.2em;
    color: #999;
    padding: 60px 20px;
}

/* Manage Products Template Styles */
.menu-restaurante-manage-wrapper {
    padding: 40px 20px;
}

.menu-restaurante-manage-wrapper .container {
    max-width: 1200px;
    margin: 0 auto;
}

.menu-restaurante-manage-wrapper h1 {
    margin-bottom: 30px;
    color: #333;
}

.menu-restaurante-manage-wrapper h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    color: #555;
}

/* Form Styles */
.product-form-section,
.category-form-section {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.product-form,
.category-form {
    max-width: 600px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input[type="text"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group textarea {
    resize: vertical;
}

.button-primary {
    background: #0073aa;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.button-primary:hover {
    background: #005177;
}

/* Success Message */
.success-message {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* Products Table */
.products-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.products-table thead {
    background: #f0f0f0;
}

.products-table th,
.products-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.products-table th {
    font-weight: 600;
    color: #333;
}

.products-table td img {
    max-width: 80px;
    height: auto;
    border-radius: 4px;
}

.products-table .button {
    display: inline-block;
    padding: 8px 16px;
    background: #0073aa;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background 0.3s ease;
}

.products-table .button:hover {
    background: #005177;
}

.products-table .button-delete {
    background: #dc3545;
}

.products-table .button-delete:hover {
    background: #c82333;
}

/* Categories List */
.categories-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.categories-list li {
    background: #f0f0f0;
    padding: 15px;
    border-radius: 4px;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-products-grid {
        grid-template-columns: 1fr;
    }
    
    .products-table {
        font-size: 14px;
    }
    
    .products-table th,
    .products-table td {
        padding: 10px;
    }
    
    .category-filter-btn {
        font-size: 14px;
        padding: 8px 16px;
    }
    
    .menu-product-item .product-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .menu-product-item .product-price {
        margin-left: 0;
        margin-top: 5px;
        font-size: 1.2em;
    }
    
    .menu-product-item .product-title {
        font-size: 1.3em;
    }
}
