/* SCC Times - Social Share popup | place in /assets/css/social-share.css */

/* ---------- Share icon (trigger) ---------- */
.scc-share { display: inline-block; margin: 12px 0; }

.scc-share__trigger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #000;
	cursor: pointer;
	transition: background .2s, transform .2s;
}
.scc-share__trigger svg { width: 28px; height: 28px; }
.scc-share__trigger:hover,
.scc-share__trigger:focus-visible { background: #f1f1f1; transform: scale(1.05); }

/* ---------- Popup ---------- */
html.scc-share-lock { overflow: hidden; }

.scc-share__modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	opacity: 0;
	transition: opacity .2s;
}
.scc-share__modal[hidden] { display: none; }
.scc-share__modal.is-open { opacity: 1; }

.scc-share__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .55);
}

.scc-share__dialog {
	position: relative;
	width: 100%;
	max-width: 420px;
	max-height: 90vh;
	overflow-y: auto;
	padding: 20px;
	border-radius: 14px;
	background: #fff;
	color: #222;
	box-shadow: 0 20px 50px rgba(0, 0, 0, .3);
	transform: translateY(16px) scale(.98);
	transition: transform .2s;
}
.scc-share__modal.is-open .scc-share__dialog { transform: none; }

.scc-share__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 14px;
}
.scc-share__heading { margin: 0; font-size: 20px; font-weight: 700; }

.scc-share__close {
	display: inline-flex;
	padding: 6px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #444;
	cursor: pointer;
}
.scc-share__close:hover { background: #f1f1f1; }

/* Preview card */
.scc-share__preview {
	display: flex;
	gap: 12px;
	margin-bottom: 18px;
	padding: 10px;
	border: 1px solid #e5e5e5;
	border-radius: 10px;
	background: #fafafa;
}
.scc-share__preview img {
	flex: 0 0 96px;
	width: 96px;
	height: 72px;
	object-fit: cover;
	border-radius: 6px;
}
.scc-share__preview-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.scc-share__preview-text strong {
	font-size: 14px;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.scc-share__preview-text span { font-size: 12px; color: #666; line-height: 1.4; }

/* Options grid */
.scc-share__list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.scc-share__opt {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	width: 100%;
	padding: 8px 4px;
	border: 0;
	background: transparent;
	color: #222;
	font: inherit;
	font-size: 13px;
	text-decoration: none;
	cursor: pointer;
}
.scc-share__ico {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	color: #fff;
	transition: transform .15s;
}
.scc-share__opt:hover .scc-share__ico,
.scc-share__opt:focus-visible .scc-share__ico { transform: scale(1.08); }
.scc-share__opt:focus-visible { outline: 2px solid #0a66c2; outline-offset: 2px; border-radius: 8px; }

.scc-share__opt--whatsapp  .scc-share__ico { background: #25d366; }
.scc-share__opt--linkedin  .scc-share__ico { background: #0a66c2; }
.scc-share__opt--twitter   .scc-share__ico { background: #000; }
.scc-share__opt--copy      .scc-share__ico { background: #555; }
.scc-share__opt--instagram .scc-share__ico {
	background: linear-gradient(45deg, #f09433, #dc2743 50%, #bc1888);
}

/* Toast */
.scc-share__toast {
	position: fixed;
	left: 50%;
	bottom: 24px;
	transform: translate(-50%, 20px);
	background: #222;
	color: #fff;
	padding: 10px 16px;
	border-radius: 6px;
	font-size: 14px;
	opacity: 0;
	transition: opacity .3s, transform .3s;
	z-index: 100000;
}
.scc-share__toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* Chhoti screen par bottom-sheet jaisa popup */
@media (max-width: 520px) {
	.scc-share__modal { align-items: flex-end; padding: 0; }
	.scc-share__dialog { max-width: none; border-radius: 16px 16px 0 0; }
}