/* Codesailor Custom Widgets - Premium CSS Stylesheet */

:root {
	--cscw-primary: #6366f1; /* Modern Indigo */
	--cscw-primary-hover: #4f46e5;
	--cscw-text-dark: #1f2937;
	--cscw-text-muted: #6b7280;
	--cscw-bg-card: #ffffff;
	--cscw-border-color: #f3f4f6;
	--cscw-border-radius: 12px;
	--cscw-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
	--cscw-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
	--cscw-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Widget Styling */
.cscw-widget {
	background: var(--cscw-bg-card);
	border: 1px solid var(--cscw-border-color);
	border-radius: var(--cscw-border-radius);
	padding: 24px;
	box-shadow: var(--cscw-shadow-sm);
	margin-bottom: 24px;
	transition: var(--cscw-transition);
}

.cscw-widget:hover {
	box-shadow: var(--cscw-shadow-md);
	transform: translateY(-2px);
}

.cscw-widget-title {
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--cscw-text-dark);
	margin-top: 0;
	margin-bottom: 18px;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--cscw-border-color);
	position: relative;
}

.cscw-widget-title::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 0;
	width: 40px;
	height: 2px;
	background: linear-gradient(90deg, var(--cscw-primary), var(--cscw-primary-hover));
}

/* Post List Widget */
.cscw-post-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.cscw-post-item {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 12px 0;
	border-bottom: 1px solid var(--cscw-border-color);
	transition: var(--cscw-transition);
}

.cscw-post-item:first-child {
	padding-top: 0;
}

.cscw-post-item:last-child {
	padding-bottom: 0;
	border-bottom: none;
}

.cscw-post-thumb {
	width: 64px;
	height: 64px;
	flex-shrink: 0;
	border-radius: 8px;
	overflow: hidden;
	position: relative;
	box-shadow: var(--cscw-shadow-sm);
}

.cscw-post-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: var(--cscw-transition);
}

.cscw-post-item:hover .cscw-post-thumb img {
	transform: scale(1.1);
}

.cscw-post-details {
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.cscw-post-title {
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.4;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.cscw-post-title a {
	color: var(--cscw-text-dark);
	text-decoration: none;
	transition: var(--cscw-transition);
}

.cscw-post-title a:hover {
	color: var(--cscw-primary);
}

.cscw-post-date {
	font-size: 0.8rem;
	color: var(--cscw-text-muted);
	display: inline-flex;
	align-items: center;
}

.cscw-no-posts {
	color: var(--cscw-text-muted);
	font-style: italic;
	margin: 0;
}

/* Call To Action (CTA) Widget */
.cscw-cta-box {
	border-radius: 8px;
	padding: 24px;
	text-align: center;
	color: #ffffff;
	position: relative;
	overflow: hidden;
	box-shadow: var(--cscw-shadow-sm);
	transition: var(--cscw-transition);
}

.cscw-cta-box:hover {
	box-shadow: var(--cscw-shadow-md);
	transform: translateY(-2px);
}

.cscw-cta-title {
	font-size: 1.25rem;
	font-weight: 700;
	margin-top: 0;
	margin-bottom: 12px;
	color: #ffffff;
	line-height: 1.3;
}

.cscw-cta-content {
	font-size: 0.95rem;
	margin-top: 0;
	margin-bottom: 20px;
	line-height: 1.5;
	opacity: 0.9;
}

.cscw-cta-button {
	display: inline-block;
	background: #ffffff;
	color: var(--cscw-primary);
	padding: 10px 20px;
	border-radius: 30px;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.9rem;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
	transition: var(--cscw-transition);
}

.cscw-cta-button:hover {
	background: #f3f4f6;
	color: var(--cscw-primary-hover);
	transform: scale(1.05);
}

/* CTA Gradients and Styles */
.cscw-cta-gradient-indigo {
	background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}

.cscw-cta-gradient-sunset {
	background: linear-gradient(135deg, #f97316 0%, #db2777 100%);
}

.cscw-cta-gradient-ocean {
	background: linear-gradient(135deg, #0284c7 0%, #0d9488 100%);
}

.cscw-cta-dark-charcoal {
	background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
}

.cscw-cta-glass-light {
	background: rgba(255, 255, 255, 0.7);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, 0.3);
	color: var(--cscw-text-dark);
}

.cscw-cta-glass-light .cscw-cta-title {
	color: var(--cscw-text-dark);
}

.cscw-cta-glass-light .cscw-cta-content {
	color: var(--cscw-text-dark);
	opacity: 0.8;
}

.cscw-cta-glass-light .cscw-cta-button {
	background: var(--cscw-primary);
	color: #ffffff;
}

.cscw-cta-glass-light .cscw-cta-button:hover {
	background: var(--cscw-primary-hover);
}

