/*
 * Blog list, single post and legal pages in the site's current design (17.10.2026).
 * Builds on restaurant-marketing.css (tomaso-rest-page, tr-hero, tr-section, tr-cta).
 */

.tomaso-rest-page.tb-page { padding-top: 40px; }
.tb-page { --tb-text: #CDD4DF; --tb-muted: #8E9AAE; --tb-line: rgba(255, 255, 255, 0.08); --tb-card: rgba(255, 255, 255, 0.035); }

/* ── Hero sizes for long titles ─────────────────────────── */
.tb-hero .tr-hero-title { font-size: clamp(2.8rem, 8vw, 5.5rem); }
.tb-post-hero { padding-bottom: 40px; }
.tb-post-hero .tr-hero-inner { max-width: 880px; }
.tb-post-title,
.tb-legal-hero .tr-hero-title {
  font-family: var(--font-primary, 'Assistant', sans-serif);
  font-size: clamp(1.9rem, 5.2vw, 3.2rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.tb-page .tr-breadcrumb { justify-content: center; margin-bottom: 22px; }

/* ── Meta line ──────────────────────────────────────────── */
.tb-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; color: var(--tb-muted); font-size: 0.88rem; }
.tb-post-meta { justify-content: center; font-size: 0.95rem; }
.tb-dot { opacity: 0.6; }

/* ── Grid + cards ───────────────────────────────────────── */
.tb-list { padding-top: 24px; }
.tb-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 700px) { .tb-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media (min-width: 1024px) { .tb-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; } }

.tb-card { background: var(--tb-card); border: 1px solid var(--tb-line); border-radius: 20px; overflow: hidden; transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease; }
.tb-card:hover { transform: translateY(-4px); border-color: rgba(56, 196, 218, 0.35); box-shadow: 0 18px 40px -18px rgba(56, 196, 218, 0.35); }
.tb-card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.tb-card-media { aspect-ratio: 16 / 9; overflow: hidden; background: #0b0b24; }
.tb-media-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.tb-card:hover .tb-media-img { transform: scale(1.04); }
.tb-media-fallback {
  position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: radial-gradient(circle at 85% 15%, var(--tb-a) 0, transparent 55%), radial-gradient(circle at 10% 90%, var(--tb-b) 0, transparent 60%), #0b0b24;
}
.tb-media-icon { width: clamp(64px, 18vw, 92px); height: clamp(64px, 18vw, 92px); padding: 18px; border-radius: 26px; color: #fff; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.25); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35); backdrop-filter: blur(6px); }
.tb-media-icon svg { width: 100%; height: 100%; display: block; }
.tb-media-kind { padding: 5px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.5); color: #fff; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; background: rgba(0, 0, 0, 0.18); }
.tb-card-body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 24px; flex: 1; }
.tb-card-title { margin: 0; color: #fff; font-size: 1.22rem; font-weight: 800; line-height: 1.35; }
.tb-card-excerpt { margin: 0; color: var(--tb-text); font-size: 0.97rem; line-height: 1.7; opacity: 0.85; }
.tb-card-more { margin-top: auto; padding-top: 6px; color: var(--color-primary, #38C4DA); font-weight: 700; font-size: 0.95rem; }

/* Featured: full row, image beside text on wide screens */
.tb-card--featured { grid-column: 1 / -1; }
.tb-card--featured .tb-card-title { font-size: clamp(1.4rem, 3vw, 2rem); }
@media (min-width: 900px) {
  .tb-card--featured .tb-card-link { flex-direction: row; }
  .tb-card--featured .tb-card-media { flex: 0 0 55%; aspect-ratio: auto; min-height: 340px; }
  .tb-card--featured .tb-card-body { padding: 36px; justify-content: center; }
  .tb-card--featured .tb-media-icon { width: 120px; height: 120px; padding: 24px; }
}

.tb-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.tb-page-num { min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid var(--tb-line); color: #fff; text-decoration: none; font-weight: 700; }
.tb-page-num.is-current { background: var(--color-primary, #38C4DA); color: #001; border-color: transparent; }
.tb-empty { text-align: center; color: var(--tb-muted); }

/* ── Buttons ────────────────────────────────────────────── */
.tb-cta-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.tb-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 30px; border-radius: 999px; font-weight: 800; font-size: 1.02rem; text-decoration: none; transition: transform 0.2s ease, background 0.2s ease; }
.tb-btn:hover { transform: translateY(-2px); }
.tb-btn--primary { background: var(--color-primary, #38C4DA); color: #001 !important; }
.tb-btn--ghost { border: 2px solid rgba(255, 255, 255, 0.22); color: #fff !important; }
@media (max-width: 520px) { .tb-cta-buttons .tb-btn { width: 100%; } }

/* ── Article (post + legal) ─────────────────────────────── */
.tb-post-wrap { max-width: 780px; margin: 0 auto; padding: 0 20px 72px; }
.tb-post-cover { margin: 0 0 36px; border-radius: 22px; overflow: hidden; border: 1px solid var(--tb-line); aspect-ratio: 16 / 9; }
.tb-article { color: var(--tb-text); font-size: 1.12rem; line-height: 1.9; }
.tb-article > * + * { margin-top: 1.1em; }
.tb-article p { color: var(--tb-text); margin: 0; }
.tb-article p + p { margin-top: 1.05em; }
.tb-article :is(h2, h3, h4) { color: #fff; font-family: var(--font-primary, 'Assistant', sans-serif); font-weight: 800; line-height: 1.3; margin: 1.9em 0 0.6em; }
.tb-article h2 { font-size: clamp(1.45rem, 3.4vw, 1.85rem); }
.tb-article h3 { font-size: clamp(1.2rem, 2.8vw, 1.45rem); }
.tb-article h4 { font-size: 1.12rem; }
.tb-article strong, .tb-article b { color: #fff; }
.tb-article a { color: #5BD3E6; text-decoration: underline; text-underline-offset: 3px; }
.tb-article :is(ul, ol) { padding-inline-start: 1.3em; margin: 0.6em 0 0; }
.tb-article li { margin: 0.35em 0; }
.tb-article li::marker { color: var(--color-primary, #38C4DA); }
.tb-article blockquote { margin: 1.6em 0; padding: 14px 22px; border-inline-start: 4px solid var(--color-primary, #38C4DA); background: rgba(56, 196, 218, 0.06); border-radius: 12px; color: #fff; font-style: normal; }
.tb-article img, .tb-article iframe, .tb-article video { max-width: 100%; height: auto; border-radius: 16px; }
.tb-article iframe[src*="youtube"], .tb-article iframe[src*="vimeo"] { aspect-ratio: 16 / 9; width: 100%; height: auto; }
.tb-article figure { margin: 1.6em 0; }
.tb-article figcaption { color: var(--tb-muted); font-size: 0.88rem; text-align: center; margin-top: 8px; }
.tb-article table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.tb-article :is(td, th) { border: 1px solid var(--tb-line); padding: 10px 12px; }
.tb-article .wp-block-gallery, .tb-article .wp-block-columns { gap: 12px; }
/* Old posts used a bold paragraph as a heading */
.tb-article p:has(> strong:only-child), .tb-article p:has(> b:only-child) { color: #fff; font-size: 1.22rem; font-weight: 800; margin-top: 1.8em; line-height: 1.4; }
/* Hashtag lines left over from Facebook-era posts */
.tb-article p:has(> a[href*="hashtag"]) { color: var(--tb-muted); font-size: 0.92rem; }

.tb-legal-article { background: var(--tb-card); border: 1px solid var(--tb-line); border-radius: 22px; padding: clamp(22px, 5vw, 48px); font-size: 1.04rem; }

/* ── CTA box under the article ──────────────────────────── */
.tb-post-cta { margin-top: 48px; padding: 30px 26px; border-radius: 22px; text-align: center; background: linear-gradient(135deg, rgba(56, 196, 218, 0.12), rgba(231, 67, 122, 0.1)); border: 1px solid rgba(56, 196, 218, 0.25); }
.tb-post-cta-title { color: #fff; font-size: 1.35rem; font-weight: 800; margin: 0 0 6px; }
.tb-post-cta-desc { color: var(--tb-text); margin: 0 0 18px; }
.tb-post-cta-desc a { color: #5BD3E6; }

.tb-related { border-top: 1px solid var(--tb-line); padding-top: 72px; }
.tb-related-all { text-align: center; margin-top: 36px; }

/* ── Phone ──────────────────────────────────────────────── */
@media (max-width: 600px) {
  .tomaso-rest-page.tb-page { padding-top: 16px; }
  .tb-page .tr-hero { padding: 44px 20px 32px; }
  .tb-page .tr-hero-desc { font-size: 1.02rem; }
  .tb-page .tr-section { padding: 40px 16px; }
  .tb-article { font-size: 1.06rem; line-height: 1.85; }
  .tb-post-wrap { padding: 0 18px 56px; }
  .tb-card-body { padding: 18px 18px 22px; }
  .tb-page .tr-cta { padding: 72px 20px; }
}
