/*
Theme Name: Ameen Performance
Theme URI: https://ameenhajahussain.com/
Author: Mohammed Ameen
Description: Fast, Apple-inspired personal brand theme for a performance marketer. Home, blog, YouTube videos, Claude tips hub and a contact page with a lead inbox. Works with Yoast SEO.
Version: 1.0.4
Requires at least: 6.4
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: ameen
*/

/* ---------- Tokens ---------- */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --bg-dark: #000000;
  --tile-dark: #1d1d1f;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #86868b;
  --line: #d2d2d7;
  --line-soft: #e8e8ed;
  --link: #0066cc;
  --brand: #ffc400;
  --brand-ink: #1d1d1f;
  --green: #1a7f37;
  --radius-lg: 28px;
  --radius: 18px;
  --radius-sm: 12px;
  --pill: 980px;
  --wrap: 1120px;
  --read: 700px;
  --nav-h: 52px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --shadow: 0 2px 12px rgba(0,0,0,.06);
  --shadow-hover: 0 10px 34px rgba(0,0,0,.12);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.53;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video, iframe { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.08; letter-spacing: -0.025em; font-weight: 700; color: var(--text); }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid rgba(0,102,204,.5); outline-offset: 2px; border-radius: 6px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; clip: auto; background: #fff; padding: 10px 16px; border-radius: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.wrap--read { max-width: calc(var(--read) + 44px); }
