/* ImagePromptLab Social Links — Redesigned UI v2 */

/* ── Heading block (matches "📣 Connect With Us" style) ── */
.ipl-heading-wrap {
	margin: 4px 0 14px;
	width: 100%;
}

.ipl-heading {
	font-size: 21px;
	font-weight: 800;
	line-height: 1.25;
	color: #1a1a1a;
	margin: 0 0 4px;
}

.ipl-subheading {
	font-size: 14px;
	font-weight: 400;
	color: #6b7280;
	margin: 0;
}

.ipl-social-links {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 20px 0;
	width: 100%;
	box-sizing: border-box;
}

/* Reset link styles */
.ipl-card,
.ipl-card:hover,
.ipl-card:focus,
.ipl-card:visited,
.ipl-card * {
	text-decoration: none !important;
}

/* ── Card ── */
.ipl-card {
	--ipl-brand: #25D366;
	--ipl-brand-light: color-mix(in srgb, var(--ipl-brand) 6%, transparent);
	--ipl-brand-light-hover: color-mix(in srgb, var(--ipl-brand) 16%, transparent);
	--ipl-brand-dark: color-mix(in srgb, var(--ipl-brand) 80%, #000000);

	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 16px;
	border-radius: 18px;
	background: var(--ipl-brand-light);
	border: 1px solid color-mix(in srgb, var(--ipl-brand) 16%, transparent);
	position: relative;
	overflow: hidden;
	cursor: pointer;
	color: inherit;
	width: 100%;
	box-sizing: border-box;
	transition: transform 0.2s cubic-bezier(.34,1.56,.64,1),
	            box-shadow 0.2s ease,
	            background-color 0.25s ease,
	            border-color 0.25s ease;

	box-shadow: 0 1px 4px color-mix(in srgb, var(--ipl-brand) 10%, transparent);
}

/* Ripple shimmer on hover */
.ipl-card::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(
		135deg,
		color-mix(in srgb, var(--ipl-brand) 0%, transparent) 0%,
		color-mix(in srgb, var(--ipl-brand) 10%, transparent) 50%,
		color-mix(in srgb, var(--ipl-brand) 0%, transparent) 100%
	);
	opacity: 0;
	transition: opacity 0.25s ease;
}

.ipl-card:hover::after,
.ipl-card:focus::after {
	opacity: 1;
}

.ipl-card:hover,
.ipl-card:focus {
	background: var(--ipl-brand-light-hover);
	border-color: var(--ipl-brand);
	transform: translateY(-2px) scale(1.01);
	box-shadow:
		0 8px 24px color-mix(in srgb, var(--ipl-brand) 28%, transparent),
		0 0 0 1.5px var(--ipl-brand);
}

.ipl-card:active {
	transform: scale(0.98);
	transition-duration: 0.1s;
}

/* ── Subtle pulse so the cards stay noticeable at rest ── */
@keyframes ipl-pulse {
	0%, 100% {
		box-shadow: 0 1px 4px color-mix(in srgb, var(--ipl-brand) 10%, transparent);
	}
	50% {
		box-shadow: 0 1px 4px color-mix(in srgb, var(--ipl-brand) 16%, transparent),
		            0 0 0 2px color-mix(in srgb, var(--ipl-brand) 10%, transparent);
	}
}

.ipl-card {
	animation: ipl-pulse 2.8s ease-in-out infinite;
}

.ipl-card:hover,
.ipl-card:focus {
	animation-play-state: paused;
}

/* ── Icon wrapper ── */
.ipl-icon-wrap {
	flex: 0 0 auto;
	width: 46px;
	height: 46px;
	border-radius: 14px;
	background: var(--ipl-brand);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 3px 10px color-mix(in srgb, var(--ipl-brand) 45%, transparent);
	position: relative;
	z-index: 1;
}

.ipl-icon {
	width: 24px;
	height: 24px;
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ipl-icon svg {
	width: 100%;
	height: 100%;
}

/* ── Text block ── */
.ipl-card-left {
	display: flex;
	align-items: center;
	gap: 13px;
	flex: 1 1 auto;
	min-width: 0;
	position: relative;
	z-index: 1;
}

.ipl-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.ipl-label {
	font-weight: 700;
	font-size: 15px;
	line-height: 1.2;
	color: color-mix(in srgb, var(--ipl-brand-dark) 90%, #111111);
	overflow-wrap: break-word;
}

.ipl-sublabel {
	font-size: 11.5px;
	font-weight: 500;
	color: color-mix(in srgb, var(--ipl-brand) 60%, #555555);
	letter-spacing: 0.01em;
}

/* ── CTA Button ── */
.ipl-btn {
	flex: 0 0 auto;
	background: var(--ipl-brand);
	color: #ffffff;
	font-weight: 700;
	font-size: 12.5px;
	letter-spacing: 0.02em;
	padding: 9px 18px;
	border-radius: 999px;
	white-space: nowrap;
	position: relative;
	z-index: 1;
	box-shadow: 0 2px 8px color-mix(in srgb, var(--ipl-brand) 50%, transparent);
	transition: box-shadow 0.2s ease, filter 0.2s ease;
	min-width:110px !important;
}

.ipl-card:hover .ipl-btn {
	filter: brightness(1.08);
	box-shadow: 0 4px 14px color-mix(in srgb, var(--ipl-brand) 60%, transparent);
}

/* ── Wider screens: let the block use the available content width,
       cards keep their row layout but breathe a bit more ── */
@media (min-width: 700px) {
	.ipl-heading {
		font-size: 23px;
	}
	.ipl-card {
		padding: 16px 20px;
	}
}

/* ── Responsive: small phones ── */
@media (max-width: 400px) {
	.ipl-social-links {
		gap: 10px;
	}
	.ipl-card {
		padding: 12px 13px;
		gap: 11px;
		border-radius: 15px;
	}
	.ipl-icon-wrap {
		width: 40px;
		height: 40px;
		border-radius: 12px;
	}
	.ipl-icon {
		width: 21px;
		height: 21px;
	}
	.ipl-label {
		font-size: 14px;
	}
	.ipl-sublabel {
		font-size: 10.5px;
	}
	.ipl-btn {
		font-size: 11.5px;
		padding: 8px 14px;
	}
	.ipl-heading {
		font-size: 18px;
	}
	.ipl-subheading {
		font-size: 13px;
	}
}

/* ── Very narrow (sidebar widgets etc.) ── */
@media (max-width: 340px) {
	.ipl-card {
		flex-wrap: wrap;
		padding: 11px 12px 12px;
	}
	.ipl-card-left {
		flex: 1 1 100%;
	}
	.ipl-btn {
		margin-left: auto;
		font-size: 11px;
		padding: 7px 13px;
	}
}
