/* ==========================================================================
   MyCreaTools Popular Topics (Tags & Categories) Widget CSS
   ========================================================================== */

.mct-popular-topics-wrapper {
	width: 100%;
	box-sizing: border-box;
	font-family: inherit;
}

/* Sticky Sidebar Mode (Applies to wrapper and Elementor widget root element) */
.elementor-widget-mct_popular_topics.is-sticky-widget,
.elementor-widget-mct_popular_topics.is-sticky-widget > .elementor-widget-container,
.mct-popular-topics-wrapper.is-sticky {
	position: -webkit-sticky !important;
	position: sticky !important;
	top: var(--mct-topics-sticky-top, 90px) !important;
	z-index: 99 !important;
}

/* Outer Card Container matching design image */
.mct-topics-card {
	background: #ffffff;
	border: 1px solid #f1f5f9;
	border-radius: 24px;
	padding: 24px 22px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
	box-sizing: border-box;
	transition: box-shadow 0.25s ease, border-color 0.25s ease;
	width: 100%;
}

.mct-topics-card:hover {
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.07);
	border-color: #e2e8f0;
}

/* Header */
.mct-topics-header {
	margin-bottom: 20px;
}

.mct-topics-title {
	font-size: 19px;
	font-weight: 800;
	color: #0f172a;
	margin: 0;
	line-height: 1.25;
	letter-spacing: -0.01em;
}

/* Topics List */
.mct-topics-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: 100%;
}

.mct-topic-item {
	margin: 0;
	padding: 0;
	list-style: none;
	width: 100%;
}

.mct-topic-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 10px;
	border-radius: 14px;
	text-decoration: none !important;
	background: transparent;
	transition: all 0.2s ease;
	cursor: pointer;
	box-sizing: border-box;
	width: 100%;
}

.mct-topic-link:hover {
	background: #f8fafc;
	transform: translateX(2px);
}

/* Left Group (Hashtag Badge + Name) */
.mct-topic-left {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
	flex: 1;
}

/* Hashtag Badge Circle (#) */
.mct-topic-badge {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: #f1f5f9;
	color: #64748b;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 15px;
	font-weight: 800;
	flex-shrink: 0;
	transition: all 0.2s ease;
}

.mct-topic-link:hover .mct-topic-badge {
	background: #dc2626;
	color: #ffffff;
}

/* Topic Name */
.mct-topic-name {
	font-size: 15.5px;
	font-weight: 700;
	color: #0f172a;
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	transition: color 0.2s ease;
}

.mct-topic-link:hover .mct-topic-name {
	color: #dc2626;
}

/* Right side Count Badge (e.g. 1.2k) */
.mct-topic-count {
	font-size: 14px;
	font-weight: 600;
	color: #94a3b8;
	flex-shrink: 0;
	margin-left: 12px;
	transition: color 0.2s ease;
}

.mct-topic-link:hover .mct-topic-count {
	color: #475569;
}
