/*
Theme Name: Blocksy Child — BAYDER
Theme URI: https://bayder.com.tr/
Template: blocksy
Version: 1.7.2
Author: BAYDER
Author URI: https://bayder.com.tr/
Description: BAYDER için Blocksy child teması — özel CSS ve küçük PHP eklentileri için. Parent: Blocksy.
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: blocksy-child

CHANGELOG
1.7.2 (2026-05-19) — .bydr-wa-btn: WhatsApp SVG (3 path tam logo) base64 olarak CSS'e gömüldü (Elementor sanitize sorununu bypass).
1.7.1 (2026-05-19) — Bağış kartı: yan yana iki kart eşit yükseklik (flex 1 row) + .bydr-wa-btn (WhatsApp tek-tık).
1.7.0 (2026-05-19) — Bağış kartı CSS (bydr-bank-card/row/copy-btn) + copy JS (functions.php). Elementor'da sadece markup yeterli.
1.6.2 (2026-05-19) — (functions.php) FAB tour zamanlama: DELAY=12s, SHOW=1s, GAP=3s, INTERVAL=30s.
1.6.1 (2026-05-19) — Cookie banner Reddet (.ct-cookies-decline-button) gizlendi.
1.6.0 (2026-05-19) — FAB tooltip auto-show: .bydr-fab--show-tip class'ı eklendi (JS ile periyodik hatırlatma turu için).
1.5.0 (2026-05-18) — (önceki — değişiklik notu yok)
1.4.0 (2026-05-17) — Customizer Additional CSS taşındı: FAB, contact-info, ct-backdrop blur, helper'lar.
1.3.1 (2026-05-16) — .bydr-donate (compact CTA) + .bydr-fab markup desteği.
1.2.0 (2026-05-16) — Warm Sand paleti + Plus Jakarta Sans local font geçişi.
*/

/* ============================================================
   BAYDER — Plus Jakarta Sans (Local Google Fonts'a geçişle birlikte korunur)
   ============================================================ */
body,
button,
input,
select,
textarea,
h1, h2, h3, h4, h5, h6,
.ct-button,
.elementor-widget-container {
	font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system,
		BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ============================================================
   BAYDER — Bağış CTA Bandı (Modern Editorial Magazine Cover)
   Markup: <section class="bydr-donate"><div class="bydr-donate__inner">...
   BG ve padding tema/section'dan geliyor — burada sadece içerik/typografi/komponentler.
   ============================================================ */

.bydr-donate {
	color: #fff;
	text-align: left;
	position: relative;
	overflow: hidden;
}

.bydr-donate__inner {
	/* max-width, margin, padding tema/Customizer section'dan geliyor */
	position: relative;
	z-index: 1;
}

/* Arka planda subtle dev kalp — decorative accent */
.bydr-donate::after {
	content: "";
	position: absolute;
	bottom: -60px;
	right: -60px;
	width: 320px;
	height: 320px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E");
	background-size: contain;
	background-repeat: no-repeat;
	opacity: 0.07;
	pointer-events: none;
	z-index: 0;
}

/* TOP: eyebrow + stat şeridi (ince divider altta) */
.bydr-donate__top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
	flex-wrap: wrap;
	margin-bottom: 36px;
	padding-bottom: 22px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}
.bydr-donate__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.95);
}
.bydr-donate__eyebrow-icon { width: 16px; height: 16px; flex-shrink: 0; }

