/*
Theme Name: Say In Love
Theme URI: http://sayinlove.local/
Author: Say In Love
Description: Giao diện cho website tạo lời nhắn yêu thương online. Dùng kèm plugin "Say In Love – Love Message Creator".
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: sayinlove
License: GPLv2 or later
*/

:root {
	--ink: #172245;
	--ink-h: #1c274c;
	--ink-2: #59637e;
	--ink-3: #777f96;
	--muted: #8990a7;
	--pink: #ff336b;
	--pink-2: #ff2f66;
	--pink-3: #e3205c;
	--line: #f2e3e8;
	--soft: #fff4f7;
	--navy: #111b43;
	--shadow: 0 12px 32px rgba(27, 31, 63, 0.06);
	--font: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
	--script: "Dancing Script", cursive;
	--header-h: 77px;
}

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

html { scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: linear-gradient(180deg, #fff 0%, #fff7f9 46%, #fff 100%);
	color: var(--ink);
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
.site-main { flex: 1; }

img { max-width: 100%; height: auto; }
a { color: var(--pink); }
a:hover { color: var(--pink-3); }
h1, h2, h3, h4 { color: var(--ink-h); line-height: 1.2; text-wrap: balance; }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 1000; padding: 10px 14px; border-radius: 10px; background: #fff; }
.skip-link:focus { left: 8px; }

.shell, .sil-shell { width: min(1320px, calc(100% - 36px)); margin-inline: auto; }
.ico { width: 20px; height: 20px; flex: none; }

/* ---------- Nút ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 12px 20px;
	border: 0;
	border-radius: 12px;
	font: inherit;
	font-weight: 800;
	font-size: 16px;
	line-height: 1.5;
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
	transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: linear-gradient(135deg, #ff336b, #ec2b68); color: #fff; box-shadow: 0 12px 24px rgba(255, 51, 107, 0.24); }
.btn--primary:hover { color: #fff; filter: brightness(1.04); }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: 14px; border-radius: 10px; }

/* ---------- Header ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, 0.86);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border-bottom: 1px solid rgba(241, 219, 227, 0.72);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.site-header__inner { display: flex; align-items: center; gap: 28px; height: 76px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; flex: none; }
.brand:hover { color: var(--ink); }
.brand__mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #fff; color: var(--pink); box-shadow: 0 8px 20px rgba(255, 51, 107, 0.16); }
.brand__mark svg { width: 30px; height: 30px; }
.brand__text { display: grid; line-height: 1.05; }
.brand__top { font-size: 17px; font-weight: 900; font-style: italic; color: var(--pink-2); }
.brand__bottom { font-size: 22px; font-weight: 800; color: var(--pink-3); }
.custom-logo-link img { max-height: 48px; width: auto; }

.site-nav { flex: 1; display: flex; align-items: center; justify-content: center; }
.site-nav .menu { display: flex; align-items: center; gap: 26px; margin: 0; padding: 0; list-style: none; }
.site-nav .menu > li { position: relative; }
.site-nav .menu a { display: block; padding: 6px 0; color: #303a5f; font-size: 14px; font-weight: 800; text-decoration: none; white-space: nowrap; transition: color 0.2s; }
.site-nav .menu a:hover, .site-nav .current-menu-item > a, .site-nav .current_page_item > a { color: var(--pink); }
.site-nav .sub-menu { position: absolute; left: -14px; top: 100%; min-width: 220px; margin: 0; padding: 8px; list-style: none; border-radius: 14px; background: #fff; box-shadow: 0 20px 40px rgba(28, 39, 76, 0.12); opacity: 0; visibility: hidden; transform: translateY(6px); transition: 0.2s; }
.site-nav .sub-menu a { padding: 8px 12px; border-radius: 8px; }
.site-nav li:hover > .sub-menu, .site-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.site-nav__search { display: none; }

.site-header__actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; text-decoration: none; }
.icon-btn .ico { width: 18px; height: 18px; }
.icon-btn:hover { color: var(--pink); }
.search-toggle { width: 30px; }
.site-header__cta { min-height: 50px; padding: 12px 20px; font-size: 16px; }
.site-header__cta .ico { width: 17px; height: 17px; fill: currentColor; }
.account-btn { border-radius: 50%; background: #fff; border: 1px solid #f0dfe6; box-shadow: 0 0 0 4px #fff, 0 0 0 5px #f3d9e0; }
.menu-toggle { display: none; border: 1px solid #f0dfe6; border-radius: 12px; background: #fff; }

.search-panel { border-top: 1px solid #f6e8ee; background: rgba(255, 255, 255, 0.96); }
.search-panel__form { display: flex; gap: 8px; padding: 12px 0; }
.search-panel input, .search-inline input, .site-nav__search input {
	flex: 1;
	min-height: 46px;
	padding: 0 14px;
	border: 1px solid #e6dce1;
	border-radius: 12px;
	font: inherit;
	background: #fff;
}
.search-panel input:focus, .search-inline input:focus, .site-nav__search input:focus { outline: none; border-color: #ff9ab3; box-shadow: 0 0 0 4px rgba(255, 47, 102, 0.1); }

@media (max-width: 1120px) {
	.menu-toggle { display: inline-grid; }
	.search-toggle { display: none; }
	.site-nav {
		position: fixed;
		inset: var(--header-h) 0 auto 0;
		display: block;
		max-height: calc(100vh - var(--header-h));
		overflow: auto;
		padding: 14px 18px 24px;
		background: #fff;
		box-shadow: 0 30px 40px rgba(28, 39, 76, 0.12);
		transform: translateY(-12px);
		opacity: 0;
		visibility: hidden;
		transition: 0.25s;
	}
	.admin-bar .site-nav { top: calc(var(--header-h) + 32px); }
	.nav-open .site-nav { transform: none; opacity: 1; visibility: visible; }
	.site-nav .menu { flex-direction: column; align-items: stretch; gap: 0; }
	.site-nav .menu a { padding: 12px 6px; font-size: 16px; border-bottom: 1px solid #f7eef2; }
	.site-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 0 14px; }
	.site-nav__search { display: flex; gap: 8px; margin-top: 14px; }
	.site-nav__search button { width: 46px; border: 0; border-radius: 12px; background: var(--pink); color: #fff; cursor: pointer; display: grid; place-items: center; }
}
@media (max-width: 560px) {
	.site-header__inner { gap: 10px; height: 68px; }
	:root { --header-h: 69px; }
	.site-header__actions { gap: 8px; }
	.site-header__cta span { display: none; }
	.site-header__cta { width: 44px; min-height: 44px; padding: 0; }
	.brand__mark { width: 38px; height: 38px; }
	.brand__top { font-size: 14px; }
	.brand__bottom { font-size: 18px; }
	.account-btn { display: none; }
}

/* ---------- Chung ---------- */
.kicker, .sil-kicker { margin: 0 0 10px; color: var(--pink); font-size: 13px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.lead, .sil-lead { margin: 0; color: var(--ink-2); font-size: 16px; line-height: 1.6; }

/* ---------- Hero trang chủ ---------- */
.hero {
	position: relative;
	padding: 36px 0 24px;
	background:
		radial-gradient(circle at 10% 20%, #ffe7ee 0, transparent 30%),
		radial-gradient(circle at 90% 14%, #fff1f5 0, transparent 24%);
}
.hero__grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 1100px) {
	.hero__grid { grid-template-columns: minmax(0, 1fr) 600px; gap: 44px; }
}
.hero__copy { padding-top: 4px; }
.hero h1 { margin: 0 0 18px; font-size: clamp(38px, 4.1vw, 59px); line-height: 1.02; font-weight: 900; letter-spacing: -0.02em; color: var(--ink-h); }
.hero h1 span { display: block; color: var(--pink); }
.hero .lead { max-width: 560px; }
.hearts-list { display: grid; gap: 9px; margin: 20px 0 0; padding: 0; list-style: none; }
.hearts-list li { display: flex; align-items: center; gap: 10px; color: #56607a; font-weight: 600; }
.hearts-list li::before { content: "♥"; color: var(--pink); font-size: 15px; }
.hero__creator { min-width: 0; }

/* ---------- Section ---------- */
.section, .sil-section { padding: 54px 0 42px; }
.section__head, .sil-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section__kicker { display: block; margin: 0 0 8px; color: var(--pink); font-size: 12px; font-weight: 900; letter-spacing: 0.04em; text-transform: uppercase; }
.section__head h2, .sil-section__head h2 { margin: 0; font-size: clamp(26px, 2.4vw, 34px); font-weight: 900; color: var(--ink-h); }
.section__more { flex: none; font-weight: 800; text-decoration: none; }

/* ---------- Nội dung bài viết trang chủ ---------- */
.content-band { padding: 34px 0 54px; }
.prose { font-size: 16px; line-height: 1.6; color: var(--ink); }
.prose h2 { margin: 1.25em 0 0.8em; font-size: 24px; font-weight: 900; }
.prose h3 { margin: 1.2em 0 0.7em; font-size: 18.7px; font-weight: 900; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 40px; }
.prose hr { border: 0; border-top: 1px solid #1c274c; margin: 28px 0; opacity: 0.8; }
.prose blockquote { margin: 1.2em 0; padding: 14px 20px; border-left: 4px solid #ff9ab3; border-radius: 0 12px 12px 0; background: var(--soft); }
.prose img { border-radius: 12px; }
.prose a { font-weight: 600; }
.prose > :first-child { margin-top: 0; }

/* ---------- Trang con ---------- */
.inner-hero {
	position: relative;
	overflow: hidden;
	padding: 54px 0 38px;
	border-bottom: 1px solid rgba(241, 219, 227, 0.72);
	background:
		radial-gradient(circle at 8% 18%, #ffe4ed 0, transparent 31%),
		radial-gradient(circle at 90% 8%, #f1efff 0, transparent 28%),
		linear-gradient(180deg, #fff, #fff5f8);
}
.inner-hero__bubbles { position: absolute; right: 6%; top: 50%; width: 260px; height: 160px; pointer-events: none; }
.inner-hero__bubbles i { position: absolute; border-radius: 50%; background: linear-gradient(135deg, #ffd7e2, #fff); opacity: 0.8; }
.inner-hero__bubbles i:first-child { width: 70px; height: 70px; right: 60px; top: 10px; }
.inner-hero__bubbles i:last-child { width: 44px; height: 44px; right: 120px; top: 44px; opacity: 0.6; }
.inner-hero__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.inner-hero h1 { margin: 0; font-size: clamp(34px, 4vw, 58px); line-height: 1.05; font-weight: 900; color: var(--ink); max-width: 920px; }
.inner-hero__desc { max-width: 760px; margin: 10px 0 0; color: var(--ink-2); font-size: 15px; }
.inner-hero .kicker { font-size: 12px; }

.readable-wrap { width: min(920px, calc(100% - 36px)); padding: 40px 0 64px; }
.content-card { padding: 28px; border: 1px solid #f0dfe6; border-radius: 16px; background: #fff; box-shadow: 0 14px 38px rgba(40, 43, 78, 0.06); }
@media (max-width: 600px) { .content-card { padding: 18px; } }
.page-wide { padding: 34px 0 64px; }
.page-body { padding: 34px 0 64px; }

.post-cover { margin: 0 0 22px; }
.post-cover img { display: block; width: 100%; border-radius: 16px; }
.post-cta { margin: 26px 0; padding: 26px; border-radius: 16px; text-align: center; background: linear-gradient(135deg, #fff0f5, #eef1ff); border: 1px solid var(--line); }
.post-cta h2 { margin: 0 0 6px; font-size: 22px; font-weight: 900; }
.post-cta p { margin: 0 0 16px; color: var(--ink-2); }
.post-nav { display: flex; justify-content: space-between; gap: 18px; font-weight: 700; }
.post-nav a { text-decoration: none; }

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.post-card { overflow: hidden; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.post-card__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, #ffe3ec, #fff7fa); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__ph { display: grid; place-items: center; height: 100%; font-size: 48px; }
.post-card__body { padding: 14px 16px 18px; }
.post-card__meta { margin: 0 0 4px; font-size: 12px; color: var(--muted); font-weight: 800; }
.post-card__title { margin: 0 0 6px; font-size: 17px; font-weight: 900; }
.post-card__title a { color: var(--ink-h); text-decoration: none; }
.post-card__title a:hover { color: var(--pink); }
.post-card__excerpt { margin: 0; color: var(--ink-3); font-size: 14px; }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 34px; }
.pager .page-numbers { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 700; text-decoration: none; }
.pager .current { background: var(--pink); border-color: var(--pink); color: #fff; }
.empty-state { text-align: center; color: var(--ink-2); }
.empty-state__icon { font-size: 52px; margin: 0; }
.search-inline { display: flex; gap: 8px; max-width: 620px; margin: 24px 0 0; }

/* ---------- Footer ---------- */
.site-footer { position: relative; margin-top: 70px; padding-bottom: 6px; background: var(--navy); color: #c7cee7; }
.cta-bar { position: relative; top: -44px; margin-bottom: -10px; }
.cta-bar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 24px 32px;
	border-radius: 16px;
	background: linear-gradient(90deg, #ff3d6e, #e8457f 40%, #8a4fd8);
	box-shadow: 0 20px 40px rgba(17, 27, 67, 0.25);
	color: #fff;
}
.cta-bar strong { display: block; font-size: 24px; font-weight: 700; line-height: 1.6; }
.cta-bar span { display: block; color: rgba(255, 255, 255, 0.85); font-size: 15px; }
.cta-bar a { flex: none; padding: 12px 20px; border-radius: 12px; background: #fff; color: var(--pink); font-weight: 800; text-decoration: none; }
.cta-bar a:hover { color: var(--pink-3); }
.site-footer__grid { display: grid; gap: 34px; padding: 4px 0 34px; }
@media (min-width: 900px) { .site-footer__grid { grid-template-columns: 1.6fr 0.85fr 0.85fr 1.35fr; } }
.site-footer .brand__mark { background: #fff; }
.site-footer .brand__top { color: #ff6b93; }
.site-footer .brand__bottom { color: #ff4f80; }
.site-footer__brand p { max-width: 420px; margin: 16px 0; color: #b9c0d8; }
.site-footer h3 { margin: 0 0 14px; color: #fff; font-size: 18.7px; font-weight: 900; }
.site-footer .menu { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.site-footer .menu a { color: #c7cee7; font-weight: 800; text-decoration: none; }
.site-footer .menu a:hover { color: #fff; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 18px 0 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 13px; color: #9aa3c3; }
.site-footer__bottom p { margin: 0; }
.site-footer__bottom a { color: #9aa3c3; }
@media (max-width: 700px) {
	.cta-bar__inner { flex-direction: column; align-items: flex-start; padding: 20px; }
	.cta-bar strong { font-size: 20px; }
}

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