/**
 * Detay sayfası (CPT + yazı) — hizmet/bölge düzeni.
 *
 * style.css'ten SONRA yüklenir (devxpe-single → devxpe-theme-style bağımlılığı),
 * bu yüzden yalnızca gerekli düzeltme ve ince ayarları içerir; temel sınıfların
 * (dxp-detail-*, dxp-hero-*, dxp-includes-*, dxp-acc-*) stilleri style.css'te kalır.
 *
 * Tüm kurallar .dxp-single kabuğuna kapsanır; başka sayfaları etkilemez.
 */

/* Widget yokken sayfa başlığı görünmez; ekran okuyucu ve arama motorları için kalır. */
.dxp-single .dxp-sr-only {
	position   : absolute;
	width      : 1px;
	height     : 1px;
	margin     : -1px;
	padding    : 0;
	overflow   : hidden;
	clip       : rect(0, 0, 0, 0);
	white-space: nowrap;
	border     : 0;
}

/* ── Manşet bandı ─────────────────────────────────────────── */
.dxp-single .dxp-detail-hero {
	padding: 28px 0 56px;
}
.dxp-single .dxp-detail-hero-grid {
	align-items: center;
}
/* Uzun başlık/lead kelimeleri dar ekranda taşmasın. */
.dxp-single .dxp-detail-title,
.dxp-single .dxp-detail-sub,
.dxp-single .dxp-detail-location { overflow-wrap: anywhere; }

/* Manşet görseli: oran korunur; görsel yoksa düzen bozulmaz (ızgara solo). */
.dxp-single .dxp-hero-media-frame { aspect-ratio: 4 / 3; }
.dxp-single .dxp-hero-media-frame img {
	width : 100%;
	height: 100%;
	object-fit: cover;
}

/* Rozet/istatistik şeridi dar ekranda 2 sütuna insin. */
@media (max-width: 480px) {
	.dxp-single .dxp-hero-chips { grid-template-columns: repeat(2, 1fr); }
}

/* ── Gövde: Şablon 1 (iki sütun / tek sütun) ──────────────── */
/* Teklif formu kapalıyken ızgara ikiye bölünmesin. */
.dxp-single .dxp-detail-grid--solo { grid-template-columns: 1fr; }
@media (min-width: 1024px) {
	.dxp-single .dxp-detail-grid--solo { grid-template-columns: 1fr; }
}

/* ── İçerik tipografisi (the_content) ─────────────────────── */
.dxp-single .dxp-detail-content > :first-child { margin-top: 0; }
.dxp-single .dxp-detail-content > :last-child { margin-bottom: 0; }
.dxp-single .dxp-detail-content h4,
.dxp-single .dxp-detail-content h5,
.dxp-single .dxp-detail-content h6 {
	margin     : 0;
	font-weight: 600;
	color      : var(--brand-charcoal);
}
.dxp-single .dxp-detail-content blockquote {
	margin       : 0;
	padding      : 4px 0 4px 16px;
	border-left  : 3px solid var(--dxp-border);
	color        : var(--dxp-muted-fg);
}
.dxp-single .dxp-detail-content table {
	width          : 100%;
	border-collapse: collapse;
	font-size      : .9375rem;
}
.dxp-single .dxp-detail-content th,
.dxp-single .dxp-detail-content td {
	padding      : 10px 12px;
	border-bottom: 1px solid var(--dxp-border);
	text-align   : left;
}
.dxp-single .dxp-detail-content hr {
	border    : 0;
	border-top: 1px solid var(--dxp-border);
}

/* ── SSS: dokunma hedefi + görünür odak halkası (erişilebilirlik) ── */
.dxp-single .dxp-acc-btn { min-height: 44px; }
.dxp-single .dxp-acc-btn:focus-visible {
	outline      : 2px solid var(--dxp-primary);
	outline-offset: 2px;
	border-radius: 6px;
}

/* ── İlgili içerikler ─────────────────────────────────────── */
.dxp-single .dxp-tagrow { margin-top: 0; }

