/*
Theme Name: Maharana Wellness Blog
Theme URI: https://drmaharanas.com
Author: Maharana Wellness Clinic
Author URI: https://drmaharanas.com
Description: Blog theme for Maharana Wellness Clinic, matching the colors, fonts, and header/footer design of drmaharanas.com. Optimized for reading blog posts — large featured images, comfortable reading width, comments, and social sharing.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: maharana-blog
*/

@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&family=Lato:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&display=swap');

/* ==========================================================================
   1. Design tokens — matched to drmaharanas.com's palette and typography
   ========================================================================== */
:root {
	--background: 0 0% 100%;
	--foreground: 170 15% 12%;

	--card: 0 0% 100%;
	--card-foreground: 170 15% 12%;

	--primary: 170 74% 17%;
	--primary-foreground: 0 0% 100%;

	--secondary: 45 47% 69%;
	--secondary-foreground: 170 30% 15%;

	--muted: 45 30% 96%;
	--muted-foreground: 170 10% 40%;

	--accent: 45 40% 93%;
	--accent-foreground: 170 74% 17%;

	--border: 45 25% 85%;

	--footer-bg: 170 74% 17%;
	--footer-text: 0 0% 100%;

	--radius: 0.75rem;

	--font-serif: 'Merriweather', Georgia, serif;
	--font-sans: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;

	--content-width: 1300px;
	--reading-width: 700px;
}

/* ==========================================================================
   2. Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.7;
	color: hsl(var(--foreground));
	background-color: hsl(var(--background));
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

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

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-serif);
	font-weight: 700;
	line-height: 1.25;
	color: hsl(var(--foreground));
	margin: 0 0 0.6em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p { margin: 0 0 1.25em; }

ul, ol { padding-left: 1.4em; margin: 0 0 1.25em; }

blockquote {
	margin: 1.5em 0;
	padding: 0.75em 1.5em;
	border-left: 4px solid hsl(var(--secondary));
	background: hsl(var(--muted));
	font-style: italic;
	color: hsl(var(--muted-foreground));
	border-radius: 0 var(--radius) var(--radius) 0;
}

.container {
	max-width: var(--content-width);
	margin: 0 auto;
	padding: 0 24px;
}

.screen-reader-text {
	position: absolute;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* ==========================================================================
   3. Header
   ========================================================================== */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: hsl(var(--primary));
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.site-header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	height: 76px;
}

.site-branding {
	display: flex;
	align-items: center;
	gap: 12px;
	color: #fff;
}

.site-branding img.custom-logo,
.site-branding .site-logo-fallback {
	height: 52px;
	width: 52px;
	border-radius: 999px;
	object-fit: contain;
	background: rgba(255, 255, 255, 0.1);
	padding: 2px;
}

.site-branding .site-name-group {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
}

.site-branding .site-title {
	font-family: var(--font-serif);
	font-size: 1.35rem;
	font-weight: 700;
	color: #fff;
	margin: 0;
}

.site-branding .site-tagline {
	font-size: 0.75rem;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.8);
	letter-spacing: 0.02em;
}

.main-navigation {
	display: none;
}

@media (min-width: 992px) {
	.main-navigation { display: block; }
}

.main-navigation ul {
	display: flex;
	align-items: center;
	gap: 2px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.main-navigation li { position: relative; }

.main-navigation a {
	display: inline-block;
	padding: 10px 16px;
	border-radius: 8px;
	font-size: 1rem;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.8);
	white-space: nowrap;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
	color: #fff;
	background: rgba(255, 255, 255, 0.12);
	text-decoration: none;
}

.header-cta {
	display: none;
}

@media (min-width: 768px) {
	.header-cta {
		display: inline-flex;
		align-items: center;
		gap: 8px;
		height: 42px;
		padding: 0 20px;
		border-radius: 999px;
		border: 2px solid #fff;
		background: transparent;
		color: #fff;
		font-weight: 600;
		font-size: 0.9rem;
		white-space: nowrap;
		transition: background-color 0.25s ease, color 0.25s ease;
	}
	.header-cta:hover {
		background: #fff;
		color: hsl(var(--primary));
		text-decoration: none;
	}
}

