/* FANZA Affiliate Card – fac-style.css */

/* ── wrapper ─────────────────────────────── */
.fac-wrap {
	display: flex;
	justify-content: center;
	margin: 1.5rem auto;
	padding: 0 1rem;
	box-sizing: border-box;
}

/* ── card ────────────────────────────────── */
.fac-card {
	display: block;
	position: relative;
	width: 100%;
	max-width: 500px;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid rgba(0, 0, 0, .12);
	text-decoration: none;
	cursor: pointer;
	box-shadow: 0 4px 20px rgba(0, 0, 0, .35);
	transition: opacity .18s ease, transform .18s ease, box-shadow .18s ease;
	-webkit-tap-highlight-color: transparent;
}

.fac-card:hover {
	opacity: .95;
	transform: translateY(-4px);
	box-shadow: 0 10px 32px rgba(0, 0, 0, .45);
}

.fac-card:active {
	opacity: .82;
	transform: translateY(0);
	box-shadow: 0 4px 20px rgba(0, 0, 0, .35);
}

.fac-card:focus-visible {
	outline: 3px solid #ff4d00;
	outline-offset: 3px;
}

/* ── cover image area ────────────────────── */
.fac-cover {
	position: relative;
	width: 100%;
	height: 320px;
	aspect-ratio: 1 / 1;
	background: #1a0a1e;
	overflow: hidden;
}

@media (min-width: 480px) {
	.fac-cover {
		aspect-ratio: 4 / 3;
	}
}

.fac-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	display: block;
}

/* ── fade overlay ────────────────────────── */
.fac-fog {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 70%;
	background: linear-gradient(
		to top,
		rgba(13, 9, 20, .96) 0%,
		rgba(13, 9, 20, .55) 40%,
		rgba(13, 9, 20, 0)   100%
	);
	pointer-events: none;
}

/* ── badge (top-left label) ──────────────── */
.fac-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	background: rgba(200, 20, 40, .82);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	padding: 4px 9px;
	border-radius: 6px;
	letter-spacing: .04em;
	line-height: 1.4;
	display: flex;
	flex-direction: column;
	gap: 1px;
}

.fac-badge-author {
	font-size: 10px;
	font-weight: 400;
	opacity: .9;
}

/* ── ribbon (top-right) ──────────────────── */
.fac-ribbon {
	position: absolute;
	top: 12px;
	right: -28px;
	background: linear-gradient(135deg, #ffe000, #ff9500);
	color: #1a0000;
	font-size: 10px;
	font-weight: 700;
	padding: 4px 36px;
	transform: rotate(35deg);
	letter-spacing: .05em;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
	white-space: nowrap;
}

/* ── bottom body (title + CTA) ───────────── */
.fac-body {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 12px 14px;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 10px;
	box-sizing: border-box;
}

.fac-title-wrap {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 3px;
	overflow: hidden;
}

.fac-title {
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.45;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.fac-sub {
	color: rgba(255, 255, 255, .72);
	font-size: 12px;
	font-weight: 400;
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

@media (min-width: 480px) {
	.fac-title {
		font-size: 16px;
	}
}

/* ── CTA button ──────────────────────────── */
.fac-cta {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: linear-gradient(135deg, #ff4d00, #ff2060);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	padding: 8px 14px;
	border-radius: 8px;
	white-space: nowrap;
	line-height: 1;
	box-shadow: 0 2px 10px rgba(255, 60, 0, .45);
	transition: box-shadow .18s ease, filter .18s ease;
}

.fac-card:hover .fac-cta {
	box-shadow: 0 4px 18px rgba(255, 60, 0, .65);
	filter: brightness(1.08);
}

.fac-arrow {
	display: inline-block;
	vertical-align: middle;
	flex-shrink: 0;
}

/* ── error state ─────────────────────────── */
.fac-error {
	color: #c0392b;
	font-size: 13px;
}
