/**
 * CircleKit Activity Feed Styles
 *
 * @package CircleKit
 */

/* ===== Activity Wrap ===== */
.ck-activity-wrap {
	width: 100%;
	margin-top: 20px;
	font-family: var(--ck-font);
	color: var(--ck-text);
}

/* ===== Post Composer ===== */
.ck-composer {
	padding: 20px;
	margin-bottom: 16px;
}

.ck-composer-row {
	display: flex;
	gap: 12px;
	align-items: flex-start;
}

.ck-composer-input-wrap {
	flex: 1;
}

.ck-composer-input {
	width: 100%;
	min-height: 60px;
	padding: 10px 14px;
	border: 1.5px solid var(--ck-border);
	border-radius: var(--ck-radius-sm);
	font-size: 15px;
	font-family: var(--ck-font);
	color: var(--ck-text-soft);
	line-height: 1.5;
	outline: none;
	transition: var(--ck-transition);
}

.ck-composer-input:focus {
	border-color: var(--ck-primary);
	box-shadow: 0 0 0 3px var(--ck-primary-glow);
}

.ck-composer-input:empty::before {
	content: attr(data-placeholder);
	color: var(--ck-subtle);
	pointer-events: none;
}

.ck-composer-media {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	padding: 12px 0 0 52px;
}

.ck-composer-media img {
	width: 80px;
	height: 80px;
	object-fit: cover;
	border-radius: 8px;
	border: 1px solid var(--ck-border);
}

.ck-composer-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 12px;
	margin-top: 12px;
	border-top: 1px solid var(--ck-border-light);
}

.ck-composer-tools {
	display: flex;
	gap: 4px;
}

.ck-tool-btn {
	width: 36px;
	height: 36px;
	border: none;
	background: transparent;
	border-radius: 8px;
	font-size: 18px;
	cursor: pointer;
	transition: var(--ck-transition);
}

.ck-tool-btn:hover {
	background: var(--ck-bg);
}

.ck-composer-right {
	display: flex;
	gap: 8px;
	align-items: center;
}

.ck-privacy-select {
	padding: 6px 10px;
	border: 1px solid var(--ck-border);
	border-radius: 6px;
	font-size: 12px;
	font-family: var(--ck-font);
	color: var(--ck-muted);
	background: var(--ck-white);
	cursor: pointer;
}

/* ===== Feed Tabs ===== */
.ck-feed-tabs {
	display: flex;
	gap: 0;
	margin-bottom: 16px;
	border-bottom: 2px solid var(--ck-border-light);
}

.ck-feed-tab {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 12px 18px;
	font-size: 13px;
	font-weight: 600;
	color: var(--ck-muted);
	text-decoration: none;
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
	transition: var(--ck-transition);
}

.ck-feed-tab:hover { color: var(--ck-text-soft); }
.ck-feed-tab.active { color: var(--ck-primary); border-bottom-color: var(--ck-primary); }

.ck-svg-icon {
	display: inline-block;
	width: 1em;
	height: 1em;
	vertical-align: -0.125em;
}

.ck-feed-tab .ck-svg-icon {
	width: 15px;
	height: 15px;
}

/* ===== Activity Item ===== */
.ck-activity-item {
	background: var(--ck-card-bg);
	border: 1px solid var(--ck-border);
	border-radius: var(--ck-radius);
	padding: 20px;
	margin-bottom: 12px;
	transition: var(--ck-transition);
}

.ck-activity-item:hover {
	border-color: rgba(109, 40, 217, 0.1);
}

.ck-activity-item.ck-pinned {
	border-color: rgba(245, 158, 11, 0.3);
	background: rgba(245, 158, 11, 0.02);
}

.ck-pin-badge {
	font-size: 11px;
	font-weight: 600;
	color: var(--ck-warning);
	margin-bottom: 10px;
}

/* Header */
.ck-ai-header {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 12px;
}

.ck-ai-info { flex: 1; }

.ck-ai-name {
	font-size: 14px;
	font-weight: 700;
	color: var(--ck-heading);
	text-decoration: none;
}

.ck-ai-name:hover { color: var(--ck-primary); }

.ck-ai-arrow {
	color: var(--ck-subtle);
	margin: 0 4px;
	font-size: 12px;
}

.ck-ai-group {
	font-size: 14px;
	font-weight: 600;
	color: var(--ck-primary);
	text-decoration: none;
}

