/* Paylaş: yazı sonu butonları ve "Paylaş & özetle" penceresi */

.rl-sh,
.rl-sh-dlg {
	--rl-sh-facebook: #0866ff;
	--rl-sh-whatsapp: #25d366;
	--rl-sh-x: #000;
	--rl-sh-telegram: #26a5e4;
	--rl-sh-vk: #0077ff;
	--rl-sh-more: #ff0044;
	--rl-sh-google: #4285f4;
	--rl-sh-chatgpt: #000;
	--rl-sh-claude: #d97757;
	--rl-sh-grok: #000;
	--rl-sh-border: rgba(255, 255, 255, 0.12);
	--rl-sh-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
}

/* ---------- Yuvarlak butonlar (yazı sonu ve pencere) ---------- */

/* Yazı sonunda etiketsiz; blok her ekranda ortada */
.entry-content .rl-sh,
.rl-sh {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0.5rem;
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	margin: 1.5rem 0 2.5rem;
	padding: 0;
	text-align: center;
}

.entry-content .rl-sh .rl-sh-tile,
.rl-sh-tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.375rem;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	font-family: inherit;
	font-size: 0.6875rem;
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: normal;
	text-transform: none;
	text-decoration: none;
	color: rgba(255, 255, 255, 0.75);
	cursor: pointer;
}

.rl-sh .rl-sh-tile {
	opacity: 0.95;
}

.entry-content .rl-sh .rl-sh-tile:hover,
.rl-sh-tile:hover,
.rl-sh-tile:focus-visible {
	color: #fff;
	opacity: 1;
}

.rl-sh-tile svg {
	box-sizing: border-box;
	width: 2.375rem;
	height: 2.375rem;
	padding: 0.625rem;
	border-radius: 50%;
	background: var(--rl-sh-bg);
	color: #fff;
	box-shadow: inset 0 0 0 1px var(--rl-sh-border);
	transition: filter 0.2s, transform 0.1s;
}

.rl-sh-tile:hover svg {
	filter: brightness(1.12);
}

.rl-sh-tile:active svg {
	transform: scale(0.94);
}

.rl-sh-tile span {
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* ---------- Marka renkleri ---------- */

.rl-sh-facebook { --rl-sh-bg: var(--rl-sh-facebook); }
.rl-sh-whatsapp { --rl-sh-bg: var(--rl-sh-whatsapp); }
.rl-sh-x        { --rl-sh-bg: var(--rl-sh-x); }
.rl-sh-telegram { --rl-sh-bg: var(--rl-sh-telegram); }
.rl-sh-vk       { --rl-sh-bg: var(--rl-sh-vk); }
.rl-sh-more     { --rl-sh-bg: var(--rl-sh-more); }
.rl-sh-google   { --rl-sh-bg: var(--rl-sh-google); }
.rl-sh-chatgpt  { --rl-sh-bg: var(--rl-sh-chatgpt); }
.rl-sh-claude   { --rl-sh-bg: var(--rl-sh-claude); }
.rl-sh-grok     { --rl-sh-bg: var(--rl-sh-grok); }

/* ---------- Pencere ---------- */

.rl-sh-dlg {
	box-sizing: border-box;
	width: min(22rem, calc(100% - 2rem));
	max-height: calc(100% - 2rem);
	margin: auto;
	padding: 0;
	border: 1px solid var(--rl-sh-border);
	border-radius: 8px;
	background: var(--cs-color-site-background, #16302f);
	color: #fff;
	box-shadow: 0 0.75rem 2.5rem rgba(0, 0, 0, 0.5);
	overflow: auto;
}

.rl-sh-dlg::backdrop {
	background: rgba(0, 0, 0, 0.6);
}

.rl-sh-dlg[open] {
	animation: rl-sh-in 0.18s ease-out;
}

@keyframes rl-sh-in {
	from { opacity: 0; transform: translateY(0.5rem); }
}

.rl-sh-box {
	padding: 0.75rem 1rem 1rem;
}

.rl-sh-head {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	margin: 0 0 0.75rem;
}

.rl-sh-title {
	margin-right: auto;
	font-family: var(--cs-font-headings-family), sans-serif;
	font-size: 1.125rem;
	font-weight: 500;
	line-height: 1.2;
}

.rl-sh-dlg .rl-sh-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: rgba(255, 255, 255, 0.7);
	cursor: pointer;
}

.rl-sh-dlg .rl-sh-icon:hover {
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
}

.rl-sh-dlg .rl-sh-icon svg {
	width: 1.125rem;
	height: 1.125rem;
}

.rl-sh-dlg [hidden] {
	display: none !important;
}

/* Sosyal ağlar: yalnızca Play'den açılınca */
.rl-sh-social {
	display: none;
	grid-template-columns: repeat(5, 1fr);
	gap: 0.5rem;
	margin: 0 0 0.75rem;
}

.rl-sh-full .rl-sh-social {
	display: grid;
}

/* Cihazda paylaş + Kopyala */
.rl-sh-row {
	display: flex;
	gap: 0.5rem;
	margin: 0 0 1rem;
}

.rl-sh-dlg .rl-sh-wide,
.rl-sh-dlg .rl-sh-chip {
	display: flex;
	flex: 1 1 0;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-width: 0;
	height: 2.25rem;
	margin: 0;
	padding: 0 0.75rem;
	border: 1px solid var(--rl-sh-border);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.08);
	box-shadow: var(--rl-sh-shadow);
	font-family: inherit;
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1;
	letter-spacing: normal;
	text-transform: none;
	text-decoration: none;
	white-space: nowrap;
	color: #fff;
	cursor: pointer;
	transition: filter 0.2s, background 0.2s, transform 0.1s;
}

.rl-sh-dlg .rl-sh-wide:hover,
.rl-sh-dlg .rl-sh-chip:hover {
	color: #fff;
	filter: brightness(1.12);
}

.rl-sh-dlg .rl-sh-wide:active,
.rl-sh-dlg .rl-sh-chip:active {
	transform: scale(0.97);
}

.rl-sh-dlg .rl-sh-wide svg,
.rl-sh-dlg .rl-sh-chip svg {
	flex: 0 0 auto;
	width: 1.125rem;
	height: 1.125rem;
}

.rl-sh-dlg .rl-sh-device {
	border-color: transparent;
	background: var(--rl-sh-more);
}

.rl-sh-dlg .rl-sh-copy.rl-sh-done {
	border-color: rgba(0, 255, 136, 0.8);
}

.rl-sh-label {
	margin: 0 0 0.5rem;
	font-size: 0.8125rem;
	color: rgba(255, 255, 255, 0.6);
}

.rl-sh-ai {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.5rem;
}

.rl-sh-dlg .rl-sh-chip {
	justify-content: flex-start;
	background: var(--rl-sh-bg);
}

.rl-sh-dlg .rl-sh-chip span {
	overflow: hidden;
	text-overflow: ellipsis;
}

.rl-sh-dlg a:focus-visible,
.rl-sh-dlg button:focus-visible,
.rl-sh .rl-sh-tile:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}
