/**
 * CircleKit Widget Styles
 *
 * @package CircleKit
 */

/* ═══ Online Members ═══ */
.ck-w-online-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.ck-w-online-item {
	position: relative;
	display: inline-block;
	text-decoration: none;
}
.ck-w-online-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
	transition: transform .2s;
}
.ck-w-online-item:hover .ck-w-online-avatar {
	transform: scale(1.1);
}
.ck-w-online-dot {
	position: absolute;
	bottom: 1px;
	right: 1px;
	width: 10px;
	height: 10px;
	background: #22c55e;
	border-radius: 50%;
	border: 2px solid #fff;
}
.ck-w-online-count {
	margin-top: 10px;
	font-size: 12px;
	color: #6b7280;
	font-weight: 500;
}

/* ═══ Community Stats ═══ */
.ck-w-stats-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}
.ck-w-stat-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 14px 8px;
	background: #f9fafb;
	border-radius: 12px;
	transition: background .2s;
}
.ck-w-stat-item:hover {
	background: #ede9fe;
}
.ck-w-stat-icon {
	font-size: 20px;
	margin-bottom: 4px;
}
.ck-w-stat-value {
	font-size: 22px;
	font-weight: 700;
	color: #1e293b;
	line-height: 1.2;
}
.ck-w-stat-label {
	font-size: 11px;
	color: #6b7280;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: .5px;
}

