/*
Theme Name: MenuClock
Theme URI: https://menuclock.com/
Author: MenuClock
Description: Lightweight block theme for MenuClock — restaurant hours, breakfast times and menu guides. Built-in SEO meta, schema, breadcrumbs, "last checked" labels and an ad-slot manager.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: menuclock
*/

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
img { height: auto; max-width: 100%; }
:where(a) { text-underline-offset: 2px; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 999; background: #fff; padding: 8px 12px; }

/* ---------- Header ---------- */
.mc-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--wp--preset--color--line); background: rgba(255,255,255,.96); backdrop-filter: saturate(180%) blur(8px); }
.mc-logo a { text-decoration: none; color: var(--wp--preset--color--ink); }
.mc-logo a::before { content: ""; display: inline-block; width: 26px; height: 26px; margin-right: 8px; vertical-align: -6px; border-radius: 50%; background: var(--wp--preset--color--brand); box-shadow: inset 0 0 0 3px #fff, 0 0 0 2px var(--wp--preset--color--brand); background-image: linear-gradient(var(--wp--preset--color--brand),var(--wp--preset--color--brand)); }
.mc-logo .mc-dot { color: var(--wp--preset--color--brand); }
.mc-header .wp-block-navigation a { font-weight: 600; }
.mc-header .wp-block-navigation a:hover { color: var(--wp--preset--color--brand); }

/* ---------- Breadcrumbs & meta ---------- */
.mc-breadcrumbs { font-size: .875rem; color: var(--wp--preset--color--muted); margin: 0 0 .75rem; }
.mc-breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.mc-breadcrumbs li + li::before { content: "›"; margin-right: .35rem; color: var(--wp--preset--color--muted); }
.mc-breadcrumbs a { color: var(--wp--preset--color--muted); }
.mc-checked { display: inline-flex; align-items: center; gap: .4rem; font-size: .875rem; background: var(--wp--preset--color--mint); color: #0f5132; padding: .3rem .7rem; border-radius: 999px; font-weight: 600; }
.mc-checked::before { content: "✓"; }

/* ---------- Content components ---------- */
.mc-answer { background: var(--wp--preset--color--cream); border-left: 5px solid var(--wp--preset--color--brand); border-radius: 10px; padding: 1.1rem 1.3rem !important; }
.mc-answer p { margin: .3rem 0; }
.mc-note { background: #fff8e1; border: 1px solid #f5d77a; border-radius: 10px; padding: 1rem 1.2rem !important; font-size: .95rem; }
.mc-disclaimer { font-size: .85rem; color: var(--wp--preset--color--muted); border-top: 1px solid var(--wp--preset--color--line); padding-top: 1rem; margin-top: 2.5rem; }
.wp-block-table table { border-collapse: collapse; width: 100%; font-size: .97rem; }
.wp-block-table th { background: var(--wp--preset--color--ink); color: #fff; text-align: left; }
.wp-block-table th, .wp-block-table td { border: 1px solid var(--wp--preset--color--line); padding: .6rem .75rem; }
.wp-block-table tr:nth-child(even) td { background: #fafafa; }
.mc-toc { border: 1px solid var(--wp--preset--color--line); border-radius: 10px; padding: 1rem 1.25rem !important; }
.mc-toc ol { margin: .4rem 0 0; padding-left: 1.2rem; }
.mc-faq h3 { font-size: 1.1rem; margin-top: 1.4rem; }
.mc-sources { font-size: .9rem; }

/* ---------- Cards ---------- */
.mc-card { background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 14px; padding: 1.25rem !important; transition: box-shadow .15s, transform .15s; height: 100%; }
.mc-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); transform: translateY(-2px); }
.mc-card h3 { margin: .2rem 0 .4rem; font-size: 1.15rem; }
.mc-card h3 a { text-decoration: none; color: var(--wp--preset--color--ink); }
.mc-card p { margin: .3rem 0; color: #444; font-size: .95rem; }
.mc-badge { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: var(--wp--preset--color--brand); color: #fff; padding: .2rem .55rem; border-radius: 999px; }
.mc-badge.alt { background: var(--wp--preset--color--ink); }
.mc-time { font-weight: 800; color: var(--wp--preset--color--brand); }
.mc-hero { background: linear-gradient(135deg, #fff4ec 0%, #fffaf3 60%, #fff 100%); border-bottom: 1px solid var(--wp--preset--color--line); }
.mc-hero .mc-pill { display: inline-block; background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 999px; padding: .25rem .75rem; font-size: .82rem; font-weight: 700; margin-right: .4rem; }
.mc-trust { background: var(--wp--preset--color--ink); color: #fff; }
.mc-trust h2, .mc-trust h3 { color: #fff; }
.mc-trust p { color: #d7d7d7; }

/* ---------- Ads (only render when real code is saved) ---------- */
.mc-ad { margin: 2rem auto; text-align: center; min-height: 1px; }
.mc-ad-label { display: block; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--wp--preset--color--muted); margin-bottom: .25rem; }

/* ---------- Footer ---------- */
.mc-footer { background: #15181c; color: #cfd3d8; }
.mc-footer a { color: #fff; text-decoration: none; }
.mc-footer a:hover { text-decoration: underline; }
.mc-footer h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; }
.mc-footer ul { list-style: none; padding: 0; margin: 0; }
.mc-footer li { margin: .35rem 0; }
.mc-footer .mc-fine { font-size: .8rem; color: #9aa1a9; }

@media (max-width: 781px) {
  .mc-header { position: static; }
}
