/*
Theme Name: AnTechFlow
Theme URI: https://antechflow.com/
Description: Review theme for AnTechFlow (child of Twenty Twenty-Five). Hands-on reviews of tools for KDP & printable publishers.
Author: AnTechFlow
Template: twentytwentyfive
Version: 1.0.2
Requires at least: 6.5
Text Domain: antechflow
*/

:root { --atf-radius: 14px; --atf-shadow: 0 1px 2px rgba(14,23,38,.05), 0 8px 24px rgba(14,23,38,.06); }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: #FFD9CC; }

/* ---------- Header ---------- */
.atf-header { position: sticky; top: 0; z-index: 50; background: rgba(251,250,247,.88); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--wp--preset--color--line); }
.admin-bar .atf-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .atf-header { top: 46px; } }
.atf-header .wp-block-site-title a { text-decoration: none; color: var(--wp--preset--color--contrast); }
.atf-logo-dot { display: inline-block; width: .6em; height: .6em; border-radius: 50%; background: var(--wp--preset--color--accent); margin-left: .12em; }
.atf-header .wp-block-navigation a { text-decoration: none; }
.atf-header .wp-block-navigation a:hover { color: var(--wp--preset--color--accent); }
.atf-nav-cta a { background: var(--wp--preset--color--contrast); color: #fff !important; padding: .45rem .9rem; border-radius: 999px; }
.atf-nav-cta a:hover { background: var(--wp--preset--color--accent) !important; }

/* ---------- Hero ---------- */
.atf-hero { position: relative; overflow: hidden; }
.atf-hero::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 620px; height: 620px; border-radius: 50%; background: radial-gradient(circle, rgba(226,85,43,.16), rgba(226,85,43,0) 65%); pointer-events: none; }
.atf-hero::after { content: ""; position: absolute; inset: auto auto -50% -15%; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(circle, rgba(15,118,110,.13), rgba(15,118,110,0) 65%); pointer-events: none; }
.atf-hero > * { position: relative; z-index: 1; }
.atf-eyebrow { display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--wp--preset--color--teal); background: var(--wp--preset--color--teal-soft); padding: .3rem .7rem; border-radius: 999px; }
.atf-hero h1 em { font-style: normal; color: var(--wp--preset--color--accent); }
.atf-lead { font-size: 1.2rem; color: var(--wp--preset--color--contrast-2); max-width: 640px; }

