/*
Theme Name: Rixinfo
Description: Kanıt damgalı bilgi sayfaları için hafif blok teması.
Version: 1.0.8
Requires at least: 6.6
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: rixinfo
*/

/* Tarayıcı yüzeyleri */
::selection { background: var(--wp--preset--color--seftali); color: var(--wp--preset--color--murekkep); }
html { scrollbar-color: var(--wp--preset--color--teal) var(--wp--preset--color--sis); -webkit-text-size-adjust: 100%; }
body { text-rendering: optimizeLegibility; }
a { text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:where(a, button, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--wp--preset--color--murekkep);
	outline-offset: 3px;
	border-radius: 1px;
}
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
.wp-site-blocks { min-height: 100vh; display: flex; flex-direction: column; }
.wp-site-blocks > main { flex: 1; }
.skip-link:focus { background: var(--wp--preset--color--murekkep); color: #fff; }

/* Üst bilgi */
.ust {
	border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--murekkep) 14%, transparent);
	background: var(--wp--preset--color--zemin);
}
.ust__imza {
	font-family: var(--wp--preset--font-family--baslik);
	font-weight: 800;
	font-size: 1.3rem;
	letter-spacing: -0.02em;
	line-height: 1;
	text-decoration: none;
	color: var(--wp--preset--color--murekkep);
	display: inline-flex;
	align-items: baseline;
	min-height: 44px;
	align-items: center;
}
.ust__imza span { color: var(--wp--preset--color--teal); font-weight: 500; }
.ust .wp-block-navigation { font-family: var(--wp--preset--font-family--baslik); font-weight: 600; font-size: 0.9375rem; }
.ust .wp-block-navigation a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.ust .wp-block-navigation a:hover,
.ust .wp-block-navigation .current-menu-item > a { text-decoration: underline; text-decoration-color: var(--wp--preset--color--turuncu); text-decoration-thickness: 2px; }
.ust .wp-block-navigation__responsive-container-open,
.ust .wp-block-navigation__responsive-container-close { min-width: 44px; min-height: 44px; justify-content: center; }
.ust .wp-block-navigation__responsive-container.is-menu-open { background: var(--wp--preset--color--zemin); padding: 1.25rem; }
.ust .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 0; }
.ust .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { width: 100%; border-bottom: 1px solid var(--wp--preset--color--sis); }
.ust .wp-block-navigation__responsive-container.is-menu-open a { font-size: 1.125rem; width: 100%; min-height: 52px; }
.ust .wp-block-navigation__responsive-container.is-menu-open { color: var(--wp--preset--color--murekkep); }
.ust .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,
.ust .is-menu-open .wp-block-navigation__container { align-items: flex-start; width: 100%; }
.ust__giris .wp-block-button__link { font-size: 1.1875rem; font-weight: 800; padding: 0.45rem 0.9rem; min-height: 44px; white-space: nowrap; }

/* Kanıt damgası */
.damga {
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
	font-family: var(--wp--preset--font-family--baslik);
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.01em;
	padding: 0.3em 0.6em;
	border: 1.5px solid currentColor;
	border-radius: 2px;
	white-space: nowrap;
	vertical-align: middle;
}
.damga::before {
	content: "";
	width: 0.7em;
	height: 0.7em;
	flex: none;
	background: currentColor;
	-webkit-mask: var(--damga-ikon) center / contain no-repeat;
	mask: var(--damga-ikon) center / contain no-repeat;
}
.damga--okundu {
	color: var(--wp--preset--color--teal);
	background: var(--wp--preset--color--zemin);
	--damga-ikon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M1.5 6.5l3 3 6-7' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E");
}
.damga--beyan {
	color: var(--wp--preset--color--murekkep);
	background: var(--wp--preset--color--seftali);
	border-color: var(--wp--preset--color--seftali);
	--damga-ikon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 3h8M2 6h8M2 9h5' fill='none' stroke='black' stroke-width='1.8'/%3E%3C/svg%3E");
}
.damga--celiskili {
	color: var(--wp--preset--color--murekkep);
	background: var(--wp--preset--color--zemin);
	border-color: var(--wp--preset--color--turuncu);
	border-style: dashed;
	--damga-ikon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M1 4h7M6 1.5L8.5 4 6 6.5M11 8H4M6 5.5L3.5 8 6 10.5' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E");
}

