/* YAYBİR — çerez onayı ve üye girişi (her sayfada). Tema stillerinden bağımsız, ybg-/ybc- önekli. */

.ybg-giris, .ybc-pencere, .ybc-bant, .ybc-yuzen, .ybc-gomulu, .ybc-politika {
	--ybg-turuncu: #f58220;
	--ybg-turuncu-koyu: #b4580b;
	--ybg-siyah: #212121;
	--ybg-metin: #4a4f55;
	--ybg-ikincil: #5f6368;
	--ybg-cizgi: #e6e8ea;
	--ybg-alan: #cdd2d6;
	font-family: "Nunito Sans", sans-serif;
	-webkit-font-smoothing: antialiased;
}
.ybg-giris *, .ybc-pencere *, .ybc-bant *, .ybc-gomulu * { box-sizing: border-box; }
.ybg-giris [hidden], .ybc-pencere [hidden], .ybc-bant[hidden], .ybc-yuzen[hidden], .ybg-giris[hidden], .ybc-pencere[hidden] { display: none !important; }
html.ybg-kilit { overflow: hidden; }

/* Düğmeler (tema düğme stillerini ezer) */
.ybg-dugme, button.ybg-dugme {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	height: auto; min-height: 48px; margin: 0; padding: 0 22px;
	border: 1px solid var(--ybg-turuncu); border-radius: 10px; background: var(--ybg-turuncu);
	font-family: Quicksand, "Nunito Sans", sans-serif; font-size: 15px; font-weight: 700; line-height: 1.2;
	letter-spacing: 0; text-transform: none; color: #1a1a1a !important; cursor: pointer; box-shadow: none;
	transition: background-color .2s, border-color .2s, color .2s;
}
.ybg-dugme:hover { background: #e3730f; border-color: #e3730f; color: #1a1a1a !important; }
.ybg-dugme--cerceve, button.ybg-dugme--cerceve { background: #fff; border-color: var(--ybg-alan); color: var(--ybg-siyah) !important; }
.ybg-dugme--cerceve:hover { background: #f4f6f6; border-color: #b9bfc4; color: var(--ybg-siyah) !important; }
.ybg-dugme--tam { width: 100%; }
.ybg-dugme:focus-visible, .ybg-kapat:focus-visible, .ybc-yuzen:focus-visible, .ybg-giris a:focus-visible, .ybc-pencere a:focus-visible, .ybc-pencere summary:focus-visible, .ybc-anahtar input:focus-visible + span, .ybg-giris input:focus-visible, .ybg-goster:focus-visible { outline: 3px solid var(--ybg-turuncu); outline-offset: 2px; }
.ybg-dugme.is-bekliyor { opacity: .7; cursor: progress; }

.ybg-kapat, button.ybg-kapat {
	position: absolute; top: 14px; right: 14px; z-index: 2;
	width: 44px; height: 44px; min-height: 0; margin: 0; padding: 0;
	display: inline-flex; align-items: center; justify-content: center;
	border: 0; border-radius: 999px; background: transparent; color: var(--ybg-ikincil); cursor: pointer;
}
.ybg-kapat:hover { background: #f1f3f4; color: var(--ybg-siyah); }

/* Ortak pencere zemini */
.ybg-giris, .ybc-pencere { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.ybg-giris__perde { position: absolute; inset: 0; background: rgba(20, 20, 20, .55); opacity: 0; transition: opacity .25s ease; }
.is-acik > .ybg-giris__perde { opacity: 1; }
.ybg-giris__kutu, .ybc-pencere__kutu {
	position: relative; width: 100%; max-height: calc(100vh - 40px); overflow: auto;
	background: #fff; border-radius: 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, .25);
	opacity: 0; transform: translateY(16px) scale(.98); transition: opacity .25s ease, transform .25s ease;
}
.is-acik > .ybg-giris__kutu, .is-acik > .ybc-pencere__kutu { opacity: 1; transform: none; }

/* Giriş penceresi */
.ybg-giris__kutu { max-width: 820px; display: grid; grid-template-columns: 300px minmax(0, 1fr); }
.ybg-giris__yan { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: 40px 32px; background: #fff4ea; border-radius: 18px 0 0 18px; }
.ybg-giris__yan img { width: 150px; height: auto; }
.ybg-giris__yan p { margin: 0; font-family: Quicksand, sans-serif; font-weight: 600; font-size: 20px; line-height: 1.4; color: var(--ybg-siyah); }
.ybg-giris__form { position: relative; display: flex; flex-direction: column; padding: 40px; margin: 0; }
.ybg-ust { margin: 0 0 6px; font-family: Quicksand, sans-serif; font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ybg-turuncu-koyu); }
.ybg-giris h2, .ybc-pencere h2 { margin: 0 0 22px; padding: 0; font-family: Quicksand, sans-serif; font-weight: 700; font-size: 26px; line-height: 1.25; color: var(--ybg-siyah); text-transform: none; letter-spacing: 0; }
.ybg-giris label { display: block; margin: 0 0 6px; font-family: "Nunito Sans", sans-serif; font-size: 14px; font-weight: 700; color: #3a3a3a; }
.ybg-giris input[type="text"], .ybg-giris input[type="password"] {
	display: block; width: 100%; height: 50px; margin: 0 0 18px; padding: 0 14px;
	border: 1px solid var(--ybg-alan); border-radius: 10px; background: #fff;
	font: 16px/1.2 "Nunito Sans", sans-serif; color: var(--ybg-siyah); box-shadow: none;
}
.ybg-giris input[type="text"]:focus, .ybg-giris input[type="password"]:focus { border-color: var(--ybg-turuncu); box-shadow: 0 0 0 3px rgba(245, 130, 32, .2); background: #fff; }
.ybg-sifre { position: relative; }
.ybg-sifre input { padding-right: 52px !important; }
.ybg-goster, button.ybg-goster { position: absolute; top: 3px; right: 3px; width: 44px; height: 44px; min-height: 0; margin: 0; padding: 0; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 8px; background: transparent; color: var(--ybg-ikincil); cursor: pointer; }
.ybg-goster[aria-pressed="true"] { color: var(--ybg-turuncu-koyu); }
.ybg-satir { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: -4px 0 22px; font-size: 14px; }
.ybg-satir a, .ybg-not a, .ybg-uyari a { color: var(--ybg-turuncu-koyu) !important; font-weight: 700; text-decoration: none; }
.ybg-satir a:hover, .ybg-not a:hover { text-decoration: underline; }
.ybg-giris .ybg-onay { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 400; color: var(--ybg-metin); cursor: pointer; }
.ybg-onay input { width: 18px; height: 18px; margin: 0; accent-color: var(--ybg-turuncu); }
.ybg-uyari { margin: 0 0 18px; padding: 12px 14px; border-radius: 10px; background: #fdecea; color: #8a1c12; font-size: 14px; line-height: 1.5; }
.ybg-not { margin: 18px 0 0; font-size: 14px; color: var(--ybg-ikincil); text-align: center; }

/* Çerez bandı */
.ybc-bant {
	position: fixed; left: 20px; bottom: 20px; z-index: 99990; width: min(480px, calc(100vw - 40px));
	display: flex; flex-direction: column; gap: 16px; padding: 22px;
	background: #fff; border: 1px solid var(--ybg-cizgi); border-radius: 16px; box-shadow: 0 18px 50px rgba(17, 24, 39, .18);
	opacity: 0; transform: translateY(12px); transition: opacity .3s ease, transform .3s ease;
}
.ybc-bant.is-acik { opacity: 1; transform: none; }
.ybc-bant p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ybg-metin); }
.ybc-bant .ybc-baslik { margin: 0 0 6px; font-family: Quicksand, sans-serif; font-weight: 700; font-size: 17px; color: var(--ybg-siyah); }
.ybc-bant a { color: var(--ybg-turuncu-koyu) !important; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.ybc-bant__dugmeler { display: grid; grid-template-columns: auto 1fr 1fr; gap: 8px; }
.ybc-bant__dugmeler .ybg-dugme { min-height: 44px; padding: 0 14px; font-size: 14px; }

.ybc-yuzen, button.ybc-yuzen {
	position: fixed; left: 16px; bottom: 16px; z-index: 99980; width: 44px; height: 44px; min-height: 0; margin: 0; padding: 0;
	display: inline-flex; align-items: center; justify-content: center;
	border: 1px solid var(--ybg-cizgi); border-radius: 999px; background: #fff; color: var(--ybg-ikincil);
	box-shadow: 0 6px 18px rgba(17, 24, 39, .14); cursor: pointer; transition: color .2s, transform .2s;
}
.ybc-yuzen:hover { color: var(--ybg-turuncu-koyu); transform: translateY(-2px); }

/* Çerez tercih penceresi */
.ybc-pencere__kutu { max-width: 620px; padding: 36px; }
.ybc-giris { margin: -10px 0 20px; font-size: 15px; line-height: 1.6; color: var(--ybg-metin); }
.ybc-kategoriler { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ybg-cizgi); }
.ybc-kategori { margin: 0; padding: 16px 0; border-bottom: 1px solid var(--ybg-cizgi); }
.ybc-kategori::before { content: none !important; }
.ybc-kategori__bas { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.ybc-kategori__ad { margin: 0 0 4px; font-family: Quicksand, sans-serif; font-weight: 700; font-size: 16px; color: var(--ybg-siyah); }
.ybc-kategori__aciklama { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ybg-ikincil); }
.ybc-her-zaman { flex: 0 0 auto; padding: 5px 10px; border-radius: 999px; background: #f1f3f4; font-size: 12px; font-weight: 700; color: var(--ybg-metin); white-space: nowrap; }
.ybc-anahtar { position: relative; flex: 0 0 auto; width: 48px; height: 28px; margin: 0; cursor: pointer; }
.ybc-anahtar input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.ybc-anahtar span { position: absolute; inset: 0; border-radius: 999px; background: #c6cbd0; transition: background-color .2s; pointer-events: none; }
.ybc-anahtar span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 999px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.ybc-anahtar input:checked + span { background: var(--ybg-turuncu); }
.ybc-anahtar input:checked + span::after { transform: translateX(20px); }
.ybc-detay { margin-top: 10px; }
.ybc-detay summary { display: inline-block; padding: 4px 0; font-size: 13px; font-weight: 700; color: var(--ybg-turuncu-koyu); cursor: pointer; list-style: none; }
.ybc-detay summary::-webkit-details-marker { display: none; }
.ybc-detay summary::after { content: " ▾"; }
.ybc-detay[open] summary::after { content: " ▴"; }
.ybc-detay ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ybc-detay li { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ybg-ikincil); }
.ybc-detay li::before { content: none !important; }
.ybc-detay code { padding: 1px 6px; border-radius: 4px; background: #f1f3f4; font-size: 12px; color: var(--ybg-siyah); }
.ybc-pencere__dugmeler { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 22px; }

/* Gömülü video yer tutucusu */
.ybc-gomulu { position: relative; margin: 0 0 20px; }
.ybc-gomulu iframe { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }
.ybc-gomulu:not(.is-acik) iframe { visibility: hidden; }
.ybc-gomulu__yer { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 20px; background: #212121; border-radius: 8px; text-align: center; }
.ybc-gomulu.is-acik .ybc-gomulu__yer { display: none; }
.ybc-gomulu__yer p { margin: 0; max-width: 420px; font-size: 14px; line-height: 1.6; color: #e0e0e0; }
.ybc-metin-dugme, button.ybc-metin-dugme { height: auto; min-height: 0; margin: 0; padding: 6px; border: 0; background: transparent; font: 700 13px/1.4 "Nunito Sans", sans-serif; text-transform: none; color: #f7a35c; text-decoration: underline; cursor: pointer; }

/* Politika tablosu */
.ybc-politika h3 { margin: 28px 0 8px; }
.ybc-tablo { overflow-x: auto; margin: 0 0 12px; }
.ybc-tablo table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; }
.ybc-tablo th, .ybc-tablo td { padding: 10px 12px; border: 1px solid var(--ybg-cizgi); text-align: left; vertical-align: top; }
.ybc-tablo th { background: #f4f6f6; font-weight: 700; color: var(--ybg-siyah); }

@media (max-width: 782px) {
	.ybg-giris, .ybc-pencere { align-items: flex-end; padding: 0; }
	.ybg-giris__kutu, .ybc-pencere__kutu { max-height: 92vh; border-radius: 18px 18px 0 0; }
	.ybg-giris__kutu { grid-template-columns: minmax(0, 1fr); }
	.ybg-giris__yan { display: none; }
	.ybg-giris__form { padding: 32px 22px 28px; }
	.ybc-pencere__kutu { padding: 30px 20px 22px; }
	.ybc-pencere__dugmeler { display: grid; grid-template-columns: 1fr 1fr; }
	.ybc-pencere__dugmeler .ybg-dugme:last-child { grid-column: 1 / -1; order: -1; }
	.ybc-bant { left: 0; bottom: 0; width: 100%; border-radius: 16px 16px 0 0; border-bottom: 0; padding: 18px 16px calc(16px + env(safe-area-inset-bottom)); }
	.ybc-bant__dugmeler { grid-template-columns: 1fr 1fr; }
	.ybc-bant__dugmeler [data-ybc="kabul"] { grid-column: 1 / -1; order: -1; }
}
@media (prefers-reduced-motion: reduce) {
	.ybg-giris__perde, .ybg-giris__kutu, .ybc-pencere__kutu, .ybc-bant, .ybc-yuzen, .ybc-anahtar span, .ybc-anahtar span::after { transition: none !important; }
}