/* ── Sağ sticky teklif kolonu ─────────────────────────────── */
.dxp-single .dxp-detail-aside { min-width: 0; }
@media (max-width: 1023px) {
	/* Yapışkanlık yalnızca masaüstünde; mobilde normal akış. */
	.dxp-single .dxp-detail-aside { position: static; }
}

/* ── Bant düzeni (Şablon 2) ───────────────────────────────── */
.dxp-single .dxp-band .dxp-band-inner > :first-child { margin-top: 0; }

/* ══════════════════════════════════════════════════════════
   Normal blog yazısı (post) — başlığın arkasında görsel + içerik
   ══════════════════════════════════════════════════════════ */

.dxp-post-hero {
	position  : relative;
	background: var(--brand-charcoal);
	color     : #ffffff;
	overflow  : hidden;
}

.dxp-post-hero-img {
	position     : absolute;
	inset        : 0;
	width        : 100%;
	height       : 100%;
	object-fit   : cover;
	border-radius: 0; /* tema görsel yuvarlamasını iptal et */
}

.dxp-post-hero-veil {
	position  : absolute;
	inset     : 0;
	/* Üstte hafif, altta koyu: başlık ve bilgi satırı okunur kalsın. */
	background: linear-gradient(180deg, rgba(3, 50, 22, .30) 0%, rgba(3, 50, 22, .72) 100%);
}

.dxp-post-hero-inner {
	position       : relative;
	z-index        : 1;
	width          : 100%;
	max-width      : var(--dxp-wrap-max);
	margin         : 0 auto;
	padding        : 96px var(--dxp-wrap-pad) 48px;
	display        : flex;
	flex-direction : column;
	justify-content: flex-end;
	gap            : 14px;
	min-height     : 240px;
}

.dxp-post-hero--image .dxp-post-hero-inner { min-height: 420px; }

.dxp-post-meta {
	display    : flex;
	flex-wrap  : wrap;
	align-items: center;
	gap        : 6px 18px;
	font-size  : .8125rem;
	color      : rgba(255, 255, 255, .88);
}