.bydr-donate__stat-strip {
	margin: 0;
	font-size: 13px;
	letter-spacing: 0.04em;
	color: rgba(255, 255, 255, 0.75);
}
.bydr-donate__stat-strip strong { color: #fff; font-weight: 600; }

/* DEV BAŞLIK — magazine cover */
.bydr-donate__title {
	font-size: clamp(2.25rem, 6vw, 4.5rem);
	line-height: 1.02;
	letter-spacing: -0.035em;
	font-weight: 700;
	margin: 0 0 1.5rem;
	color: #fff;
	max-width: 16ch;
	text-align: left;
}
.bydr-donate__title em {
	font-style: italic;
	font-weight: 400;
	position: relative;
	display: inline-block;
}
.bydr-donate__title em::after {
	content: "";
	position: absolute;
	left: 0; right: 0;
	bottom: 0.06em;
	height: 3px;
	background: rgba(255, 255, 255, 0.9);
	border-radius: 3px;
}

.bydr-donate__text {
	font-size: clamp(1rem, 1.4vw, 1.125rem);
	line-height: 1.6;
	max-width: 52ch;
	margin: 0 0 2.25rem;
	color: rgba(255, 255, 255, 0.92);
}

/* ACTIONS */
.bydr-donate__actions {
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
	margin-bottom: 1.75rem;
}

/* PRIMARY — solid beyaz fill + obsidian text + sharp pill + drop shadow */
.bydr-donate__btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 26px;
	border-radius: 999px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	line-height: 1;
	transition: transform .25s cubic-bezier(.22,.61,.36,1),
		box-shadow .25s cubic-bezier(.22,.61,.36,1),
		background .25s, color .25s;
}
.bydr-donate__btn--primary {
	background: #fff;
	color: #0A0A0A;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.14);
}
.bydr-donate__btn--primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
	color: #0A0A0A;
}
.bydr-donate__btn--primary svg {
	width: 16px; height: 16px;
	transition: transform .25s cubic-bezier(.22,.61,.36,1);
}
.bydr-donate__btn--primary:hover svg { transform: translateX(3px); }

