/**
 * Frontend link tooltips - hover tooltip styling.
 *
 * Dark-themed tooltip with colored badge, URL, and attribute tags.
 * Appears on hover when data-cll-type is present on link.
 *
 * @package Copyaiscript\LinkLab
 */

.cll-frontend-tooltip {
	position: absolute;
	bottom: 100%;
	left: 50%;
	transform: translateX( -50% );
	margin-bottom: 8px;
	padding: 10px 12px;
	background: #2c3e50;
	color: #ecf0f1;
	border-radius: 4px;
	font-size: 12px;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	line-height: 1.4;
	z-index: 10000;
	box-shadow: 0 4px 12px rgba( 0, 0, 0, 0.25 );
	white-space: nowrap;
	pointer-events: none;
	max-width: 250px;
	white-space: normal;
}

/* Badge */
.cll-tt-badge {
	display: inline-block;
	padding: 4px 8px;
	border-radius: 3px;
	font-weight: 600;
	font-size: 11px;
	margin-bottom: 6px;
	width: 100%;
	text-align: center;
}

.cll-tt-badge.cll-tt-internal {
	background: #22c55e;
	color: #fff;
}

.cll-tt-badge.cll-tt-external {
	background: #3b82f6;
	color: #fff;
}

.cll-tt-badge.cll-tt-broken {
	background: #ef4444;
	color: #fff;
}

/* URL display */
.cll-tt-url {
	font-family: 'Courier New', monospace;
	font-size: 11px;
	color: #bdc3c7;
	margin-bottom: 6px;
	word-break: break-all;
}

/* Tags container */
.cll-tt-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

/* Tag styling */
.cll-tt-tag {
	display: inline-block;
	padding: 3px 6px;
	border-radius: 2px;
	font-size: 10px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

.cll-tt-tag-dofollow {
	background: #27ae60;
	color: #fff;
}

.cll-tt-tag-nofollow {
	background: #7f8c8d;
	color: #fff;
}

.cll-tt-tag-sametab {
	background: #95a5a6;
	color: #fff;
}

.cll-tt-tag-newtab {
	background: #f97316;
	color: #fff;
}

.cll-tt-tag-broken {
	background: #e74c3c;
	color: #fff;
}

.cll-tt-tag-ok {
	background: #1abc9c;
	color: #fff;
}

/* Tooltip arrow (pointing down) */
.cll-frontend-tooltip::after {
	content: '';
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX( -50% );
	width: 0;
	height: 0;
	border-left: 6px solid transparent;
	border-right: 6px solid transparent;
	border-top: 6px solid #2c3e50;
}

/* Responsive: hide on very small screens */
@media (max-width: 480px) {
	.cll-frontend-tooltip {
		font-size: 11px;
		padding: 8px 10px;
		max-width: 200px;
	}

	.cll-tt-tag {
		font-size: 9px;
		padding: 2px 4px;
	}
}