.ck-ai-time {
	font-size: 12px;
	color: var(--ck-subtle);
	margin-top: 2px;
}

.ck-ai-privacy-icon {
	margin-left: 4px;
	font-size: 11px;
	display: inline-flex;
	align-items: center;
	vertical-align: -0.125em;
	color: currentColor;
}

.ck-ai-privacy-icon .ck-svg-icon {
	width: 13px;
	height: 13px;
}

.ck-empty-icon .ck-svg-icon {
	width: 32px;
	height: 32px;
}

.ck-mg-doc .ck-svg-icon {
	width: 18px;
	height: 18px;
	margin-right: 4px;
}

/* Menu */
.ck-ai-menu {
	position: relative;
}

.ck-ai-dropdown {
	position: absolute;
	right: 0;
	top: 100%;
	background: var(--ck-white);
	border: 1px solid var(--ck-border);
	border-radius: var(--ck-radius-sm);
	box-shadow: var(--ck-shadow-lg);
	min-width: 160px;
	z-index: 100;
	padding: 6px;
}

.ck-dd-item {
	display: block;
	width: 100%;
	padding: 8px 12px;
	border: none;
	background: none;
	text-align: left;
	font-size: 13px;
	font-family: var(--ck-font);
	color: var(--ck-text-soft);
	border-radius: 6px;
	cursor: pointer;
	transition: var(--ck-transition);
}

.ck-dd-item:hover { background: var(--ck-bg); }
.ck-dd-danger { color: var(--ck-danger); }
.ck-dd-danger:hover { background: rgba(239, 68, 68, 0.06); }

/* Content */
.ck-ai-content {
	font-size: 15px;
	color: var(--ck-text-soft);
	line-height: 1.65;
	margin-bottom: 12px;
	word-break: break-word;
}

/* Media */
.ck-ai-media {
	margin-bottom: 12px;
	border-radius: var(--ck-radius-sm);
	overflow: hidden;
}

.ck-ai-media-single img {
	width: 100%;
	max-height: 480px;
	object-fit: cover;
	display: block;
}

.ck-ai-media-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 4px;
}

.ck-ai-media-grid img {
	width: 100%;
	height: 200px;
	object-fit: cover;
}

/* ═══ Smart Media Grid (Facebook-style) ═══ */
.ck-mg {
	display: grid;
	gap: 3px;
	margin-bottom: 12px;
	border-radius: 8px;
	overflow: hidden;
	max-height: 500px;
}

.ck-mg-item {
	position: relative;
	overflow: hidden;
	cursor: pointer;
	background: var(--ck-border);
}

.ck-mg-media {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* 1 image — full width, natural height */
.ck-mg-1 {
	grid-template-columns: 1fr;
	grid-template-rows: auto;
	max-height: 480px;
}
.ck-mg-1 .ck-mg-media { max-height: 480px; object-fit: contain; background: var(--ck-bg); }

/* 2 images — side by side, equal */
.ck-mg-2 {
	grid-template-columns: 1fr 1fr;
	grid-template-rows: 280px;
}

/* 3 images — big left, two stacked right */
.ck-mg-3 {
	grid-template-columns: 2fr 1fr;
	grid-template-rows: 140px 140px;
}
.ck-mg-3 .ck-mg-item:first-child {
	grid-row: 1 / 3;
}

/* 4 images — 2x2 grid */
.ck-mg-4 {
	grid-template-columns: 1fr 1fr;
	grid-template-rows: 180px 180px;
}

/* 5 images — two large top, three smaller bottom */
.ck-mg-5 {
	grid-template-columns: 1fr 1fr 1fr;
	grid-template-rows: 200px 160px;
}
.ck-mg-5 .ck-mg-item:nth-child(1) { grid-column: 1 / 2; grid-row: 1; }
.ck-mg-5 .ck-mg-item:nth-child(2) { grid-column: 2 / 4; grid-row: 1; }
.ck-mg-5 .ck-mg-item:nth-child(3) { grid-column: 1; grid-row: 2; }
.ck-mg-5 .ck-mg-item:nth-child(4) { grid-column: 2; grid-row: 2; }
.ck-mg-5 .ck-mg-item:nth-child(5) { grid-column: 3; grid-row: 2; }

/* +N more overlay */
.ck-mg-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,0.55);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 32px;
	font-weight: 700;
	color: var(--ck-white);
	letter-spacing: -0.5px;
}