/* ═══ New Members ═══ */
.ck-w-newmembers {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.ck-w-newmember-row {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px;
	border-radius: 10px;
	text-decoration: none;
	color: inherit;
	transition: background .2s;
}
.ck-w-newmember-row:hover {
	background: #f3f4f6;
}
.ck-w-newmember-avatar {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}
.ck-w-newmember-name {
	font-size: 13px;
	font-weight: 600;
	color: #1e293b;
}
.ck-w-newmember-joined {
	font-size: 11px;
	color: #9ca3af;
}

/* ═══ Active Groups ═══ */
.ck-w-groups {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.ck-w-group-card {
	display: block;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid #e5e7eb;
	text-decoration: none;
	color: inherit;
	transition: box-shadow .2s;
}
.ck-w-group-card:hover {
	box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
.ck-w-group-cover {
	height: 60px;
	background-size: cover;
	background-position: center;
	background-color: #ede9fe;
}
.ck-w-group-cover--default {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	background: linear-gradient(135deg, #ede9fe, #ddd6fe);
}
.ck-w-group-body {
	padding: 10px 12px;
}
.ck-w-group-name {
	font-size: 13px;
	font-weight: 600;
	color: #1e293b;
}
.ck-w-group-meta {
	font-size: 11px;
	color: #9ca3af;
	margin-top: 2px;
}

/* ═══ My Inbox ═══ */
.ck-w-inbox-badge {
	display: inline-block;
	padding: 3px 10px;
	font-size: 11px;
	font-weight: 700;
	color: #fff;
	background: #ef4444;
	border-radius: 10px;
	margin-bottom: 10px;
}
.ck-w-inbox-list {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.ck-w-inbox-row {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px;
	border-radius: 10px;
	text-decoration: none;
	color: inherit;
	transition: background .2s;
}
.ck-w-inbox-row:hover {
	background: #f3f4f6;
}
.ck-w-inbox-row.ck-w-unread {
	background: #f5f3ff;
}
.ck-w-inbox-avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}
.ck-w-inbox-info {
	flex: 1;
	min-width: 0;
}
.ck-w-inbox-name {
	font-size: 13px;
	font-weight: 600;
	color: #1e293b;
}
.ck-w-inbox-preview {
	font-size: 11px;
	color: #9ca3af;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.ck-w-inbox-dot {
	width: 8px;
	height: 8px;
	background: #6d28d9;
	border-radius: 50%;
	flex-shrink: 0;
}
.ck-w-inbox-viewall {
	display: block;
	text-align: center;
	padding: 10px;
	margin-top: 8px;
	font-size: 12px;
	font-weight: 600;
	color: #6d28d9;
	text-decoration: none;
	border-radius: 8px;
	transition: background .2s;
}
.ck-w-inbox-viewall:hover {
	background: #ede9fe;
}

/* ═══ Latest Activities ═══ */
.ck-w-la-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
}
.ck-w-la-title {
	font-size: 18px;
	font-weight: 700;
	color: #1e293b;
	margin: 0;
}
.ck-w-la-viewall-link {
	font-size: 14px;
	font-weight: 600;
	color: #2563eb;
	text-decoration: none;
}
.ck-w-la-viewall-link:hover { color: #1d4ed8; }
.ck-w-la-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.ck-w-la-card {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px;
	border-radius: 14px;
	transition: transform .15s, box-shadow .15s;
}
.ck-w-la-card:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0,0,0,.06);
}
/* Type-specific card backgrounds */
.ck-w-la-card--post         { background: #eff6ff; }
.ck-w-la-card--comment      { background: #fefce8; }
.ck-w-la-card--reaction     { background: #eef2ff; }
.ck-w-la-card--share        { background: #faf5ff; }
.ck-w-la-card--joined_group { background: #ecfdf5; }
.ck-w-la-card--media        { background: #ecfeff; }
.ck-w-la-icon {
	width: 44px;
	height: 44px;
	min-width: 44px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.ck-w-la-icon svg {
	width: 22px;
	height: 22px;
}
.ck-w-la-avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}
.ck-w-la-body {
	flex: 1;
	min-width: 0;
}
.ck-w-la-name {
	font-size: 14px;
	font-weight: 700;
	color: #1e293b;
	text-decoration: none;
	display: block;
	line-height: 1.3;
}
.ck-w-la-name:hover { color: #6d28d9; }
.ck-w-la-action {
	font-size: 13px;
	color: #16a34a;
	font-weight: 500;
	line-height: 1.4;
	margin-top: 1px;
}
.ck-w-la-action a { color: #16a34a; font-weight: 600; text-decoration: none; }
.ck-w-la-time {
	font-size: 12px;
	color: #94a3b8;
	margin-top: 2px;
}
.ck-w-la-footer {
	display: block;
	text-align: center;
	padding: 14px;
	margin-top: 10px;
	font-size: 14px;
	font-weight: 600;
	color: #2563eb;
	text-decoration: none;
	border-radius: 10px;
	transition: background .2s;
}
.ck-w-la-footer:hover {
	background: #eff6ff;
	color: #1d4ed8;
}


/* ═══ Profile Completion Widget ═══ */
.ck-pc-widget {
	padding: 8px 0;
	position: relative;
	overflow: hidden;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Header */
.ck-pc-header {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 16px;
}
.ck-pc-icon {
	width: 44px;
	height: 44px;
	background: linear-gradient(135deg, #818cf8, #6d28d9);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	position: relative;
	box-shadow: 0 4px 14px rgba(109, 40, 217, .2);
}
.ck-pc-icon-badge {
	position: absolute;
	bottom: -2px;
	right: -2px;
	width: 16px;
	height: 16px;
	background: #6d28d9;
	color: #fff;
	font-size: 9px;
	font-weight: 700;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px solid #fff;
}
.ck-pc-icon-badge.ck-pc-done { background: #22c55e; }
.ck-pc-heading {
	font-size: 16px;
	font-weight: 800;
	color: #1e293b;
	margin: 0 0 2px;
	line-height: 1.2;
}
.ck-pc-subtext {
	font-size: 11px;
	color: #6b7280;
	margin: 0;
	line-height: 1.4;
}

/* Sparkles */
.ck-pc-sparkles {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
}
.ck-pc-sparkle {
	position: absolute;
	color: #c4b5fd;
	animation: ckSparkle 3s infinite ease-in-out;
}
.ck-pc-sparkle-1 { top: 8px; right: 8px; font-size: 14px; animation-delay: 0s; color: #6d28d9; }
.ck-pc-sparkle-2 { top: 45%; right: 4px; font-size: 10px; animation-delay: 1s; }
.ck-pc-sparkle-3 { top: 45%; left: 4px; font-size: 10px; animation-delay: 1.5s; }
.ck-pc-sparkle-4 { bottom: 35%; right: 12px; font-size: 8px; animation-delay: 2s; }
@keyframes ckSparkle {
	0%, 100% { opacity: .3; transform: scale(.8); }
	50% { opacity: 1; transform: scale(1.2); }
}

/* Segmented Progress Ring */
.ck-pc-ring-wrap {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 16px;
	width: 200px;
	height: 200px;
}
.ck-pc-ring-deco {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}
.ck-pc-ring {
	display: block;
	position: relative;
	z-index: 1;
	width: 180px;
	height: 180px;
	filter: drop-shadow(0 3px 8px rgba(109, 40, 217, .12));
}
.ck-pc-ring-text {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	text-align: center;
	z-index: 2;
}
.ck-pc-ring-num {
	font-size: 36px;
	font-weight: 800;
	color: #1e293b;
	line-height: 1;
}
.ck-pc-ring-pct {
	font-size: 16px;
	font-weight: 600;
	color: #6b7280;
}
.ck-pc-ring-label {
	display: block;
	font-size: 11px;
	font-weight: 600;
	color: #6d28d9;
	margin-top: 3px;
}

/* Task list */
.ck-pc-tasks {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.ck-pc-task {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border-radius: 10px;
	border-bottom: 1px solid #f1f1f4;
	transition: background .2s;
}
.ck-pc-task:last-child { border-bottom: none; }
.ck-pc-task:hover { background: rgba(109, 40, 217, .03); }
.ck-pc-task--done { }
.ck-pc-task-label {
	flex: 1;
	font-size: 13px;
	font-weight: 600;
	color: #1e293b;
	min-width: 0;
}
.ck-pc-task-score {
	font-size: 12px;
	font-weight: 700;
	color: #22c55e;
	background: #f0fdf4;
	padding: 2px 8px;
	border-radius: 8px;
	border: 1px solid #bbf7d0;
	flex-shrink: 0;
}
.ck-pc-task-check {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	border: 2px solid #d1d5db;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	font-weight: 700;
	color: transparent;
	flex-shrink: 0;
	transition: all .2s;
}
.ck-pc-check--done {
	border-color: #22c55e;
	color: #22c55e;
	background: #f0fdf4;
}

/* CTA */
.ck-pc-cta {
	display: block;
	text-align: center;
	padding: 10px;
	margin-top: 10px;
	background: linear-gradient(135deg, #6d28d9, #3b82f6) !important;
	color: #fff !important;
	font-size: 12px;
	font-weight: 700;
	border-radius: 10px;
	text-decoration: none !important;
	transition: opacity .2s;
}
.ck-pc-cta:hover { opacity: .9; color: #fff !important; }
