/**
 * DailyHealth production polish — design + UX layer (v2)
 * Editorial medical-news look: ink navy, pulse blue, mint accent.
 */

:root {
	--dh-ink: #07111f;
	--dh-blue: #1a8cff;
	--dh-blue-deep: #0a5fbf;
	--dh-green: #1f9d55;
	--dh-mint: #d8f3e3;
	--dh-bg: #f3f7fb;
	--dh-surface: #ffffff;
	--dh-text: #0f172a;
	--dh-muted: #5b6b7c;
	--dh-border: #d9e3ee;
	--dh-radius: 14px;
	--dh-shadow: 0 10px 30px rgba(7, 17, 31, 0.07);
	--dh-landing: 1120px;
	--dh-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

body {
	background:
		radial-gradient(ellipse 90% 55% at 100% -10%, rgba(26, 140, 255, 0.14), transparent 55%),
		radial-gradient(ellipse 70% 45% at -10% 30%, rgba(31, 157, 85, 0.08), transparent 50%),
		linear-gradient(180deg, #eef5fb 0%, var(--dh-bg) 28%, #f7fafc 100%);
	color: var(--dh-text);
}

body.home {
	background: #ffffff;
}

/* ——— Reading progress ——— */
.reading-progress {
	position: fixed;
	top: 0;
	inset-inline: 0;
	height: 3px;
	z-index: 2000;
	pointer-events: none;
	background: transparent;
}

.reading-progress span {
	display: block;
	height: 100%;
	width: 0%;
	background: linear-gradient(90deg, var(--dh-green), var(--dh-blue));
	transition: width 0.1s linear;
}

/* ——— Header ——— */
.site-header {
	border-bottom: 1px solid color-mix(in srgb, var(--dh-border) 80%, transparent);
	background: color-mix(in srgb, var(--dh-surface) 82%, transparent);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

.site-header.is-scrolled {
	box-shadow: var(--dh-shadow);
}

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

.site-tagline {
	margin: 0;
	font-size: 0.72rem;
	color: var(--dh-muted);
	font-weight: 500;
	letter-spacing: 0.01em;
}

.search-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border: 1px solid var(--dh-border);
	border-radius: 12px;
	background: var(--dh-surface);
	color: var(--dh-text);
	cursor: pointer;
}

.header-search {
	border-top: 1px solid var(--dh-border);
	padding: 0.85rem 0 1rem;
	background: var(--dh-surface);
	animation: dhDrop 0.28s var(--dh-ease);
}

.header-search[hidden] {
	display: none !important;
}

@keyframes dhDrop {
	from { opacity: 0; transform: translateY(-6px); }
	to { opacity: 1; transform: translateY(0); }
}

.theme-toggle,
.menu-toggle,
.search-toggle {
	border-radius: 12px;
	transition: transform 0.2s var(--dh-ease), border-color 0.2s ease, background 0.2s ease;
}

.theme-toggle:hover,
.menu-toggle:hover,
.search-toggle:hover {
	transform: translateY(-1px);
}

/* ——— Hero ——— */
.brand-hero {
	isolation: isolate;
}

.brand-hero__bg {
	transform: scale(1.03);
	animation: dhHeroDrift 18s var(--dh-ease) alternate infinite;
}

.brand-hero__bg--fallback {
	animation: none;
	transform: none;
}

.brand-hero__content {
	animation: dhFadeUp 0.75s var(--dh-ease) both;
}

.brand-hero__title {
	text-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.brand-hero__cta {
	box-shadow: 0 12px 28px rgba(26, 140, 255, 0.4);
}

@keyframes dhHeroDrift {
	from { transform: scale(1.03) translate3d(0, 0, 0); }
	to { transform: scale(1.08) translate3d(-1.5%, -1%, 0); }
}

.hero-slider {
	min-height: min(35vh, 650px);
	isolation: isolate;
}

.hero-slide {
	min-height: min(35vh, 650px);
}

.hero-slide__bg {
	transform: scale(1.04);
	transition: transform 6.5s linear;
}

.hero-slide.is-active .hero-slide__bg,
.hero-slider:not(.is-ready) .hero-slide:first-child .hero-slide__bg {
	transform: scale(1);
}

.hero-slide__overlay {
	background:
		linear-gradient(100deg, rgba(7, 17, 31, 0.88) 8%, rgba(7, 17, 31, 0.45) 55%, rgba(7, 17, 31, 0.25) 100%),
		linear-gradient(to top, rgba(7, 17, 31, 0.75), transparent 45%);
}

.hero-slide__content {
	padding-bottom: 4.5rem;
	animation: dhFadeUp 0.7s var(--dh-ease) both;
}

.hero-slide__title {
	font-size: clamp(1.75rem, 5vw, 3rem);
	max-width: 16ch;
	letter-spacing: -0.03em;
	text-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.hero-slide__cat {
	background: linear-gradient(135deg, var(--dh-green), #2ecf7a);
	box-shadow: 0 8px 20px rgba(31, 157, 85, 0.35);
}

.btn--primary {

	border-radius: 12px;
}

.btn--primary:hover {
	filter: brightness(1.05);
	color: #fff;
}

.hero-slider__nav {
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes dhFadeUp {
	from { opacity: 0; transform: translateY(18px); }
	to { opacity: 1; transform: translateY(0); }
}

/* ——— Landing intro ——— */
.landing-intro {
	text-align: center;
	padding: 2rem 0 1.25rem;
	margin-bottom: 0.5rem;
}

.landing-intro__brand {
	margin: 0 0 0.55rem;
	font-family: var(--dh-font-en);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--dh-blue);
}

.landing-intro__title {
	margin: 0;
	font-size: clamp(1.8rem, 4.5vw, 2.6rem);
	letter-spacing: -0.03em;
	line-height: 1.25;
}

.landing-intro__text {
	margin: 0.75rem auto 0;
	max-width: 36ch;
	color: var(--dh-muted);
	font-size: 1.02rem;
}

.landing__kicker {
	display: inline-block;
	margin-bottom: 0.45rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--dh-blue);
}

.landing__title {
	position: relative;
}

.landing__section {
	border-bottom: none;
	position: relative;
}

.landing__section::after {
	content: "";
	display: block;
	height: 1px;
	margin-top: 2.5rem;
	background: linear-gradient(90deg, transparent, var(--dh-border), transparent);
}

.landing__section--newsletter::after {
	display: none;
}

.category-chip {
	border-radius: 999px;
	background: color-mix(in srgb, var(--dh-surface) 90%, var(--dh-mint));
	transition: transform 0.2s var(--dh-ease), border-color 0.2s ease, color 0.2s ease;
}

.category-chip:hover {
	transform: translateY(-2px);
}

/* ——— News items ——— */
.news-item {
	transition: background 0.25s ease;
	border-radius: 0;
	padding-inline: 0;
	margin-inline: 0;
}

.news-item:hover {
	background: transparent;
}

.news-item__media {
	box-shadow: none;
	border-radius: 10px;
}

.news-item__media img {
	transition: transform 0.45s var(--dh-ease);
}

.news-item:hover .news-item__media img {
	transform: scale(1.04);
}

.reveal {
	opacity: 0;
	transform: translateY(22px);
	transition: opacity 0.65s var(--dh-ease), transform 0.65s var(--dh-ease);
}

.reveal.is-visible {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}
	.brand-hero__bg,
	.hero-slide__bg,
	.news-item__media img {
		animation: none !important;
		transition: none !important;
		transform: none !important;
	}
}

/* ——— Single ——— */
.single-hero {
	min-height: min(35vh, 650px);
}

.single-hero__title {
	font-size: clamp(1.7rem, 4vw, 2.6rem);
	letter-spacing: -0.03em;
	max-width: min(48rem, 100%);
}

.entry-content-wrap {
	max-width: var(--dh-landing);
	margin-inline: auto;
}

.entry-content {
	max-width: none;
	font-size: 1.08rem;
}

.entry-content > *:first-child {
	margin-top: 0;
}

.entry-content a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.share-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	padding: 1rem 0;
	margin: 0 0 1.5rem;
	border-bottom: 1px solid var(--dh-border);
}

.share-bar + .share-bar {
	margin-top: 2rem;
	border-top: 1px solid var(--dh-border);
	border-bottom: none;
	padding-top: 1.25rem;
}

.share-bar__label {
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--dh-muted);
}

.share-bar__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
}

