/*
Theme Name: TFB Blog
Theme URI: https://thefootballbrain.ro/blog/
Author: Brandweb
Description: Temă copil pentru blogul The Football Brain. Preia meniul, fonturile, culorile și footer-ul de pe homepage-ul thefootballbrain.ro.
Template: twentytwentythree
Version: 1.0.7
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: tfb-blog
*/

/* Tokens copied from thefootballbrain.ro/thefootballbrain.css so the blog matches the homepage. */
:root {
	--tfb-green: #0a8f3c;
	--tfb-green-deep: #0b3d1f;
	--tfb-lime: #5fe08a;
	--tfb-tint: #e9f6ee;
	--tfb-tint-2: #d6efdf;
	--tfb-ink: #16231b;
	--tfb-muted: #5d6b62;
	--tfb-line: #e4eae6;
	--tfb-footer: #08170e;
	--tfb-wrap: 1180px;
	--tfb-r: 16px;
}

body {
	margin: 0;
	background: #fff;
	color: var(--tfb-ink);
	font-family: "Hanken Grotesk", system-ui, sans-serif;
	-webkit-font-smoothing: antialiased;
}

.wp-site-blocks { padding: 0; }
.wp-site-blocks > * { margin-block-start: 0; }
/* Page sections sit flush; the theme sets every gap itself instead of WordPress's 1.5rem block gap. */
.tfb-page .tfb-main > *, .tfb-page .tfb-article > * { margin-block-start: 0; }
.tfb-page *, .tfb-page *::before, .tfb-page *::after { box-sizing: border-box; }
.tfb-page a { color: var(--tfb-green); text-decoration: none; }
.tfb-page a:hover { color: var(--tfb-green-deep); }
.tfb-page a:focus-visible, .tfb-page button:focus-visible { outline: 2px solid var(--tfb-green); outline-offset: 3px; border-radius: 6px; }

.tfb-wrap { width: 100%; max-width: var(--tfb-wrap); margin: 0 auto; padding: 0 24px; }
.tfb-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 2.2px; text-transform: uppercase; color: var(--tfb-green); }
.tfb-eyebrow.on-dark { color: var(--tfb-lime); }