.menu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 8px;
	border: 1px solid rgba(255, 255, 255, 0.3);
	background: transparent;
	color: #fff;
	cursor: pointer;
}

@media (min-width: 992px) {
	.menu-toggle { display: none; }
}

.menu-toggle svg { width: 20px; height: 20px; }

.mobile-navigation {
	display: none;
	background: hsl(var(--primary));
	border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.mobile-navigation.is-open { display: block; }

@media (min-width: 992px) {
	.mobile-navigation { display: none !important; }
}

.mobile-navigation ul {
	list-style: none;
	margin: 0;
	padding: 12px 24px 24px;
}

.mobile-navigation a {
	display: block;
	padding: 12px 8px;
	color: rgba(255, 255, 255, 0.85);
	font-weight: 500;
	font-size: 1.05rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-navigation a:hover { color: #fff; text-decoration: none; }

.mobile-navigation .header-cta {
	display: inline-flex;
	margin-top: 12px;
}

/* ==========================================================================
   4. Blog list (index.php / archives)
   ========================================================================== */
.page-hero {
	background: hsl(var(--accent));
	padding: 64px 0 48px;
	text-align: center;
}

.page-hero h1 {
	color: hsl(var(--primary));
	margin-bottom: 0.3em;
}

.page-hero p {
	color: hsl(var(--muted-foreground));
	font-size: 1.15rem;
	margin: 0;
}

.blog-main { padding: 56px 0 80px; }

.post-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 40px;
	max-width: 900px;
	margin: 0 auto;
}

.post-card {
	display: flex;
	flex-direction: column;
	border-radius: var(--radius);
	overflow: hidden;
	background: hsl(var(--card));
	border: 1px solid hsl(var(--border));
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.post-card:hover {
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}

.post-card .post-thumb {
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: hsl(var(--muted));
}

.post-card .post-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.post-card-body { padding: 28px 28px 32px; }

.post-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	font-size: 0.82rem;
	color: hsl(var(--muted-foreground));
	margin-bottom: 10px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.post-meta .post-category {
	color: hsl(var(--primary));
	font-weight: 700;
}

.post-card h2 {
	font-size: 1.5rem;
	margin-bottom: 0.4em;
}

.post-card h2 a { color: hsl(var(--foreground)); }
.post-card h2 a:hover { color: hsl(var(--primary)); text-decoration: none; }

.post-excerpt {
	color: hsl(var(--muted-foreground));
	margin-bottom: 16px;
}

.read-more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 700;
	font-size: 0.95rem;
	color: hsl(var(--primary));
}

.pagination {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 56px;
}

.pagination a, .pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 10px;
	border-radius: 8px;
	border: 1px solid hsl(var(--border));
	color: hsl(var(--foreground));
	font-weight: 600;
}

.pagination .current {
	background: hsl(var(--primary));
	border-color: hsl(var(--primary));
	color: #fff;
}

.pagination a:hover { background: hsl(var(--muted)); text-decoration: none; }

.no-results {
	text-align: center;
	padding: 60px 20px;
	color: hsl(var(--muted-foreground));
}

/* ==========================================================================
   5. Single post
   ========================================================================== */
.single-post-header {
	background: hsl(var(--accent));
	padding: 48px 0 40px;
}

.single-post-header .container { max-width: var(--reading-width); }

.post-category-badge {
	display: inline-block;
	padding: 6px 14px;
	border-radius: 999px;
	background: hsl(var(--primary) / 0.1);
	color: hsl(var(--primary));
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-bottom: 16px;
}

.single-post-header h1 {
	font-size: 2.25rem;
	margin-bottom: 16px;
}

@media (min-width: 768px) {
	.single-post-header h1 { font-size: 2.75rem; }
}

.single-post-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px;
	font-size: 0.92rem;
	color: hsl(var(--muted-foreground));
	padding-top: 16px;
	border-top: 1px solid hsl(var(--border));
}

.single-post-meta span { display: inline-flex; align-items: center; gap: 6px; }

.featured-image-wrap {
	max-width: 1000px;
	margin: -24px auto 40px;
	padding: 0 24px;
}

