/* ===================================================
   テイストフィード - パーソナライズ記事レコメンド
   =================================================== */

/* --- Base Container --- */
.taste-feed {
	font-family: inherit;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	padding: 1.5rem 0;
}

/* --- Widget Wrapper --- */
.taste-feed-widget {
	position: relative;
	background-color: #ffffff;
	border: 1px solid #e5e5e5;
	border-radius: 12px;
	padding: 24px;
	margin: 24px 0;
	font-family: inherit;
}

.taste-feed-widget * {
	box-sizing: border-box;
}

/* --- Header --- */
.tf-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1rem;
}

/* --- Type Badge --- */
.tf-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 600;
	color: #555;
	padding: 5px 12px;
	border-radius: 20px;
	border: 1px solid #e5e5e5;
	background-color: #ffffff;
	letter-spacing: 0.02em;
}

.tf-badge-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background-color: #c4a882;
	flex-shrink: 0;
}

/* --- Dismiss Button --- */
.tf-dismiss {
	background: none;
	border: none;
	color: #999;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	padding: 4px 8px;
	border-radius: 4px;
	transition: background 0.2s ease;
}

.tf-dismiss:hover {
	background-color: #f0f0f0;
	color: #555;
}

/* --- Article Cards Grid --- */
.tf-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 16px;
	margin-bottom: 16px;
}

/* --- Article Card --- */
.tf-card {
	background-color: #ffffff;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	display: block;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.tf-card:hover {
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
	transform: translateY(-2px);
}

/* --- Card Image --- */
.tf-card-img {
	width: 100%;
	height: 120px;
	object-fit: cover;
	display: block;
	background-color: #e5e5e5;
}

/* --- Card Body --- */
.tf-card-body {
	padding: 12px;
}

/* --- Card Category --- */
.tf-card-category {
	font-size: 11px;
	font-weight: 600;
	color: #8b5e3c;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-bottom: 4px;
}

/* --- Card Title --- */
.tf-card-title {
	font-size: 14px;
	font-weight: 500;
	color: #1a1a1a;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin: 0;
}

/* --- Footer --- */
.tf-footer {
	display: flex;
	align-items: center;
	justify-content: center;
}

/* --- Retake Link --- */
.tf-retake {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: #8b5e3c;
	text-decoration: none;
	font-size: 13px;
	font-weight: 500;
	padding: 6px 14px;
	border-radius: 20px;
	border: 1px solid #c4a882;
	transition: background 0.2s ease, color 0.2s ease;
}

.tf-retake:hover {
	background-color: #1a1a1a;
	color: #ffffff;
	border-color: #1a1a1a;
}

/* ----------------------------------------
   Responsive
---------------------------------------- */
@media (max-width: 600px) {
	.tf-grid {
		grid-template-columns: 1fr 1fr;
		gap: 10px;
	}

	.tf-card-img {
		height: 90px;
	}

	.tf-card-body {
		padding: 8px;
	}

	.tf-card-title {
		font-size: 13px;
	}

	.tf-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.5rem;
	}
}

@media (max-width: 480px) {
	.tf-card-img {
		height: 80px;
	}

	.tf-card-title {
		font-size: 12px;
	}

	.tf-badge {
		font-size: 12px;
		padding: 4px 10px;
	}
}