/* ---------- Cards ---------- */
.atf-card { background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: var(--atf-radius); box-shadow: var(--atf-shadow); transition: transform .18s ease, box-shadow .18s ease; }
.atf-card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(14,23,38,.06), 0 16px 36px rgba(14,23,38,.10); }
.atf-feature h3 { margin-top: .2rem; }
.atf-icon { font-size: 1.6rem; line-height: 1; width: 2.6rem; height: 2.6rem; display: grid; place-items: center; border-radius: 12px; background: var(--wp--preset--color--base-2); }
.atf-posts .wp-block-post { background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: var(--atf-radius); overflow: hidden; box-shadow: var(--atf-shadow); display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .18s ease; }
.atf-posts .wp-block-post:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(14,23,38,.06), 0 18px 40px rgba(14,23,38,.12); }
.atf-posts .wp-block-post-featured-image { margin: 0; }
.atf-posts .wp-block-post-featured-image img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.atf-posts .atf-post-body { padding: 1.1rem 1.25rem 1.3rem; }
.atf-posts .wp-block-post-title a { text-decoration: none; color: var(--wp--preset--color--contrast); }
.atf-posts .wp-block-post-title a:hover { color: var(--wp--preset--color--accent); }
.wp-block-post-terms a, .atf-chip { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: var(--wp--preset--color--accent-dark); }
.atf-empty { border: 2px dashed var(--wp--preset--color--line); border-radius: var(--atf-radius); padding: 2rem; text-align: center; color: var(--wp--preset--color--contrast-2); background: #fff; }

/* ---------- Article ---------- */
.atf-meta { color: var(--wp--preset--color--contrast-2); font-size: .9rem; }
.atf-meta a { color: inherit; }
.atf-disclosure { background: var(--wp--preset--color--warn-soft); border: 1px solid #F1DFAF; border-radius: 12px; padding: .9rem 1.1rem; font-size: .88rem; line-height: 1.55; }
.atf-disclosure strong { color: #7A5300; }
.entry-content > h2, .wp-block-post-content > h2 { margin-top: 2.6rem; padding-top: .4rem; }
.wp-block-post-content img { border-radius: 10px; }
.wp-block-post-content figure.wp-block-image img { border: 1px solid var(--wp--preset--color--line); }

/* Tables (review summary, funnel, tests) */
.wp-block-table table { border-collapse: separate; border-spacing: 0; width: 100%; background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 12px; overflow: hidden; }
.wp-block-table td, .wp-block-table th { border: 0; border-bottom: 1px solid var(--wp--preset--color--line); padding: .7rem .9rem; text-align: left; vertical-align: top; }
.wp-block-table tr:last-child td { border-bottom: 0; }
.wp-block-table thead th { background: var(--wp--preset--color--contrast); color: #fff; font-weight: 700; font-size: .85rem; letter-spacing: .02em; }
.wp-block-table tbody tr:nth-child(even) td { background: #FCFBF8; }
.atf-summary td:first-child { width: 38%; font-weight: 700; color: var(--wp--preset--color--contrast-2); }
.wp-block-table { overflow-x: auto; }

/* Score badge */
.atf-score { display: inline-flex; align-items: baseline; gap: .25rem; background: var(--wp--preset--color--contrast); color: #fff; border-radius: 14px; padding: .55rem 1rem; font-weight: 800; }
.atf-score b { font-size: 2rem; line-height: 1; }
.atf-score span { opacity: .7; font-size: .9rem; }

/* Pros & cons */
.atf-pros, .atf-cons { border-radius: var(--atf-radius); padding: 1.1rem 1.3rem; }
.atf-pros { background: var(--wp--preset--color--teal-soft); border: 1px solid #BFE0DA; }
.atf-cons { background: var(--wp--preset--color--bad-soft); border: 1px solid #F5C9C2; }
.atf-pros h3, .atf-cons h3 { font-size: 1.05rem; margin: 0 0 .5rem; }
.atf-pros ul, .atf-cons ul { list-style: none; padding-left: 0; margin: 0; }
.atf-pros li, .atf-cons li { padding-left: 1.6rem; position: relative; margin: .35rem 0; }
.atf-pros li::before { content: "✓"; position: absolute; left: 0; color: var(--wp--preset--color--teal); font-weight: 800; }
.atf-cons li::before { content: "✕"; position: absolute; left: 0; color: #C0392B; font-weight: 800; }

/* Verdict / CTA box */
.atf-verdict { background: var(--wp--preset--color--contrast); color: #E8ECF3; border-radius: 18px; padding: clamp(1.3rem, 3vw, 2rem); }
.atf-verdict h2, .atf-verdict h3 { color: #fff; margin-top: 0; }
.atf-verdict a:not(.wp-element-button) { color: #9FE3D8; }
.atf-paid { font-size: .78rem; opacity: .75; }

/* Author box */
.atf-author { background: var(--wp--preset--color--base-2); border-radius: var(--atf-radius); padding: 1.2rem 1.4rem; }

/* Trust strip */
.atf-trust { border-top: 1px solid var(--wp--preset--color--line); border-bottom: 1px solid var(--wp--preset--color--line); }
.atf-trust p { margin: 0; font-weight: 700; font-size: .95rem; }

/* Newsletter */
.atf-news { background: linear-gradient(135deg, #0E1726 0%, #17324A 100%); color: #E8ECF3; border-radius: 22px; position: relative; overflow: hidden; }
.atf-news::after { content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(226,85,43,.45), rgba(226,85,43,0) 70%); }
.atf-news h2 { color: #fff; }
.atf-news > * { position: relative; z-index: 1; }

/* Footer */
.atf-footer { background: var(--wp--preset--color--contrast); color: #B9C2D0; }
.atf-footer a { color: #E8ECF3; text-decoration: none; }
.atf-footer a:hover { color: #FFB59E; text-decoration: underline; }
.atf-footer h4 { color: #fff; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .6rem; }
.atf-footer ul { list-style: none; padding: 0; margin: 0; }
.atf-footer li { margin: .35rem 0; }
.atf-footer .atf-fine { font-size: .8rem; color: #8A96A8; border-top: 1px solid rgba(255,255,255,.1); }

/* Calendar table helpers */
.atf-cal td:nth-child(1) { white-space: nowrap; font-weight: 700; }
.atf-tag { display: inline-block; font-size: .72rem; font-weight: 800; padding: .12rem .45rem; border-radius: 6px; background: var(--wp--preset--color--base-2); }
.atf-tag.wp { background: #FFE6DD; color: #9A3412; }
.atf-tag.jv { background: #E0ECFF; color: #1E40AF; }

/* Pagination */
.wp-block-query-pagination a, .wp-block-query-pagination .page-numbers { text-decoration: none; padding: .3rem .65rem; border-radius: 8px; }
.wp-block-query-pagination .current { background: var(--wp--preset--color--contrast); color: #fff; }

@media (max-width: 640px) {
  .atf-cal th:nth-child(5), .atf-cal td:nth-child(5) { display: none; }
  .atf-cal td, .atf-cal th { padding: .6rem .5rem; font-size: .88rem; }
}
@media (max-width: 781px) {
  .atf-hide-mobile { display: none !important; }
  .atf-summary td:first-child { width: 45%; }
}

.atf-feature h3 a { color: inherit; text-decoration: none; }
.atf-feature h3 a:hover { color: var(--wp--preset--color--accent); }
