/*
Theme Name: hy-mini
Theme URI: https://tedavisinedir.com/
Author: Abdulkadir Polat
Description: Sağlık siteleri için hafif, hızlı, CSP uyumlu minimal blog teması.
Version: 1.0.6
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hy-mini
*/

/* Türkçe Açıklama:
 * - Bu dosya temanın ana stillerini içerir.
 * - İnline CSS kullanılmaz; tüm stiller bu ve gerekirse ek CSS dosyalarından gelir.
 */

/* Temel değişkenler (renkler) */
:root {
	--mh-font-family-sans:
		system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
		Helvetica, Arial, sans-serif;

	/* Ana vurgu rengi:
   * - tedavisinedir.com için turuncu
   * - hekim.me için lacivert
   * Gerekirse bu değeri el ile değiştirebilirsiniz.
   */
	--mh-color-accent: #e12f00;

	--mh-color-bg-light: #f5f5f5;
	--mh-color-bg-light-soft: #fff;
	--mh-color-text-light: #111111;
	--mh-color-muted-light: #6b7280;

	--mh-color-bg-dark: #020617;
	--mh-color-bg-dark-soft: #020617;
	--mh-color-surface-dark: #020617;
	--mh-color-text-dark: #e5e7eb;
	--mh-color-muted-dark: #9ca3af;

	--mh-radius-md: 12px;
	--mh-radius-lg: 16px;
	--mh-shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.22);

	--mh-content-width: 960px;
	--mh-layout-gutter: 12px;
}

/* Tema modları (gündüz / gece) */
body {
	font-family: var(--mh-font-family-sans);
	margin: 0;
	padding: 0;
	background-color: var(--mh-color-bg-light);
	color: var(--mh-color-text-light);
	-webkit-font-smoothing: antialiased;
}

body.mh-theme-light {
    background-image: radial-gradient(circle farthest-corner at 10% 20%, rgba(216, 241, 230, 0.46) 0.1%, rgba(233, 226, 226, 0.28) 90.1%);
}

body.mh-theme-dark {
	color: var(--mh-color-text-dark);
	background-image: radial-gradient( circle 610px at 5.2% 51.6%,  rgba(5,8,114,1) 0%, rgba(7,3,53,1) 97.5% );
}

body.mh-theme-dark a {
	color: #38bdf8;
}

body.mh-theme-dark .site-header,
body.mh-theme-dark .site-footer {
	background-color: #020617;
	color: var(--mh-color-text-dark);
}

/* Otomatik sistem moduna göre başlangıç görünümü için sınıflar
 * - JS, localStorage ile kullanıcı tercihini kaydeder.
 */