.share-bar__btn {
	appearance: none;
	border: 1px solid var(--dh-border);
	background: var(--dh-surface);
	color: var(--dh-text);
	border-radius: 50%;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.8rem;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.share-bar__btn svg {
	display: block;
	flex-shrink: 0;
}

.share-bar__btn:hover,
.share-bar__btn:focus-visible {
	border-color: var(--dh-blue);
	color: var(--dh-blue);
	background: color-mix(in srgb, var(--dh-blue) 8%, var(--dh-surface));
}

.share-bar__btn.is-copied {
	border-color: var(--dh-green);
	color: var(--dh-green);
}

.author-box {
	display: grid;
	grid-template-columns: 72px 1fr;
	gap: 1rem;
	padding: 1.25rem;
	margin: 2rem 0;
	border-radius: var(--dh-radius);
	background:
		linear-gradient(135deg, color-mix(in srgb, var(--dh-blue) 8%, var(--dh-surface)), var(--dh-surface));
	border: 1px solid var(--dh-border);
}

.author-box__img {
	border-radius: 50%;
	display: block;
}

.author-box__label {
	margin: 0;
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--dh-muted);
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.author-box__name {
	margin: 0.2rem 0 0.4rem;
	font-size: 1.1rem;
}

.author-box__name a {
	color: var(--dh-text);
}

.author-box__bio {
	margin: 0;
	color: var(--dh-muted);
	font-size: 0.92rem;
}

.post-tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.65rem;
	margin: 1.75rem 0;
}