/* Video play button */
.ck-mg-play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 48px;
	height: 48px;
	background: rgba(0,0,0,0.6);
	color: var(--ck-white);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	pointer-events: none;
	backdrop-filter: blur(4px);
}

/* Document in grid */
.ck-mg-doc {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background: var(--ck-bg);
	font-size: 13px;
	color: var(--ck-muted);
	padding: 16px;
	text-align: center;
}

.ck-ai-comment-summary {
	display: flex;
	justify-content: flex-end;
	padding: 0;
	font-size: 14px;
	color: var(--ck-muted);
}

.ck-ai-comment-summary-right {
	display: flex;
	align-items: center;
	gap: 12px;
}

.ck-ai-stat {
	font-size: 14px;
	color: var(--ck-muted);
	cursor: pointer;
}

.ck-ai-stat:hover {
	text-decoration: underline;
}

/* ===== SVG Action Icon ===== */
.ck-action-icon {
	flex-shrink: 0;
}

.ck-ai-action-btn .ck-svg-icon,
.ck-ai-action-btn .ck-action-icon {
	width: 21px;
	height: 21px;
	flex-shrink: 0;
}

.ck-action-label {
	font-size: 14px;
}

/* ===== Action Bar (Facebook-style) ===== */
.ck-ai-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	border-top: 1px solid var(--ck-border-light);
	margin: 0;
	padding: 12px 0 2px;
	min-height: 46px;
}

.ck-ai-action-group {
	display: flex;
	align-items: center;
	gap: 26px;
	min-width: 0;
}

.ck-ai-action-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-width: 0;
	min-height: 34px;
	padding: 6px 8px;
	border: none;
	background: transparent;
	border-radius: 6px;
	font-size: 15px;
	font-weight: 700;
	font-family: var(--ck-font);
	color: var(--ck-muted);
	cursor: pointer;
	letter-spacing: 0;
	text-transform: none;
	transition: background 0.15s, color 0.15s;
	position: relative;
	margin: 0;
}

.ck-ai-actions .ck-action-label {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.ck-action-count {
	color: #606b78;
	font-size: 16px;
	font-weight: 500;
	line-height: 1;
}


.ck-ai-action-btn:focus,
.ck-ai-action-btn:active,
.ck-ai-action-btn:focus-visible,
.ck-ai-action-btn:focus-within {
	outline: none !important;
	box-shadow: none !important;
	background-color: transparent !important;
	background: transparent !important;
	color: var(--ck-muted) !important;
	border: none !important;
	text-decoration: none !important;
	-webkit-tap-highlight-color: transparent !important;
}

.ck-ai-action-btn:hover {
	background: transparent !important;
	color: #5f6b7a !important;
}

.ck-ai-action-btn.reacted,
.ck-ai-action-btn.reacted:focus,
.ck-ai-action-btn.reacted:active {
	background: transparent !important;
}

/* Comments Off indicator */
.ck-comments-off {
	color: var(--ck-subtle) !important;
	cursor: not-allowed !important;
	opacity: 0.65;
}

.ck-comments-off:hover {
	background: transparent !important;
	color: var(--ck-subtle) !important;
}

/* ===== Share Modal ===== */
body.ck-share-open {
	overflow: hidden;
}

.ck-share-modal[hidden] {
	display: none !important;
}

.ck-share-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.56);
	backdrop-filter: blur(3px);
	z-index: 9998;
}

.ck-share-dialog {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: min(640px, calc(100vw - 28px));
	max-height: min(760px, calc(100vh - 28px));
	overflow: auto;
	background: var(--ck-white);
	border: 1px solid rgba(148, 163, 184, 0.24);
	border-radius: 18px;
	box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
	z-index: 9999;
	color: var(--ck-text);
}

.ck-share-head {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 66px;
	padding: 12px 64px;
	border-bottom: 1px solid var(--ck-border-light);
	position: relative;
}

.ck-share-head h2 {
	margin: 0;
	font-size: 22px;
	font-weight: 800;
	color: var(--ck-heading);
}

.ck-share-close {
	position: absolute;
	right: 16px;
	top: 50%;
	transform: translateY(-50%);
	width: 42px;
	height: 42px;
	border: none;
	border-radius: 50%;
	background: #eef2f7;
	color: #111827;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.ck-share-close:hover {
	background: #e2e8f0;
}

.ck-share-preview {
	padding: 22px 24px 14px;
}

