/*
Theme Name: Psikodinamik Atölye
Theme URI: https://psikodinamikatolye.com
Author: Psikodinamik Atölye
Description: Psikodinamik Atölye için sıfırdan yazılmış, eklentisiz, %100 Gutenberg (blok) teması. Tamamı Source Serif 4; sıcak zemin ve sarı vurgu ile minimal, editoryal bir tasarım.
Version: 2.1.0
Requires at least: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: psikodinamik-atolye
*/

/* ---------- Genel ---------- */

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	text-rendering: optimizeLegibility;
	font-optical-sizing: auto;
	-webkit-font-smoothing: antialiased;
}

::selection {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--contrast);
}

:where(a:focus-visible, button:focus-visible, input:focus-visible) {
	outline: 2px solid var(--wp--preset--color--brick);
	outline-offset: 2px;
	border-radius: 2px;
}

/* Marka vurgusu: sarı alt-boyama */
mark.brand-mark {
	background: linear-gradient(transparent 58%, var(--wp--preset--color--accent) 58%);
	color: inherit;
	padding: 0 0.08em;
}

/* Overline etiketi */
.overline {
	font-family: var(--wp--preset--font-family--serif);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

/* ---------- Üst alan ---------- */

.site-header .wp-block-site-logo img {
	display: block;
	border-radius: 6px;
}

/* Logo/başlık üzerine gelince site adının altı çizilsin */
.site-brand:hover .wp-block-site-title a {
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--brick);
	text-decoration-thickness: 1.5px;
	text-underline-offset: 5px;
}

.site-header .wp-block-navigation a {
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
	padding-bottom: 2px;
}

.site-header .wp-block-navigation a:hover,
.site-header .wp-block-navigation .current-menu-item > a {
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--brick);
	text-decoration-thickness: 3px;
	text-underline-offset: 7px;
}

/* Mobil menü katmanı */
.wp-block-navigation__responsive-container.is-menu-open {
	background-color: var(--wp--preset--color--base);
	padding-top: var(--wp--preset--spacing--50);
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	font-size: 1.25rem;
}

/* ---------- Yazı listesi ---------- */

.post-card .wp-block-post-title a {
	text-decoration: none;
	transition: text-decoration-color 120ms ease;
}

.post-card .wp-block-post-title a:hover {
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--brick);
	text-decoration-thickness: 4px;
	text-underline-offset: 5px;
}

.post-meta {
	row-gap: 0.25rem !important;
}

.post-meta .wp-block-post-terms a:hover {
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--brick);
	text-underline-offset: 3px;
}

/* İlk kartta üst çizgi kalınlaşsın (liste başlangıcı) */
.wp-block-post-template > li:first-child .post-card {
	border-top-width: 2px !important;
	border-top-color: var(--wp--preset--color--contrast) !important;
}

/* ---------- İçerik ---------- */

.entry-head .wp-block-post-title {
	text-wrap: balance;
}

.wp-block-post-content a {
	color: var(--wp--preset--color--contrast);
	text-decoration-color: color-mix(in srgb, var(--wp--preset--color--brick) 45%, transparent);
	text-decoration-thickness: 1.5px;
	text-underline-offset: 3px;
	transition: text-decoration-color 120ms ease;
}

.wp-block-post-content a:hover {
	text-decoration-color: var(--wp--preset--color--brick);
}

.wp-block-post-content h2,
.wp-block-post-content h3 {
	margin-top: 2.25rem;
}

.wp-block-post-content :where(code):not(.wp-block-code code) {
	font-family: var(--wp--preset--font-family--serif);
	font-size: 0.85em;
	background: rgba(17, 17, 17, 0.05);
	padding: 0.12em 0.4em;
	border-radius: 4px;
}

.wp-block-post-content figure img {
	border-radius: 6px;
}

.wp-block-quote cite {
	font-family: var(--wp--preset--font-family--serif);
	font-size: 0.8125rem;
	font-style: normal;
	color: var(--wp--preset--color--muted);
}

.wp-block-separator {
	border: none;
	border-top: 1px solid var(--wp--preset--color--line);
	max-width: 80px;
	margin-left: 0;
}

/* ---------- Sayfalama ---------- */

.wp-block-query-pagination-numbers .current {
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--brick);
	text-decoration-thickness: 3px;
	text-underline-offset: 6px;
}

.wp-block-query-pagination a:hover,
.post-navigation-link a:hover {
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--brick);
	text-decoration-thickness: 3px;
	text-underline-offset: 6px;
}

/* ---------- Arama ---------- */

.wp-block-search__inside-wrapper {
	background: #ffffff;
	border: 1px solid var(--wp--preset--color--line) !important;
	border-radius: 999px;
	padding: 4px 4px 4px 18px !important;
	max-width: 440px;
}

.wp-block-search__input {
	font-family: var(--wp--preset--font-family--serif);
	font-size: 0.9375rem;
	border: none !important;
	background: transparent;
}

.wp-block-search__button {
	border-radius: 999px;
	margin-left: 8px;
}

/* ---------- Yorumlar ---------- */

