/*
Theme Name: TryItTrends
Theme URI: https://tryittrends.com
Author: UAB Byggvl
Description: Viral AI trends feed: vertical video tiles, step-by-step posts, copyable prompts, tracked /go/ partner links and an automatic /links page for social bios.
Version: 1.1.0
Requires at least: 6.3
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: tryittrends
*/

:root {
	--screen: #eef1f5;
	--surface: #ffffff;
	--ink: #14213d;
	--muted: #5a6478;
	--line: #d8dee8;
	--rec: #ff3d6e;
	--rec-press: #e02858;
	--marker: #ffe14d;
	--radius: 14px;
	--font: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--screen);
	color: var(--ink);
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.55;
	font-optical-sizing: auto;
	-webkit-font-smoothing: antialiased;
}

img, video, iframe { max-width: 100%; }
img { height: auto; }

a { color: inherit; text-underline-offset: 3px; }

:focus-visible { outline: 3px solid var(--rec); outline-offset: 2px; border-radius: 6px; }

.tt-skip {
	position: absolute; left: -999px; top: 8px; z-index: 50;
	background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px;
}
.tt-skip:focus { left: 8px; }

.tt-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Header ---------- */

.tt-header {
	position: sticky; top: 0; z-index: 20;
	background: rgba(238, 241, 245, .92);
	backdrop-filter: saturate(1.4) blur(10px);
	-webkit-backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid var(--line);
}
.admin-bar .tt-header { top: 46px; }
@media (min-width: 783px) { .admin-bar .tt-header { top: 32px; } }

.tt-header__in { display: flex; align-items: center; justify-content: space-between; height: 58px; }

.tt-logo {
	display: inline-flex; align-items: center; gap: 8px;
	font-weight: 800; font-stretch: 88%; font-size: 21px; letter-spacing: -.02em;
	text-decoration: none;
}
.tt-logo__dot { width: 11px; height: 11px; border-radius: 50%; background: var(--rec); box-shadow: 0 0 0 4px rgba(255, 61, 110, .18); }

.tt-nav { display: flex; gap: 4px; }
.tt-nav a {
	text-decoration: none; font-weight: 600; font-size: 15px;
	padding: 7px 12px; border-radius: 999px;
}
.tt-nav a[aria-current] { background: var(--ink); color: #fff; }

.tt-main { padding: 20px 0 48px; min-height: 60vh; }

/* ---------- Intro ---------- */

.tt-intro { display: flex; gap: 14px; align-items: center; margin: 4px 0 18px; max-width: 640px; }
.tt-intro__title { margin: 0; font-size: clamp(26px, 6vw, 38px); line-height: 1.05; font-weight: 800; font-stretch: 85%; letter-spacing: -.025em; }
.tt-intro__text { margin: 4px 0 0; color: var(--muted); font-size: 16px; line-height: 1.45; }

.tt-avatar {
	flex: none; width: 64px; height: 64px; border-radius: 50%; object-fit: cover;
	border: 3px solid var(--surface); box-shadow: 0 0 0 2px var(--rec);
}
.tt-avatar--empty {
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--ink); color: #fff; font-weight: 800; font-size: 26px;
}
.tt-avatar--lg { width: 96px; height: 96px; font-size: 38px; }

.tt-pagehead { margin: 4px 0 16px; }
.tt-pagehead h1 { margin: 0; font-size: clamp(28px, 6vw, 40px); font-weight: 800; font-stretch: 85%; letter-spacing: -.025em; line-height: 1.05; }
.tt-pagehead__text { color: var(--muted); max-width: 60ch; }

/* ---------- Chips ---------- */

.tt-chips {
	display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
	margin: 0 calc(var(--gutter) * -1) 16px; padding: 2px var(--gutter);
}
.tt-chips::-webkit-scrollbar { display: none; }
.tt-chip {
	flex: none; display: inline-flex; align-items: center;
	padding: 6px 14px; border-radius: 999px; border: 1.5px solid var(--line);
	background: var(--surface); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.tt-chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Grid of vertical tiles ---------- */

.tt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 700px) { .tt-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 1000px) { .tt-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }

.tt-tile { min-width: 0; }
.tt-tile__link {
	position: relative; display: block; aspect-ratio: 9 / 16; overflow: hidden;
	border-radius: var(--radius); background: var(--ink); text-decoration: none; color: #fff;
}
.tt-tile__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.tt-tile__img--empty { background: linear-gradient(160deg, #24345c, var(--ink) 70%); }
.tt-tile__link:hover .tt-tile__img { transform: scale(1.03); }

.tt-tile__text {
	position: absolute; left: 0; right: 0; bottom: 0;
	padding: 40px 10px 12px;
	background: linear-gradient(to top, rgba(0, 0, 0, .35), transparent);
	display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
}
.tt-tile__tool {
	font-size: 12px; font-weight: 700; line-height: 1;
	background: rgba(255, 255, 255, .92); color: var(--ink);
	padding: 5px 8px; border-radius: 6px;
}

/* The signature: titles set like on-screen captions in a short video. */
.tt-caption {
	font-weight: 800; font-stretch: 90%;
	font-size: clamp(15px, 4.3vw, 21px); line-height: 1.12; letter-spacing: -.01em;
	color: #fff;
	-webkit-text-stroke: 5px #000;
	paint-order: stroke fill;
	text-shadow: 0 2px 0 rgba(0, 0, 0, .25);
	overflow-wrap: anywhere;
	display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
@media (min-width: 1000px) { .tt-caption { font-size: 19px; } }

.tt-sticker {
	position: absolute; top: 10px; left: 8px; max-width: calc(100% - 16px);
	background: var(--marker); color: var(--ink);
	font-size: 12px; font-weight: 800; line-height: 1.2;
	padding: 5px 8px; border-radius: 6px; transform: rotate(-3deg);
}
.tt-sticker--big { position: static; display: inline-block; font-size: 15px; padding: 6px 11px; margin-bottom: 12px; }

.tt-empty { background: var(--surface); border-radius: var(--radius); padding: 28px 20px; text-align: center; color: var(--muted); }

/* Pagination */
.navigation.pagination { margin-top: 28px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.page-numbers {
	min-width: 42px; height: 42px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center;
	border-radius: 999px; background: var(--surface); font-weight: 700; text-decoration: none; font-size: 15px;
}
.page-numbers.current { background: var(--ink); color: #fff; }
.page-numbers.dots { background: none; }

/* ---------- Trend post ---------- */

.tt-trend { display: grid; gap: 20px; }
@media (min-width: 900px) {
	.tt-trend { grid-template-columns: minmax(0, 400px) minmax(0, 620px); gap: 48px; justify-content: center; align-items: start; }
	.tt-trend__media { position: sticky; top: 84px; }
	.tt-trend--novideo { grid-template-columns: minmax(0, 680px); }
}

.tt-player { border-radius: 18px; overflow: hidden; background: #000; }
.tt-player--file { aspect-ratio: 9 / 16; max-height: 78vh; margin: 0 auto; }
.tt-player__media { width: 100%; height: 100%; object-fit: cover; display: block; }
.tt-player--embed { background: transparent; display: flex; justify-content: center; }
.tt-player--embed blockquote { margin: 0 !important; }
.tt-player--embed iframe { width: 100%; aspect-ratio: 9 / 16; height: auto; border: 0; border-radius: 18px; }
.tt-player--link {
	display: flex; align-items: center; justify-content: center; aspect-ratio: 9 / 16;
	color: #fff; font-weight: 700; text-decoration: none;
}
@media (max-width: 899px) {
	/* Telefone: video ne per visą ekraną, kad pavadinimas ir mygtukas matytųsi iš karto. */
	.tt-player--file { height: 56vh; max-height: 560px; width: auto; max-width: 100%; }
}

.tt-ai { margin: 8px 0 0; font-size: 13px; color: var(--muted); text-align: center; }

.tt-trend__meta { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 14px; color: var(--muted); }
.tt-trend__title { margin: 0 0 18px; font-size: clamp(30px, 7vw, 46px); line-height: 1.02; font-weight: 800; font-stretch: 85%; letter-spacing: -.03em; }

.tt-cta { margin: 0 0 26px; }
.tt-cta--end { margin: 28px 0 0; padding-top: 24px; border-top: 1px solid var(--line); }

.tt-btn {
	display: flex; align-items: center; justify-content: center; width: 100%; max-width: 440px;
	min-height: 56px; padding: 12px 24px; border-radius: 999px;
	background: var(--rec); color: #fff; font-weight: 800; font-size: 18px; letter-spacing: -.005em;
	text-decoration: none; text-align: center; border: 0; cursor: pointer;
	transition: background .15s ease, transform .1s ease;
}
.tt-btn:hover { background: var(--rec-press); }
.tt-btn:active { transform: scale(.98); }
.tt-btn--ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); margin: 20px auto 0; }
.tt-btn--ghost:hover { background: var(--ink); color: #fff; }

.tt-paid { margin: 8px 0 0; font-size: 13px; line-height: 1.4; color: var(--muted); max-width: 440px; }
.tt-paid a { color: inherit; }

/* Content */
.tt-prose { max-width: 62ch; }
.tt-prose > :first-child { margin-top: 0; }
.tt-prose h2 { font-size: 24px; font-weight: 800; font-stretch: 88%; letter-spacing: -.015em; line-height: 1.15; margin: 32px 0 10px; }
.tt-prose h3 { font-size: 19px; font-weight: 700; margin: 24px 0 8px; }
.tt-prose p, .tt-prose ul { margin: 0 0 14px; }
.tt-prose ul { padding-left: 1.2em; }
.tt-prose li { margin-bottom: 6px; }
.tt-prose img { border-radius: var(--radius); }

/* Steps: the numbered list in a trend post is a real sequence. */
.tt-steps ol { list-style: none; counter-reset: step; padding: 0; margin: 0 0 16px; }
.tt-steps ol > li {
	counter-increment: step; position: relative;
	padding: 14px 14px 14px 58px; margin: 0 0 8px;
	background: var(--surface); border-radius: var(--radius);
}
.tt-steps ol > li::before {
	content: counter(step); position: absolute; left: 14px; top: 12px;
	width: 30px; height: 30px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: var(--ink); color: #fff; font-weight: 800; font-size: 15px;
}

/* Prompt */
.tt-prompt { margin: 26px 0 0; background: var(--surface); border-radius: var(--radius); padding: 14px 16px 16px; border: 1.5px solid var(--line); }
.tt-prompt__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.tt-prompt__head h2 { margin: 0; font-size: 18px; font-weight: 800; }
.tt-prompt__text { margin: 0; white-space: pre-wrap; word-break: break-word; font-family: var(--font); font-size: 16px; line-height: 1.5; }
.tt-copy {
	flex: none; font: inherit; font-size: 14px; font-weight: 700;
	padding: 8px 14px; border-radius: 999px; border: 0; cursor: pointer;
	background: var(--ink); color: #fff;
}
.tt-copy.is-done { background: #1f8a4c; }

/* More */
.tt-more { margin-top: 48px; }
.tt-more h2 { font-size: 24px; font-weight: 800; font-stretch: 88%; letter-spacing: -.015em; margin: 0 0 14px; }
@media (max-width: 699px) {
	.tt-grid--row { grid-auto-flow: column; grid-auto-columns: 44%; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
	.tt-grid--row::-webkit-scrollbar { display: none; }
	.tt-grid--row .tt-tile { scroll-snap-align: start; }
}

/* ---------- Pages ---------- */

.tt-page { max-width: 720px; }
.tt-page__title { font-size: clamp(30px, 7vw, 44px); font-weight: 800; font-stretch: 85%; letter-spacing: -.03em; line-height: 1.05; margin: 8px 0 20px; }
.tt-404 p { color: var(--muted); }
.tt-404 .tt-btn { margin-top: 18px; }

/* ---------- /links ---------- */

.tt-links { max-width: 520px; margin: 0 auto; padding: 0 var(--gutter); }
.tt-links__head { text-align: center; margin: 8px 0 22px; }
.tt-links__head h1 { margin: 10px 0 4px; font-size: 28px; font-weight: 800; font-stretch: 88%; letter-spacing: -.02em; }
.tt-links__head p { margin: 0 auto; color: var(--muted); font-size: 16px; max-width: 40ch; }
.tt-links__h { font-size: 15px; font-weight: 700; color: var(--muted); margin: 22px 0 8px; }

.tt-linklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tt-linkrow { display: flex; align-items: center; gap: 8px; background: var(--surface); border-radius: var(--radius); padding: 8px; }
.tt-linkrow__main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; text-decoration: none; }
.tt-linkrow__main--deal { padding: 8px 8px; }
.tt-linkrow__thumb { position: relative; flex: none; width: 46px; aspect-ratio: 9 / 16; border-radius: 8px; overflow: hidden; background: var(--ink); }
.tt-linkrow__text { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.tt-linkrow__text strong { font-weight: 700; font-size: 16px; }
.tt-linkrow__text span { font-size: 13px; color: var(--muted); }
.tt-linkrow__text .tt-linkrow__offer { align-self: flex-start; margin-top: 4px; background: var(--marker); color: var(--ink); font-weight: 700; padding: 1px 6px; border-radius: 4px; }
.tt-linkrow__go {
	flex: none; padding: 9px 16px; border-radius: 999px; background: var(--rec); color: #fff;
	font-weight: 800; font-size: 15px; text-decoration: none;
}
.tt-linkrow__go:hover { background: var(--rec-press); }
.tt-links .tt-paid { margin: 20px auto 0; text-align: center; }

/* ---------- Footer ---------- */

.tt-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
.tt-footer p { margin: 0 0 10px; max-width: 70ch; }
.tt-footer__social, .tt-footer__links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.tt-footer__social a { color: var(--ink); font-weight: 700; }
.tt-footer__copy { margin-top: 16px !important; }

/* WordPress core classes */
.alignleft { float: left; margin: 0 1em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.wp-caption-text { font-size: 14px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Elementor ---------- */

.elementor-page .tt-main { padding: 0; }
.tt-elementor { margin: 0 0 16px; }
.tt-pager { display: flex; gap: 8px; justify-content: center; margin-top: 24px; }
/* Trumpieji kodai Elementor konteineriuose neturi temos paraščių. */
.elementor .tt-intro { margin-top: 0; }
.elementor .tt-chips { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
.elementor .tt-links { padding: 0; }

/* Pradžios „vėduoklė“: 3 naujausi trendai kaip telefono ekranai ([tt_feed layout="stack" count="3"]). */
.tt-stack { position: relative; display: flex; justify-content: center; padding: 18px 0 8px; }
.tt-stack .tt-tile { width: min(42vw, 230px); flex: none; margin: 0 -26px; box-shadow: 0 18px 40px rgba(20, 33, 61, .22); border-radius: var(--radius); }
.tt-stack .tt-tile:nth-child(1) { transform: rotate(-7deg) translateY(18px); }
.tt-stack .tt-tile:nth-child(2) { position: relative; z-index: 2; }
.tt-stack .tt-tile:nth-child(3) { transform: rotate(7deg) translateY(18px); }
.tt-stack .tt-tile__tool, .tt-stack .tt-sticker { display: none; }
@media (max-width: 600px) {
	.tt-stack .tt-tile { width: 38vw; margin: 0 -18px; }
	.tt-stack .tt-caption { font-size: 14px; -webkit-text-stroke-width: 4px; }
}
.tt-mini { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 5px 14px 5px 5px; background: var(--surface); border-radius: 999px; font-weight: 700; font-size: 15px; }
.tt-avatar--sm { width: 34px; height: 34px; border-width: 2px; box-shadow: 0 0 0 1.5px var(--rec); font-size: 15px; }
.tt-stack .tt-tile:nth-child(1) .tt-tile__text, .tt-stack .tt-tile:nth-child(3) .tt-tile__text { display: none; }
@media (min-width: 900px) { .tt-stack .tt-tile { width: 210px; } }
.elementor .elementor-heading-title { font-stretch: 88%; }

/* =====================================================================
   v1.1 – spalvotas srautas (užsakovo prašymu: gražiau, spalvingiau, interaktyviau)
   ===================================================================== */

:root {
	--screen: #f4f3fb;
	--violet: #7c5cff;
	--orange: #ff7a1a;
	--teal: #00a99d;
	--sun: linear-gradient(120deg, #ffe58a 0%, #ffc1d3 48%, #d6c8ff 100%);
	--hot: linear-gradient(135deg, #ff3d6e 0%, #ff7a1a 100%);
	--shadow: 0 10px 30px rgba(20, 33, 61, .08), 0 2px 6px rgba(20, 33, 61, .05);
}

body {
	background:
		radial-gradient(900px 420px at 0% -8%, rgba(255, 225, 77, .42), transparent 70%),
		radial-gradient(800px 420px at 100% -6%, rgba(255, 61, 110, .22), transparent 70%),
		radial-gradient(900px 500px at 50% 0%, rgba(124, 92, 255, .14), transparent 70%),
		var(--screen);
	background-repeat: no-repeat;
}

.tt-header { background: rgba(255, 255, 255, .78); border-bottom-color: rgba(20, 33, 61, .07); }
.tt-logo__dot { background: var(--hot); box-shadow: 0 0 0 4px rgba(255, 61, 110, .16); }

/* Mygtukai – saulėlydžio gradientas */
.tt-btn { background: var(--hot); box-shadow: 0 8px 20px rgba(255, 61, 110, .28); }
.tt-btn:hover { background: linear-gradient(135deg, #f02c5e 0%, #f56a0a 100%); }
.tt-btn--ghost { background: var(--surface); box-shadow: none; color: var(--ink); border: 2px solid var(--ink); }
.tt-btn--ghost:hover { background: var(--ink); color: #fff; }
.tt-btn--sm { width: auto; min-height: 42px; padding: 8px 20px; font-size: 16px; box-shadow: 0 6px 14px rgba(255, 61, 110, .25); }

/* ---------- Pasisveikinimas ---------- */
.tt-hello {
	display: flex; align-items: center; gap: 14px;
	margin: 4px 0 14px; padding: 16px;
	background: var(--sun); border-radius: 24px;
	box-shadow: var(--shadow);
}
.tt-avatar--hello {
	width: 72px; height: 72px; flex: none; font-size: 30px;
	border: 3px solid #fff;
	box-shadow: 0 0 0 3px transparent;
	background-clip: padding-box;
	outline: 3px solid transparent;
	position: relative;
}
.tt-hello .tt-avatar--hello { box-shadow: 0 0 0 3px #ff3d6e, 0 0 0 6px #ffe14d; }
.tt-hello__text { min-width: 0; }
.tt-hello__title { margin: 0; font-size: clamp(24px, 6.4vw, 34px); line-height: 1.05; font-weight: 800; font-stretch: 85%; letter-spacing: -.02em; }
.tt-hello__desc { margin: 4px 0 0; font-size: 15px; line-height: 1.4; color: #3a4560; }
.tt-hello__social { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.tt-social { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 800; text-decoration: none; color: #fff; }
.tt-social--tiktok { background: #111; box-shadow: -2px 0 0 #25f4ee inset, 2px 0 0 #fe2c55 inset; }
.tt-social--instagram { background: linear-gradient(45deg, #f58529, #dd2a7b 50%, #8134af); }
.tt-social--youtube { background: #ff0033; }
@media (min-width: 700px) {
	.tt-hello { padding: 22px 26px; gap: 20px; }
	.tt-avatar--hello { width: 92px; height: 92px; }
	.tt-hello__desc { font-size: 17px; max-width: 56ch; }
}

/* ---------- Filtras ---------- */
.tt-chips { position: sticky; top: 58px; z-index: 15; padding-top: 8px; padding-bottom: 8px; margin-bottom: 8px; background: linear-gradient(var(--screen) 70%, rgba(244, 243, 251, 0)); }
.admin-bar .tt-chips { top: 104px; }
@media (min-width: 783px) { .admin-bar .tt-chips { top: 90px; } }
.tt-chip { border: 0; box-shadow: 0 1px 0 rgba(20, 33, 61, .06), 0 2px 8px rgba(20, 33, 61, .06); gap: 7px; transition: background .15s ease, color .15s ease, transform .1s ease; }
.tt-chip:active { transform: scale(.96); }
.tt-chip__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--tool, var(--rec)); }
.tt-chip.is-on { background: var(--tool, var(--ink)); color: #fff; }
.tt-chip.is-on .tt-chip__dot { background: #fff; }

/* ---------- Srautas: įrašai vienas po kito ---------- */
.tt-feed { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; max-width: 560px; margin: 0 auto; transition: opacity .2s ease; }
.tt-feed.is-loading { opacity: .45; }
@media (min-width: 760px) { .tt-feed { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; } }
@media (min-width: 1100px) { .tt-feed { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.tt-post {
	background: var(--surface); border-radius: 24px; overflow: hidden;
	box-shadow: var(--shadow);
	border-top: 5px solid var(--tool, var(--rec));
}
.tt-post.is-new { animation: tt-in .35s ease both; }
@keyframes tt-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.tt-post__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px 10px; }
.tt-post__tool { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 15px; text-decoration: none; }
.tt-post__badge {
	width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
	background: var(--tool, var(--rec)); color: #fff; font-size: 14px; font-weight: 800;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--tool, #ff3d6e) 22%, transparent);
}
.tt-post__head time { font-size: 13px; color: var(--muted); }

.tt-post__media { position: relative; display: block; aspect-ratio: 4 / 5; margin: 0 10px; border-radius: 18px; overflow: hidden; background: var(--ink); color: #fff; text-decoration: none; }
.tt-post__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.tt-post__img--empty { background: linear-gradient(160deg, var(--tool, #24345c), var(--ink) 80%); }
.tt-post__media:hover .tt-post__img { transform: scale(1.025); }
.tt-post__caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 14px 14px; background: linear-gradient(to top, rgba(0, 0, 0, .4), transparent); }
.tt-post__caption .tt-caption { font-size: clamp(19px, 5.4vw, 24px); -webkit-line-clamp: 3; }
.tt-post__media .tt-sticker { top: 12px; left: 10px; font-size: 13px; }
.tt-post__play {
	position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%;
	background: rgba(0, 0, 0, .45) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='%23fff'/%3E%3C/svg%3E") center / 18px no-repeat;
	transition: opacity .2s ease;
}
.tt-post.is-playing .tt-post__play { opacity: 0; }

.tt-post__body { padding: 12px 14px 14px; }
.tt-post__excerpt { margin: 0 0 12px; font-size: 15px; line-height: 1.45; color: #3a4560; }
.tt-post__actions { display: flex; align-items: center; gap: 8px; }
.tt-pill {
	display: inline-flex; align-items: center; min-height: 42px; padding: 8px 16px; border-radius: 999px;
	font-weight: 800; font-size: 15px; text-decoration: none; color: var(--ink);
	background: color-mix(in srgb, var(--tool, #ff3d6e) 14%, #fff);
}
.tt-pill:hover { background: color-mix(in srgb, var(--tool, #ff3d6e) 24%, #fff); }
.tt-icon {
	margin-left: auto; width: 42px; height: 42px; flex: none; border: 0; border-radius: 50%; cursor: pointer;
	display: inline-flex; align-items: center; justify-content: center;
	background: #f1f2f8; color: var(--ink); transition: background .15s ease, transform .1s ease;
}
.tt-icon + .tt-icon { margin-left: 0; }
.tt-icon:hover { background: color-mix(in srgb, var(--tool, #ff3d6e) 18%, #fff); }
.tt-icon:active { transform: scale(.92); }
.tt-post__paid { margin: 8px 0 0; font-size: 12px; color: var(--muted); }

.tt-loadmore { text-align: center; margin: 26px 0 0; }
.tt-loadmore .tt-btn { display: inline-flex; width: auto; padding: 12px 28px; }
.tt-loadmore .is-busy { opacity: .6; pointer-events: none; }

/* Pranešimas */
.tt-toast {
	position: fixed; left: 50%; bottom: 24px; z-index: 100; transform: translate(-50%, 20px);
	background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: 15px;
	opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
}
.tt-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Plytelės (vėduoklė, „More trends“) su įrankio spalvos rėmeliu */
.tt-tile__link { box-shadow: 0 0 0 3px var(--tool, transparent); }
.tt-tile__tool { background: var(--tool, #fff); color: #fff; }

/* Trendo puslapis spalvotas pagal įrankį */
.tt-trend .tt-trend__meta .tt-chip.is-on { background: var(--tool, var(--ink)); }
.tt-steps ol > li::before { background: var(--tool, var(--ink)); }
.tt-steps ol > li { box-shadow: var(--shadow); border-left: 4px solid var(--tool, var(--rec)); }
.tt-prompt { border: 0; box-shadow: var(--shadow); background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(135deg, var(--tool, #ff3d6e), #ffe14d) border-box; border: 2px solid transparent; }
.tt-copy { background: var(--tool, var(--ink)); }
.tt-player { box-shadow: 0 0 0 4px var(--tool, transparent), var(--shadow); }
.tt-pagehead h1 { background: linear-gradient(90deg, var(--tool, var(--ink)), var(--ink)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* /links spalvotai */
.tt-links__head { background: var(--sun); border-radius: 24px; padding: 22px 16px; box-shadow: var(--shadow); }
.tt-linkrow { box-shadow: var(--shadow); }
.tt-linkrow__go { background: var(--hot); }

/* Pradžios „Kaip tai veikia“ kortelės (Elementor) */
.elementor .tt-feed { margin-top: 4px; }