.post-tags__label {
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--dh-muted);
}

.post-tags__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.post-tags__list a {
	display: inline-flex;
	padding: 0.3rem 0.7rem;
	border-radius: 999px;
	background: var(--dh-mint);
	color: #0f5132;
	font-size: 0.8rem;
	font-weight: 600;
}

.comments-area {
	margin: 2.5rem 0 1rem;
	padding-top: 2rem;
	border-top: 1px solid var(--dh-border);
	position: relative;
	font-family: var(--dh-font-fa);
}

.comments-area,
.comments-area input,
.comments-area textarea,
.comments-area button,
.comments-area select,
.comments-area label,
.comments-area .comment-reply-title,
.comments-area .comments-title {
	font-family: var(--dh-font-fa);
}

.comments-title {
	font-size: 1.25rem;
}

.comment-list {
	list-style: none;
	padding: 0;
	margin: 1.25rem 0;
}

.comment-list .comment {
	padding: 1rem 0;
	border-bottom: 1px solid var(--dh-border);
}

.comment-form p {
	margin-bottom: 1rem;
}

.comment-form label {
	display: inline-block;
	margin-bottom: 0.35rem;
	font-weight: 500;
}

.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="submit"] {
	width: 100%;
	padding: 0.75rem 0.9rem;
	border: 1px solid var(--dh-border);
	border-radius: 10px;
	background: var(--dh-surface);
	color: var(--dh-text);
	font-family: var(--dh-font-fa);
	font-size: 1rem;
	line-height: 1.5;
}

.comment-form input[type="submit"] {
	width: auto;
	cursor: pointer;
}

.comment-form-cookies-consent {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
}

.comment-form-cookies-consent input {
	margin-top: 0.35rem;
	width: auto;
}