.section { padding: 110px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--bg-dark); color: #f5f5f7; }
.section--dark h2, .section--dark h3 { color: #f5f5f7; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(36px, 5.4vw, 56px); }
.section-head p { font-size: clamp(19px, 2.2vw, 24px); color: var(--text-2); margin: 0; }
.section--dark .section-head p { color: #a1a1a6; }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 600; letter-spacing: .02em; color: var(--text-2); text-transform: uppercase; margin-bottom: 12px; }
.eyebrow--brand { color: #b38900; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 11px 22px; border-radius: var(--pill); border: 1px solid transparent; font-size: 17px; font-weight: 500; line-height: 1.2; cursor: pointer; transition: background .2s, transform .2s, box-shadow .2s; text-decoration: none !important; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn--brand { background: var(--brand); color: var(--brand-ink); }
.btn--brand:hover { background: #ffd23f; }
.btn--dark { background: var(--text); color: #fff; }
.btn--dark:hover { background: #333336; }
.btn--light { background: #fff; color: var(--text); }
.btn--ghost { background: transparent; color: var(--link); border-color: var(--link); }
.btn--ghost:hover { background: var(--link); color: #fff; }
.btn--sm { min-height: 32px; padding: 6px 14px; font-size: 14px; }
.link-arrow { font-size: 17px; font-weight: 500; }
.link-arrow::after { content: " ›"; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
.btn-row--center { justify-content: center; }

/* ---------- Header ---------- */
/* The blur lives on a pseudo-element: backdrop-filter on the header itself would trap the fixed mobile menu inside it. */
.site-header { position: sticky; top: 0; z-index: 100; height: var(--nav-h); border-bottom: 1px solid rgba(0,0,0,.08); }
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255,255,255,.8); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 17px; letter-spacing: -0.02em; text-decoration: none !important; }
.brand img { width: 30px; height: 30px; border-radius: 8px; object-fit: cover; }
.nav-menu { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-menu a { color: var(--text); font-size: 14px; opacity: .85; text-decoration: none; }
.nav-menu a:hover, .nav-menu .current-menu-item > a, .nav-menu .current_page_item > a, .nav-menu .current-menu-ancestor > a { opacity: 1; color: var(--text); }
.nav-menu .current-menu-item > a, .nav-menu .current_page_item > a { font-weight: 600; }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 0; position: relative; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { position: absolute; left: 12px; width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s, top .25s, opacity .2s; content: ""; }
.nav-toggle span { top: 21px; }
.nav-toggle span::before { left: 0; top: -6px; }
.nav-toggle span::after { left: 0; top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .primary-nav { position: fixed; inset: var(--nav-h) 0 0 0; background: #fff; padding: 24px 32px; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s, visibility .25s; overflow-y: auto; }
  .admin-bar .primary-nav { top: calc(var(--nav-h) + 46px); }
  .nav-open .primary-nav { opacity: 1; visibility: visible; transform: none; }
  .nav-menu { flex-direction: column; align-items: flex-start; gap: 0; }
  .nav-menu li { width: 100%; border-bottom: 1px solid var(--line-soft); }
  .nav-menu a { display: block; padding: 16px 0; font-size: 24px; font-weight: 600; opacity: 1; }
  .nav-cta .btn { display: none; }
  .nav-open { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero { padding: 90px 0 0; text-align: center; overflow: hidden; }
.hero h1 { font-size: clamp(44px, 8vw, 88px); line-height: 1.02; letter-spacing: -0.035em; margin-bottom: 20px; }
.hero h1 .muted { color: var(--text-3); }
.hero__lead { font-size: clamp(19px, 2.4vw, 26px); line-height: 1.35; color: var(--text-2); max-width: 760px; margin: 0 auto 32px; }
.hero__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; text-align: left; padding-bottom: 96px; }
.hero__grid .hero__lead { margin-left: 0; }
.hero__grid .btn-row--center, .hero__grid .hero__stats { justify-content: flex-start; }
.hero__grid h1 { font-size: clamp(44px, 6.4vw, 80px); }
.hero__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/5; background: #f2c200; box-shadow: 0 30px 80px rgba(179,137,0,.25); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.hero__badge { position: absolute; left: 16px; bottom: 16px; right: 16px; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; background: rgba(255,255,255,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); font-size: 14px; color: var(--text-2); }
.hero__badge strong { color: var(--text); display: block; font-size: 15px; }
.hero__badge i { width: 10px; height: 10px; border-radius: 50%; background: #28c840; box-shadow: 0 0 0 4px rgba(40,200,64,.2); flex-shrink: 0; }
@media (max-width: 900px) {
  .hero { padding-top: 56px; }
  .hero__grid { grid-template-columns: 1fr; gap: 40px; text-align: center; padding-bottom: 72px; }
  .hero__grid .hero__lead { margin-left: auto; }
  .hero__grid .btn-row--center, .hero__grid .hero__stats { justify-content: center; }
  .hero__media { max-width: 420px; margin: 0 auto; width: 100%; }
}
.hero__stats { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 40px; margin: 34px 0 0; color: var(--text-2); font-size: 15px; }
.hero__stats strong { color: var(--text); font-size: 17px; }

/* ---------- Generic grids & cards ---------- */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 1000px) { .grid--4 { grid-template-columns: repeat(2, minmax(0,1fr)); } .grid--3 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } .section { padding: 72px 0; } }

.tile { background: #fff; border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow); }
.section--alt .tile { background: #fff; }
.tile h3 { font-size: 24px; }
.tile p { color: var(--text-2); margin: 0; }
.tile--dark { background: var(--tile-dark); color: #f5f5f7; box-shadow: none; }
.tile--dark h3 { color: #f5f5f7; }
.tile--dark p { color: #a1a1a6; }

/* Platforms */
.platform-group { margin-bottom: 40px; }
.platform-group h3 { font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); text-align: center; margin-bottom: 18px; }
.platforms { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.platform { display: flex; align-items: center; gap: 12px; background: #fff; padding: 12px 20px 12px 12px; border-radius: var(--pill); box-shadow: var(--shadow); font-weight: 600; font-size: 15px; }
.platform { padding-left: 16px; }
.platform img { width: auto; height: 32px; max-width: 72px; border-radius: 6px; object-fit: contain; }

/* Results */
.result { display: flex; flex-direction: column; min-height: 300px; }
.result .eyebrow { color: #a1a1a6; font-size: 12px; }
.result__num { font-size: clamp(56px, 7vw, 80px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; margin: 8px 0 12px; background: linear-gradient(90deg, #ffc400, #ff8a00); -webkit-background-clip: text; background-clip: text; color: transparent; }
.result__label { font-size: 21px; font-weight: 600; color: #f5f5f7; margin-bottom: 10px; line-height: 1.25; }
.result p { margin-top: auto; }

/* Skills */
.skill__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--bg-alt); display: grid; place-items: center; margin-bottom: 20px; font-size: 22px; }
.section--alt .skill__icon { background: #fff4cc; }

/* Industries */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none; padding: 0; margin: 0; }
.chip { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 16px; border-radius: var(--pill); background: var(--bg-alt); color: var(--text); font-size: 15px; border: 1px solid transparent; text-decoration: none !important; transition: background .2s, border-color .2s; }
.section--alt .chip { background: #fff; }
a.chip:hover { border-color: var(--text); }
.chip.is-active, .chip[aria-current="page"] { background: var(--text); color: #fff; }

/* About */
.about { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: center; }
.about__img img { width: 100%; border-radius: var(--radius-lg); aspect-ratio: 4/5; object-fit: cover; background: var(--bg-alt); }
.about h2 { font-size: clamp(36px, 5vw, 56px); }
.about h2 .muted { color: var(--text-3); }
.about__lead { font-size: 21px; color: var(--text-2); }
.creds { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.cred { border-top: 1px solid var(--line); padding-top: 14px; }
.cred strong { display: block; font-size: 17px; }
.cred span { color: var(--text-2); font-size: 15px; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; gap: 36px; } .about__img { max-width: 420px; } }

/* Certificates */
.certs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 300px); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 22px 24px; margin: 0 -22px; scrollbar-width: thin; }
.cert { scroll-snap-align: start; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); color: var(--text); text-decoration: none !important; display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s; }
.cert:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.cert img { aspect-ratio: 4/3; object-fit: cover; width: 100%; background: var(--bg-alt); }
.cert div { padding: 18px 20px 22px; }
.cert strong { display: block; font-size: 16px; line-height: 1.3; margin-bottom: 4px; }
.cert span { font-size: 14px; color: var(--text-2); }

/* ---------- Post cards ---------- */
.card { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: box-shadow .3s, transform .3s; height: 100%; }
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.card__media { display: block; aspect-ratio: 16/9; background: linear-gradient(135deg, #f5f5f7, #e8e8ed); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .card__media img { transform: scale(1.03); }
.card__media--empty { display: grid; place-items: center; font-size: 40px; font-weight: 700; color: var(--text-3); letter-spacing: -0.04em; }
.card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card__cat { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #b38900; margin-bottom: 8px; }
.card__title { font-size: 21px; line-height: 1.22; margin: 0 0 10px; }
.card__title a { color: var(--text); text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card__excerpt { color: var(--text-2); font-size: 15px; margin: 0 0 18px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__meta { margin-top: auto; font-size: 13px; color: var(--text-3); display: flex; gap: 8px; flex-wrap: wrap; }
.card__meta span + span::before { content: "·"; margin-right: 8px; }
.section--alt .card { background: #fff; }

/* Featured post */
.feature { display: grid; grid-template-columns: 1.35fr 1fr; background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); position: relative; transition: box-shadow .3s; margin-bottom: 48px; }
.feature:hover { box-shadow: var(--shadow-hover); }
.feature .card__media { aspect-ratio: auto; min-height: 380px; height: 100%; }
.feature__body { padding: 48px; display: flex; flex-direction: column; justify-content: center; }
.feature__body .card__title { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.1; }
.feature__body .card__excerpt { font-size: 17px; -webkit-line-clamp: 4; }
.badge { display: inline-flex; align-self: flex-start; gap: 6px; align-items: center; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: var(--pill); background: #fff4cc; color: #7a5c00; margin-bottom: 14px; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } .feature .card__media { min-height: 0; aspect-ratio: 16/9; } .feature__body { padding: 28px 24px 32px; } }

/* ---------- Page heads ---------- */
.page-hero { padding: 80px 0 48px; text-align: center; }
.page-hero h1 { font-size: clamp(44px, 7vw, 80px); letter-spacing: -0.035em; margin-bottom: 14px; }
.page-hero p { font-size: clamp(19px, 2.2vw, 24px); color: var(--text-2); max-width: 720px; margin: 0 auto; }
.page-hero--dark { background: #000; color: #f5f5f7; padding: 100px 0 80px; }
.page-hero--dark h1 { color: #f5f5f7; }
.page-hero--dark p { color: #a1a1a6; }
.gradient-text { background: linear-gradient(90deg, #ffc400 0%, #ff7a00 50%, #d9480f 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gradient-text--claude { background: linear-gradient(90deg, #d97757 0%, #e8a87c 50%, #c2603f 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

.toolbar { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; margin-bottom: 36px; }
.toolbar .chips { justify-content: flex-start; }
.search-form { position: relative; flex: 0 1 300px; }
.search-form input { width: 100%; height: 40px; padding: 0 16px 0 40px; border-radius: var(--pill); border: 1px solid var(--line); background: #fff; font-size: 15px; }
.search-form input:focus { outline: none; border-color: var(--link); box-shadow: 0 0 0 4px rgba(0,102,204,.15); }
.search-form svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--text-3); }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 56px; flex-wrap: wrap; }
.pagination .page-numbers { min-width: 44px; height: 44px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--pill); background: #fff; color: var(--text); box-shadow: var(--shadow); font-size: 15px; text-decoration: none; }
.pagination .page-numbers.current { background: var(--text); color: #fff; }
.empty { text-align: center; padding: 60px 20px; color: var(--text-2); }

/* Newsletter / CTA band */
.cta-band { background: var(--tile-dark); color: #f5f5f7; border-radius: var(--radius-lg); padding: 64px 40px; text-align: center; }
.cta-band h2 { color: #f5f5f7; font-size: clamp(32px, 4.4vw, 48px); }
.cta-band p { color: #a1a1a6; font-size: 19px; max-width: 620px; margin: 0 auto 28px; }

/* ---------- Single post ---------- */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--brand); z-index: 200; transition: width .1s linear; }
.post-head { padding: 64px 0 36px; text-align: center; }
.post-head .card__cat a { color: #b38900; }
.post-head h1 { font-size: clamp(36px, 5.6vw, 60px); line-height: 1.06; letter-spacing: -0.03em; max-width: 900px; margin: 0 auto 20px; }
.post-head__dek { font-size: clamp(19px, 2.2vw, 23px); color: var(--text-2); max-width: 720px; margin: 0 auto 26px; line-height: 1.4; }
.byline { display: inline-flex; align-items: center; gap: 12px; font-size: 15px; color: var(--text-2); text-align: left; }
.byline img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: 50% 8%; background: var(--brand); }
.byline strong { color: var(--text); display: block; }
.post-hero-img { max-width: 1120px; margin: 0 auto 56px; padding: 0 22px; }
.post-hero-img img { width: 100%; border-radius: var(--radius-lg); aspect-ratio: 16/9; object-fit: cover; }
.breadcrumbs { font-size: 13px; color: var(--text-3); margin-bottom: 18px; }
.breadcrumbs a { color: var(--text-2); }

.post-layout { display: grid; grid-template-columns: minmax(0, var(--read)) 240px; gap: 64px; justify-content: center; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.toc { position: sticky; top: calc(var(--nav-h) + 30px); align-self: start; font-size: 14px; max-height: calc(100vh - 120px); overflow: auto; }
.toc strong { display: block; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line-soft); }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; color: var(--text-2); border-left: 2px solid transparent; line-height: 1.35; text-decoration: none; }
.toc a:hover { color: var(--text); }
.toc a.is-active { color: var(--text); border-left-color: var(--brand); font-weight: 600; }
.toc[hidden] { display: none; }
@media (max-width: 1060px) { .post-layout { grid-template-columns: minmax(0, var(--read)); } .toc { display: none; } }

.entry { font-size: 19px; line-height: 1.65; min-width: 0; }
.entry > * { margin-top: 0; margin-bottom: 1.15em; }
.entry h2 { font-size: clamp(28px, 3.4vw, 34px); margin: 1.8em 0 .55em; line-height: 1.15; }
.entry h3 { font-size: 24px; margin: 1.5em 0 .5em; line-height: 1.2; }
.entry h4 { font-size: 20px; margin: 1.4em 0 .4em; }
.entry a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.entry ul, .entry ol { padding-left: 1.3em; }
.entry li { margin-bottom: .45em; }
.entry li::marker { color: var(--text-3); }
.entry img, .entry figure img { border-radius: var(--radius); }
.entry figure { margin-left: 0; margin-right: 0; }
.entry figcaption { font-size: 14px; color: var(--text-3); margin-top: 10px; text-align: center; }
.entry blockquote { margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--brand); font-size: 22px; line-height: 1.45; color: var(--text); font-weight: 500; }
.entry blockquote p:last-child { margin: 0; }
.entry table { width: 100%; border-collapse: collapse; font-size: 16px; display: block; overflow-x: auto; }
.entry th, .entry td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); }
.entry th { background: var(--bg-alt); font-weight: 600; }
.entry hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.entry strong { font-weight: 650; }
.entry code { font-family: var(--mono); font-size: .86em; background: var(--bg-alt); padding: .15em .4em; border-radius: 6px; }
.entry pre { position: relative; background: #1d1d1f; color: #f5f5f7; border-radius: var(--radius); padding: 22px 24px; overflow-x: auto; font-size: 15px; line-height: 1.6; }
.entry pre code { background: none; padding: 0; font-size: inherit; color: inherit; }
.copy-btn { position: absolute; top: 10px; right: 10px; background: rgba(255,255,255,.12); color: #f5f5f7; border: 0; border-radius: 8px; font-size: 12px; padding: 6px 10px; cursor: pointer; font-family: var(--font); }
.copy-btn:hover { background: rgba(255,255,255,.22); }
.entry .wp-block-embed iframe, .entry iframe[src*="youtube"] { width: 100%; aspect-ratio: 16/9; border-radius: var(--radius); }
.entry .alignwide { margin-left: -60px; margin-right: -60px; max-width: none; }
@media (max-width: 860px) { .entry .alignwide { margin-left: 0; margin-right: 0; } .entry { font-size: 18px; } }

.post-foot { max-width: var(--read); margin: 56px auto 0; padding: 0 22px; }
.post-foot--wide { max-width: calc(var(--read) + 44px); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.tags a { font-size: 14px; padding: 6px 14px; border-radius: var(--pill); background: var(--bg-alt); color: var(--text); text-decoration: none; }
.tags a:hover { background: var(--line-soft); }
.share { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; font-size: 14px; color: var(--text-2); }
.share a, .share button { display: inline-flex; align-items: center; justify-content: center; height: 36px; padding: 0 14px; border-radius: var(--pill); border: 1px solid var(--line); background: #fff; color: var(--text); font-size: 14px; cursor: pointer; text-decoration: none; }
.share a:hover, .share button:hover { border-color: var(--text); }
.author-box { display: flex; gap: 20px; align-items: flex-start; background: var(--bg-alt); border-radius: var(--radius); padding: 28px; }
.author-box img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: 50% 8%; background: var(--brand); flex-shrink: 0; }
.author-box h3 { font-size: 19px; margin-bottom: 6px; }
.author-box p { font-size: 15px; color: var(--text-2); margin-bottom: 12px; }
@media (max-width: 560px) { .author-box { flex-direction: column; } }

/* Comments */
.comments { max-width: var(--read); margin: 64px auto 0; padding: 0 22px; }
.comments h2 { font-size: 28px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: 28px; }
.comment-body { padding: 20px 0; border-bottom: 1px solid var(--line-soft); font-size: 16px; }
.comment-meta { font-size: 14px; color: var(--text-2); }
.comment-author img { border-radius: 50%; float: left; margin-right: 12px; }
.comment-form label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.comment-form p { margin-bottom: 16px; }

/* ---------- Forms ---------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.field label .opt { font-weight: 400; color: var(--text-3); }
.input, .comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea {
  width: 100%; min-height: 50px; padding: 13px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: #fff; font-size: 17px; transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none;
}
textarea.input, .comment-form textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
select.input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%236e6e73' stroke-width='1.6' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 42px; }
.input:focus, .comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--link); box-shadow: 0 0 0 4px rgba(0,102,204,.15); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label { margin: 0; font-weight: 500; }
.checks input { position: absolute; opacity: 0; pointer-events: none; }
.checks span { display: inline-flex; align-items: center; min-height: 38px; padding: 6px 16px; border-radius: var(--pill); border: 1px solid var(--line); background: #fff; font-size: 15px; cursor: pointer; transition: all .15s; }
.checks input:checked + span { background: var(--text); color: #fff; border-color: var(--text); }
.checks input:focus-visible + span { outline: 3px solid rgba(0,102,204,.5); outline-offset: 2px; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.notice { border-radius: var(--radius-sm); padding: 16px 20px; margin-bottom: 24px; font-size: 16px; }
.notice--ok { background: #e8f6ec; color: #0f5323; }
.notice--err { background: #fdecec; color: #8a1c1c; }
.form-note { font-size: 13px; color: var(--text-3); margin-top: 14px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: start; }
.contact-form { background: #fff; border-radius: var(--radius-lg); padding: 44px; box-shadow: var(--shadow); }
.contact-form h2 { font-size: 30px; }
.contact-side { display: grid; gap: 16px; }
.contact-card { display: flex; gap: 16px; align-items: flex-start; background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); color: var(--text); text-decoration: none !important; transition: box-shadow .25s, transform .25s; }
a.contact-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.contact-card__icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }
.contact-card__icon svg { width: 24px; height: 24px; }
.contact-card strong { display: block; font-size: 17px; }
.contact-card span { display: block; color: var(--text-2); font-size: 15px; word-break: break-word; }
.ic-wa { background: #e7f8ee; color: #128c4b; }
.ic-mail { background: #e8f1fb; color: #0066cc; }
.ic-pin { background: #fff4cc; color: #8a6a00; }
.ic-time { background: #f1ecfb; color: #6b3fc7; }
.ic-yt { background: #fdecec; color: #d40000; }
.ic-ig { background: #fdeef6; color: #c13584; }
.ic-fb { background: #e8f0fe; color: #1877f2; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } .contact-form { padding: 28px 22px; } }

.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-size: 19px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 26px; font-weight: 300; color: var(--text-2); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--text-2); padding-bottom: 18px; margin: 0; }

/* ---------- Videos ---------- */
.video-feature { display: grid; grid-template-columns: 1.6fr 1fr; gap: 36px; align-items: center; margin-bottom: 72px; }
.video-feature h2 { font-size: clamp(26px, 3vw, 36px); color: #f5f5f7; }
.video-feature p { color: #a1a1a6; }
@media (max-width: 900px) { .video-feature { grid-template-columns: 1fr; } }
.yt { position: relative; display: block; width: 100%; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: #111; cursor: pointer; border: 0; padding: 0; }
.yt img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, opacity .3s; }
.yt:hover img { transform: scale(1.03); opacity: .9; }
.yt__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 68px; height: 68px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; box-shadow: 0 8px 30px rgba(0,0,0,.35); transition: transform .2s; }
.yt:hover .yt__play { transform: translate(-50%,-50%) scale(1.08); }
.yt__play svg { width: 26px; height: 26px; margin-left: 4px; color: #1d1d1f; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vcard h3 { font-size: 17px; line-height: 1.3; margin: 14px 0 4px; color: inherit; }
.vcard time { font-size: 13px; color: var(--text-3); }
.section--dark .vcard h3 { color: #f5f5f7; }
.yt-sub { display: inline-flex; align-items: center; gap: 10px; background: #ff0000; color: #fff; padding: 11px 22px; border-radius: var(--pill); font-weight: 600; text-decoration: none !important; }
.yt-sub:hover { background: #d40000; }
.yt-sub svg { width: 22px; height: 22px; }

/* ---------- Claude tips ---------- */
.tip-card { position: relative; background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: box-shadow .3s, transform .3s; height: 100%; }
.tip-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.tip-card__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; gap: 10px; }
.tip-card__icon { width: 40px; height: 40px; border-radius: 10px; background: #fbeee8; color: #c2603f; display: grid; place-items: center; font-family: var(--mono); font-weight: 700; font-size: 15px; }
.level { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: var(--pill); background: var(--bg-alt); color: var(--text-2); }
.level--beginner { background: #e8f6ec; color: #0f5323; }
.level--intermediate { background: #e8f1fb; color: #0b4f99; }
.level--advanced { background: #f1ecfb; color: #4d2a99; }
.tip-card h3 { font-size: 20px; line-height: 1.25; margin-bottom: 8px; }
.tip-card h3 a { color: var(--text); text-decoration: none; }
.tip-card h3 a::after { content: ""; position: absolute; inset: 0; }
.tip-card p { color: var(--text-2); font-size: 15px; margin-bottom: 16px; }
.tip-card .card__meta { margin-top: auto; }
.terminal { background: #1d1d1f; border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.35); text-align: left; max-width: 760px; margin: 48px auto 0; }
.terminal__bar { display: flex; gap: 8px; padding: 14px 16px; background: #2c2c2e; }
.terminal__bar i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.terminal__bar i:nth-child(2) { background: #febc2e; }
.terminal__bar i:nth-child(3) { background: #28c840; }
.terminal pre { margin: 0; padding: 22px 24px; color: #f5f5f7; font-family: var(--mono); font-size: 15px; line-height: 1.7; white-space: pre-wrap; }
.terminal .c { color: #8e8e93; }
.terminal .p { color: #e8a87c; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-alt); color: var(--text-2); font-size: 13px; padding: 56px 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.footer-grid h4 { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 12px; letter-spacing: 0; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: var(--text-2); }
.footer-grid a:hover { color: var(--text); }
.footer-about p { max-width: 340px; line-height: 1.55; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a { width: 36px; height: 36px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--text); box-shadow: var(--shadow); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 20px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }

/* Floating WhatsApp */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.2); transition: transform .2s; }
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } * { transition: none !important; } }
.no-js .reveal { opacity: 1; transform: none; }

/* WP core alignment helpers */
.aligncenter { margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.wp-caption-text { font-size: 14px; color: var(--text-3); }
.sticky .badge { background: var(--text); color: #fff; }
