/*
Theme Name: KittyPay
Theme URI: https://example.com/kittypay
Author: Miki
Description: Companion theme for the KittyPay by Miki plugin. Clean, mobile-first look that matches the KittyPay app, with a full blog: featured posts, category chips, search, reading time, share buttons, related posts and styled comments. Requires the KittyPay plugin for the app itself.
Version: 1.4.3
Requires at least: 6.2
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: kittypay-theme
Tags: blog, one-column, two-columns, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

:root {
	--kt-primary: #0f766e;
	--kt-primary-600: #0d6560;
	--kt-primary-50: #f0fdfa;
	--kt-primary-100: #ccfbf1;
	--kt-amber: #f59e0b;
	--kt-amber-50: #fffbeb;
	--kt-ink: #0f172a;
	--kt-ink-2: #334155;
	--kt-muted: #64748b;
	--kt-line: #e2e8f0;
	--kt-bg: #f6f8f9;
	--kt-card: #fff;
	--kt-radius: 18px;
	--kt-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 28px rgba(15, 23, 42, .06);
	--kt-shadow-lg: 0 20px 50px rgba(15, 23, 42, .12);
	--kt-font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--kt-font); color: var(--kt-ink); background: var(--kt-bg); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--kt-primary); text-underline-offset: 3px; }
a:hover { color: var(--kt-primary-600); }
img, svg, video { max-width: 100%; height: auto; }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.02em; color: var(--kt-ink); }
:focus-visible { outline: 3px solid rgba(15, 118, 110, .45); outline-offset: 2px; border-radius: 6px; }
.screen-reader-text { position: absolute !important; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; }
.kt-skip { position: absolute; left: 12px; top: -60px; background: var(--kt-ink); color: #fff; padding: 10px 14px; border-radius: 10px; z-index: 1000; }
.kt-skip:focus { top: 12px; color: #fff; }
.kt-ic { flex: none; vertical-align: -3px; }

.kt-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.kt-wrap--narrow { max-width: 780px; }
@media (min-width: 720px) { .kt-wrap { padding: 0 28px; } }
.kt-section { padding: 36px 16px 64px; }
@media (min-width: 720px) { .kt-section { padding: 44px 28px 80px; } }
.kt-section__title { font-size: 1.6rem; margin: 0 0 22px; }

/* Buttons */
.kt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 12px; font-weight: 600; font-size: .95rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; font-family: inherit; white-space: nowrap; }
.kt-btn:hover { transform: translateY(-1px); }
.kt-btn--sm { min-height: 38px; padding: 0 14px; font-size: .9rem; border-radius: 10px; }
.kt-btn--primary { background: var(--kt-primary); color: #fff; box-shadow: 0 6px 18px rgba(15, 118, 110, .25); }
.kt-btn--primary:hover { background: var(--kt-primary-600); color: #fff; }
.kt-btn--ghost { background: transparent; color: var(--kt-ink); border-color: var(--kt-line); }
.kt-btn--ghost:hover { background: #fff; color: var(--kt-ink); }
.kt-btn--light { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .35); }
.kt-btn--light:hover { background: rgba(255, 255, 255, .24); color: #fff; }
.kt-btn--amber { background: #fbbf24; color: #422006; }
.kt-btn--amber:hover { background: #f59e0b; color: #422006; }

/* Header */
.kt-head { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.admin-bar .kt-head { top: 32px; }
@media (max-width: 782px) { .admin-bar .kt-head { top: 46px; } }
.kt-head.is-scrolled { border-bottom-color: var(--kt-line); box-shadow: 0 6px 24px rgba(15, 23, 42, .06); }
.kt-head__inner { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.kt-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--kt-ink); margin-right: auto; }
.kt-logo span { display: flex; flex-direction: column; line-height: 1.1; }
.kt-logo b { font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; color: var(--kt-ink); }
.kt-logo small { font-size: .66rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--kt-muted); }
.kt-logo:hover b { color: var(--kt-primary); }
.custom-logo-link { margin-right: auto; display: inline-flex; }
.custom-logo { max-height: 44px; width: auto; }
.kt-head__nav { display: flex; align-items: center; gap: 18px; }
.kt-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.kt-menu a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--kt-ink-2); text-decoration: none; font-weight: 500; font-size: .95rem; }
.kt-menu a:hover { background: var(--kt-primary-50); color: var(--kt-primary); }
.kt-menu a[aria-current="page"], .kt-menu .current-menu-item > a, .kt-menu .current_page_parent > a { color: var(--kt-primary); background: var(--kt-primary-50); font-weight: 600; }
.kt-head__acct { display: flex; gap: 8px; }
.kt-navtoggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--kt-line); background: #fff; color: var(--kt-ink); cursor: pointer; align-items: center; justify-content: center; }
@media (max-width: 900px) {
	.kt-navtoggle { display: inline-flex; }
	.kt-head__nav { position: absolute; left: 12px; right: 12px; top: calc(100% + 6px); flex-direction: column; align-items: stretch; gap: 10px; padding: 12px; background: #fff; border: 1px solid var(--kt-line); border-radius: 16px; box-shadow: var(--kt-shadow-lg); opacity: 0; transform: translateY(-8px) scale(.98); pointer-events: none; visibility: hidden; transition: opacity .18s ease, transform .18s ease, visibility .18s; }
	.kt-head__nav.is-open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
	.kt-menu { flex-direction: column; }
	.kt-menu a { padding: 12px 14px; }
	.kt-head__acct { padding-top: 10px; border-top: 1px solid var(--kt-line); }
	.kt-head__acct .kt-btn { flex: 1; min-height: 44px; }
}

/* Reading progress */
.kt-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.admin-bar .kt-progress { top: 32px; }
.kt-progress span { display: block; height: 100%; background: linear-gradient(90deg, #14b8a6, #f59e0b); transform-origin: 0 50%; transform: scaleX(0); }

/* Blog hero */
.kt-bloghero, .kt-posthead { position: relative; overflow: hidden; background: radial-gradient(900px 380px at 90% -10%, var(--kt-primary-100) 0%, transparent 60%), radial-gradient(700px 300px at -10% 110%, #fef3c7 0%, transparent 60%), linear-gradient(180deg, #fff, var(--kt-bg)); border-bottom: 1px solid var(--kt-line); }
.kt-bloghero { padding: 56px 0 44px; text-align: center; }
@media (min-width: 720px) { .kt-bloghero { padding: 80px 0 60px; } }
.kt-bloghero h1 { font-size: clamp(2rem, 5.2vw, 3.4rem); margin: 6px 0 14px; font-weight: 800; animation: kt-up .6s ease both; }
.kt-bloghero__lead { color: var(--kt-muted); font-size: 1.08rem; max-width: 620px; margin: 0 auto 26px; animation: kt-up .6s .08s ease both; }
.kt-bloghero .kt-search { margin: 0 auto; animation: kt-up .6s .16s ease both; }
.kt-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--kt-line); color: var(--kt-primary); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; box-shadow: var(--kt-shadow); }
.kt-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #14b8a6; box-shadow: 0 0 0 4px rgba(20, 184, 166, .2); animation: kt-pulse 2s infinite; }
.kt-hl { background: linear-gradient(90deg, var(--kt-primary), #14b8a6 60%, #d97706); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kt-bloghero__deco span { position: absolute; border-radius: 50%; pointer-events: none; }
.kt-bloghero__deco span:nth-child(1) { width: 18px; height: 18px; left: 9%; top: 26%; background: #fbbf24; box-shadow: inset -3px -3px 0 #d97706; animation: kt-float 6s ease-in-out infinite; }
.kt-bloghero__deco span:nth-child(2) { width: 12px; height: 12px; right: 12%; top: 22%; background: #2dd4bf; animation: kt-float 7s 1s ease-in-out infinite; }
.kt-bloghero__deco span:nth-child(3) { width: 26px; height: 26px; right: 7%; bottom: 18%; border: 3px solid rgba(15, 118, 110, .3); animation: kt-float 8s .5s ease-in-out infinite; }

/* Search */
.kt-search { display: flex; align-items: center; gap: 8px; max-width: 520px; background: #fff; border: 1px solid var(--kt-line); border-radius: 14px; padding: 6px 6px 6px 14px; box-shadow: var(--kt-shadow); transition: border-color .15s, box-shadow .15s; }
.kt-search:focus-within { border-color: var(--kt-primary); box-shadow: 0 0 0 4px rgba(15, 118, 110, .14); }
.kt-search .kt-ic { color: var(--kt-muted); }
.kt-search input[type="search"] { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 16px; padding: 8px 4px; background: transparent; color: var(--kt-ink); }
.kt-search button { border: 0; background: var(--kt-primary); color: #fff; font: inherit; font-weight: 600; font-size: .92rem; border-radius: 10px; padding: 0 16px; min-height: 40px; cursor: pointer; }
.kt-search button:hover { background: var(--kt-primary-600); }
.kt-sidebar .kt-search { box-shadow: none; }
.kt-sidebar .kt-search button { padding: 0 12px; }

/* Chips */
.kt-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 28px; }
.kt-chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--kt-line); color: var(--kt-ink-2); text-decoration: none; font-size: .9rem; font-weight: 500; transition: all .15s; }
.kt-chip span { font-size: .75rem; color: var(--kt-muted); background: var(--kt-bg); border-radius: 999px; padding: 1px 7px; }
.kt-chip:hover { border-color: var(--kt-primary); color: var(--kt-primary); }
.kt-chip[aria-current="page"] { background: var(--kt-primary); border-color: var(--kt-primary); color: #fff; }
.kt-chip[aria-current="page"] span { background: rgba(255, 255, 255, .2); color: #fff; }
.kt-chips--sm { margin: 0; }
.kt-chips--sm .kt-chip { padding: 6px 12px; font-size: .85rem; }
@media (max-width: 600px) {
	.kt-section > .kt-chips { flex-wrap: nowrap; overflow-x: auto; margin-left: -16px; margin-right: -16px; padding: 2px 16px 6px; scrollbar-width: none; }
	.kt-section > .kt-chips::-webkit-scrollbar { display: none; }
	.kt-chip { flex: none; }
}

/* Cards */
.kt-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 680px) { .kt-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .kt-grid { grid-template-columns: repeat(3, 1fr); gap: 26px; } }
.kt-card { position: relative; display: flex; flex-direction: column; background: var(--kt-card); border: 1px solid var(--kt-line); border-radius: var(--kt-radius); overflow: hidden; box-shadow: var(--kt-shadow); transition: transform .25s ease, box-shadow .25s ease, border-color .25s; }
.kt-card:hover { transform: translateY(-4px); box-shadow: var(--kt-shadow-lg); border-color: #cbd5e1; }
.kt-thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--kt-primary-50); }
.kt-thumb__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.kt-card:hover .kt-thumb__img { transform: scale(1.05); }
.kt-thumb__ph { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, #14b8a6, #0f766e); }
.kt-thumb__ph--1 { background: linear-gradient(135deg, #fbbf24, #d97706); }
.kt-thumb__ph--2 { background: linear-gradient(135deg, #0ea5e9, #0f766e); }
.kt-thumb__ph--3 { background: linear-gradient(135deg, #334155, #0f172a); }
.kt-thumb__ph b { font-size: 3.4rem; color: rgba(255, 255, 255, .9); font-weight: 800; }
.kt-card__body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; flex: 1; }
.kt-card__title { font-size: 1.2rem; margin: 2px 0 0; line-height: 1.3; }
.kt-card__title a { color: var(--kt-ink); text-decoration: none; }
.kt-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.kt-card__title a:hover { color: var(--kt-primary); }
.kt-card__excerpt { color: var(--kt-muted); margin: 0; font-size: .95rem; }
.kt-card__foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.kt-tag { position: relative; z-index: 2; align-self: flex-start; display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--kt-primary-50); color: var(--kt-primary); font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; }
.kt-tag:hover { background: var(--kt-primary-100); }
.kt-tag--amber { background: var(--kt-amber-50); color: #b45309; }
.kt-more { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: .9rem; text-decoration: none; }
.kt-more .kt-ic { transition: transform .2s; }
.kt-card:hover .kt-more .kt-ic { transform: translateX(3px); }
.kt-meta { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; color: var(--kt-muted); font-size: .86rem; }
.kt-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.kt-meta__author { color: var(--kt-ink-2); font-weight: 600; }
.kt-avatar { border-radius: 50%; display: block; flex: none; background: var(--kt-primary-100); object-fit: cover; }
.kt-meta .kt-avatar { width: 28px; height: 28px; }

/* Featured card */
@media (min-width: 680px) { .kt-card--featured { grid-column: 1 / -1; } }
@media (min-width: 900px) {
	.kt-card--featured { flex-direction: row; }
	.kt-card--featured .kt-thumb { flex: 0 0 56%; aspect-ratio: auto; min-height: 360px; }
	.kt-card--featured .kt-card__body { padding: 36px 36px 32px; justify-content: center; }
	.kt-card--featured .kt-card__title { font-size: 1.9rem; }
	.kt-card--featured .kt-card__excerpt { font-size: 1.05rem; }
	.kt-card--featured .kt-card__foot { margin-top: 12px; }
}

/* Pagination */
.kt-pagination { margin-top: 40px; }
.kt-pagination .nav-links { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.kt-pagination .page-numbers { min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border-radius: 12px; background: #fff; border: 1px solid var(--kt-line); color: var(--kt-ink-2); text-decoration: none; font-weight: 600; }
.kt-pagination .page-numbers:hover { border-color: var(--kt-primary); color: var(--kt-primary); }
.kt-pagination .page-numbers.current { background: var(--kt-primary); border-color: var(--kt-primary); color: #fff; }
.kt-pagination .dots { border: 0; background: none; }

/* Empty state */
.kt-empty { text-align: center; background: #fff; border: 1px dashed #cbd5e1; border-radius: var(--kt-radius); padding: 48px 20px; }
.kt-empty h1, .kt-empty h2 { margin: 12px 0 8px; }
.kt-empty p { color: var(--kt-muted); }
.kt-empty .kt-search { margin: 20px auto 0; }
.kt-empty__ic { width: 64px; height: 64px; margin: 0 auto; border-radius: 20px; background: var(--kt-primary-50); color: var(--kt-primary); display: grid; place-items: center; }
.kt-empty__big { font-size: clamp(4rem, 14vw, 7rem); font-weight: 800; line-height: 1; letter-spacing: -.04em; background: linear-gradient(135deg, #14b8a6, #0f766e 50%, #f59e0b); -webkit-background-clip: text; background-clip: text; color: transparent; animation: kt-float 5s ease-in-out infinite; }

/* CTA */
.kt-cta { position: relative; overflow: hidden; margin-top: 56px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; padding: 32px; border-radius: 24px; color: #e6fffb; background: radial-gradient(500px 220px at 100% 0%, rgba(251, 191, 36, .35), transparent 60%), linear-gradient(135deg, #0f766e, #134e4a); box-shadow: var(--kt-shadow-lg); }
.kt-cta::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%; border: 22px solid rgba(255, 255, 255, .06); }
.kt-cta h2 { color: #fff; margin: 0 0 6px; font-size: 1.5rem; }
.kt-cta p { margin: 0; max-width: 560px; opacity: .9; }
.kt-cta__btns { display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 1; }
@media (min-width: 720px) { .kt-cta { padding: 40px 44px; } }

/* Single post */
.kt-posthead { padding: 40px 0 36px; }
@media (min-width: 720px) { .kt-posthead { padding: 64px 0 52px; } }
.kt-posthead--page { text-align: center; }
.kt-posthead__in { max-width: 720px; }
.kt-posthead--page .kt-posthead__in { margin: 0 auto; }
.kt-crumbs { display: flex; align-items: center; gap: 8px; font-size: .9rem; margin-bottom: 18px; color: var(--kt-muted); }
.kt-crumbs a { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; font-weight: 600; }
.kt-post__title { font-size: clamp(1.9rem, 4.6vw, 3rem); margin: 0 0 14px; font-weight: 800; animation: kt-up .6s ease both; }
.kt-post__lead { font-size: 1.15rem; color: var(--kt-ink-2); margin: 0 0 20px; animation: kt-up .6s .06s ease both; }
.kt-posthead .kt-meta { animation: kt-up .6s .12s ease both; }
.kt-post__cover { margin: -8px auto 0; position: relative; z-index: 2; }
.kt-post__cover img { width: 100%; border-radius: 22px; display: block; box-shadow: var(--kt-shadow-lg); aspect-ratio: 16 / 9; object-fit: cover; animation: kt-zoom .8s ease both; }
@media (min-width: 720px) { .kt-post__cover { margin-top: 28px; } }
.kt-postgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 36px; padding-bottom: 56px; }
@media (min-width: 1020px) { .kt-postgrid { grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; max-width: 1180px; } }
.kt-post__main { min-width: 0; max-width: 720px; }

/* Content typography */
.kt-content { font-size: 1.08rem; line-height: 1.8; color: #1e293b; }
.kt-content > * { margin-top: 0; margin-bottom: 1.25em; }
.kt-content h2 { font-size: 1.6rem; margin-top: 1.8em; margin-bottom: .6em; }
.kt-content h3 { font-size: 1.28rem; margin-top: 1.6em; margin-bottom: .5em; }
.kt-content a { font-weight: 500; }
.kt-content ul, .kt-content ol { padding-left: 1.4em; }
.kt-content li { margin-bottom: .45em; }
.kt-content li::marker { color: var(--kt-primary); font-weight: 700; }
.kt-content strong { color: var(--kt-ink); }
.kt-content blockquote, .kt-content .wp-block-quote { margin-left: 0; margin-right: 0; padding: 18px 22px; border-left: 4px solid var(--kt-primary); background: var(--kt-primary-50); border-radius: 0 14px 14px 0; color: #134e4a; font-weight: 500; }
.kt-content blockquote p:last-child { margin-bottom: 0; }
.kt-content img, .kt-content figure img { border-radius: 14px; }
.kt-content figure { margin-left: 0; margin-right: 0; }
.kt-content figcaption { font-size: .88rem; color: var(--kt-muted); text-align: center; margin-top: 8px; }
.kt-content pre { background: var(--kt-ink); color: #e2e8f0; padding: 18px; border-radius: 14px; overflow: auto; font-size: .92rem; }
.kt-content code { background: #f1f5f9; padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.kt-content pre code { background: none; padding: 0; }
.kt-content table { width: 100%; border-collapse: collapse; font-size: .95rem; display: block; overflow-x: auto; }
.kt-content th, .kt-content td { border: 1px solid var(--kt-line); padding: 10px 12px; text-align: left; }
.kt-content th { background: var(--kt-bg); }
.kt-content hr { border: 0; height: 1px; background: var(--kt-line); margin: 2.4em 0; }
.kt-content .alignwide { margin-left: -6%; margin-right: -6%; max-width: 112%; }
.kt-content .aligncenter { margin-left: auto; margin-right: auto; }
.kt-content .alignleft { float: left; margin: 0 1.2em 1em 0; }
.kt-content .alignright { float: right; margin: 0 0 1em 1.2em; }
.kt-content .wp-block-button__link { background: var(--kt-primary); border-radius: 12px; }

/* Post footer */
.kt-post__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; margin-top: 28px; border-top: 1px solid var(--kt-line); border-bottom: 1px solid var(--kt-line); }
.kt-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.kt-tags span { font-size: .85rem; color: var(--kt-muted); margin-right: 4px; font-weight: 600; }
.kt-tags a { padding: 5px 11px; border-radius: 999px; background: #fff; border: 1px solid var(--kt-line); color: var(--kt-ink-2); font-size: .85rem; text-decoration: none; }
.kt-tags a::before { content: "#"; color: var(--kt-muted); }
.kt-tags a:hover { border-color: var(--kt-primary); color: var(--kt-primary); }
.kt-share { display: flex; align-items: center; gap: 8px; }
.kt-share__label { font-size: .85rem; font-weight: 600; color: var(--kt-muted); margin-right: 2px; }
.kt-share__btn { width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--kt-line); color: var(--kt-ink-2); cursor: pointer; transition: all .15s; text-decoration: none; }
.kt-share__btn:hover { transform: translateY(-2px); color: #fff; background: var(--kt-primary); border-color: var(--kt-primary); }
.kt-share__btn--whatsapp:hover { background: #16a34a; border-color: #16a34a; }
.kt-share__btn--x:hover { background: #0f172a; border-color: #0f172a; }
.kt-share__btn--facebook:hover { background: #1d4ed8; border-color: #1d4ed8; }

.kt-author { display: flex; gap: 16px; align-items: center; margin: 28px 0; padding: 20px; background: #fff; border: 1px solid var(--kt-line); border-radius: var(--kt-radius); }
.kt-author small { display: block; color: var(--kt-muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.kt-author b { font-size: 1.1rem; }
.kt-author p { margin: 4px 0 0; color: var(--kt-muted); font-size: .95rem; }

.kt-postnav .nav-links { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .kt-postnav .nav-links { grid-template-columns: 1fr 1fr; } }
.kt-postnav a { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 16px 18px; background: #fff; border: 1px solid var(--kt-line); border-radius: 16px; text-decoration: none; color: var(--kt-ink); transition: border-color .15s, transform .15s; }
.kt-postnav a:hover { border-color: var(--kt-primary); transform: translateY(-2px); }
.kt-postnav .nav-next { text-align: right; }
.kt-postnav small { color: var(--kt-primary); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.kt-postnav .nav-previous small::before { content: "← "; }
.kt-postnav .nav-next small::after { content: " →"; }

/* Sidebar */
.kt-sidebar { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
@media (min-width: 1020px) { .kt-sidebar { position: sticky; top: 92px; align-self: start; } }
.kt-widget { background: #fff; border: 1px solid var(--kt-line); border-radius: var(--kt-radius); padding: 20px; }
.kt-widget__title { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--kt-muted); margin: 0 0 14px; }
.kt-widget ul { list-style: none; margin: 0; padding: 0; }
.kt-widget li + li { margin-top: 8px; }
.kt-mini a { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--kt-ink); padding: 4px; border-radius: 12px; }
.kt-mini a:hover { background: var(--kt-bg); }
.kt-mini a:hover b { color: var(--kt-primary); }
.kt-mini__thumb { flex: 0 0 64px; height: 48px; border-radius: 10px; overflow: hidden; display: block; }
.kt-mini__thumb img, .kt-mini__thumb .kt-thumb__ph { width: 100%; height: 100%; object-fit: cover; }
.kt-mini__thumb .kt-thumb__ph b { font-size: 1.2rem; }
.kt-mini b { display: block; font-size: .92rem; line-height: 1.35; font-weight: 600; }
.kt-mini small { color: var(--kt-muted); font-size: .8rem; }
.kt-widget--safe { background: linear-gradient(135deg, var(--kt-amber-50), #fff); border-color: #fde68a; }
.kt-widget--safe .kt-ic { color: #d97706; }
.kt-widget--safe .kt-widget__title { color: #92400e; margin: 8px 0 6px; }
.kt-widget--safe p { margin: 0; font-size: .92rem; color: #78350f; }

/* Related */
.kt-related { background: #fff; border-top: 1px solid var(--kt-line); padding: 52px 0 64px; }
.kt-related .kt-card { box-shadow: none; }

/* Comments */
.kt-comments { margin-top: 36px; }
.kt-comments__title { display: flex; align-items: center; gap: 10px; font-size: 1.35rem; }
.kt-comments__title .kt-ic { color: var(--kt-primary); }
.kt-comment-list, .kt-comment-list .children { list-style: none; margin: 0; padding: 0; }
.kt-comment-list .children { margin-left: 22px; padding-left: 18px; border-left: 2px solid var(--kt-line); }
.kt-comment__body { display: flex; gap: 14px; padding: 16px 0; }
.kt-comment__main { flex: 1; min-width: 0; background: #fff; border: 1px solid var(--kt-line); border-radius: 4px 16px 16px 16px; padding: 14px 16px; }
.bypostauthor > .kt-comment__body .kt-comment__main { border-color: var(--kt-primary-100); background: var(--kt-primary-50); }
.kt-comment__head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.kt-comment__head time { font-size: .82rem; color: var(--kt-muted); }
.kt-comment__text p { margin: 6px 0 0; }
.kt-comment__wait { color: #b45309; font-size: .88rem; margin: 6px 0 0; }
.kt-comment__reply a { font-size: .85rem; font-weight: 600; text-decoration: none; }
.comment-respond { margin-top: 20px; background: #fff; border: 1px solid var(--kt-line); border-radius: var(--kt-radius); padding: 22px; }
.kt-comment-form__title { margin: 0 0 6px; font-size: 1.2rem; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.kt-comment-form__title small a { font-size: .85rem; font-weight: 600; }
.kt-comment-form__note, .logged-in-as { color: var(--kt-muted); font-size: .9rem; margin-top: 0; }
.kt-comment-form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--kt-ink-2); }
.kt-comment-form input[type="text"], .kt-comment-form input[type="email"], .kt-comment-form input[type="url"], .kt-comment-form textarea { width: 100%; font: inherit; font-size: 16px; padding: 11px 14px; border: 1px solid #cbd5e1; border-radius: 12px; background: #fff; color: var(--kt-ink); transition: border-color .15s, box-shadow .15s; }
.kt-comment-form input:focus, .kt-comment-form textarea:focus { outline: 0; border-color: var(--kt-primary); box-shadow: 0 0 0 4px rgba(15, 118, 110, .14); }
.kt-comment-form p { margin: 0 0 14px; }
.kt-comment-form .comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.kt-comment-form .comment-form-cookies-consent label { font-weight: 400; }
@media (min-width: 640px) { .kt-comment-form .comment-form-author, .kt-comment-form .comment-form-email { display: inline-block; width: calc(50% - 8px); } .kt-comment-form .comment-form-author { margin-right: 12px; } }

/* Footer */
.kt-foot { background: #0b1f1d; color: #a7b8b5; padding: 56px 0 28px; font-size: .95rem; }
.kt-foot__grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .kt-foot__grid { grid-template-columns: 1.6fr 1fr 1fr; } }
.kt-foot .kt-logo b { color: #fff; }
.kt-foot .kt-logo small { color: #7f9a96; }
.kt-foot__brand p { max-width: 420px; margin: 14px 0 0; font-size: .9rem; }
.kt-foot h3 { color: #fff; font-size: .95rem; margin: 4px 0 12px; }
.kt-foot ul { list-style: none; margin: 0; padding: 0; }
.kt-foot li + li { margin-top: 8px; }
.kt-foot a { color: #cfe0dd; text-decoration: none; }
.kt-foot a:hover { color: #5eead4; }
.kt-foot__legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .85rem; }

/* Misc */
.kt-notice { background: #fff8eb; border: 1px solid #fde68a; color: #78350f; padding: 14px 16px; border-radius: 12px; margin: 16px 0 0; }
.kt-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; background: var(--kt-ink); color: #fff; padding: 10px 18px; border-radius: 12px; font-weight: 600; font-size: .92rem; z-index: 100; transition: all .25s ease; box-shadow: var(--kt-shadow-lg); }
.kt-toast.is-in { opacity: 1; transform: translate(-50%, 0); }
.wp-caption { max-width: 100%; }
.gallery { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }

/* Animations */
.kt-js .kt-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.kt-js .kt-reveal.is-in { opacity: 1; transform: none; }
@keyframes kt-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes kt-zoom { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
@keyframes kt-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes kt-pulse { 0% { box-shadow: 0 0 0 0 rgba(20, 184, 166, .45); } 70% { box-shadow: 0 0 0 8px rgba(20, 184, 166, 0); } 100% { box-shadow: 0 0 0 0 rgba(20, 184, 166, 0); } }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.kt-js .kt-reveal { opacity: 1; transform: none; }
}
@media print {
	.kt-head, .kt-foot, .kt-sidebar, .kt-share, .kt-related, .kt-comments, .kt-progress, .kt-postnav { display: none !important; }
	body { background: #fff; }
}
.kt-author .kt-avatar { width: 64px; height: 64px; }
@media (max-width: 720px) { .kt-bloghero__deco { display: none; } }
