/**
 * MyCreaTools - Follow/Following Global Flow Styles
 */

/* Toast Notification Floating Container */
#mct-toast-container {
	position: fixed;
	bottom: 24px;
	right: 24px;
	z-index: 9999999;
	display: flex;
	flex-direction: column;
	gap: 10px;
	pointer-events: none;
}

.mct-toast {
	background: #0f172a;
	color: #ffffff;
	padding: 12px 20px;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 500;
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.25), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
	display: flex;
	align-items: center;
	gap: 12px;
	opacity: 0;
	transform: translateY(20px) scale(0.95);
	transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
	pointer-events: auto;
	box-sizing: border-box;
}

.mct-toast.show {
	opacity: 1;
	transform: translateY(0) scale(1);
}

.mct-toast.error {
	background: #7f1d1d;
	color: #fef2f2;
}

/* Modal Lightbox (Login & Followers List) */
.mct-follow-modal-overlay {
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	width: 100vw !important;
	height: 100vh !important;
	background-color: rgba(15, 23, 42, 0.7) !important;
	backdrop-filter: blur(6px) !important;
	-webkit-backdrop-filter: blur(6px) !important;
	z-index: 99999999 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 20px !important;
	opacity: 0 !important;
	visibility: hidden !important;
	pointer-events: none !important;
	transition: opacity 0.25s ease, visibility 0.25s ease !important;
	box-sizing: border-box !important;
}

.mct-follow-modal-overlay.is-open,
.mct-follow-modal-overlay[aria-hidden="false"] {
	display: flex !important;
	opacity: 1 !important;
	visibility: visible !important;
	pointer-events: auto !important;
}

.mct-follow-modal-card {
	background-color: #ffffff;
	width: 100%;
	max-width: 480px;
	max-height: 90vh;
	border-radius: 16px;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transform: scale(0.95);
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
	box-sizing: border-box;
}

.mct-followers-modal-card {
	max-width: 520px;
	height: 600px;
}

.mct-follow-modal-overlay.is-open .mct-follow-modal-card {
	transform: scale(1);
}

.mct-follow-modal-header {
	padding: 16px 20px;
	border-bottom: 1px solid #e2e8f0;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.mct-follow-modal-title {
	font-size: 18px;
	font-weight: 700;
	color: #0f172a;
	margin: 0;
	line-height: 1.3;
}

.mct-follow-modal-close {
	background: transparent;
	border: none;
	font-size: 24px;
	line-height: 1;
	color: #64748b;
	cursor: pointer;
	padding: 4px 8px;
	border-radius: 6px;
	transition: background 0.2s ease, color 0.2s ease;
}

.mct-follow-modal-close:hover {
	background-color: #f1f5f9;
	color: #0f172a;
}

.mct-follow-modal-body {
	padding: 20px;
	overflow-y: auto;
	flex: 1;
}

/* Followers Modal Search Bar */
.mct-followers-modal-search-wrap {
	padding: 12px 20px;
	border-bottom: 1px solid #f1f5f9;
	background: #f8fafc;
}

#mct-followers-search-input {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	font-size: 14px;
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	box-sizing: border-box;
}

#mct-followers-search-input:focus {
	border-color: #e50914;
	box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.15);
}

/* Followers Profile User Items Grid */
.mct-followers-user-grid {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.mct-followers-user-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 12px;
	border-radius: 10px;
	background: #ffffff;
	border: 1px solid #f1f5f9;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.mct-followers-user-card:hover {
	background: #f8fafc;
	border-color: #e2e8f0;
}

.mct-f-user-avatar-wrap {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	overflow: hidden;
	flex-shrink: 0;
	background: #cbd5e1;
	display: block;
}

.mct-f-user-avatar-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mct-f-user-info {
	flex: 1;
	margin: 0 12px;
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.mct-f-user-name {
	font-size: 14px;
	font-weight: 600;
	color: #0f172a;
	text-decoration: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.mct-f-user-name:hover {
	color: #e50914;
}

.mct-f-user-slug {
	font-size: 12px;
	color: #64748b;
}

.mct-f-user-action .mct-follow-btn {
	padding: 6px 14px;
	font-size: 12px;
	font-weight: 600;
	border-radius: 20px;
	border: 1px solid #e50914;
	background: #e50914;
	color: #ffffff;
}

.mct-followers-loading,
.mct-followers-empty,
.mct-followers-error {
	padding: 40px 20px;
	text-align: center;
	color: #64748b;
	font-size: 14px;
}

.mct-followers-error {
	color: #ef4444;
}

/* Pagination Footer */
.mct-followers-modal-footer {
	padding: 12px 20px;
	border-top: 1px solid #e2e8f0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	background: #ffffff;
}

.mct-followers-page-btn {
	background: #f1f5f9;
	border: 1px solid #cbd5e1;
	color: #334155;
	padding: 4px 10px;
	font-size: 12px;
	font-weight: 600;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.mct-followers-page-btn.active,
.mct-followers-page-btn:hover {
	background: #e50914;
	border-color: #e50914;
	color: #ffffff;
}

/* Follow Button Active & Processing States */
.mct-follow-btn {
	cursor: pointer;
	transition: all 0.2s ease;
}

.mct-follow-btn.is-processing {
	opacity: 0.7;
	pointer-events: none;
}

.mct-follow-btn.is-following {
	background-color: #f1f5f9 !important;
	color: #1e293b !important;
	border-color: #cbd5e1 !important;
}

.mct-follow-btn.is-following:hover {
	background-color: #f87171 !important;
	color: #ffffff !important;
	border-color: #ef4444 !important;
}

@media (max-width: 480px) {
	.mct-follow-modal-card {
		max-width: 100%;
		border-radius: 12px;
	}
}