/* Defter: kalem kalem karar tablosu */
.defter table { border-collapse: collapse; width: 100%; table-layout: auto; font-variant-numeric: tabular-nums; }
.defter thead { border-bottom: 2px solid var(--wp--preset--color--murekkep); }
.defter th {
	font-family: var(--wp--preset--font-family--baslik);
	font-size: 0.875rem;
	font-weight: 700;
	text-align: left;
	padding: 0.5rem 0.75rem 0.5rem 0;
	color: color-mix(in srgb, var(--wp--preset--color--murekkep) 78%, white);
	border: 0;
}
.defter td {
	padding: 0.9rem 0.75rem 0.9rem 0;
	border: 0;
	border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--murekkep) 16%, transparent);
	vertical-align: top;
}
.defter td:first-child { font-family: var(--wp--preset--font-family--baslik); font-weight: 650; width: 24%; }
.defter td:nth-child(2) { overflow-wrap: anywhere; }
.defter td:last-child { padding-right: 0; }
.defter td:last-child:has(> .damga) { text-align: right; white-space: nowrap; width: 1%; }
.defter figcaption, .defter .wp-element-caption {
	font-size: 0.9375rem;
	text-align: left;
	color: color-mix(in srgb, var(--wp--preset--color--murekkep) 78%, white);
	margin-top: 0.75rem;
}
@media (max-width: 640px) {
	.defter thead { display: none; }
	.defter tr { display: grid; grid-template-columns: 1fr auto; gap: 0.25rem 0.75rem; padding: 0.9rem 0; border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--murekkep) 16%, transparent); }
	.defter td { border: 0; padding: 0; width: auto !important; }
	.defter td:first-child { grid-column: 1; }
	.defter td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
	.defter td:last-child:has(> .damga) { grid-column: 2; grid-row: 1; }
	.defter tr:not(:has(td:last-child > .damga)) { grid-template-columns: 1fr; }
}

/* Karar kartı: ana sayfanın tek cesur hamlesi */
.karar {
	border-top: 6px solid var(--wp--preset--color--murekkep);
	padding-top: 1.25rem;
}
.karar .defter td:nth-child(2) { font-size: 1.0625rem; }
/* Karar kartında damga etiket değil mühür: kalın, çift çizgi, hareketsiz de okunur. */
.karar .damga { font-size: 0.875rem; font-weight: 800; outline: 1px solid currentColor; outline-offset: 2px; }
.karar .damga--beyan { outline-color: var(--wp--preset--color--murekkep); }
.karar .damga--celiskili { outline-color: var(--wp--preset--color--turuncu); }
/* Çift çizgi hücre dışına 3px taşıyor; tablo overflow-x:auto kesmesin. */
.karar .defter td:last-child { padding-right: 4px; }
@media (prefers-reduced-motion: no-preference) {
	.karar .damga { animation: damga-bas 520ms cubic-bezier(0.16, 1, 0.3, 1) both; }
	.karar tr:nth-child(2) .damga { animation-delay: 90ms; }
	.karar tr:nth-child(3) .damga { animation-delay: 180ms; }
	.karar tr:nth-child(4) .damga { animation-delay: 270ms; }
	.karar tr:nth-child(5) .damga { animation-delay: 360ms; }
	.karar tr:nth-child(6) .damga { animation-delay: 450ms; }
	.karar tr:nth-child(7) .damga { animation-delay: 540ms; }
}
@keyframes damga-bas {
	from { transform: scale(1.35) rotate(-6deg); opacity: 0.35; filter: blur(1px); }
	to { transform: none; opacity: 1; filter: none; }
}

/* Giriş kutusu: güncel adres + eylem */
.giris-kutusu {
	background: var(--wp--preset--color--sis);
	padding: 1.25rem clamp(1rem, 3vw, 1.5rem);
	border-radius: 2px;
}
.giris-kutusu p { margin: 0; }
.giris-kutusu__adres {
	font-family: var(--wp--preset--font-family--baslik);
	font-weight: 800;
	font-size: clamp(1.5rem, 5vw, 2rem);
	letter-spacing: -0.02em;
	overflow-wrap: anywhere;
}
.giris-kutusu__not { font-size: 0.9375rem; color: color-mix(in srgb, var(--wp--preset--color--murekkep) 78%, white); }

.kimlik { white-space: nowrap; }

/* Kısaca kutusu */
.kisaca { border-left: 1px solid var(--wp--preset--color--teal); padding-left: 1.25rem; }
.kisaca ul { padding-left: 1.1rem; margin: 0.5rem 0 0; }
.kisaca li { margin: 0.35rem 0; }
.kisaca li::marker { color: var(--wp--preset--color--teal); }

/* Gövde */
.entry-content h2 { margin-top: 3rem; margin-bottom: 0.75rem; }
.entry-content h3 { margin-top: 2rem; margin-bottom: 0.5rem; }
.entry-content > * { margin-left: 0; margin-right: 0; }
/* Akışkan tipografi butonu mobilde 14px'e indiriyor; turuncu zeminde kontrast için 19px kalın sabit. */
.wp-block-button__link { transition: filter 160ms ease-out; min-height: 48px; display: inline-flex; align-items: center; font-size: 1.2rem; }
.wp-block-button__link:hover { filter: brightness(1.08); }

/* Alt bilgi */
.alt { background: var(--wp--preset--color--sis); font-size: 0.9375rem; }
.alt a { color: var(--wp--preset--color--murekkep); }
.alt__yas {
	font-family: var(--wp--preset--font-family--baslik);
	font-weight: 800;
	border: 2px solid var(--wp--preset--color--murekkep);
	padding: 0.1em 0.45em;
	border-radius: 2px;
	display: inline-block;
}
.alt .wp-block-navigation a { min-height: 44px; display: inline-flex; align-items: center; }
