/**
 * Restaurant Menu Pro - Styles
 * File: css/menu-styles.css
 */

/* Section Header */
.rmp-section-header {
	font-family:"Oswald", sans-serif !important;
    font-size: 22px;
    font-weight: 600;
    color: #2c3e50;
    margin: 5px 0 10px 0;
    padding-bottom: 5px;
    border-bottom: 3px solid #e74c3c;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Menu Container */
.rmp-menu-container {
    display: grid;
    gap: 20px;
    margin: 10px 0;
    padding: 10px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* Column Layouts */
.rmp-menu-container.rmp-columns-1 {
    grid-template-columns: 1fr;
}

.rmp-menu-container.rmp-columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.rmp-menu-container.rmp-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* Responsive */
@media (max-width: 768px) {
    .rmp-menu-container.rmp-columns-2,
    .rmp-menu-container.rmp-columns-3 {
        grid-template-columns: 1fr;
    }
}

/* Menu Item */
.rmp-menu-item {
    padding: 5px 15px;
    border-bottom: 1px solid #e8e8e8;
    display: block;
    width: 100%;
    background: #fbfbfb;
    border-radius: 5px;
}

.rmp-menu-item:last-child {
    border-bottom: none;
}

/* Special Highlight */
.rmp-menu-item.rmp-special {
    background: #fff8f8;
    padding: 20px;
    border-radius: 6px;
    border: 2px solid #ffe0e0;
    position: relative;
    margin-bottom: 10px;
}

.rmp-menu-item.rmp-special::before {
    content: "★";
    position: absolute;
    top: 15px;
    right: 15px;
    color: #e74c3c;
    font-size: 20px;
}

/* Item Image */
.rmp-item-image {
    margin-bottom: 15px;
    border-radius: 6px;
    overflow: hidden;
    max-height: 200px;
}

.rmp-item-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.rmp-menu-item:hover .rmp-item-image img {
    transform: scale(1.05);
}

/* Title and Price Row with Dotted Line */
.rmp-item-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 8px;
    width: 100%;
}

/* Item Title - Left Side */
.rmp-item-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    padding-right: 10px;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    max-width: 70%;
    display: contents;
}

.rmp-special .rmp-item-title {
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
}

/* Dotted line between title and price */
.rmp-dots {
    flex-grow: 1;
    height: 1px;
    background-image: linear-gradient(to right, #bbb 40%, rgba(0,0,0,0) 0%);
    background-position: bottom;
    background-size: 6px 1px;
    background-repeat: repeat-x;
    margin: 0 8px;
    align-self: flex-end;
    margin-bottom: 12px;
}

/* Price - Right Side, Bold */
.rmp-item-price {
    font-size: 20px;
    font-weight: 700;
    color: #e74c3c;
    white-space: nowrap;
    padding-left: 10px;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.rmp-special .rmp-item-price {
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
}

/* Dietary Tags */
.rmp-tag {
    display: inline-block;
    padding: 2px 8px;
    margin-left: 8px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 3px;
    vertical-align: middle;
}

.rmp-tag-v {
    background: #27ae60;
    color: white;
}

.rmp-tag-gfo {
    background: #f39c12;
    color: white;
}

/* Item Description - Left Side, Below Title */
.rmp-item-description {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin: 0;
    padding-left: 0;
    clear: both;
    width: 100%;
}

.rmp-item-description p {
    margin: 0;
}

/* Responsive - Adjust for Mobile */
@media (max-width: 600px) {
    .rmp-item-title {
        font-size: 16px;
    }
    
    .rmp-item-price {
        font-size: 18px;
    }
    
    .rmp-dots {
        background-size: 4px 1px;
    }
}

/* Print Styles */
@media print {
    body.rmp-print-menu {
        background: white;
    }
    
    .rmp-menu-container {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
    
    .rmp-section-header {
        page-break-after: avoid;
    }
    
    .rmp-menu-item {
        page-break-inside: avoid;
    }
    
    .rmp-item-image {
        display: none;
    }
    
    /* Hide WordPress admin elements */
    #wpadminbar,
    .site-header,
    .site-footer,
    nav,
    aside {
        display: none !important;
    }
}

/* Admin Styles */
.rmp-usage-guide {
    margin-top: 40px;
    padding: 20px;
    background: #f8f9fa;
    border-left: 4px solid #e74c3c;
    border-radius: 4px;
}

.rmp-usage-guide h2 {
    margin-top: 0;
    color: #2c3e50;
}

.rmp-usage-guide h3 {
    color: #34495e;
    margin-top: 20px;
}

.rmp-usage-guide code {
    background: white;
    padding: 4px 8px;
    border-radius: 3px;
    border: 1px solid #ddd;
    font-family: 'Courier New', monospace;
}

.rmp-usage-guide ul {
    list-style-type: none;
    padding-left: 0;
}

.rmp-usage-guide li {
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.rmp-usage-guide li:last-child {
    border-bottom: none;
}

/* Alternative: Elegant minimalist style */
.rmp-menu-container.rmp-style-minimal .rmp-menu-item {
    border-bottom: 1px solid #f0f0f0;
    padding: 15px 0;
}

.rmp-menu-container.rmp-style-minimal .rmp-item-title {
    font-size: 16px;
    font-weight: 500;
}

.rmp-menu-container.rmp-style-minimal .rmp-item-price {
    font-size: 16px;
    font-weight: 600;
}

/* Dark theme option */
.rmp-menu-container.rmp-theme-dark {
    background: #2c3e50;
    color: #ecf0f1;
}

.rmp-theme-dark .rmp-section-header {
    color: #ecf0f1;
    border-bottom-color: #e74c3c;
}

.rmp-theme-dark .rmp-item-title {
    color: #ecf0f1;
}

.rmp-theme-dark .rmp-item-description {
    color: #bdc3c7;
}

.rmp-theme-dark .rmp-menu-item {
    border-bottom-color: #34495e;
}

/* PDF Export Button Styles */
.rmp-export-buttons {
    margin: 20px 0;
    text-align: right;
}

.rmp-btn {
    display: inline-block;
    padding: 10px 20px;
    margin-left: 10px;
    background: #e74c3c;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.rmp-btn:hover {
    background: #c0392b;
    color: white;
}

.rmp-btn-secondary {
    background: #34495e;
}

.rmp-btn-secondary:hover {
    background: #2c3e50;
}

/* Optional: Add dotted line variant if user wants it */
.rmp-menu-container.rmp-with-dots .rmp-menu-item {
    position: relative;
}

.rmp-menu-container.rmp-with-dots .rmp-item-content::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 50%;
    height: 1px;
    background-image: linear-gradient(to right, #bbb 40%, transparent 0%);
    background-size: 6px 1px;
    background-repeat: repeat-x;
    z-index: -1;
}