/* Menu Prices Engine – v1.0.0
 * Mobile-first. Minimal weight. Designed for GeneratePress.
 * Target: www.menuprices.com.au ONLY.
 */

/* ── TOC ───────────────────────────────────────────────────── */

.mp-toc {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 14px 18px;
    margin: 0 0 28px;
    font-size: 0.95em;
    line-height: 1.8;
}
.mp-toc a {
    text-decoration: none;
    color: #1e73be;
    white-space: nowrap;
}
.mp-toc a:hover { text-decoration: underline; }

/* ── Quick Answers ─────────────────────────────────────────── */

.mp-quick-answers {
    background: #fff8e1;
    border-left: 4px solid #ffa726;
    border-radius: 4px;
    padding: 14px 18px;
    margin: 0 0 28px;
}
.mp-quick-answers ul {
    margin: 8px 0 0;
    padding-left: 20px;
}
.mp-quick-answers li { margin-bottom: 4px; }
.mp-meal-note {
    color: #757575;
    font-size: 0.9em;
}

/* ── Category Sections ─────────────────────────────────────── */

.mp-category {
    margin: 0 0 36px;
    scroll-margin-top: 60px;  /* for sticky header offset */
}
.mp-cat-img {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 8px;
    margin: 0 0 16px;
    aspect-ratio: 2 / 1;
    object-fit: cover;
}
.mp-cat-note {
    color: #616161;
    font-size: 0.93em;
    margin: 0 0 12px;
}

/* ── Price Tables ──────────────────────────────────────────── */

.mp-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 0 8px;
}
.mp-price-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95em;
}
.mp-price-table th {
    background: #2c3e50;
    color: #fff;
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
}
.mp-price-table td {
    padding: 9px 12px;
    border-bottom: 1px solid #e9ecef;
}
.mp-price-table tbody tr:hover {
    background: #f5f8ff;
}
.mp-price {
    font-weight: 600;
    white-space: nowrap;
    text-align: right;
}
.mp-item-name {
    min-width: 180px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.mp-item-thumb {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 4px;
    flex-shrink: 0;
}
.mp-na { color: #bdbdbd; }

/* Badges */
.mp-badge {
    display: inline-block;
    font-size: 0.72em;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    vertical-align: middle;
    margin-left: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.mp-badge-new { background: #e8f5e9; color: #2e7d32; }
.mp-badge-pop { background: #fff3e0; color: #e65100; }

/* Popular row highlight */
tr.mp-popular td { background: #fffde7; }

/* ── Mobile: hide meal columns, show on wider screens ──────── */

@media (max-width: 600px) {
    .mp-meal-col { display: none; }
    .mp-price-table { font-size: 0.9em; }
    .mp-price-table th,
    .mp-price-table td { padding: 8px 8px; }
    .mp-item-name { min-width: 120px; }
    .mp-item-thumb { width: 36px; height: 36px; }
}

/* ── Order Guide ───────────────────────────────────────────── */

.mp-order-guide { margin: 0 0 28px; }
.mp-order-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin: 12px 0;
}
.mp-order-method {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 14px;
    font-size: 0.93em;
    line-height: 1.5;
}
.mp-find-link { margin-top: 8px; }
.mp-find-link a {
    font-weight: 600;
    color: #1e73be;
}

/* ── Hours ─────────────────────────────────────────────────── */

.mp-hours { margin: 0 0 28px; }
.mp-hours-table {
    border-collapse: collapse;
    font-size: 0.93em;
    max-width: 400px;
}
.mp-hours-table td {
    padding: 6px 16px 6px 0;
    border-bottom: 1px solid #e9ecef;
}
.mp-hours-table td:first-child { font-weight: 600; }
.mp-hours-note {
    color: #757575;
    font-size: 0.88em;
    margin-top: 8px;
}

/* ── Deals ─────────────────────────────────────────────────── */

.mp-deals {
    background: #f1f8e9;
    border-radius: 8px;
    padding: 18px 20px;
    margin: 0 0 28px;
}

/* ── Cross-links ───────────────────────────────────────────── */

.mp-cross-links { margin: 36px 0 0; }
.mp-cross-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
    margin: 16px 0;
}
.mp-cross-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 18px 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    text-decoration: none;
    color: #222;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.mp-cross-card:hover {
    border-color: #1e73be;
    box-shadow: 0 2px 8px rgba(30, 115, 190, 0.12);
}
.mp-cross-card img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 8px;
}
.mp-cross-card span {
    font-weight: 600;
    font-size: 0.95em;
}
.mp-cross-card small {
    color: #1e73be;
    font-size: 0.82em;
    margin-top: 4px;
}

/* ── Last Updated ──────────────────────────────────────────── */

.mp-last-updated {
    color: #9e9e9e;
    font-size: 0.85em;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e9ecef;
}

/* ── Email capture placeholder ─────────────────────────────── */

.mp-email-capture {
    background: #e3f2fd;
    border-radius: 8px;
    padding: 20px;
    margin: 28px 0;
    text-align: center;
}
.mp-email-capture p { margin: 0 0 12px; }