.comments-area .wp-block-comments-title {
	font-size: var(--wp--preset--font-size--large);
}

.comment-content {
	font-size: 1rem;
}

.comments-area .comment-reply-link,
.comments-area .wp-block-comment-author-name,
.comments-area .wp-block-comment-date {
	font-family: var(--wp--preset--font-family--serif);
}

.comments-area .wp-block-comment-date {
	color: var(--wp--preset--color--muted);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	background: #ffffff;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 8px;
	padding: 0.6rem 0.8rem;
	font-family: var(--wp--preset--font-family--serif);
	font-size: 0.9375rem;
	width: 100%;
}

.comment-form label {
	font-family: var(--wp--preset--font-family--serif);
	font-size: 0.8125rem;
	font-weight: 600;
}

/* ---------- Alt alan ---------- */

.site-footer .wp-block-site-title {
	font-size: 1.05rem;
}

.site-footer a {
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}

.site-footer a:hover {
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--brick);
	text-decoration-thickness: 3px;
	text-underline-offset: 5px;
}

.footer-links p {
	font-family: var(--wp--preset--font-family--serif);
	font-size: 1rem;
}

.footer-heading {
	font-size: 0.75rem !important;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
	margin-bottom: 0.35rem;
}

.footer-meta {
	font-family: var(--wp--preset--font-family--serif);
	font-size: 0.8125rem;
	color: var(--wp--preset--color--muted);
}

.footer-meta a {
	color: var(--wp--preset--color--muted);
}

/* ---------- Sözlük ---------- */

.sozluk-alfabe {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin: 1.5rem 0 2.5rem;
}

.sozluk-harf {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.2rem;
	height: 2.2rem;
	padding: 0 0.4rem;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 6px;
	font-size: 1rem;
	text-decoration: none;
	color: var(--wp--preset--color--contrast);
}

a.sozluk-harf.aktif:hover {
	border-color: var(--wp--preset--color--brick);
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--brick);
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

.sozluk-harf.secili {
	background: var(--wp--preset--color--contrast);
	border-color: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
}

.sozluk-harf.pasif {
	color: var(--wp--preset--color--muted);
	opacity: 0.4;
	cursor: default;
}

.sozluk-baslik {
	margin-top: 2rem;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid var(--wp--preset--color--contrast);
}

.sozluk-adet {
	font-size: 1rem;
	font-weight: 340;
	color: var(--wp--preset--color--muted);
}

.sozluk-madde {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.85rem 0;
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.sozluk-madde a {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.3rem 0.75rem;
	text-decoration: none;
	color: var(--wp--preset--color--contrast);
}

.sozluk-kelime {
	font-weight: 600;
}

.sozluk-madde a:hover .sozluk-kelime {
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--brick);
	text-decoration-thickness: 3px;
	text-underline-offset: 5px;
}

.sozluk-yazi-basligi {
	color: var(--wp--preset--color--muted);
	font-size: 0.9375rem;
}

.sozluk-tarih {
	flex-shrink: 0;
	font-size: 0.8125rem;
	color: var(--wp--preset--color--muted);
}

.sozluk-geri {
	margin-top: 2rem;
}

.sozluk-geri a {
	text-decoration: none;
	color: var(--wp--preset--color--contrast);
}

.sozluk-geri a:hover {
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--brick);
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

/* ---------- Sözlük hover kartı ---------- */

.sozluk-terim {
	position: relative;
	cursor: help;
	text-decoration: underline dotted var(--wp--preset--color--brick);
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

.sozluk-kart {
	position: absolute;
	bottom: calc(100% + 14px);
	left: 50%;
	transform: translateX(-50%) translateY(6px);
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	width: min(320px, 82vw);
	padding: 1rem 1.1rem 0.9rem;
	background: #fffdf8;
	border: 1px solid var(--wp--preset--color--line);
	border-top: 3px solid var(--wp--preset--color--brick);
	border-radius: 10px;
	box-shadow: 0 12px 32px rgba(17, 17, 17, 0.12);
	font-size: 0.9375rem;
	font-style: normal;
	font-weight: 340;
	line-height: 1.5;
	letter-spacing: 0;
	text-align: left;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 140ms ease, transform 140ms ease, visibility 140ms;
	z-index: 50;
}

/* Kartın altındaki ok */
.sozluk-kart::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	border: 8px solid transparent;
	border-top-color: #fffdf8;
	filter: drop-shadow(0 1px 0 var(--wp--preset--color--line));
}

/* Kart ile kelime arasındaki boşlukta hover kopmasın */
.sozluk-kart::before {
	content: "";
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	height: 14px;
}

.sozluk-terim:hover .sozluk-kart,
.sozluk-terim:focus-within .sozluk-kart,
.sozluk-terim:focus .sozluk-kart {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateX(-50%) translateY(0);
}

.sozluk-kart-kelime {
	font-weight: 640;
	font-size: 1rem;
	letter-spacing: -0.01em;
}

.sozluk-kart-aciklama {
	color: #3d3a35;
	text-decoration: none;
}

.sozluk-kart-link {
	align-self: flex-start;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--wp--preset--color--brick) !important;
	text-decoration: none !important;
}

