/*
Theme Name: Sean McIntyre
Description: Personal link-hub site — light, minimal, Linktree-style narrow card layout with live social previews, blog and sermon hub.
Author: Sean McIntyre
Version: 1.0.0
Requires PHP: 7.4
Text Domain: sean-mcintyre
*/

/* ─── Tokens ─────────────────────────────────────────────── */
:root {
  --sm-bg: #f2f3f5;
  --sm-card: #ffffff;
  --sm-text: #1f2328;
  --sm-text-light: #6b7280;
  --sm-border: #e5e7eb;
  --sm-accent: #1f2328;
  --sm-radius: 22px;
  --sm-radius-sm: 12px;
  --sm-col: 700px;
  --sm-font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --sm-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 4px 16px rgba(16, 24, 40, .06);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--sm-bg);
  color: var(--sm-text);
  font-family: var(--sm-font);
  font-size: 16px;
  line-height: 1.6;
}
a { color: inherit; }
img { max-width: 100%; height: auto; }

/* ─── Top strip ──────────────────────────────────────────── */
.sm-top {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sm-border);
}
.sm-top__inner {
  max-width: var(--sm-col);
  margin: 0 auto;
  display: flex; align-items: center; gap: 12px;
  height: 56px; padding: 0 20px;
}
.sm-top__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 15px; }
.sm-top__brand img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.sm-top__nav { margin-left: auto; display: flex; gap: 4px; }
.sm-top__nav a {
  text-decoration: none; font-size: 13.5px; font-weight: 600; color: var(--sm-text-light);
  padding: 7px 13px; border-radius: 999px;
}
.sm-top__nav a:hover { background: #f0f1f3; color: var(--sm-text); }
.sm-top__nav a.on { background: var(--sm-text); color: #fff; }

/* ─── Layout column ──────────────────────────────────────── */
.sm-col { max-width: var(--sm-col); margin: 0 auto; padding: 28px 20px 90px; }

/* ─── Profile header ─────────────────────────────────────── */
.sm-profile { text-align: center; padding: 26px 0 8px; }
.sm-profile__avatar {
  width: 104px; height: 104px; border-radius: 50%; object-fit: cover;
  box-shadow: var(--sm-shadow); border: 3px solid #fff;
}
.sm-profile h1 { font-size: 24px; margin: 14px 0 2px; letter-spacing: -.01em; }
.sm-profile .sm-tagline { color: var(--sm-text-light); font-size: 15px; margin: 0; }

/* Social icon row */
.sm-icons { display: flex; justify-content: center; gap: 18px; margin: 18px 0 6px; flex-wrap: wrap; }
.sm-icons a { display: inline-flex; color: var(--sm-text); opacity: .85; transition: transform .12s, opacity .12s; }
.sm-icons a:hover { transform: scale(1.12); opacity: 1; }
.sm-icons svg { width: 26px; height: 26px; fill: currentColor; }

/* ─── Cards ──────────────────────────────────────────────── */
.sm-card {
  background: var(--sm-card); border-radius: var(--sm-radius);
  box-shadow: var(--sm-shadow); margin: 18px 0; overflow: hidden;
}
.sm-card__pad { padding: 18px 20px; }

/* Simple link card */
.sm-link {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px; text-decoration: none; font-weight: 600; font-size: 15px;
  transition: transform .12s;
}
.sm-link:hover { transform: scale(1.015); }
.sm-link__thumb { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.sm-link__label { flex: 1; text-align: center; margin-right: 44px; }
.sm-link__label--noimg { margin-right: 0; }

/* Social preview card */
.sm-social__head { display: flex; align-items: center; gap: 10px; padding: 14px 20px 0; }
.sm-social__head svg { width: 20px; height: 20px; fill: currentColor; }
.sm-social__head .t { font-weight: 700; font-size: 14.5px; }
.sm-social__head .h { color: var(--sm-text-light); font-size: 12.5px; }
.sm-social__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; padding: 12px 12px 0; }
.sm-social__grid a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 8px; background: #eceef1; }
.sm-social__grid a.wide { aspect-ratio: 16/9; grid-column: span 3; }
/* Video platforms (YouTube): every tile keeps its native 16:9 — never cropped square */
.sm-social__grid--video a { aspect-ratio: 16/9; }
/* Shorts: vertical 9:16 tiles, four across */
.sm-social__grid--shorts { grid-template-columns: repeat(4, 1fr); }
.sm-social__grid--shorts a { aspect-ratio: 9/16; }
/* Section label inside a social card (Latest videos / Shorts) */
.sm-social__sect { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  color: var(--sm-text-light); padding: 14px 20px 0; }
.sm-social__grid img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.sm-social__grid a:hover img { transform: scale(1.04); }
.sm-social__cta { display: block; text-align: center; padding: 13px; margin: 12px; margin-top: 10px;
  background: #f0f1f3; border-radius: 999px; font-weight: 600; font-size: 13.5px; text-decoration: none; }
.sm-social__cta:hover { background: #e7e9ec; }

/* ─── Blog ───────────────────────────────────────────────── */
.sm-post-card { display: block; text-decoration: none; padding: 20px 22px; }
.sm-post-card.has-thumb { padding: 0; }
.sm-post-card__img { aspect-ratio: 16/9; overflow: hidden; }
.sm-post-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.sm-post-card.has-thumb:hover .sm-post-card__img img { transform: scale(1.03); }
.sm-post-card.has-thumb .sm-post-card__body { padding: 16px 22px 20px; }
.sm-article__hero { aspect-ratio: 16/9; overflow: hidden; margin: -30px -26px 26px; }
.sm-article__hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sm-post-card:hover h2 { text-decoration: underline; }
.sm-post-card h2 { font-size: 18px; margin: 0 0 4px; letter-spacing: -.01em; }
.sm-post-card .meta { font-size: 12.5px; color: var(--sm-text-light); margin-bottom: 6px; }
.sm-post-card p { margin: 0; color: var(--sm-text-light); font-size: 14.5px; }
.sm-article { padding: 30px 26px; }
.sm-article h1 { font-size: 28px; letter-spacing: -.02em; margin: 0 0 6px; }
.sm-article .meta { color: var(--sm-text-light); font-size: 13px; margin-bottom: 22px; }
.sm-article .content { font-size: 16.5px; }
.sm-article .content img { border-radius: var(--sm-radius-sm); }
.sm-article .content h2 { font-size: 21px; margin-top: 34px; }
.sm-article .content blockquote { border-left: 3px solid var(--sm-border); margin-left: 0; padding-left: 18px; color: var(--sm-text-light); }
.sm-pagination { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; }
.sm-pagination a { text-decoration: none; }
.sm-page-title { font-size: 22px; margin: 10px 0 4px; text-align: center; }
.sm-page-sub { text-align: center; color: var(--sm-text-light); font-size: 14px; margin: 0 0 8px; }

/* ─── QR corner (desktop only) ───────────────────────────── */
.sm-qr {
  position: fixed; right: 26px; bottom: 26px; z-index: 90;
  background: var(--sm-card); border-radius: 16px; box-shadow: var(--sm-shadow);
  padding: 12px; text-align: center; display: none;
}
.sm-qr .lbl { font-size: 11px; font-weight: 600; color: var(--sm-text-light); margin-bottom: 8px; }
.sm-qr canvas, .sm-qr img { display: block; margin: 0 auto; border-radius: 4px; }
@media (min-width: 1000px) { .sm-qr { display: block; } }

/* ─── Footer ─────────────────────────────────────────────── */
.sm-footer { text-align: center; color: var(--sm-text-light); font-size: 12.5px; padding: 30px 0 10px; }
.sm-footer a { color: inherit; }

/* ─── Sermon-hub harmonising (light minimal) ─────────────── */
.sm-col .sermon-grid { gap: 14px; }
.sm-col .sermon-card { border-radius: var(--sm-radius-sm); box-shadow: var(--sm-shadow); }

@media (max-width: 520px) {
  .sm-profile__avatar { width: 92px; height: 92px; }
  .sm-top__nav a { padding: 7px 10px; }
}