/* Silent anti-spam honeypot — keep in DOM, hide from people */
.dh-as {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.related-posts {
	padding: 2.5rem 0 3rem;
	background: color-mix(in srgb, var(--dh-blue) 4%, transparent);
}

.pagination .page-numbers {
	font-family: var(--dh-font-fa);
}

.landing--archive .pagination {
	padding-top: 1.25rem;
	border-top: 1px solid var(--dh-border);
	margin-top: 1.75rem;
}

/* ——— Footer ——— */
.footer-cta {
	background:
		radial-gradient(ellipse 60% 80% at 0% 50%, rgba(26, 140, 255, 0.25), transparent 55%),
		linear-gradient(135deg, #07111f, #0d2138);
	color: #e8eef8;
	padding: 2.5rem 0;
	margin-bottom: 2.5rem;
}

.footer-cta__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
}

.footer-cta__eyebrow {
	margin: 0 0 0.35rem;
	font-family: var(--dh-font-en);
	font-size: 0.78rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #7eb6ff;
}

.footer-cta__title {
	margin: 0;
	color: #fff;
	font-size: clamp(1.35rem, 3vw, 1.85rem);
}

.footer-cta__text {
	margin: 0.5rem 0 0;
	max-width: 40ch;
	color: rgba(255, 255, 255, 0.75);
}

.footer-brand {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	margin-bottom: 0.5rem;
}

.footer-bottom__note {
	margin: 0.5rem 0 0;
	opacity: 0.7;
	font-size: 0.8rem;
}

.social-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.social-links a {
	display: inline-flex;
	width: 40px;
	height: 40px;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.2);
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
	transition: background 0.2s ease, transform 0.2s ease;
}

.social-links a:hover {
	background: rgba(255, 255, 255, 0.16);
	transform: translateY(-2px);
	color: #fff;
}

.social-links__icon {
	width: 16px;
	height: 16px;
	display: block;
	background: currentColor;
	mask-size: contain;
	mask-repeat: no-repeat;
	mask-position: center;
	-webkit-mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	-webkit-mask-position: center;
}

.social-links__icon--instagram {
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Ccircle cx='17.5' cy='6.5' r='1'/%3E%3C/svg%3E");
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Ccircle cx='17.5' cy='6.5' r='1'/%3E%3C/svg%3E");
}

.social-links__icon--telegram {
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M21.5 4.5L2.8 11.7c-1 .4-1 1.2-.2 1.5l4.8 1.5 1.8 5.6c.2.7.6.8 1.2.5l2.6-2.1 5 3.7c.6.4 1 .2 1.2-.5L22.7 5.6c.3-.9-.3-1.4-1.2-1.1z'/%3E%3C/svg%3E");
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M21.5 4.5L2.8 11.7c-1 .4-1 1.2-.2 1.5l4.8 1.5 1.8 5.6c.2.7.6.8 1.2.5l2.6-2.1 5 3.7c.6.4 1 .2 1.2-.5L22.7 5.6c.3-.9-.3-1.4-1.2-1.1z'/%3E%3C/svg%3E");
}

.social-links__icon--twitter,
.social-links__icon--linkedin,
.social-links__icon--youtube {
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3C/svg%3E");
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3C/svg%3E");
}

.newsletter--landing {
	position: relative;
	overflow: hidden;
	border-radius: 20px;
	padding: 2.5rem 1.5rem;
	box-shadow: 0 20px 50px rgba(10, 95, 191, 0.28);
}

.newsletter--landing::before {
	content: "";
	position: absolute;
	inset: auto -20% -40% auto;
	width: 220px;
	height: 220px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	pointer-events: none;
}

/* ——— Print ——— */
@media print {
	.site-header,
	.site-footer,
	.reading-progress,
	.share-bar,
	.theme-toggle,
	.menu-toggle,
	.search-toggle,
	.hero-slider__nav,
	.hero-slider__footer {
		display: none !important;
	}

	body {
		background: #fff;
		color: #000;
	}

	.entry-content {
		max-width: none;
	}
}

@media (min-width: 768px) {
	.brand-hero,
	.single-hero,
	.hero-slider,
	.hero-slide {
		min-height: min(65vh, 650px);
	}

	.landing-intro {
		padding-top: 2.75rem;
	}
}