.dxp-post-meta-item { display: inline-flex; align-items: center; gap: 6px; }
.dxp-post-meta-item .dashicons { font-size: 15px; width: 15px; height: 15px; }
.dxp-post-meta a { color: #ffffff; text-decoration: none; }
.dxp-post-meta a:hover { text-decoration: underline; }

.dxp-post-title {
	margin     : 0;
	max-width  : 20ch;
	font-size  : clamp(1.75rem, 4vw, 2.75rem);
	line-height: 1.15;
	font-weight: 700;
	color      : #ffffff;
}

/* ── Gövde düzeni ────────────────────────────────────────── */
.dxp-post-layout {
	max-width: var(--dxp-wrap-max);
	margin   : 0 auto;
	padding  : 48px var(--dxp-wrap-pad) 72px;
	display  : grid;
	gap      : 40px;
}

@media (min-width: 1024px) {
	.dxp-post-layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
}

.dxp-post-main { min-width: 0; }

.dxp-post-content { font-size: 1.0625rem; line-height: 1.75; color: var(--brand-charcoal); }
.dxp-post-content > * + * { margin-top: 1.1em; }
.dxp-post-content h2 { margin-top: 1.8em; font-size: 1.5rem; }
.dxp-post-content h3 { margin-top: 1.5em; font-size: 1.25rem; }
.dxp-post-content a { color: var(--brand-green); }
.dxp-post-content blockquote {
	margin     : 1.5em 0;
	padding    : 4px 0 4px 20px;
	border-left: 3px solid var(--dxp-primary);
	color      : color-mix(in srgb, var(--brand-charcoal) 70%, transparent);
	font-style : italic;
}
.dxp-post-content img { height: auto; border-radius: 12px; }
.dxp-post-content ul,
.dxp-post-content ol { padding-left: 22px; }

/* Etiketler */
.dxp-post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.dxp-post-tags a {
	padding        : 5px 12px;
	border-radius  : 9999px;
	background     : var(--dxp-muted);
	color          : var(--dxp-accent-fg);
	font-size      : .8125rem;
	text-decoration: none;
}
.dxp-post-tags a:hover { background: var(--dxp-primary-soft); }

/* Önceki / sonraki yazı */
.dxp-post .post-navigation { margin-top: 40px; }
.dxp-post .post-navigation .nav-links { display: grid; gap: 16px; }
@media (min-width: 640px) {
	.dxp-post .post-navigation .nav-links { grid-template-columns: 1fr 1fr; }
}
.dxp-post .post-navigation a {
	display        : block;
	padding        : 16px 18px;
	border-radius  : 12px;
	background     : #ffffff;
	box-shadow     : var(--dxp-ring);
	text-decoration: none;
	color          : var(--brand-charcoal);
}
.dxp-post .post-navigation a:hover {
	box-shadow: 0 0 0 1px var(--dxp-primary), 0 8px 20px rgba(3, 50, 22, .10);
}
.dxp-post-nav-label {
	display       : block;
	font-size     : .75rem;
	text-transform: uppercase;
	letter-spacing: .05em;
	color         : var(--dxp-text-muted);
}
.dxp-post-nav-title { display: block; margin-top: 4px; font-weight: 600; }
.dxp-post .nav-next { text-align: right; }

/* Yorumlar */
.dxp-post .comments-area { margin-top: 48px; }

/* ══════════════════════════════════════════════════════════
   Yorumlar (comments.php) — blog yazısı kart dili
   ══════════════════════════════════════════════════════════ */

/* Başlık: bölüm başlığı hizasında, üstte ince ayraç */
.dxp-comments-title {
	margin        : 0 0 20px;
	padding-bottom: 14px;
	border-bottom : 1px solid var(--dxp-border);
	font-size     : 1.25rem;
	font-weight   : 700;
	color         : var(--brand-charcoal);
}

/* ── Yorum listesi ───────────────────────────────────────── */
.dxp-comment-list {
	list-style: none;
	margin    : 0;
	padding   : 0;
}

/* Alt yorumlar: sol çizgi + girinti (iç içe yanıtlar) */
.dxp-comment-list .children {
	list-style : none;
	margin     : 16px 0 0;
	padding-left: 20px;
	border-left: 2px solid var(--dxp-border);
}

.dxp-comment {
	margin: 0 0 20px;
}

/* Kart yüzeyi (widget/paylaşılan yüzeyle aynı dil) */
.dxp-comment-body {
	padding      : 20px;
	border       : 1px solid var(--dxp-border);
	border-radius: 16px;
	background   : #ffffff;
}

.dxp-comment-head {
	display    : flex;
	align-items: center;
	gap        : 12px;
	margin-bottom: 12px;
}

.dxp-comment-avatar {
	width        : 48px;
	height       : 48px;
	border-radius: 9999px;
	flex-shrink  : 0;
}

.dxp-comment-meta {
	display       : flex;
	flex-direction: column;
	gap           : 2px;
	min-width     : 0;
}

.dxp-comment-author {
	font-weight    : 600;
	font-size      : .9375rem;
	color          : var(--brand-charcoal);
	text-decoration: none;
	overflow-wrap  : anywhere;
}

.dxp-comment-author:hover { color: var(--brand-green); }

.dxp-comment-date {
	font-size: .8125rem;
	color    : var(--dxp-text-muted);
}

.dxp-comment-text {
	font-size  : 1rem;
	line-height: 1.7;
	color      : var(--brand-charcoal);
}

.dxp-comment-text > :first-child { margin-top: 0; }
.dxp-comment-text > :last-child { margin-bottom: 0; }
.dxp-comment-text a { color: var(--brand-green); }

.dxp-comment-pending {
	margin      : 0 0 10px;
	padding     : 8px 12px;
	border-radius: 10px;
	background  : var(--dxp-muted);
	font-size   : .8125rem;
	color       : var(--dxp-accent-fg);
}

/* Aksiyon satırı: yanıtla / düzenle */
.dxp-comment-actions {
	display    : flex;
	align-items: center;
	gap        : 16px;
	margin-top : 12px;
}

.dxp-comment-actions a {
	font-size      : .8125rem;
	font-weight    : 600;
	color          : var(--brand-green);
	text-decoration: none;
}

.dxp-comment-actions a:hover { text-decoration: underline; }

/* ── Yorum formu ─────────────────────────────────────────── */
.dxp-comment-form {
	margin     : 0;
	padding    : 24px;
	border     : 1px solid var(--dxp-border);
	border-radius: 16px;
	background : #ffffff;
}

.dxp-comment-form .comment-reply-title {
	margin     : 0 0 4px;
	font-size  : 1.125rem;
	font-weight: 700;
	color      : var(--brand-charcoal);
}

.dxp-comment-form .comment-reply-title small a {
	font-size      : .8125rem;
	font-weight    : 500;
	color          : var(--dxp-text-muted);
	text-decoration: none;
	text-transform : none;
	letter-spacing : 0;
}

.dxp-comment-notes {
	margin   : 0 0 16px;
	font-size: .8125rem;
	color    : var(--dxp-text-muted);
}

/* Alan sarmalayıcıları */
.dxp-comment-form .dxp-field { margin: 0 0 14px; }

.dxp-comment-form .dxp-field label {
	display      : block;
	margin-bottom: 6px;
	font-size    : .8125rem;
	font-weight  : 600;
	color        : var(--brand-charcoal);
}

.dxp-comment-form .dxp-field input[type="text"],
.dxp-comment-form .dxp-field input[type="email"],
.dxp-comment-form .dxp-field input[type="url"],
.dxp-comment-form .dxp-field textarea {
	width        : 100%;
	min-height   : 44px;
	padding      : 10px 14px;
	border       : 1px solid var(--dxp-border);
	border-radius: 12px;
	background   : var(--brand-paper);
	font-family  : inherit;
	font-size    : .9375rem;
	color        : var(--brand-charcoal);
	transition   : border-color var(--dxp-dur-fast), box-shadow var(--dxp-dur-fast), background var(--dxp-dur-fast);
}

.dxp-comment-form .dxp-field textarea {
	min-height: 120px;
	resize    : vertical;
}

.dxp-comment-form .dxp-field input::placeholder,
.dxp-comment-form .dxp-field textarea::placeholder {
	color: var(--dxp-text-muted);
}

.dxp-comment-form .dxp-field input:focus,
.dxp-comment-form .dxp-field textarea:focus {
	background  : #ffffff;
	border-color: var(--brand-green);
	box-shadow  : 0 0 0 3px var(--dxp-primary-soft);
	outline     : none;
}

/* Çerez onayı kutusu (WordPress varsayılanı) */
.dxp-comment-form .comment-form-cookies-consent {
	display    : flex;
	align-items: flex-start;
	gap        : 8px;
	margin     : 0 0 16px;
	font-size  : .8125rem;
	line-height: 1.5;
	color      : color-mix(in srgb, var(--brand-charcoal) 70%, transparent);
}

.dxp-comment-form .comment-form-cookies-consent input {
	margin-top: 2px;
	flex-shrink: 0;
}

.dxp-comment-form .comment-form-cookies-consent label { margin: 0; font-weight: 400; }

/* Gönder butonu — tema birincil buton dili */
.dxp-comment-form .submit { margin: 4px 0 0; }

.dxp-comment-submit {
	display        : inline-flex;
	align-items    : center;
	justify-content: center;
	min-height     : 44px;
	padding        : 0 22px;
	border         : 1px solid var(--dxp-primary);
	border-radius  : 12px;
	background     : var(--dxp-primary);
	color          : var(--dxp-primary-contrast);
	font-family    : inherit;
	font-size      : .9375rem;
	font-weight    : 600;
	cursor         : pointer;
	transition     : filter var(--dxp-dur-fast), transform var(--dxp-dur-fast);
}

.dxp-comment-submit:hover  { filter: brightness(.95); }
.dxp-comment-submit:active { transform: scale(.98); }

/* Dar ekranda form padding'i azalt */
@media (max-width: 480px) {
	.dxp-comment-body,
	.dxp-comment-form { padding: 16px; }
	.dxp-comment-list .children { padding-left: 12px; }
}

/* ══════════════════════════════════════════════════════════
   Blog yan paneli — yalnızca tekil blog yazısında
   ══════════════════════════════════════════════════════════ */

.dxp-blog-side {
	display        : flex;
	flex-direction : column;
	gap            : 18px;
}

.dxp-widget {
	background   : #ffffff;
	border       : 1px solid var(--dxp-border);
	border-radius: 16px;
	padding      : 20px 20px 22px;
}

.dxp-widget-title {
	display       : flex;
	align-items   : center;
	gap           : 8px;
	margin        : 0 0 14px;
	padding-bottom: 12px;
	border-bottom : 1px solid var(--dxp-border);
	font-size     : .9375rem;
	font-weight   : 600;
	line-height   : 1.3;
	color         : var(--brand-charcoal);
}

/* ── Arama kutusu ────────────────────────────────────────── */
.dxp-side-search { display: flex; gap: 8px; }

.dxp-side-search-input {
	flex         : 1;
	min-width    : 0;
	height       : 44px;
	padding      : 0 14px;
	border       : 1px solid var(--dxp-border);
	border-radius: 12px;
	background   : var(--brand-paper);
	font-size    : .9rem;
	color        : var(--brand-charcoal);
	transition   : border-color var(--dxp-dur-fast), box-shadow var(--dxp-dur-fast), background var(--dxp-dur-fast);
}

.dxp-side-search-input::placeholder {
	color: var(--dxp-text-muted);
}

.dxp-side-search-input:focus {
	background  : #ffffff;
	border-color: var(--brand-green);
	box-shadow  : 0 0 0 3px var(--dxp-primary-soft);
	outline     : none;
}

.dxp-side-search-btn {
	display        : inline-flex;
	align-items    : center;
	justify-content: center;
	width          : 44px;
	height         : 44px;
	flex-shrink    : 0;
	border         : 1px solid var(--dxp-primary);
	border-radius  : 12px;
	background     : var(--dxp-primary);
	color          : var(--dxp-primary-contrast);
	cursor         : pointer;
	transition     : filter var(--dxp-dur-fast), transform var(--dxp-dur-fast);
}

.dxp-side-search-btn:hover  { filter: brightness(.95); }
.dxp-side-search-btn:active { transform: scale(.97); }
.dxp-side-search-btn .dxp-ic { width: 20px; height: 20px; }

/* ── Yazılar ─────────────────────────────────────────────── */
.dxp-widget-posts { list-style: none; margin: 0; padding: 0; }

.dxp-widget-posts li {
	padding      : 10px 0;
	border-bottom: 1px dashed var(--dxp-border);
}

.dxp-widget-posts li:first-child { padding-top: 0; }
.dxp-widget-posts li:last-child { padding-bottom: 0; border-bottom: 0; }

.dxp-widget-posts a {
	color          : var(--brand-charcoal);
	font-size      : .9rem;
	font-weight    : 500;
	line-height    : 1.45;
	text-decoration: none;
}

.dxp-widget-posts a:hover { color: var(--brand-green); }

.dxp-widget-date {
	display   : block;
	margin-top: 3px;
	font-size : .75rem;
	color     : var(--dxp-text-muted);
}

/* ── Kategoriler ─────────────────────────────────────────── */
.dxp-widget-cats {
	list-style: none;
	margin    : 0;
	padding   : 0;
	display   : flex;
	flex-direction: column;
	gap       : 6px;
}

.dxp-widget-cats a {
	display        : flex;
	align-items    : center;
	justify-content: space-between;
	gap            : 10px;
	padding        : 9px 12px;
	border-radius  : 10px;
	background     : color-mix(in srgb, var(--brand-charcoal) 4%, transparent);
	color          : var(--brand-charcoal);
	font-size      : .875rem;
	text-decoration: none;
	transition     : background var(--dxp-dur-fast), color var(--dxp-dur-fast);
}

.dxp-widget-cats a:hover {
	background: var(--dxp-primary-soft);
	color     : var(--brand-green);
}

.dxp-widget-count {
	min-width    : 26px;
	padding      : 1px 8px;
	border-radius: 9999px;
	background   : var(--dxp-muted);
	color        : var(--dxp-accent-fg);
	font-size    : .75rem;
	font-weight  : 600;
	text-align   : center;
}
