/* Frontend Styles for Restaurant Menu Manager */

.rmm-menu {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Navigation Tabs */
.rmm-nav {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 50px;
    padding: 8px;
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.rmm-nav-item {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: none;
    padding: 15px 25px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.rmm-nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

.rmm-nav-item:hover::before {
    left: 100%;
}

.rmm-nav-item:hover {
    color: white;
    transform: translateY(-2px);
}

.rmm-nav-item.active {
    background: linear-gradient(135deg, #F59E0B, #EF4444);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    transform: translateY(-2px);
}

.rmm-nav-item.active::before {
    display: none;
}

.rmm-nav-icon {
    font-size: 16px;
}

/* Section Content */
.rmm-section {
    display: none;
    animation: fadeIn 0.5s ease;
}

.rmm-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.rmm-section-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 40px 0;
}

.rmm-section-title {
    font-size: 3em;
    font-weight: 300;
    color: #1f2937;
    margin: 0 0 15px 0;
    position: relative;
    display: inline-block;
}

.rmm-section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #F59E0B, #EF4444);
    border-radius: 2px;
}

.rmm-section-description {
    color: #6b7280;
    font-size: 1.2em;
    font-style: italic;
    margin: 0;
}

/* Products Grid */
.rmm-products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* Product Card */
.rmm-product {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid #f3f4f6;
}

.rmm-product:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.rmm-product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #f3f4f6;
}

.rmm-product-content {
    padding: 25px;
    position: relative;
}

.rmm-product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.rmm-product-name {
    font-size: 1.3em;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    line-height: 1.3;
    flex: 1;
    margin-right: 15px;
}

.rmm-product-price {
    font-size: 1.4em;
    font-weight: 700;
    color: #F59E0B;
    white-space: nowrap;
}

.rmm-product-price::after {
    content: ' €';
    font-size: 0.9em;
    color: #6b7280;
}

.rmm-product-description {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 14px;
}

.rmm-product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.rmm-product-tag {
    background: linear-gradient(135deg, #F59E0B, #EF4444);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.rmm-product-badges {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rmm-product-badge {
    background: #EF4444;
    color: white;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

.rmm-product-badge.featured {
    background: #8B5CF6;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4);
}

.rmm-product-badge.recommended {
    background: #10B981;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

/* Buy Now Button */
.rmm-product-actions {
    margin-top: 20px;
}

.rmm-buy-btn {
    background: linear-gradient(135deg, #1f2937, #374151);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-size: 13px;
    position: relative;
    overflow: hidden;
}

.rmm-buy-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.rmm-buy-btn:hover::before {
    left: 100%;
}

.rmm-buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(31, 41, 55, 0.4);
}

/* Empty State */
.rmm-empty {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.rmm-empty-icon {
    font-size: 4em;
    margin-bottom: 20px;
    opacity: 0.5;
}

.rmm-empty-text {
    font-size: 1.2em;
    margin: 0;
}

/* Special Styles */
.rmm-product.featured {
    border: 2px solid #8B5CF6;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.02), rgba(139, 92, 246, 0.05));
}

.rmm-product.recommended {
    border: 2px solid #10B981;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.02), rgba(16, 185, 129, 0.05));
}

/* Rating Stars */
.rmm-product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 15px;
}

.rmm-stars {
    display: flex;
    gap: 2px;
}

.rmm-star {
    color: #F59E0B;
    font-size: 14px;
}

.rmm-star.empty {
    color: #d1d5db;
}

.rmm-rating-text {
    font-size: 12px;
    color: #6b7280;
    margin-left: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .rmm-menu {
        padding: 15px;
    }
    
    .rmm-nav {
        padding: 6px;
        border-radius: 30px;
    }
    
    .rmm-nav-item {
        padding: 12px 18px;
        font-size: 12px;
    }
    
    .rmm-nav-icon {
        font-size: 14px;
    }
    
    .rmm-section-title {
        font-size: 2.2em;
    }
    
    .rmm-products {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .rmm-product-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .rmm-product-name {
        margin-right: 0;
    }
    
    .rmm-product-price {
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .rmm-nav {
        flex-direction: column;
        border-radius: 20px;
    }
    
    .rmm-nav-item {
        width: 100%;
        justify-content: center;
        padding: 15px;
    }
    
    .rmm-section-title {
        font-size: 1.8em;
    }
    
    .rmm-product-content {
        padding: 20px;
    }
    
    .rmm-section-header {
        padding: 30px 0;
        margin-bottom: 30px;
    }
}

/* Print Styles */
@media print {
    .rmm-nav {
        background: white;
        color: black;
        box-shadow: none;
    }
    
    .rmm-nav-item {
        color: black;
    }
    
    .rmm-nav-item.active {
        background: #f3f4f6;
        color: black;
        box-shadow: none;
    }
    
    .rmm-product {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #d1d5db;
    }
    
    .rmm-buy-btn {
        display: none;
    }
}