.sozluk-kart-link:hover {
	text-decoration: underline !important;
	text-decoration-color: var(--wp--preset--color--brick) !important;
	text-underline-offset: 3px;
}

/* ---------- İletişim kartları ---------- */

.iletisim-kartlar {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
	margin-top: 2rem;
}

.iletisim-kart {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
	padding: 1.4rem 1.5rem;
	background: #fffdf8;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 12px;
	text-decoration: none !important;
	color: var(--wp--preset--color--contrast) !important;
	transition: border-color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}

a.iletisim-kart:hover {
	border-color: var(--wp--preset--color--contrast);
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(17, 17, 17, 0.07);
}

.iletisim-kart:nth-child(3),
.iletisim-kart:nth-child(4) {
	grid-column: 1 / -1;
}

.iletisim-ikon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 46px;
	height: 46px;
	border: 1px solid var(--wp--preset--color--contrast);
	border-radius: 50%;
	color: var(--wp--preset--color--contrast);
}

.iletisim-ikon svg {
	display: block;
}

.iletisim-icerik {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	min-width: 0;
}

.iletisim-etiket {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

.iletisim-deger {
	font-size: 1.0625rem;
	line-height: 1.55;
	overflow-wrap: anywhere;
}

a.iletisim-kart:hover .iletisim-deger {
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--brick);
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

.iletisim-not .iletisim-deger {
	font-size: 0.9375rem;
	color: #3d3a35;
}

@media (max-width: 640px) {
	.iletisim-kartlar {
		grid-template-columns: 1fr;
	}
	.iletisim-kart:nth-child(3),
	.iletisim-kart:nth-child(4) {
		grid-column: auto;
	}
}

.iletisim-kart[href^="mailto"] .iletisim-deger {
	font-size: 0.875rem;
	letter-spacing: -0.015em;
	white-space: nowrap;
}

.iletisim-kart[href^="mailto"] {
	padding-left: 1.1rem;
	padding-right: 1.1rem;
}

/* ---------- Yazar ---------- */

.post-meta .wp-block-post-author {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.post-meta .wp-block-post-author__avatar img {
	display: block;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	object-fit: cover;
}

.post-meta .wp-block-post-author__name {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 560;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--wp--preset--color--contrast);
}

.yazar-karti {
	padding: 1.5rem 1.6rem;
	background: #fffdf8;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 12px;
}

.yazar-karti .wp-block-post-author {
	display: flex;
	gap: 1.25rem;
	align-items: flex-start;
}

.yazar-karti .wp-block-post-author__avatar img {
	display: block;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	object-fit: cover;
}

.yazar-karti .wp-block-post-author__byline {
	display: block;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

.yazar-karti .wp-block-post-author__name {
	font-size: 1.125rem;
	font-weight: 600;
	margin: 0.15rem 0 0.35rem;
}

.yazar-karti .wp-block-post-author__bio {
	font-size: 0.9375rem;
	line-height: 1.6;
	color: #3d3a35;
}

/* ---------- Yorum formu (modern) ---------- */

.comment-respond .comment-reply-title {
	font-size: var(--wp--preset--font-size--large);
	margin-bottom: 1rem;
}

.comment-form {
	display: flex;
	flex-direction: column;
	gap: 1.1rem;
}

.comment-form p {
	margin: 0;
}

.comment-form label {
	display: block;
	margin-bottom: 0.4rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

.comment-form .required {
	color: var(--wp--preset--color--brick);
}

.comment-form input[type="text"],
.comment-form textarea {
	border-radius: 10px;
	border: 1px solid var(--wp--preset--color--line);
	background: #fffdf8;
	transition: border-color 120ms ease, box-shadow 120ms ease;
}

.comment-form input[type="text"]:focus,
.comment-form textarea:focus {
	outline: none;
	border-color: var(--wp--preset--color--contrast);
	box-shadow: 0 0 0 3px rgba(216, 4, 15, 0.08);
}

.comment-form-author input {
	max-width: 380px;
}

.comment-form-gizle label.pa-gizle-etiket {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	margin: 0;
	font-size: 0.9375rem;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
	color: var(--wp--preset--color--contrast);
	cursor: pointer;
}

.comment-form-gizle input[type="checkbox"] {
	width: 18px;
	height: 18px;
	accent-color: var(--wp--preset--color--contrast);
	cursor: pointer;
}

.comment-form-gizle em {
	color: var(--wp--preset--color--muted);
	font-style: normal;
	font-size: 0.8125rem;
}

.comment-form .form-submit {
	margin-top: 0.25rem;
}

.comment-form .submit {
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
	border: none;
	border-radius: 999px;
	padding: 0.75rem 1.8rem;
	font-family: var(--wp--preset--font-family--serif);
	font-size: 0.9375rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	cursor: pointer;
	transition: transform 120ms ease, box-shadow 120ms ease;
}

.comment-form .submit:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 18px rgba(17, 17, 17, 0.18);
}

/* İsim gizleme kutusu ad alanına yakın dursun */
.comment-form-gizle {
	margin-top: -0.55rem !important;
}