@media (prefers-color-scheme: dark) {
	body.mh-theme-auto {
		background-color: var(--mh-color-bg-dark);
		color: var(--mh-color-text-dark);
	}

	body.mh-theme-auto a {
		color: #38bdf8;
	}

	body.mh-theme-auto .site-header,
	body.mh-theme-auto .site-footer {
		background-color: #020617;
		color: var(--mh-color-text-dark);
	}

	body.mh-theme-auto .site-header {
		background-color: rgba(2, 6, 23, 0.88);
		border-bottom-color: rgba(148, 163, 184, 0.24);
	}

	body.mh-theme-auto .mh-site-description {
		color: var(--mh-color-muted-dark);
	}

	body.mh-theme-auto .mh-menu-toggle {
		border-color: rgba(148, 163, 184, 0.9);
		background-color: rgba(15, 23, 42, 0.4);
	}

	body.mh-theme-auto .mh-mobile-menu {
		background: radial-gradient(circle at top left, #1e293b 0, #020617 52%);
	}

	body.mh-theme-auto .mh-sidebar-card {
		background-color: #020617;
		border-color: rgba(148, 163, 184, 0.36);
	}

	body.mh-theme-auto .mh-sidebar-title {
		color: var(--mh-color-muted-dark);
	}

	body.mh-theme-auto .mh-sidebar-body {
		color: var(--mh-color-muted-dark);
	}

	body.mh-theme-auto .mh-post-card {
		background: radial-gradient(
			circle at top,
			rgba(15, 23, 42, 0.96),
			#020617
		);
		border-color: rgba(148, 163, 184, 0.3);
	}

	body.mh-theme-auto .mh-post-meta {
		color: var(--mh-color-muted-dark);
	}

	body.mh-theme-auto .entry-footer {
		color: var(--mh-color-muted-dark);
	}

	body.mh-theme-auto .site-footer {
		background-color: #020617;
		border-top-color: rgba(148, 163, 184, 0.3);
	}

	body.mh-theme-auto .mh-footer-meta {
		color: var(--mh-color-muted-dark);
	}

	body.mh-theme-auto .mh-search-form input[type="search"] {
		background-color: #020617;
		border-color: rgba(148, 163, 184, 0.8);
		color: var(--mh-color-text-dark);
	}

	body.mh-theme-auto .mh-404-text {
		color: var(--mh-color-muted-dark);
	}
}

/* Layout */
.mh-site-wrap {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 40;
	-webkit-backdrop-filter: blur(18px);
	backdrop-filter: blur(18px);
	background-color: rgba(255, 255, 255, 0.86);
	border-bottom: 1px solid rgba(15, 23, 42, 0.08);
	box-shadow: 6px 0 8px 2px rgb(100 100 100 / 21%);
}

body.mh-theme-dark .site-header {
	background-color: rgba(2, 6, 23, 0.88);
	border-bottom-color: rgba(148, 163, 184, 0.24);
}

.mh-header-inner {
	max-width: calc(var(--mh-content-width) + 2 * var(--mh-layout-gutter));
	margin: 0 auto;
	padding: 14px var(--mh-layout-gutter);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.mh-branding {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.mh-site-title {
	margin: 0;
	font-size: 1.25rem;
	letter-spacing: -0.03em;
	font-weight: bold;
}

.mh-site-title a {
	text-decoration: none;
	color: inherit;
}

.mh-site-description {
	margin: 0;
	font-size: 0.75rem;
	color: var(--mh-color-muted-light);
}

body.mh-theme-dark .mh-site-description {
	color: var(--mh-color-muted-dark);
}

.mh-header-right {
	display: flex;
	align-items: center;
	gap: 15px;
}

.mh-primary-nav {
	display: none;
}

@media (min-width: 900px) {
	.mh-primary-nav {
		display: block;
	}

	.mh-primary-nav ul {
		display: flex;
		gap: 15px;
		list-style: none;
		margin: 0;
		padding: 0;
		font-size: 0.88rem;
	}

	.mh-primary-nav a {
		color: inherit;
		text-decoration: none;
		padding: 6px 0;
		position: relative;
	}

	.mh-primary-nav a::after {
		content: "";
		position: absolute;
		left: 0;
		right: 0;
		bottom: -4px;
		height: 2px;
		border-radius: 999px;
		background: linear-gradient(90deg, var(--mh-color-accent), #f97316);
		opacity: 0;
		transform: scaleX(0.5);
		transform-origin: center;
		transition:
			opacity 0.18s ease,
			transform 0.18s ease;
	}

	.mh-primary-nav a:hover::after,
	.mh-primary-nav .current-menu-item > a::after {
		opacity: 1;
		transform: scaleX(1);
	}
}

/* Mobil menü butonu */
.mh-menu-toggle {
	border-radius: 999px;
	border: 1px solid rgba(148, 163, 184, 0.8);
	background-color: rgba(15, 23, 42, 0.02);
	color: inherit;
	padding: 6px 11px;
	font-size: 0.8rem;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
}

body.mh-theme-dark .mh-menu-toggle {
	border-color: rgba(148, 163, 184, 0.9);
	background-color: rgba(15, 23, 42, 0.4);
}

.mh-menu-toggle-icon {
	width: 14px;
	height: 12px;
	display: inline-flex;
	flex-direction: column;
	justify-content: space-between;
}

.mh-menu-toggle-icon span {
	width: 100%;
	height: 1.6px;
	border-radius: 999px;
	background-color: currentColor;
}

.mh-menu-toggle-label {
	text-transform: uppercase;
	letter-spacing: 0.07em;
}

/* Mobil menü paneli */
.mh-mobile-menu-backdrop {
	position: fixed;
	inset: 0;
	background-color: rgba(15, 23, 42, 0.5);
	display: none;
	z-index: 50;
}

.mh-mobile-menu-backdrop.mh-is-open {
	display: block;
}

.mh-mobile-menu {
	position: fixed;
	top: 13px;
	right: 10px;
	width: min(270px, 77vw);
	width: clamp(200px, 80vw, 400px);
	bottom: 13px;
	min-height: fit-content;
	height: calc(100% - 58px);
	background-color: #0b1120;
	color: #e5e7eb;
	border-radius: 20px;
	box-shadow: var(--mh-shadow-soft);
	padding: 18px 16px 14px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

body.mh-theme-dark .mh-mobile-menu {
	background: radial-gradient(circle at top left, #1e293b 0, #020617 52%);
}

.mh-mobile-menu-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
}

.mh-mobile-title {
	font-size: 0.9rem;
	text-transform: uppercase;
	letter-spacing: 0.17em;
	color: #9ca3af;
}

.mh-mobile-close {
	background: transparent;
	border-radius: 999px;
	border: 1px solid rgba(148, 163, 184, 0.6);
	width: 28px;
	height: 28px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: inherit;
	cursor: pointer;
	font-size: 1.3em;
	font-weight: bold;
}

.mh-mobile-menu-nav {
	flex: 1;
	overflow: auto;
	padding: 6px 0 10px;
}

.mh-mobile-menu-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 0.9rem;
}

.mh-mobile-menu-nav a {
	display: block;
	padding: 7px 9px;
	border-radius: 8px;
	color: inherit;
	text-decoration: none;
}

.mh-mobile-menu-nav a:hover,
.mh-mobile-menu-nav .current-menu-item > a {
	background: linear-gradient(
		90deg,
		rgba(248, 250, 252, 0.08),
		rgba(148, 163, 184, 0.24)
	);
}

.mh-mobile-section-title {
	margin: 48px 0 12px;
	font-size: 0.78rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #9ca3af;
}

.mh-mobile-meta-links {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 0.86rem;
}

.mh-mobile-meta-links a {
	color: inherit;
	text-decoration: none;
}

.mh-mobile-meta-links a:hover {
	text-decoration: underline;
}

.mh-mobile-footer {
	border-top: 1px solid rgba(148, 163, 184, 0.25);
	padding-top: 10px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	font-size: 0.8rem;
}

.mh-settings-button {
	text-decoration: none;
	border-radius: 999px;
	border: 1px solid rgba(148, 163, 184, 0.75);
	background: linear-gradient(
		90deg,
		rgba(15, 23, 42, 0.92),
		rgba(15, 23, 42, 0.98)
	);
	padding: 6px 10px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #e5e7eb;
	cursor: pointer;
}

.mh-settings-button span {
	font-size: 0.78rem;
}

.mh-theme-toggle-group {
	display: inline-flex;
	border-radius: 999px;
	border: 1px solid rgba(148, 163, 184, 0.8);
	padding: 2px;
	gap: 2px;
}

.mh-theme-toggle-btn {
	border-radius: 999px;
	border: none;
	padding: 4px 8px;
	background: transparent;
	color: inherit;
	font-size: 0.75rem;
	cursor: pointer;
}

.mh-is-active {
	filter: invert(1);
}

.mh-theme-toggle-btn.mh-is-active {
	background-color: rgba(15, 23, 42, 0.9);
}

/* Ana içerik */
.site-main {
	flex: 1;
}

.mh-main-inner {
	max-width: calc(var(--mh-content-width) + 2 * var(--mh-layout-gutter));
	margin: 0 auto;
	padding: 24px var(--mh-layout-gutter) 24px;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 24px;
}

.mh-content {
	min-width: 0;
}

/* Yan sütun (sidebar) - JavaScript ile enjekte edilecek */
.mh-sidebar {
	display: none;
}

@media (min-width: 900px) {
	.mh-main-inner.mh-has-sidebar {
		grid-template-columns: minmax(0, 1fr) 360px;
		align-items: flex-start;
	}

	.mh-sidebar {
		display: block;
		position: sticky;
		top: 90px;
	}

	.mh-sidebar-card {
		background-color: var(--mh-color-bg-light-soft);
		border-radius: var(--mh-radius-lg);
		padding: 16px 16px 14px;
		border: 1px solid rgba(148, 163, 184, 0.24);
	}

	body.mh-theme-dark .mh-sidebar-card {
		background-color: #020617;
		border-color: rgba(148, 163, 184, 0.36);
	}

	.mh-sidebar-title {
		font-size: 0.86rem;
		text-transform: uppercase;
		letter-spacing: 0.16em;
		color: var(--mh-color-muted-light);
		margin: 0 0 8px;
	}

	body.mh-theme-dark .mh-sidebar-title {
		color: var(--mh-color-muted-dark);
	}

	.mh-sidebar-body {
		font-size: 0.86rem;
		color: var(--mh-color-muted-light);
	}

	body.mh-theme-dark .mh-sidebar-body {
		color: var(--mh-color-muted-dark);
	}
}

/* Kategori başlıkları */
header.page-header h1 {
    margin: 0;
    text-align: center;
}

/* Yazı listesi ve tekil yazı */
.mh-post-card {
	background-color: var(--mh-color-bg-light-soft);
	border-radius: var(--mh-radius-lg);
	padding: 18px 18px 16px;
	border: 1px solid rgba(148, 163, 184, 0.18);
	margin-bottom: 32px;
	border-bottom: 4px solid var(--mh-color-text-dark);
	border-right: 3px solid var(--mh-color-text-dark);
	border-left: 1px solid var(--mh-color-text-dark);
}

body.mh-theme-dark .mh-post-card {
	background: radial-gradient(circle at top, rgba(15, 23, 42, 0.96), #020617);
	border-color: rgba(148, 163, 184, 0.3);
}

.single.single-post .mh-post-card {
    border: unset;
	box-shadow: 0 0 9px 0 rgb(20 20 20 / 15%);
}

.mh-post-title {
	letter-spacing: -0.01em;
    margin-top: 0;
    margin-bottom: 0.67em;
    font-size: 1.7em;
}

.mh-post-title a {
	color: inherit;
	text-decoration: none;
}

.mh-post-title a:hover {
	text-decoration: underline;
}

.mh-post-meta {
	font-size: 0.82rem;
	color: var(--mh-color-muted-light);
	margin-bottom: 10px;
}

.mh-post-meta a,
.entry-footer a {
	color: var(--mh-color-accent);
}

body.mh-theme-dark .mh-post-meta {
	color: var(--mh-color-muted-dark);
}

.mh-post-excerpt {
	font-size: 0.94rem;
	line-height: 1.7;
}

.mh-read-more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 8px;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--mh-color-accent);
	text-decoration: none;
}

.mh-read-more::after {
	content: "→";
	font-size: 0.9em;
}

/* Yazı içeriği */
.entry-content {
	font-size: 1rem;
	line-height: 1.7;
}

.entry-content p {
	margin: 1.2em 0 0.4em;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	margin-top: 1.6em;
	margin-bottom: 0.6em;
	letter-spacing: -0.01em;
}

.entry-content a {
	color: var(--mh-color-accent);
	text-wrap: wrap;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.4em;
	margin: 0 0 1.2em;
}

.entry-content blockquote {
	border-left: 3px solid var(--mh-color-accent);
	padding-left: 1em;
	margin: 0 0 1.4em;
	font-style: italic;
}

.entry-footer::before {
	content: "Etiketler: ";
}

.entry-footer {
	margin: 32px 0 16px;
	line-height: 1.4;
	font-size: 0.86rem;
	color: var(--mh-color-muted-light);
}

body.mh-theme-dark .entry-footer {
	color: var(--mh-color-muted-dark);
}

/* Sayfalama */
.mh-pagination {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin-top: 18px;
	font-size: 0.9rem;
}

.mh-pagination a {
	color: inherit;
	text-decoration: none;
	padding: 6px 10px;
	border-radius: 999px;
	border: 1px solid rgba(148, 163, 184, 0.5);
}

.mh-pagination a:hover {
	background-color: rgba(148, 163, 184, 0.1);
}

/* Footer */
.site-footer {
	border-top: 1px solid rgba(148, 163, 184, 0.22);
	padding: 16px 0 18px;
	font-size: 0.8rem;
	background-color: #f8fafc;
}

body.mh-theme-dark .site-footer {
	background-color: #020617;
	border-top-color: rgba(148, 163, 184, 0.3);
}

.mh-footer-inner {
	max-width: calc(var(--mh-content-width) + 2 * var(--mh-layout-gutter));
	margin: 0 auto;
	padding: 0 var(--mh-layout-gutter);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}

.mh-footer-meta {
	color: var(--mh-color-muted-light);
}

body.mh-theme-dark .mh-footer-meta {
	color: var(--mh-color-muted-dark);
}

.mh-footer-links {
	display: flex;
	gap: 12px;
}

.mh-footer-links a {
	color: inherit;
	text-decoration: none;
}

.mh-footer-links a:hover {
	text-decoration: underline;
}

/* Anasayfa arama (site-main içinde, mh-main-inner üstü) */
.mh-home-search {
	max-width: calc(var(--mh-content-width) + 2 * var(--mh-layout-gutter));
	margin: 10px auto;
	padding: 16px var(--mh-layout-gutter) 0;
}

/* Arama formu */
.mh-search-form {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 6px 18px;
}

.mh-search-form input[type="search"] {
	flex: 1;
	border-radius: 999px;
	border: 1px solid rgba(148, 163, 184, 0.6);
	padding: 7px 11px;
	font-size: 0.9rem;
	background-color: rgba(255, 255, 255, 0.95);
}

body.mh-theme-dark .mh-search-form input[type="search"] {
	background-color: #020617;
	border-color: rgba(148, 163, 184, 0.8);
	color: var(--mh-color-text-dark);
}

.mh-search-form button {
	border-radius: 999px;
	border: none;
	padding: 7px 13px;
	background: linear-gradient(135deg, var(--mh-color-accent), #f97316);
	color: #fff;
	font-size: 0.86rem;
	cursor: pointer;
}

.mh-search-form button:hover {
	opacity: 0.9;
}

/* 404 sayfası */
.mh-404 {
	text-align: center;
	padding: 40px 0;
}

.mh-404-title {
	font-size: 1.4rem;
	margin-bottom: 8px;
}

.mh-404-text {
	color: var(--mh-color-muted-light);
}

body.mh-theme-dark .mh-404-text {
	color: var(--mh-color-muted-dark);
}

/* makaleler için responsive */
article img {
	max-width: 100%;
	max-height: fit-content;
}
form label {
	display: flex;
	align-items: center;
	gap: 8px;
}

/*  manuel güncellemeler  */
.hidden {
	display: none !important;
}
label.screen-reader-text {
	display: none;
}
figure.wp-block-table {
    margin: 1em 0;
}


/* manuel butonlarım */
.wp-block-button {
    border-radius: 999px;
    border: none;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, var(--mh-color-accent), #f97316);
    color: #fff;
    font-size: 0.86rem;
    cursor: pointer;
    width: fit-content;
    margin: 2em auto;
    box-shadow: 0 0 9px 0 rgb(20 20 20 / 15%);
}

.wp-block-button a,
body.mh-theme-dark .wp-block-button a{
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

.wp-block-button:hover {
    opacity: 0.9;
}