.featured-image-wrap img {
	width: 100%;
	max-height: 560px;
	object-fit: cover;
	border-radius: var(--radius);
	box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
}

.single-post-content {
	max-width: var(--reading-width);
	margin: 0 auto;
	padding: 0 24px 56px;
	font-size: 1.125rem;
	line-height: 1.85;
	color: hsl(var(--foreground));
}

.single-post-content h2 { font-size: 1.6rem; margin-top: 1.6em; }
.single-post-content h3 { font-size: 1.3rem; margin-top: 1.4em; }

.single-post-content img {
	border-radius: var(--radius);
	margin: 1.5em 0;
}

.single-post-content a { text-decoration: underline; }

.post-tags {
	max-width: var(--reading-width);
	margin: 0 auto 32px;
	padding: 0 24px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.post-tags a {
	display: inline-block;
	padding: 6px 14px;
	border-radius: 999px;
	background: hsl(var(--muted));
	color: hsl(var(--muted-foreground));
	font-size: 0.85rem;
}

.post-tags a:hover { background: hsl(var(--accent)); text-decoration: none; }

/* Author box */
.author-box {
	max-width: var(--reading-width);
	margin: 0 auto 40px;
	padding: 24px;
	display: flex;
	gap: 18px;
	align-items: flex-start;
	background: hsl(var(--muted));
	border-radius: var(--radius);
	border: 1px solid hsl(var(--border));
}

.author-box img {
	width: 64px;
	height: 64px;
	border-radius: 999px;
	object-fit: cover;
	flex-shrink: 0;
}

.author-box .author-name {
	font-family: var(--font-serif);
	font-weight: 700;
	font-size: 1.05rem;
	margin-bottom: 4px;
	color: hsl(var(--foreground));
}

.author-box .author-bio {
	font-size: 0.92rem;
	color: hsl(var(--muted-foreground));
	margin: 0;
}

/* Social share */
.social-share {
	max-width: var(--reading-width);
	margin: 0 auto 48px;
	padding: 24px;
	border-top: 1px solid hsl(var(--border));
	border-bottom: 1px solid hsl(var(--border));
}

.social-share .share-label {
	font-weight: 700;
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: hsl(var(--muted-foreground));
	margin-bottom: 14px;
}

.social-share .share-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.social-share a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	border-radius: 999px;
	font-size: 0.88rem;
	font-weight: 600;
	color: #fff;
}

.social-share a:hover { opacity: 0.9; text-decoration: none; }