.ck-share-preview-card {
	border: 1px solid var(--ck-border);
	border-radius: 14px;
	background: var(--ck-card-bg);
	overflow: hidden;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.ck-share-preview-author {
	display: flex;
	gap: 12px;
	align-items: center;
	padding: 14px;
}

.ck-share-preview-author img {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.ck-share-preview-author strong {
	display: block;
	color: var(--ck-heading);
	font-size: 15px;
	line-height: 1.2;
}

.ck-share-preview-author span {
	display: block;
	max-width: 420px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--ck-muted);
	font-size: 12px;
	margin-top: 2px;
}

.ck-share-preview-card p {
	margin: 0;
	padding: 0 14px 14px;
	color: var(--ck-text-soft);
	font-size: 15px;
	line-height: 1.45;
}

.ck-share-section-title {
	padding: 8px 24px 12px;
	font-size: 16px;
	font-weight: 800;
	color: var(--ck-heading);
}

.ck-share-options {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 18px 12px;
	padding: 0 24px 28px;
}

.ck-share-option {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 9px;
	min-width: 0;
	border: none;
	background: transparent;
	color: var(--ck-text);
	cursor: pointer;
	font-family: var(--ck-font);
	padding: 0;
}

.ck-share-option:focus {
	outline: none;
	background: transparent;
	box-shadow: none;
}

.ck-share-option-icon {
	width: 62px;
	height: 62px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--ck-share-color, #eef2f7);
	color: var(--ck-share-icon, #334155);
	box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.ck-share-option-icon svg {
	width: 26px;
	height: 26px;
	display: block;
	fill: currentColor;
	stroke: none;
}

.ck-share-option-native .ck-share-option-icon svg,
.ck-share-option-copy .ck-share-option-icon svg {
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ck-share-option-label {
	width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	text-align: center;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0;
	color: var(--ck-text-soft);
}

.ck-share-option-native .ck-share-option-icon { --ck-share-color: #f1f5f9; --ck-share-icon: #334155; }
.ck-share-option-whatsapp .ck-share-option-icon { --ck-share-color: #25d366; --ck-share-icon: #fff; }
.ck-share-option-facebook .ck-share-option-icon { --ck-share-color: #1877f2; --ck-share-icon: #fff; }
.ck-share-option-messenger .ck-share-option-icon { --ck-share-color: #006aff; --ck-share-icon: #fff; }
.ck-share-option-telegram .ck-share-option-icon { --ck-share-color: #26a5e4; --ck-share-icon: #fff; }
.ck-share-option-linkedin .ck-share-option-icon { --ck-share-color: #0a66c2; --ck-share-icon: #fff; }
.ck-share-option-x .ck-share-option-icon { --ck-share-color: #111; --ck-share-icon: #fff; }
.ck-share-option-gmail .ck-share-option-icon { --ck-share-color: #ea4335; --ck-share-icon: #fff; }
.ck-share-option-instagram .ck-share-option-icon { --ck-share-color: linear-gradient(135deg, #feda75 0%, #fa7e1e 28%, #d62976 52%, #962fbf 74%, #4f5bd5 100%); --ck-share-icon: #fff; }
.ck-share-option-tiktok .ck-share-option-icon { --ck-share-color: #111; --ck-share-icon: #fff; }
.ck-share-option-copy .ck-share-option-icon { --ck-share-color: #f1f5f9; --ck-share-icon: var(--ck-primary); }

/* ===== Shared Activity Page ===== */
.ck-share-page {
	max-width: 760px;
	margin: 48px auto;
	padding: 0 18px;
}

.ck-share-card {
	background: var(--ck-card-bg);
	border: 1px solid var(--ck-border);
	border-radius: var(--ck-radius);
	box-shadow: var(--ck-shadow);
	padding: 22px;
}

.ck-share-author {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 14px;
}

.ck-share-media {
	margin-top: 14px;
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid var(--ck-border-light);
}

.ck-share-media img,
.ck-share-media video {
	display: block;
	width: 100%;
	max-height: 520px;
	object-fit: contain;
	background: var(--ck-bg);
}

.ck-share-cta {
	margin-top: 18px;
}

/* ===== Comments Section ===== */
.ck-ai-comments {
	padding-top: 8px;
}

.ck-comments-list {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 10px;
}

.ck-comment {
	display: flex;
	gap: 8px;
	align-items: flex-start;
}

.ck-comment .ck-avatar-xs {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	margin-top: 2px;
}

.ck-comment-body {
	flex: 1;
	min-width: 0;
}

.ck-comment-bubble {
	background: var(--ck-bg);
	border-radius: 18px;
	padding: 8px 14px;
	display: inline-block;
	max-width: 100%;
}

.ck-comment-author {
	font-size: 13px;
	font-weight: 700;
	color: var(--ck-heading);
	text-decoration: none;
	display: block;
}

.ck-comment-author:hover { color: var(--ck-primary); }

.ck-comment-text {
	font-size: 14px;
	color: var(--ck-text-soft);
	margin-top: 1px;
	line-height: 1.45;
	word-break: break-word;
}

.ck-comment-meta {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 3px 14px 0;
	font-size: 12px;
}

.ck-comment-time {
	color: var(--ck-subtle);
	font-weight: 500;
}

.ck-comment-meta-action {
	color: var(--ck-muted) !important;
	font-weight: 700;
	cursor: pointer !important;
	background: none !important;
	background-color: transparent !important;
	border: none !important;
	padding: 0 !important;
	font-size: 12px;
	font-family: var(--ck-font);
	outline: none !important;
	box-shadow: none !important;
	text-decoration: none !important;
	-webkit-tap-highlight-color: transparent !important;
	line-height: 1;
}

.ck-comment-meta-action:hover {
	color: var(--ck-heading) !important;
	text-decoration: underline !important;
	background: none !important;
}

.ck-comment-meta-action:focus,
.ck-comment-meta-action:active {
	color: var(--ck-muted) !important;
	background: none !important;
	background-color: transparent !important;
	outline: none !important;
	box-shadow: none !important;
}

/* Comment Form (Facebook-style) */
.ck-comment-form {
	display: flex;
	gap: 8px;
	align-items: center;
}

.ck-comment-form .ck-avatar-xs {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	margin-top: 2px;
}

.ck-comment-input-wrap {
	flex: 1;
	background: var(--ck-bg);
	border-radius: 20px;
	overflow: hidden;
	border: 1px solid transparent;
	transition: border-color 0.15s;
}

.ck-comment-input-wrap:focus-within {
	border-color: var(--ck-border);
}

.ck-comment-input {
	width: 100%;
	padding: 8px 14px;
	border: 1px solid var(--ck-border);
	border-radius: 8px;
	background: var(--ck-bg);
	font-size: 14px;
	font-family: var(--ck-font);
	color: var(--ck-text-soft);
	outline: none;
	box-sizing: border-box;
	height: 38px;
}

.ck-comment-form .ck-comment-submit,
.ck-comment-form .ck-btn-sm {
	height: 38px;
	padding: 0 16px;
	font-size: 13px;
	white-space: nowrap;
	flex-shrink: 0;
}

.ck-comment-input::placeholder {
	color: var(--ck-subtle);
}

.ck-comment-icons {
	display: flex;
	align-items: center;
	gap: 2px;
	padding: 4px 10px 6px;
}

.ck-comment-icon-btn {
	width: 28px;
	height: 28px;
	border: none;
	background: transparent;
	border-radius: 50%;
	font-size: 16px;
	color: var(--ck-muted);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	transition: background 0.15s;
}

.ck-comment-icon-btn:hover {
	background: var(--ck-border-light);
}

.ck-comment-submit-icon {
	margin-left: auto;
	width: 28px;
	height: 28px;
	border: none;
	background: transparent;
	border-radius: 50%;
	font-size: 16px;
	color: var(--ck-primary);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	transition: color 0.15s;
	opacity: 0.5;
}

.ck-comment-submit-icon.active {
	opacity: 1;
}

.ck-comment-submit-icon:hover {
	color: var(--ck-primary);
}

/* ===== Load More ===== */
.ck-load-more {
	text-align: center;
	padding: 24px 0;
}

/* ═══ Lightbox Modal ═══ */
.ck-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: rgba(0,0,0,0.92);
	display: flex;
	align-items: center;
	justify-content: center;
	animation: ckLbIn 0.2s ease;
	backdrop-filter: blur(8px);
}

@keyframes ckLbIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

.ck-lightbox-close {
	position: absolute;
	top: 20px;
	right: 20px;
	width: 44px;
	height: 44px;
	min-width: 44px;
	min-height: 44px;
	max-width: 44px;
	max-height: 44px;
	padding: 0;
	background: rgba(255,255,255,0.12);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid rgba(255,255,255,0.2);
	border-radius: 50%;
	color: var(--ck-white);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
	z-index: 10;
	box-sizing: border-box;
}

.ck-lightbox-close:hover {
	background: rgba(255,255,255,0.25);
	transform: scale(1.1);
}

.ck-lightbox-content {
	max-width: 90vw;
	max-height: 90vh;
}

.ck-lightbox-content img {
	max-width: 90vw;
	max-height: 90vh;
	object-fit: contain;
	border-radius: 4px;
}

.ck-lightbox-content video {
	max-width: 90vw;
	max-height: 90vh;
	border-radius: 4px;
	background: #000;
}

.ck-lightbox-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 48px;
	height: 48px;
	min-width: 48px;
	min-height: 48px;
	max-width: 48px;
	max-height: 48px;
	padding: 0;
	background: rgba(255,255,255,0.12);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid rgba(255,255,255,0.2);
	border-radius: 50%;
	color: var(--ck-white);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
	box-sizing: border-box;
}

.ck-lightbox-nav:hover {
	background: rgba(255,255,255,0.25);
	transform: translateY(-50%) scale(1.1);
}

.ck-lightbox-prev { left: 20px; }
.ck-lightbox-next { right: 20px; }

.ck-lightbox-counter {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	color: rgba(255,255,255,0.7);
	font-size: 14px;
	font-weight: 600;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
	.ck-activity-wrap { max-width: 100%; }
	.ck-activity-item { padding: 16px; }
	.ck-composer { padding: 16px; }
	.ck-ai-media-grid { grid-template-columns: 1fr; }
	.ck-ai-media-grid img { height: 160px; }
	.ck-ai-actions { gap: 8px; padding-top: 10px; }
	.ck-ai-action-group { gap: 12px; }
	.ck-ai-action-btn { gap: 5px; font-size: 13px; padding: 6px 4px; letter-spacing: 0; }
	.ck-ai-action-btn .ck-svg-icon,
	.ck-ai-action-btn .ck-action-icon { width: 19px; height: 19px; }
	.ck-action-count { font-size: 14px; }
	.ck-share-dialog { width: calc(100vw - 18px); max-height: calc(100vh - 18px); border-radius: 10px; }
	.ck-share-head { min-height: 56px; padding: 10px 58px; }
	.ck-share-head h2 { font-size: 20px; }
	.ck-share-options { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 8px; padding-inline: 14px; }
	.ck-share-option-icon { width: 52px; height: 52px; }
	.ck-share-preview { padding: 14px; }
	.ck-share-preview-author span { max-width: 240px; }
	.ck-share-page { margin: 24px auto; }
	.ck-share-card { padding: 16px; }
}

/* ===== Three-dot Context Menu ===== */
.ck-ai-more-wrap {
	position: relative;
	margin-left: auto;
}

.ck-ai-more-btn {
	background: none;
	border: none;
	font-size: 20px;
	cursor: pointer;
	color: var(--ck-muted);
	padding: 4px 8px;
	border-radius: 50%;
	transition: background 0.15s, color 0.15s;
	line-height: 1;
	letter-spacing: 2px;
}

.ck-ai-more-btn:hover {
	background: var(--ck-bg);
	color: var(--ck-text-soft);
}

.ck-ai-more-menu {
	display: none;
	position: absolute;
	top: 100%;
	right: 0;
	background: var(--ck-card-bg);
	border: 1px solid var(--ck-border);
	border-radius: 10px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	min-width: 170px;
	z-index: 100;
	overflow: hidden;
	animation: ckMenuIn 0.15s ease;
}

.ck-ai-more-wrap.open .ck-ai-more-menu {
	display: block;
}

@keyframes ckMenuIn {
	from { opacity: 0; transform: translateY(-6px) scale(0.96); }
	to   { opacity: 1; transform: translateY(0) scale(1); }
}

.ck-ai-menu-item {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	padding: 10px 16px;
	border: none;
	background: none;
	font-size: 13.5px;
	font-weight: 500;
	font-family: var(--ck-font);
	color: var(--ck-text-soft);
	cursor: pointer;
	transition: background 0.12s;
	text-align: left;
	white-space: nowrap;
}

.ck-ai-menu-item:hover {
	background: var(--ck-bg);
}

.ck-ai-menu-item.ck-delete-post {
	color: var(--ck-danger);
}

.ck-ai-menu-item.ck-delete-post:hover {
	background: color-mix(in srgb,var(--ck-danger) 8%,var(--ck-white));
}
