/* ============================================
   Parserlink Card — Toss/Apple Design
   ============================================ */

/* Container */
.ap_parser {
	margin: 16px 0;
}

.ap_parser_content {
	display: flex !important;
	align-items: stretch;
	max-width: 520px;
	margin: 0 auto;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 16px;
	overflow: hidden;
	text-decoration: none;
	transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
	cursor: pointer;
}

.ap_parser_content:hover {
	border-color: rgba(0, 0, 0, 0.12);
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
	transform: translateY(-1px);
}

/* Image */
.ap_parser_image_wrap {
	flex-shrink: 0;
	width: 140px;
	min-height: 120px;
	overflow: hidden;
	background: #f5f5f7;
}

.ap_parser_image_wrap a {
	display: block;
	width: 100%;
	height: 100%;
}

.ap_parser_images {
	width: 100%;
	height: 100%;
	min-height: 120px;
	overflow: hidden;
}

.ap_parser_images img {
	width: 100%;
	height: 100%;
	min-height: 120px;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.ap_parser_content:hover .ap_parser_images img {
	transform: scale(1.03);
}

.ap_parser_total_image_nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 6px 0;
	background: rgba(0, 0, 0, 0.03);
}

.ap_parser_total_image_nav a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	color: #86868b;
	transition: background 0.15s ease, color 0.15s ease;
	text-decoration: none;
}

.ap_parser_total_image_nav a:hover {
	background: rgba(0, 0, 0, 0.06);
	color: #1d1d1f;
}

.ap_parser_total_images_info {
	font-size: 11px;
	font-weight: 500;
	color: #86868b;
	letter-spacing: -0.01em;
}

/* Info */
.ap_parser_info {
	flex: 1;
	min-width: 0;
	padding: 16px 20px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 6px;
	text-align: left;
}

.ap_parser_info a {
	text-decoration: none;
}

/* Title — top, prominent */
.ap_parser_title {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: -0.02em;
}

.ap_parser_title a {
	color: #1d1d1f;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Description */
.ap_parser_desc {
	font-size: 13px;
	font-weight: 400;
	line-height: 1.5;
	color: #6e6e73;
	letter-spacing: -0.01em;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Domain URL — bottom, subtle */
.ap_parser_url {
	font-size: 11px;
	font-weight: 400;
	letter-spacing: -0.01em;
	line-height: 1.3;
	margin-top: 2px;
}

.ap_parser_url a {
	color: #86868b !important;
	transition: opacity 0.15s ease;
}

.ap_parser_url a:hover {
	opacity: 0.7;
}

/* Loading Animation */
.ap_parser_loading {
	display: flex;
	align-items: center;
	justify-content: center;
	max-width: 520px;
	margin: 0 auto;
	padding: 32px 0;
}

.ap_parser_loading_spinner {
	display: flex;
	align-items: center;
	gap: 6px;
}

.ap_parser_loading_dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #86868b;
	animation: apParserBounce 1.2s infinite ease-in-out;
}

.ap_parser_loading_dot:nth-child(1) { animation-delay: 0s; }
.ap_parser_loading_dot:nth-child(2) { animation-delay: 0.15s; }
.ap_parser_loading_dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes apParserBounce {
	0%, 60%, 100% {
		transform: scale(0.6);
		opacity: 0.4;
	}
	30% {
		transform: scale(1);
		opacity: 1;
	}
}

/* Mobile */
@media screen and (max-width: 480px) {
	.ap_parser_content {
		flex-direction: column;
		max-width: 100%;
	}

	.ap_parser_image_wrap {
		width: 100%;
		max-height: 200px;
	}

	.ap_parser_images {
		max-height: 200px;
		min-height: 160px;
	}

	.ap_parser_images img {
		min-height: 160px;
		max-height: 200px;
	}

	.ap_parser_info {
		padding: 14px 16px;
	}
}

/* Dark mode class selectors */
.is-darkmode .ap_parser_content {
	background: #1c1c1e;
	border-color: rgba(255, 255, 255, 0.08);
}

.is-darkmode .ap_parser_content:hover {
	border-color: rgba(255, 255, 255, 0.15);
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.is-darkmode .ap_parser_image_wrap {
	background: #2c2c2e;
}

.is-darkmode .ap_parser_total_image_nav {
	background: rgba(255, 255, 255, 0.04);
}

.is-darkmode .ap_parser_total_image_nav a {
	color: #98989d;
}

.is-darkmode .ap_parser_total_image_nav a:hover {
	background: rgba(255, 255, 255, 0.08);
	color: #f5f5f7;
}

.is-darkmode .ap_parser_title a {
	color: #f5f5f7;
}

.is-darkmode .ap_parser_desc {
	color: #98989d;
}

.is-darkmode .ap_parser_url a {
	color: #636366 !important;
}

.is-darkmode .ap_parser_loading_dot {
	background: #98989d;
}

/* Instagram */
.ap_parser_insta_tag_button {
	display: none;
}

.ap_parser_insta {
	padding: 12px 16px 16px;
}

.ap_parser_insta_link {
	display: inline-block;
	border-radius: 8px;
	overflow: hidden;
}

.ap_parser_insta_thumb {
	width: 24% !important;
	margin: 0 0.5%;
	border-radius: 8px;
	transition: opacity 0.15s ease;
}

.ap_parser_insta_thumb:hover {
	opacity: 0.85;
}

.updateinsta {
	display: none;
	padding: 12px 16px;
}

.button-insta {
	background: #007aff;
	color: #fff;
	border: none;
	height: 36px;
	font-size: 13px;
	font-weight: 600;
	padding: 0 20px;
	border-radius: 18px;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.1s ease;
	outline: none;
	letter-spacing: -0.01em;
}

.button-insta:hover {
	background: #0066d6;
}

.button-insta:active {
	transform: scale(0.97);
}

/* YouTube/SNS Embed Override */
.ap_parser_content iframe {
	border-radius: 12px;
}