.social-share .share-facebook { background: #1877f2; }
.social-share .share-twitter { background: #000000; }
.social-share .share-linkedin { background: #0a66c2; }
.social-share .share-whatsapp { background: #25d366; }

/* Post navigation (prev/next) */
.post-nav {
	max-width: var(--reading-width);
	margin: 0 auto 48px;
	padding: 0 24px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.post-nav a {
	display: block;
	padding: 18px 20px;
	border-radius: var(--radius);
	border: 1px solid hsl(var(--border));
	color: hsl(var(--foreground));
}

.post-nav a:hover { background: hsl(var(--muted)); text-decoration: none; }

.post-nav .nav-label {
	display: block;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: hsl(var(--muted-foreground));
	margin-bottom: 4px;
}

.post-nav .nav-next { text-align: right; }

/* ==========================================================================
   6. Comments
   ========================================================================== */
.comments-area {
	max-width: var(--reading-width);
	margin: 0 auto;
	padding: 0 24px 80px;
}

.comments-title {
	font-size: 1.5rem;
	margin-bottom: 24px;
}

.comment-list {
	list-style: none;
	margin: 0 0 40px;
	padding: 0;
}

.comment-list .children {
	list-style: none;
	margin: 0;
	padding-left: 40px;
}

.comment-body {
	display: flex;
	gap: 14px;
	padding: 20px 0;
	border-bottom: 1px solid hsl(var(--border));
}

.comment-body .avatar {
	border-radius: 999px;
	flex-shrink: 0;
}

.comment-author {
	font-weight: 700;
	font-size: 0.95rem;
	color: hsl(var(--foreground));
}

.comment-metadata {
	font-size: 0.8rem;
	color: hsl(var(--muted-foreground));
	margin-bottom: 8px;
}

.comment-content p { margin: 0 0 0.75em; }

.comment-reply-link {
	font-size: 0.82rem;
	font-weight: 700;
	color: hsl(var(--primary));
}

.comment-respond {
	background: hsl(var(--muted));
	border-radius: var(--radius);
	padding: 28px;
}

.comment-reply-title { margin-bottom: 6px; }

.comment-form p { margin-bottom: 16px; }

.comment-form label {
	display: block;
	font-weight: 600;
	font-size: 0.9rem;
	margin-bottom: 6px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid hsl(var(--border));
	border-radius: 8px;
	font-family: var(--font-sans);
	font-size: 1rem;
	background: hsl(var(--background));
	color: hsl(var(--foreground));
}

.comment-form textarea { min-height: 140px; resize: vertical; }

.comment-form .form-submit input[type="submit"] {
	display: inline-flex;
	align-items: center;
	padding: 12px 28px;
	border: none;
	border-radius: 999px;
	background: hsl(var(--primary));
	color: #fff;
	font-weight: 700;
	font-size: 0.95rem;
	cursor: pointer;
	transition: opacity 0.2s ease;
}

.comment-form .form-submit input[type="submit"]:hover { opacity: 0.9; }

/* ==========================================================================
   7. Footer
   ========================================================================== */
.site-footer {
	background: hsl(var(--footer-bg));
	color: hsl(var(--footer-text) / 0.7);
}

.footer-top {
	max-width: 1000px;
	margin: 0 auto;
	padding: 48px 24px;
	display: grid;
	grid-template-columns: 1fr;
	gap: 32px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
	.footer-top { grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
}

.footer-brand { display: flex; flex-direction: column; gap: 18px; }

.footer-brand-row { display: flex; align-items: center; gap: 12px; }

.footer-brand img {
	height: 44px;
	width: auto;
	object-fit: contain;
}

.footer-brand .footer-name {
	font-family: var(--font-serif);
	font-weight: 700;
	color: #fff;
	line-height: 1.2;
}

.footer-brand .footer-tagline {
	font-size: 0.75rem;
	color: rgba(255, 255, 255, 0.8);
}

.footer-brand p.footer-desc {
	max-width: 340px;
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.6);
	margin: 0;
}

.footer-contact {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.7);
}

.footer-contact a { color: rgba(255, 255, 255, 0.7); }
.footer-contact a:hover { color: #fff; }

.footer-social { display: flex; gap: 8px; }

.footer-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 8px;
	border: 1px solid rgba(255, 255, 255, 0.15);
	color: #fff;
}

.footer-social a:hover { background: rgba(255, 255, 255, 0.1); text-decoration: none; }
.footer-social svg { width: 16px; height: 16px; }

.footer-col-title {
	display: block;
	font-size: 0.75rem;
	color: rgba(255, 255, 255, 0.5);
	margin-bottom: 8px;
}

.footer-col a {
	display: block;
	padding: 4px 0;
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.7);
}

.footer-col a:hover { color: #fff; text-decoration: underline; }

.footer-bottom {
	max-width: 1000px;
	margin: 0 auto;
	padding: 16px 24px 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	font-size: 0.78rem;
	color: rgba(255, 255, 255, 0.5);
}

@media (min-width: 640px) {
	.footer-bottom { flex-direction: row; }
}

.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: rgba(255, 255, 255, 0.5); }
.footer-bottom-links a:hover { color: #fff; }

.footer-disclaimer {
	background: hsl(170 74% 12%);
	padding: 16px 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-disclaimer p {
	max-width: 1000px;
	margin: 0 auto;
	text-align: center;
	font-size: 0.8rem;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.55);
}

/* ==========================================================================
   8. Responsive helpers
   ========================================================================== */
@media (max-width: 640px) {
	h1 { font-size: 1.9rem; }
	.single-post-header h1 { font-size: 1.75rem; }
	.post-nav { grid-template-columns: 1fr; }
	.post-nav .nav-next { text-align: left; }
	.comment-list .children { padding-left: 20px; }
}