/* Buttons (same as homepage .btn) */
/* Scoped under .tfb-page so it outranks the generic ".tfb-page a" link colour. */
.tfb-page .tfb-btn, .tfb-page .wp-block-read-more.tfb-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 9px;
	font-family: inherit; font-size: 15px; font-weight: 700; line-height: 1.2;
	padding: 14px 24px; min-height: 48px; border-radius: 100px; border: 0;
	background: var(--tfb-green); color: #fff; white-space: nowrap; cursor: pointer;
	transition: transform .15s, background .2s;
}
.tfb-page .tfb-btn:hover, .tfb-page .wp-block-read-more.tfb-btn:hover { background: var(--tfb-green-deep); color: #fff; transform: translateY(-1px); }
.tfb-btn svg { width: 18px; height: 18px; flex: 0 0 auto; }
.tfb-page .tfb-btn.sm { padding: 10px 18px; font-size: 14px; min-height: 42px; }
.tfb-page .tfb-btn.lime { background: var(--tfb-lime); color: var(--tfb-green-deep); }
.tfb-page .tfb-btn.lime:hover { background: #fff; color: var(--tfb-green-deep); }

/* Navigation (same as homepage .nav) */
/* The template-part wrapper is a direct child of .wp-site-blocks, so it is the element that can stick. */
.tfb-nav-wrap { position: sticky; top: 0; z-index: 60; }
.admin-bar .tfb-nav-wrap { top: 32px; }
.tfb-nav { background: rgba(255,255,255,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--tfb-line); }
.tfb-nav-in { display: flex; align-items: center; gap: 32px; height: 70px; position: relative; }
.tfb-logo { display: flex; align-items: center; flex: 0 0 auto; }
.tfb-logo img { height: 38px; width: auto; display: block; }
.tfb-nav-links { display: flex; gap: 26px; margin-left: auto; }
.tfb-page .tfb-nav-links a { font-size: 14.5px; font-weight: 600; color: var(--tfb-muted); }
.tfb-page .tfb-nav-links a:hover, .tfb-page .tfb-nav-links a[aria-current] { color: var(--tfb-green); }
.tfb-nav .tfb-btn { flex: 0 0 auto; }
.tfb-burger { display: none; margin-left: auto; background: none; border: 1px solid var(--tfb-line); border-radius: 9px; padding: 8px 10px; cursor: pointer; }
.tfb-burger svg { width: 20px; height: 20px; display: block; }

/* Dark hero band (same treatment as homepage .hero.split) */
.tfb-hero { position: relative; background: var(--tfb-green-deep); color: #fff; padding: 88px 0 136px; overflow: hidden; }
.tfb-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(880px 520px at 12% -10%, rgba(95,224,138,.18), transparent 62%); }
.tfb-hero > .tfb-wrap { position: relative; }
.tfb-hero h1 { margin: 18px 0 0; max-width: 820px; font-size: clamp(36px, 5vw, 60px); font-weight: 800; line-height: 1.02; letter-spacing: -1.8px; text-wrap: balance; color: #fff; }
.tfb-hero p { margin: 20px 0 0; max-width: 600px; font-size: clamp(16.5px, 1.6vw, 19px); line-height: 1.55; color: rgba(255,255,255,.82); }

/* Post meta: date + reading time */
.tfb-meta, .tfb-page .wp-block-post-date.tfb-date { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-size: 13px; font-weight: 600; color: var(--tfb-muted); }
.tfb-meta-sep { width: 4px; height: 4px; border-radius: 50%; background: #b9c4bd; flex: 0 0 auto; }
.tfb-badge { display: inline-block; background: var(--tfb-tint); color: var(--tfb-green-deep); padding: 5px 11px; border-radius: 100px; font-size: 13px; font-weight: 700; }

/* Blog home: featured latest post, overlapping the hero */
.tfb-listing { padding: 0 0 96px; }
/* Scoped under .tfb-page: WordPress's ":root :where(.is-layout-flow) > :first-child" would otherwise reset these margins. */
.tfb-page .tfb-featured { position: relative; z-index: 1; margin-top: -64px; }
.tfb-featured .wp-block-post-template { list-style: none; margin: 0; padding: 0; }
.tfb-feat { display: grid; grid-template-columns: 1.15fr 1fr; gap: 44px; align-items: center; background: #fff; border: 1px solid var(--tfb-line); border-radius: var(--tfb-r); padding: 22px; box-shadow: 0 24px 60px rgba(11,61,31,.10); }
.tfb-feat .wp-block-post-featured-image { margin: 0; }
.tfb-feat .wp-block-post-featured-image img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 12px; display: block; }
.tfb-feat-b { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 12px 18px 12px 0; }
.tfb-feat-b > * { margin: 0 !important; }
.tfb-feat .wp-block-post-title { font-size: clamp(26px, 2.6vw, 36px); font-weight: 800; line-height: 1.08; letter-spacing: -1px; text-wrap: balance; }
.tfb-feat .wp-block-post-title a { color: var(--tfb-ink); }
.tfb-feat .wp-block-post-excerpt__excerpt { margin: 0; font-size: 16.5px; line-height: 1.6; color: var(--tfb-muted); }
.paged .tfb-featured-area { display: none; }
.paged .tfb-listing { padding-top: 64px; }

.tfb-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 88px; }
.paged .tfb-sec-head { margin-top: 0; }
.tfb-sec-head h2 { margin: 12px 0 0; font-size: clamp(30px, 3.4vw, 44px); font-weight: 800; line-height: 1.04; letter-spacing: -1px; color: var(--tfb-ink); }

/* Post cards grid (same look as homepage .card) */
.tfb-page .tfb-grid .wp-block-post-template { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; margin: 36px 0 0; padding: 0; }
.tfb-grid .wp-block-post-template > li { margin: 0; }
.tfb-card { height: 100%; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--tfb-line); border-radius: var(--tfb-r); overflow: hidden; transition: border-color .2s, transform .2s, box-shadow .2s; }
.tfb-card:hover { border-color: var(--tfb-tint-2); transform: translateY(-3px); box-shadow: 0 14px 34px rgba(11,61,31,.08); }
.tfb-card .wp-block-post-featured-image { margin: 0; }
.tfb-card .wp-block-post-featured-image img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.tfb-card-b { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 26px; }
.tfb-card-b > * { margin: 0 !important; }
.tfb-card .wp-block-post-title { font-size: 19px; font-weight: 800; line-height: 1.25; letter-spacing: -.3px; text-wrap: balance; }
.tfb-card .wp-block-post-title a { color: var(--tfb-ink); }
.tfb-card .wp-block-post-title a:hover { color: var(--tfb-green); }
.tfb-card .wp-block-post-excerpt__excerpt { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--tfb-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tfb-page .tfb-card .wp-block-read-more { margin-top: auto !important; padding-top: 6px; font-size: 14px; font-weight: 700; color: var(--tfb-green); }

/* Pagination */
.tfb-page .wp-block-query-pagination { display: flex; gap: 8px; justify-content: center; align-items: center; margin-top: 48px; }
.tfb-page .wp-block-query-pagination-numbers { display: flex; gap: 8px; }
.tfb-page .wp-block-query-pagination .page-numbers,
.tfb-page .wp-block-query-pagination-previous,
.tfb-page .wp-block-query-pagination-next { min-width: 44px; height: 44px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; border-radius: 100px; border: 1.5px solid var(--tfb-line); font-size: 15px; font-weight: 700; color: var(--tfb-ink); margin: 0; }
.tfb-page .wp-block-query-pagination-previous:hover,
.tfb-page .wp-block-query-pagination-next:hover,
.tfb-page .wp-block-query-pagination a.page-numbers:hover { background: var(--tfb-tint); color: var(--tfb-green-deep); }
.tfb-page .wp-block-query-pagination-previous-arrow, .tfb-page .wp-block-query-pagination-next-arrow { margin: 0; }
.tfb-page .wp-block-query-pagination .page-numbers.current { background: var(--tfb-green-deep); border-color: var(--tfb-green-deep); color: #fff; }
.tfb-page .wp-block-query-pagination .page-numbers.dots { border: 0; }

/* Call to action band (same as homepage .oferta) */
.tfb-cta { background: var(--tfb-green-deep); color: #fff; padding: 96px 0; }
.tfb-cta-in { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; align-items: center; }
.tfb-cta h2 { margin: 14px 0 0; font-size: clamp(30px, 4.2vw, 46px); font-weight: 800; line-height: 1.04; letter-spacing: -1.2px; text-wrap: balance; color: #fff; }
.tfb-cta p { margin: 16px 0 0; font-size: 18px; line-height: 1.6; color: rgba(255,255,255,.75); }
.tfb-wa-box { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); border-radius: var(--tfb-r); padding: 30px; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.tfb-wa-box p { margin: 0; font-size: 15px; line-height: 1.55; }

/* Single article */
.tfb-art-head { background: var(--tfb-tint); padding: 64px 0 160px; }
.tfb-art-head-in { max-width: 900px; }
.tfb-art-head-in > * { margin: 0 !important; }
.tfb-crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; font-weight: 600; color: var(--tfb-muted); }
.tfb-page .tfb-art-head .wp-block-post-title { margin-top: 22px !important; font-size: clamp(34px, 4.6vw, 56px); font-weight: 800; line-height: 1.04; letter-spacing: -1.6px; text-wrap: balance; color: var(--tfb-ink); }
.tfb-page .tfb-art-head .wp-block-post-date.tfb-date { margin-top: 22px !important; font-size: 14px; }
.tfb-art-img { max-width: 1080px; margin: -116px auto 0 !important; padding: 0 24px; }
.tfb-art-img img { width: 100%; aspect-ratio: 16/8; object-fit: cover; border-radius: var(--tfb-r); display: block; box-shadow: 0 24px 60px rgba(11,61,31,.14); }
.tfb-prose { max-width: 720px; margin: 64px auto 0 !important; padding: 0 24px; }
.tfb-prose > * { margin-top: 0 !important; margin-bottom: 20px !important; }
.tfb-prose p, .tfb-prose li { font-size: 18px; line-height: 1.75; color: #2b3a31; }
.tfb-prose ul, .tfb-prose ol { padding-left: 1.3em; }
.tfb-prose li { margin-bottom: 8px; }
.tfb-prose > p:first-of-type:not(.is-style-tfb-highlight) { font-size: 21px; line-height: 1.65; color: var(--tfb-ink); }
/* "Evidențiat" block style: a key paragraph set off in a tinted box. */
.tfb-prose .is-style-tfb-highlight { margin: 32px 0 !important; padding: 24px 28px; background: var(--tfb-tint); border-radius: var(--tfb-r); font-size: 19px; font-weight: 700; line-height: 1.6; color: var(--tfb-green-deep); }
.tfb-prose .is-style-tfb-highlight strong { font-weight: 800; }
.tfb-page .tfb-prose h2, .tfb-page .tfb-prose h3, .tfb-page .tfb-prose h4 { margin-top: 40px !important; margin-bottom: 12px !important; font-family: inherit; font-weight: 800; line-height: 1.25; letter-spacing: -.4px; color: var(--tfb-ink); text-wrap: balance; }
.tfb-page .tfb-prose h2 { font-size: 26px; }
.tfb-page .tfb-prose h3 { font-size: 21px; margin-top: 28px !important; }
.tfb-page .tfb-prose h4 { font-size: 18px; }
.tfb-page .tfb-prose > :is(h2, h3, h4):first-child { margin-top: 0 !important; }
.tfb-prose a { text-decoration: underline; text-underline-offset: 3px; }
.tfb-prose img { border-radius: 12px; height: auto; }
.tfb-prose blockquote { margin: 34px 0 !important; padding: 26px 30px; background: var(--tfb-tint); border: 0; border-radius: var(--tfb-r); }
.tfb-prose blockquote p { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.55; color: var(--tfb-green-deep); }

.tfb-page .tfb-art-foot { max-width: 720px; margin: 48px auto 0; padding: 28px 24px 0; }
.tfb-art-foot-in { padding-top: 28px; border-top: 1px solid var(--tfb-line); display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.tfb-share { display: flex; gap: 10px; align-items: center; font-size: 14px; font-weight: 600; color: var(--tfb-muted); }
.tfb-page .tfb-share a { width: 44px; height: 44px; border-radius: 100px; border: 1.5px solid var(--tfb-line); display: grid; place-items: center; color: var(--tfb-ink); }
.tfb-page .tfb-share a:hover { background: var(--tfb-tint); color: var(--tfb-green-deep); }
.tfb-share svg { width: 18px; height: 18px; }

.tfb-page .tfb-promo-wrap { max-width: 900px; margin: 40px auto 0; padding: 0 24px; }
.tfb-promo { background: var(--tfb-green-deep); color: #fff; border-radius: var(--tfb-r); padding: 36px 40px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.tfb-promo p { margin: 12px 0 0; max-width: 520px; font-size: 24px; font-weight: 800; line-height: 1.25; letter-spacing: -.4px; }

.tfb-related { padding: 96px 0; }
.tfb-related h2 { margin: 12px 0 0; font-size: clamp(30px, 3.2vw, 40px); font-weight: 800; line-height: 1.04; letter-spacing: -1px; color: var(--tfb-ink); }

/* Simple pages, archives, search, 404 */
.tfb-simple { padding: 64px 0 96px; }
.tfb-simple-in { max-width: 720px; }
.tfb-page .tfb-simple .wp-block-post-title, .tfb-simple h1 { margin: 0 0 28px; font-size: clamp(32px, 4vw, 48px); font-weight: 800; line-height: 1.05; letter-spacing: -1.2px; color: var(--tfb-ink); }
.tfb-simple .tfb-prose { margin-top: 0 !important; padding: 0; }

/* Footer (same as homepage footer.site) */
.tfb-footer { background: var(--tfb-footer); color: rgba(255,255,255,.6); padding: 56px 0 40px; }
.tfb-foot-in { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-start; }
.tfb-foot-brand { max-width: 280px; }
.tfb-foot-brand img { height: 38px; width: auto; display: block; }
.tfb-foot-brand p { margin: 14px 0 0; font-size: 13.5px; line-height: 1.6; }
.tfb-foot-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.tfb-foot-col h5 { margin: 0 0 14px; font-size: 12px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; color: var(--tfb-lime); }
.tfb-foot-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.tfb-page .tfb-foot-col a, .tfb-foot-col li { font-size: 14px; color: rgba(255,255,255,.6); }
.tfb-page .tfb-foot-col a:hover { color: #fff; }
.tfb-foot-bot { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; font-size: 12.5px; }
.tfb-page .tfb-foot-bot a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.tfb-page .tfb-foot-bot a:hover { color: #fff; }

@media (max-width: 960px) {
	.tfb-nav-links { display: none; }
	.tfb-burger { display: block; }
	.tfb-nav-links.open { display: flex; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0; padding: 8px 24px 20px; background: #fff; border-bottom: 1px solid var(--tfb-line); }
	.tfb-page .tfb-nav-links.open a { padding: 13px 0; border-bottom: 1px solid var(--tfb-line); font-size: 16px; }
	.tfb-nav .tfb-btn { margin-left: 12px; }
	.tfb-page .tfb-grid .wp-block-post-template { grid-template-columns: 1fr 1fr; }
	.tfb-feat { grid-template-columns: 1fr; gap: 20px; }
	.tfb-feat-b { padding: 0 6px 8px; }
	.tfb-cta-in { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 782px) { .admin-bar .tfb-nav-wrap { top: 46px; } }
@media (max-width: 620px) {
	/* Same as homepage: on phones the logo is sized by width so it fits beside the buttons. */
	.tfb-logo img { height: auto; width: auto; max-width: min(220px, calc(100vw - 215px)); }
	.tfb-foot-brand img { height: auto; width: auto; max-width: min(300px, calc(100vw - 64px)); }
	.tfb-nav .tfb-btn span { display: none; }
	/* Same as homepage (.nav .btn{padding:12px}): icon-only WhatsApp button beside the burger. */
	.tfb-page .tfb-nav .tfb-btn.sm { padding: 12px; }
	.tfb-hero { padding: 44px 0 92px; }
	.tfb-page .tfb-featured { margin-top: -60px; }
	.tfb-feat { padding: 0; overflow: hidden; }
	.tfb-feat .wp-block-post-featured-image img { border-radius: 0; }
	.tfb-feat-b { padding: 0 20px 22px; }
	.tfb-feat .wp-block-read-more { align-self: stretch; }
	.tfb-sec-head { margin-top: 52px; }
	.tfb-page .tfb-grid .wp-block-post-template { grid-template-columns: 1fr; gap: 18px; }
	.tfb-cta { padding: 48px 0; }
	.tfb-art-head { padding: 40px 0 120px; }
	.tfb-art-img { margin-top: -90px !important; padding: 0 16px; }
	.tfb-art-img img { aspect-ratio: 16/10; }
	.tfb-prose { margin-top: 40px !important; }
	.tfb-prose p, .tfb-prose li { font-size: 17px; }
	.tfb-page .tfb-prose h2 { font-size: 23px; }
	.tfb-page .tfb-prose h3 { font-size: 19px; }
	.tfb-promo { padding: 28px 24px; }
	.tfb-promo p { font-size: 21px; }
	.tfb-foot-cols { gap: 32px; }
}
@media (prefers-reduced-motion: reduce) {
	.tfb-btn, .tfb-card { transition: none; }
	.tfb-page .tfb-btn:hover, .tfb-card:hover { transform: none; }
}
