/**
 * Modern In-Article Signup CTA Widget Styles.
 *
 * Distinctive, high-converting, eye-catching editorial card banner
 * designed specifically for in-content placement without touching sidebar styles.
 *
 * @package RayTheme
 */

.ray-signup-cta-widget {
	width: 100%;
	margin: 28px 0;
	box-sizing: border-box;
	clear: both;
	direction: rtl;
	text-align: right;
}

.ray-signup-cta-banner {
	position: relative;
	background: linear-gradient(135deg, #ffffff 0%, #fffdf8 65%, #fffaf0 100%);
	border: 1.5px solid #f0de9e;
	border-radius: 16px;
	box-shadow: 0 4px 18px -2px rgba(13, 19, 41, 0.05), 0 1px 4px rgba(255, 211, 5, 0.06);
	padding: 20px 22px;
	box-sizing: border-box;
	transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.ray-signup-cta-banner:hover {
	border-color: #ffd305;
	box-shadow: 0 8px 24px -3px rgba(13, 19, 41, 0.08), 0 3px 12px rgba(255, 211, 5, 0.18);
	transform: translateY(-2px);
}

/* Flex Layout: Info on Right, Button on Left */
.ray-signup-cta-body {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

/* Info Section (Avatar + Texts) */
.ray-signup-cta-info {
	display: flex;
	align-items: center;
	gap: 16px;
	min-width: 0;
	flex: 1 1 auto;
}

/* Avatar / Logo Box */
.ray-signup-cta-avatar-wrap {
	flex-shrink: 0;
}

.ray-signup-cta-avatar {
	width: 82px;
	border-radius: 12px;
	object-fit: contain;
	background: #ffffff;
	border: 1px solid #edf0f4;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 3px;
	box-sizing: border-box;
}

.ray-signup-cta-avatar-fallback {
	background: linear-gradient(135deg, #fff8db 0%, #ffe999 100%);
	color: #946c00;
}

/* Title & Description */
.ray-signup-cta-texts {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 10px;
	min-width: 0;
}

.ray-signup-cta-title-row {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.ray-signup-cta-title {
	font-size: 16px;
	font-weight: 700;
	color: #0d1329;
	line-height: 1.25;
	margin: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Verified Badge with Live Pulse */
.ray-signup-cta-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: rgba(16, 185, 129, 0.1);
	color: #047857;
	font-size: 11px;
	font-weight: 600;
	padding: 2px 9px;
	border-radius: 20px;
	border: 1px solid rgba(16, 185, 129, 0.22);
	line-height: 1.35;
	white-space: nowrap;
}

.ray-signup-cta-live-pulse {
	width: 7px;
	height: 7px;
	background-color: #10b981;
	border-radius: 50%;
	display: inline-block;
	box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
	animation: rayPulseGreen 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
	flex-shrink: 0;
}

@keyframes rayPulseGreen {
	0% {
		box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
	}
	70% {
		box-shadow: 0 0 0 5px rgba(16, 185, 129, 0);
	}
	100% {
		box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
	}
}

.ray-signup-cta-desc {
	margin: 0;
	font-size: 12.5px;
	color: #64748b;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	line-height: 17px !important;
}

/* Action Button */
.ray-signup-cta-action {
	flex-shrink: 0;
}

.ray-signup-cta-btn {
	background: linear-gradient(135deg, #ffd305 0%, #ffbe00 100%);
	color: #080f1d !important;
	border: none;
	border-radius: 12px;
	height: 44px;
	padding: 0 20px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none !important;
	cursor: pointer;
	box-shadow: 0 3px 12px rgba(255, 190, 0, 0.3);
	transition: all 0.2s ease;
	box-sizing: border-box;
	white-space: nowrap;
}

.ray-signup-cta-btn:hover,
.ray-signup-cta-btn:focus {
	background: linear-gradient(135deg, #ffdc2e 0%, #ffc81a 100%);
	box-shadow: 0 5px 16px rgba(255, 190, 0, 0.45);
	transform: translateY(-1px);
	color: #080f1d !important;
}

.ray-signup-cta-btn:active {
	transform: translateY(0);
	box-shadow: 0 2px 6px rgba(255, 190, 0, 0.2);
}

.ray-signup-cta-btn-icon {
	color: #080f1d;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.ray-signup-cta-btn-text {
	line-height: 1;
}

.ray-signup-cta-btn-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #080f1d;
	transition: transform 0.2s ease;
}

.ray-signup-cta-btn:hover .ray-signup-cta-btn-arrow {
	transform: translateX(-3px);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 768px) {
	.ray-signup-cta-banner {
		padding: 14px 16px;
	}

	.ray-signup-cta-body {
		flex-direction: column;
		align-items: stretch;
		gap: 14px;
	}

	.ray-signup-cta-info {
		width: 100%;
		gap: 12px;
	}

	.ray-signup-cta-avatar-wrap {
		display: none;
	}

	.ray-signup-cta-title {
		white-space: normal;
	}

	.ray-signup-cta-desc {
		white-space: normal;
	}

	.ray-signup-cta-action {
		width: 100%;
	}

	.ray-signup-cta-btn {
		width: 100%;
		height: 44px;
	}
}