/* GHOST — text-link with animated underline */
.bydr-donate__btn--ghost {
	background: transparent;
	color: rgba(255, 255, 255, 0.95);
	padding: 14px 4px;
	position: relative;
	border-radius: 0;
}
.bydr-donate__btn--ghost::after {
	content: "";
	position: absolute;
	left: 4px; right: 4px;
	bottom: 10px;
	height: 1px;
	background: rgba(255, 255, 255, 0.4);
	transition: background .25s, transform .25s;
}
.bydr-donate__btn--ghost:hover { color: #fff; transform: translateX(2px); }
.bydr-donate__btn--ghost:hover::after { background: #fff; }

/* NOTE */
.bydr-donate__note {
	font-size: 13px;
	color: rgba(255, 255, 255, 0.6);
	margin: 0;
}
.bydr-donate__note a {
	color: rgba(255, 255, 255, 0.85);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.bydr-donate__note a:hover { color: #fff; }

/* MOBILE */
@media (max-width: 768px) {
	.bydr-donate__top { flex-direction: column; align-items: flex-start; gap: 14px; }
	.bydr-donate__title { max-width: none; font-size: clamp(2rem, 9vw, 3rem); }
	.bydr-donate__text { font-size: 15px; }
	.bydr-donate__actions { gap: 14px; }
	.bydr-donate__btn--primary { width: 100%; justify-content: center; }
	.bydr-donate::after { width: 200px; height: 200px; bottom: -40px; right: -40px; }
}

/* ============================================================
   BAYDER — Floating Action Buttons (functions.php inject ediyor)
   3 ikon: WhatsApp, Bağış, Kayıt — back-to-top ile birebir hizalı
   ============================================================ */
:root {
	--bydr-fab-size: 36px;
	--bydr-fab-gap: 8px;
	--bydr-fab-radius: 2px;
	--bydr-ease: cubic-bezier(.22,.61,.36,1);
}

.bydr-fab-stack {
	position: fixed;
	/* Blocksy ct-back-to-top ile birebir hizalı (sağ kenar) — tek formül tüm breakpoint'lerde */
	right: calc(var(--theme-frame-size, 0px) + var(--back-top-side-offset, 25px));
	/* back-to-top üstünde: button (~36px) + 10px nefes = 46px */
	bottom: calc(var(--theme-frame-size, 0px) + var(--back-top-bottom-offset, 25px) + 46px);
	display: flex;
	flex-direction: column;
	gap: var(--bydr-fab-gap);
	z-index: 998;
}

.bydr-fab {
	position: relative;
	width: var(--bydr-fab-size);
	height: var(--bydr-fab-size);
	border-radius: var(--bydr-fab-radius);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	box-shadow: 0 4px 12px rgba(15,23,42,.18);
	transition: background .25s var(--bydr-ease),
	            transform .25s var(--bydr-ease),
	            box-shadow .25s var(--bydr-ease);
}

.bydr-fab svg { width: 16px; height: 16px; display: block; }

.bydr-fab--whatsapp { background: #25D366; }
.bydr-fab--whatsapp:hover,
.bydr-fab--whatsapp:focus-visible { background: #1DA851; }

.bydr-fab--donate { background: var(--theme-palette-color-9, #FF9900); }
.bydr-fab--donate:hover,
.bydr-fab--donate:focus-visible { background: var(--theme-palette-color-10, #ea8d00); }

.bydr-fab--register { background: var(--theme-palette-color-1, #12AEDF); }
.bydr-fab--register:hover,
.bydr-fab--register:focus-visible { background: var(--theme-palette-color-2, #097a9c); }

.bydr-fab:hover,
.bydr-fab:focus-visible {
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(15,23,42,.28);
	outline: none;
}

/* Tooltip (hover ile sol tarafta açılan etiket) */
.bydr-fab::before {
	content: attr(data-tip);
	position: absolute;
	right: calc(100% + 12px);
	top: 50%;
	transform: translateY(-50%) translateX(6px);
	background: rgba(15,23,42,.94);
	color: #fff;
	padding: 6px 10px;
	border-radius: 4px;
	font-size: 13px;
	font-weight: 500;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: opacity .2s var(--bydr-ease), transform .2s var(--bydr-ease);
}
.bydr-fab::after {
	content: "";
	position: absolute;
	right: calc(100% + 6px);
	top: 50%;
	transform: translateY(-50%) translateX(6px);
	border: 6px solid transparent;
	border-left-color: rgba(15,23,42,.94);
	opacity: 0;
	pointer-events: none;
	transition: opacity .2s var(--bydr-ease), transform .2s var(--bydr-ease);
}
.bydr-fab:hover::before,
.bydr-fab:focus-visible::before,
.bydr-fab:hover::after,
.bydr-fab:focus-visible::after,
.bydr-fab--show-tip::before,
.bydr-fab--show-tip::after {
	opacity: 1;
	transform: translateY(-50%) translateX(0);
}

/* Mobile (≤768px): boyut + svg aynı kalır (back-to-top ile eşit), sadece gap daralır + tooltip gizlenir */
@media (max-width: 768px) {
	.bydr-fab-stack { gap: 6px; }
	.bydr-fab::before, .bydr-fab::after { display: none; }
}

/* ============================================================
   Blocksy override'ları
   ============================================================ */

/* Mobile menu backdrop blur */
.ct-backdrop,
.ct-backdrop-button a {
	backdrop-filter: blur(15px);
	-webkit-backdrop-filter: blur(15px);
}

/* Footer alt boşluğunu sıfırla */
#footer { padding-bottom: 0; }

/* Cookie banner — Reddet (decline) butonunu gizle */
.ct-cookies-decline-button { display: none !important; }

/* Header middle row container üst boşluk */
div[data-row="middle"] .ct-container {
	padding-top: 50px;
}

/* Header contact-info (WJ9YQ5) — yatay düzen
   NOT: data-id widget silinip eklenirse değişir. Kalıcılık için
   Customizer > Header > Contact Info > Items Direction = Horizontal yap. */
.ct-contact-info[data-id="WJ9YQ5"] ul {
	--items-direction: row;
	flex-direction: row !important;
	flex-wrap: wrap;
	align-items: center;
	gap: 20px;
}

.ct-contact-info[data-id="WJ9YQ5"] li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
}

.ct-contact-info[data-id="WJ9YQ5"] .contact-info {
	display: inline-flex;
	align-items: center;
}

/* ============================================================
   Helper utility classes
   ============================================================ */

/* Hover ile yukarı zıplama + tatlı soft shadow (kart, ikon, vb.)
   3 katmanlı stacked shadow (Warm Sand --dark tonunda) — modern soft hissiyat */
.fly-sm {
	transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
	box-shadow:
		0 1px 2px rgba(44, 24, 16, 0.04),
		0 4px 12px rgba(44, 24, 16, 0.06),
		0 12px 24px rgba(44, 24, 16, 0.04);
}
.fly-sm:hover {
	transform: translateY(-10px);
	box-shadow:
		0 2px 4px rgba(44, 24, 16, 0.06),
		0 8px 24px rgba(44, 24, 16, 0.10),
		0 24px 48px rgba(44, 24, 16, 0.08);
}

/* ============================================================
   Bağış Sayfası — Nakdi & Ayni Kartları
   Markup: <div class="bydr-bank-card">...</div>
   Copy JS: functions.php (wp_footer hook)
   ============================================================ */
.bydr-bank-card * { box-sizing: border-box; }
.bydr-bank-card {
	background: #fff;
	border: 1px solid #e0d6c5;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 4px 18px rgba(44,24,16,.06);
	margin-bottom: 20px;
	font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
	/* Yan yana iki kart eşit yükseklik için (Elementor column stretch ile birlikte) */
	display: flex;
	flex-direction: column;
	height: 100%;
}
/* Satırlar parent içinde kart yüksekliğini eşit dağıtır */
.bydr-bank-card .bydr-bank-row { flex: 1; }
.bydr-bank-card__head {
	background: #f9f4ec;
	padding: 18px 22px;
	border-bottom: 1px solid #e0d6c5;
	display: flex;
	align-items: center;
	gap: 12px;
}
.bydr-bank-card__head svg {
	width: 28px; height: 28px;
	color: #c8a878;
	flex-shrink: 0;
}
.bydr-bank-card__head-text strong {
	display: block;
	font-size: 17px;
	color: #2c1810;
	font-weight: 700;
}
.bydr-bank-card__head-text span {
	font-size: 13px;
	color: #8a7965;
}
.bydr-bank-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 22px;
	border-bottom: 1px solid #e0d6c5;
	gap: 12px;
	transition: background .2s ease;
}
.bydr-bank-row:last-child { border-bottom: 0; }
.bydr-bank-row:hover { background: #fafaf6; }
.bydr-bank-row__info { min-width: 0; flex: 1; }
.bydr-bank-row__label {
	font-size: 12px;
	color: #8a7965;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	font-weight: 600;
	margin-bottom: 4px;
}
.bydr-bank-row__value {
	font-size: 16px;
	color: #2c1810;
	font-weight: 600;
	word-break: break-all;
	font-variant-numeric: tabular-nums;
}
.bydr-copy-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	background: #f9f4ec;
	border: 1px solid #e0d6c5;
	border-radius: 8px;
	color: #2c1810;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: all .2s ease;
	flex-shrink: 0;
	font-family: inherit;
}
.bydr-copy-btn:hover {
	background: #c8a878;
	color: #fff;
	border-color: #c8a878;
	transform: translateY(-1px);
}
.bydr-copy-btn svg { width: 15px; height: 15px; }
.bydr-copy-btn.is-copied {
	background: #2f9e44;
	color: #fff;
	border-color: #2f9e44;
}
/* WhatsApp tek-tık aksiyon butonu — SVG CSS'e gömülü (Ayni Yardımlar satırlarında) */
.bydr-wa-btn {
	display: inline-block;
	width: 38px; height: 38px;
	background-color: #25D366;
	background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0id2hpdGUiPjxwYXRoIGQ9Ik0xNy40NzIgMTQuMzgyYy0uMjk3LS4xNDktMS43NTgtLjg2Ny0yLjAzLS45NjctLjI3Mi0uMDk5LS40NzEtLjE0OC0uNjcuMTUtLjE5Ny4yOTctLjc2Ny45NjYtLjk0IDEuMTY0LS4xNzMuMTk5LS4zNDcuMjIzLS42NDQuMDc1LS4yOTctLjE1LTEuMjU1LS40NjMtMi4zOS0xLjQ3NS0uODgzLS43ODgtMS40OC0xLjc2MS0xLjY1My0yLjA1OS0uMTczLS4yOTctLjAxOC0uNDU4LjEzLS42MDYuMTM0LS4xMzMuMjk4LS4zNDcuNDQ2LS41Mi4xNDktLjE3NC4xOTgtLjI5OC4yOTgtLjQ5Ny4wOTktLjE5OC4wNS0uMzcxLS4wMjUtLjUyLS4wNzUtLjE0OS0uNjY5LTEuNjEyLS45MTYtMi4yMDctLjI0Mi0uNTc5LS40ODctLjUtLjY2OS0uNTEtLjE3My0uMDA4LS4zNzEtLjAxLS41Ny0uMDEtLjE5OCAwLS41Mi4wNzQtLjc5Mi4zNzItLjI3Mi4yOTctMS4wNCAxLjAxNi0xLjA0IDIuNDc5IDAgMS40NjIgMS4wNjUgMi44NzUgMS4yMTMgMy4wNzQuMTQ5LjE5OCAyLjA5NiAzLjIgNS4wNzcgNC40ODcuNzA5LjMwNiAxLjI2Mi40ODkgMS42OTQuNjI1LjcxMi4yMjcgMS4zNi4xOTUgMS44NzEuMTE4LjU3MS0uMDg1IDEuNzU4LS43MTkgMi4wMDYtMS40MTMuMjQ4LS42OTQuMjQ4LTEuMjg5LjE3My0xLjQxMy0uMDc0LS4xMjQtLjI3Mi0uMTk4LS41Ny0uMzQ3ek0xMi4wMDUgMjIuMDA1Yy0xLjg0IDAtMy42MDQtLjQ4NC01LjE0OC0xLjRsLS4zNy0uMjItMy44MzQgMS4wMDUgMS4wMjItMy43MzctLjI0LS4zODJjLTEuMDA1LTEuNi0xLjUzNS0zLjQ0OC0xLjUzNC01LjM1LjAwMi01LjUyMyA0LjQ5LTEwLjAxMyAxMC4wMTMtMTAuMDEzIDIuNjczIDAgNS4xODUgMS4wNDMgNy4wNzUgMi45MzUgMS44OSAxLjg5MiAyLjkzIDQuNDA0IDIuOTI5IDcuMDc4LS4wMDMgNS41MjItNC40OTIgMTAuMDEyLTEwLjAxMyAxMC4wMTJ6TTIwLjUyIDMuNDQ4QzE4LjI0NSAxLjE3IDE1LjIyMi4wMDEgMTIuMDAzLjAwMSA1LjM3NiAwIC4wMDEgNS4zNzQgMCAxMS45ODRjMCAyLjExNC41NTMgNC4xOCAxLjYwMiA1Ljk5OGwtMS42OTYgNi4yMDMgNi4zNDktMS42NjVjMS43NDcuOTUyIDMuNzEgMS40NTUgNS43MSAxLjQ1NWguMDA1YzYuNjI2IDAgMTIuMDAxLTUuMzc0IDEyLjAwMy0xMS45ODUgMC0zLjIyNS0xLjI1Mi02LjI1NS0zLjUyNC04LjUzeiIvPjwvc3ZnPg==");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 22px 22px;
	border-radius: 50%;
	color: transparent;
	text-decoration: none;
	flex-shrink: 0;
	transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
	box-shadow: 0 2px 8px rgba(37,211,102,.25);
	font-size: 0;
	line-height: 0;
}
.bydr-wa-btn:hover {
	background-color: #1ea756;
	transform: scale(1.08);
	box-shadow: 0 4px 14px rgba(37,211,102,.4);
}

@media (max-width: 560px) {
	.bydr-bank-row { flex-direction: column; align-items: flex-start; }
	.bydr-copy-btn { width: 100%; justify-content: center; }
	.bydr-wa-btn { align-self: flex-end; }
}
