/*
Theme Name: Autism Tools
Theme URI: https://example.com/autismtools
Author: Autism Tools Team
Author URI: https://example.com
Description: Giao diện nền tảng cho trang Autism Tools.
Version: 0.1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: autismtools
*/

:root {
	--color-dark: #222222;
	--color-gray: #f5f5f5;
	--color-primary: #2941ab;
	--body-font: "Inter", "Segoe UI", sans-serif;
}

body {
	margin: 0;
	font-family: var(--body-font);
	color: var(--color-dark);
	background: var(--color-gray);
	line-height: 1.6;
}

a {
	color: var(--color-primary);
	text-decoration: none;
}

.site {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.site-main {
	flex: 1;
	padding: 2rem 1rem;
	max-width: 900px;
	margin: 0 auto;
	background: #ffffff;
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.site-header,
.site-footer {
	background: #ffffff;
	padding: 1.5rem;
	text-align: center;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
}

.site-announcement {
	background: var(--color-primary);
	color: #ffffff;
	padding: 0.5rem 1rem;
	text-align: center;
	font-weight: 600;
	font-size: 0.95rem;
}

.announcement-link {
	color: #ffffff;
	font-weight: 600;
	margin-left: 0.5rem;
	text-decoration: underline;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 90;
	background: #fff;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.site-header-inner {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 1.5rem;
	padding: 1.5rem 2rem;
}

.site-branding {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.site-title {
	font-size: 1.45rem;
	font-weight: 700;
	color: var(--color-dark);
}

.site-tagline {
	font-size: 0.95rem;
	color: #555;
	margin: 0;
}

.site-nav {
	display: flex;
	justify-content: flex-end;
}

.primary-menu {
	list-style: none;
	display: flex;
	gap: 1.5rem;
	margin: 0;
	padding: 0;
	font-weight: 600;
}

.primary-menu a {
	color: var(--color-dark);
	padding-bottom: 0.25rem;
	border-bottom: 2px solid transparent;
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a {
	border-color: var(--color-primary);
	color: var(--color-primary);
}

.header-cta {
	display: flex;
	justify-content: flex-end;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.75rem 1.5rem;
	border-radius: 999px;
	font-weight: 600;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
	background: var(--color-primary);
	color: #fff;
	box-shadow: 0 10px 20px rgba(41, 65, 171, 0.2);
}

.btn-secondary {
	background: #fff;
	color: var(--color-primary);
	border: 1px solid rgba(41, 65, 171, 0.35);
}

.btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 12px 22px rgba(41, 65, 171, 0.25);
}

.menu-toggle {
	display: none;
	align-items: center;
	gap: 0.5rem;
	border: 1px solid rgba(34, 34, 34, 0.2);
	background: transparent;
	padding: 0.4rem 0.75rem;
	border-radius: 999px;
	font-weight: 600;
	cursor: pointer;
}

.menu-toggle__icon {
	width: 16px;
	height: 2px;
	background: var(--color-dark);
	position: relative;
	display: inline-block;
}

.menu-toggle__icon::before,
.menu-toggle__icon::after {
	content: '';
	position: absolute;
	left: 0;
	width: 16px;
	height: 2px;
	background: inherit;
}

.menu-toggle__icon::before {
	top: -5px;
}

.menu-toggle__icon::after {
	top: 5px;
}

.site-main {
	flex: 1;
	padding: 3rem 1.5rem;
	max-width: 1100px;
	margin: -60px auto 2rem;
	background: #ffffff;
	border-radius: 24px;
}

.site-footer {
	background: #101223;
	color: #d9dcff;
	padding: 3rem 2rem 1.5rem;
	text-align: left;
	box-shadow: none;
}

.footer-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 2rem;
	margin-bottom: 2rem;
}

.footer-brand .site-title {
	color: #ffffff;
}

.footer-social,
.footer-menu,
.footer-contact-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-social li,
.footer-contact-list li {
	margin-bottom: 0.35rem;
}

.footer-social a,
.footer-menu a {
	color: #d9dcff;
}

.footer-contact-list span {
	font-weight: 600;
	color: #ffffff;
}

.footer-links h3,
.footer-contact h3,
.footer-newsletter h3 {
	margin-top: 0;
	color: #ffffff;
}

.newsletter-form {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.newsletter-form input {
	border-radius: 999px;
	border: none;
	padding: 0.85rem 1.25rem;
	font-size: 0.95rem;
}

.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding-top: 1rem;
	text-align: center;
	font-size: 0.85rem;
	color: #9aa0d0;
}

.remote-posts {
	margin: 3rem auto;
	padding: 2rem;
	background: #ffffff;
	border-radius: 24px;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.remote-posts__header h2 {
	margin: 0 0 0.5rem;
	font-size: 1.75rem;
}

.remote-posts__header p {
	margin: 0 0 1.5rem;
	color: #5c5f7a;
}

.remote-posts__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 1.5rem;
}

.remote-post-card {
	display: flex;
	flex-direction: column;
	background: var(--color-gray);
	border-radius: 18px;
	overflow: hidden;
	border: 1px solid rgba(0, 0, 0, 0.04);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.remote-post-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 25px 35px rgba(0, 0, 0, 0.1);
}

.remote-post-card__thumb {
	display: block;
	position: relative;
	overflow: hidden;
}

.remote-post-card__thumb img {
	width: 100%;
	height: 180px;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.remote-post-card__thumb:hover img {
	transform: scale(1.05);
}

.remote-post-card__body {
	padding: 1.25rem 1.5rem 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.remote-post-card__date {
	font-size: 0.85rem;
	color: #8a8ea8;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.remote-post-card__title {
	margin: 0;
	font-size: 1.15rem;
}

.remote-post-card__title a {
	color: var(--color-dark);
}

.remote-post-card__title a:hover {
	color: var(--color-primary);
}

.remote-post-card__excerpt {
	margin: 0;
	color: #5d6075;
	font-size: 0.95rem;
}

.remote-posts__empty {
	margin: 0;
	color: #777;
}

@media (max-width: 900px) {
	.site-header-inner {
		grid-template-columns: auto auto;
	}

	.site-nav {
		order: 3;
		width: 100%;
	}

	.header-cta {
		order: 4;
		width: 100%;
		justify-content: flex-start;
	}
}

@media (max-width: 768px) {
	.site-header-inner {
		grid-template-columns: 1fr auto;
		gap: 1rem;
	}

	.menu-toggle {
		display: inline-flex;
	}

	.site-nav {
		display: none;
	}

	.site-nav.is-open {
		display: block;
		grid-column: 1 / -1;
		background: #fff;
		border-radius: 16px;
		padding: 1rem 1.5rem;
		box-shadow: 0 20px 35px rgba(0, 0, 0, 0.08);
	}

	.primary-menu {
		flex-direction: column;
	}

	.header-cta {
		grid-column: 1 / -1;
	}

	.site-main {
		margin: 1rem;
		border-radius: 18px;
	}
}

