/* Codesala Social Banner — frontend styling (light + dark themes) */

.csb-banner {
	--csb-yt: #ff0000;
	--csb-fb: #1877f2;
	--csb-li: #0a66c2;
	--csb-radius: 14px;
	box-sizing: border-box;
	width: 100%;
	z-index: 99990;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.csb-banner * {
	box-sizing: border-box;
}

/* ---------- Positions ---------- */
.csb-pos-top {
	position: fixed;
	top: 0;
	left: 0;
}
.csb-pos-bottom {
	position: fixed;
	bottom: 0;
	left: 0;
}
.csb-pos-inline,
.csb-preview {
	position: relative;
	border-radius: var(--csb-radius);
	margin: 1.25rem 0;
	overflow: hidden;
}

/* ---------- Inner layout ---------- */
.csb-inner {
	max-width: 1180px;
	margin: 0 auto;
	padding: 12px 48px 12px 18px;
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
	justify-content: center;
}
.csb-pos-inline .csb-inner,
.csb-preview .csb-inner {
	padding: 16px 18px;
}
.csb-heading {
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.2px;
	margin-right: 6px;
}
.csb-cards {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	align-items: center;
}

/* ---------- Card ---------- */
.csb-card {
	display: flex;
	align-items: center;
	gap: 10px;
	border-radius: 999px;
	padding: 7px 14px 7px 12px;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.csb-card:hover {
	transform: translateY(-1px);
}
.csb-ic {
	display: inline-flex;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	align-items: center;
	justify-content: center;
	color: #fff;
	flex: 0 0 auto;
}
.csb-card-yt .csb-ic {
	background: var(--csb-yt);
}
.csb-card-fb .csb-ic {
	background: var(--csb-fb);
}
.csb-card-li .csb-ic {
	background: var(--csb-li);
}
.csb-card-ig .csb-ic {
	background: linear-gradient(45deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5);
}
.csb-meta {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
	min-width: 0;
}
.csb-name {
	font-size: 13px;
	font-weight: 600;
}
.csb-handle {
	font-size: 12px;
	opacity: 0.7;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 160px;
}
.csb-act {
	display: inline-flex;
	align-items: center;
	margin-left: 4px;
}

/* ---------- Link / fallback buttons ---------- */
.csb-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 700;
	color: #fff;
	text-decoration: none;
	padding: 8px 16px;
	border-radius: 999px;
	line-height: 1;
	white-space: nowrap;
}
.csb-btn-yt {
	background: var(--csb-yt);
}
.csb-btn-li {
	background: var(--csb-li);
}
.csb-btn-ig {
	background: linear-gradient(45deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5);
}
.csb-btn:hover {
	filter: brightness(1.08);
}
.csb-muted {
	font-size: 12px;
	opacity: 0.6;
}

/* ---------- Close button ---------- */
.csb-close {
	position: absolute;
	top: 50%;
	right: 12px;
	transform: translateY(-50%);
	background: transparent;
	border: 0;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	opacity: 0.55;
	padding: 4px 8px;
	color: inherit;
}
.csb-close:hover {
	opacity: 1;
}

/* Keep official widget iframes centered */
.csb-act .g-ytsubscribe,
.csb-act .fb-like {
	display: inline-flex !important;
	align-items: center;
}

/* =========================================================
   THEME: DARK (gradient, bold)
   ========================================================= */
.csb-theme-dark {
	background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
	color: #fff;
}
.csb-theme-dark.csb-pos-top {
	box-shadow: 0 2px 18px rgba(0, 0, 0, 0.25);
}
.csb-theme-dark.csb-pos-bottom {
	box-shadow: 0 -2px 18px rgba(0, 0, 0, 0.25);
}
.csb-theme-dark .csb-card {
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.12);
	backdrop-filter: blur(4px);
}

/* =========================================================
   THEME: LIGHT (white anchor bar, clean — screenshot style)
   ========================================================= */
.csb-theme-light {
	background: #ffffff;
	color: #1d2327;
	border-top: 1px solid #e6e6e9;
}
.csb-theme-light.csb-pos-top {
	border-top: 0;
	border-bottom: 1px solid #e6e6e9;
	box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08);
}
.csb-theme-light.csb-pos-bottom {
	box-shadow: 0 -2px 14px rgba(0, 0, 0, 0.08);
}
.csb-theme-light .csb-heading {
	color: #111827;
}
.csb-theme-light .csb-card {
	background: #f6f7f9;
	border: 1px solid #e6e6e9;
}
.csb-theme-light .csb-card:hover {
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
}
.csb-theme-light .csb-handle {
	opacity: 0.65;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
	.csb-inner {
		flex-direction: column;
		gap: 10px;
		padding: 12px 40px 12px 12px;
	}
	.csb-cards {
		flex-direction: column;
		width: 100%;
	}
	.csb-card {
		width: 100%;
		justify-content: space-between;
	}
	.csb-handle {
		max-width: 120px;
	}
}
