/* ========================================
   MochaNews - 메인 페이지 스타일 (Instagram Style)
   ======================================== */

/* 히어로 섹션 */
.hero-section {
	padding: 3rem 0;
	background: #FFFFFF;
}

.top-issues-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 1.5rem;
	margin-top: 2rem;
}

/* 이슈 카드 */
.issue-card {
	background: #FFFFFF;
	border: 1px solid #DBDBDB;
	border-radius: 8px;
	overflow: hidden;
	transition: all 0.2s ease;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.issue-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.issue-thumbnail {
	width: 100%;
	height: 220px;
	overflow: hidden;
	background-color: #FAFAFA;
	border-bottom: 1px solid #EFEFEF;
}

.issue-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.issue-card:hover .issue-thumbnail img {
	transform: scale(1.05);
}

.issue-content {
	padding: 1.5rem;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.issue-category {
	display: inline-block;
	padding: 0.4rem 0.9rem;
	background: #262626;
	color: #FFFFFF;
	font-size: 0.8rem;
	font-weight: 600;
	border-radius: 6px;
	margin-bottom: 1rem;
	width: fit-content;
}

.issue-title {
	font-size: 1.3rem;
	font-weight: 700;
	line-height: 1.4;
	margin-bottom: 1rem;
	color: #262626;
}

.issue-title a {
	color: inherit;
	transition: color 0.2s ease;
}

.issue-title a:hover {
	color: #0095F6;
}

.issue-summary {
	font-size: 0.95rem;
	color: #8E8E8E;
	line-height: 1.6;
	margin-bottom: 1rem;
	flex: 1;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.issue-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 1rem;
	border-top: 1px solid #EFEFEF;
	margin-bottom: 1rem;
	font-size: 0.85rem;
	color: #8E8E8E;
}

.issue-time,
.issue-views {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
}

.issue-impact {
	color: #0095F6;
	font-weight: 600;
}

.issue-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

/* 브리핑 섹션 */
.brief-section {
	padding: 3rem 0;
	background-color: #FAFAFA;
}

.brief-list {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin-top: 2rem;
}

.brief-item {
	display: grid;
	grid-template-columns: 100px 1fr auto;
	gap: 1rem;
	align-items: center;
	padding: 1.2rem 1.5rem;
	background: #FFFFFF;
	border: 1px solid #DBDBDB;
	border-left: 3px solid #0095F6;
	border-radius: 8px;
	transition: all 0.2s ease;
}

.brief-item:hover {
	border-left-color: #262626;
	transform: translateX(4px);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.brief-category {
	font-size: 0.85rem;
	font-weight: 600;
	color: #0095F6;
	text-align: center;
	padding: 0.4rem 0.8rem;
	background-color: #F0F8FF;
	border-radius: 6px;
	border: 1px solid #B3D9FF;
}

.brief-title {
	font-size: 1rem;
	font-weight: 600;
	color: #262626;
	transition: color 0.2s ease;
}

.brief-item:hover .brief-title {
	color: #0095F6;
}

.brief-time {
	font-size: 0.85rem;
	color: #8E8E8E;
	font-weight: 500;
}

/* 최신 이슈 섹션 */
.recent-section {
	padding: 3rem 0 5rem;
	background-color: #FFFFFF;
}

.topic-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1.5rem;
	margin-top: 2rem;
}

/* 토픽 카드 */
.topic-card {
	background: #FFFFFF;
	padding: 1.5rem;
	border: 1px solid #DBDBDB;
	border-radius: 8px;
	transition: all 0.2s ease;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.topic-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

.topic-category {
	padding: 0.3rem 0.8rem;
	background-color: #EFEFEF;
	color: #262626;
	font-size: 0.8rem;
	font-weight: 600;
	border-radius: 6px;
	border: 1px solid #DBDBDB;
}

.topic-time {
	font-size: 0.8rem;
	color: #8E8E8E;
}

.topic-title {
	font-size: 1.1rem;
	font-weight: 700;
	line-height: 1.5;
	margin-bottom: 0.8rem;
	color: #262626;
}

.topic-title a {
	color: inherit;
	transition: color 0.2s ease;
}

.topic-title a:hover {
	color: #0095F6;
}

.topic-summary {
	font-size: 0.9rem;
	color: #8E8E8E;
	line-height: 1.6;
	margin-bottom: 1rem;
	flex: 1;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.topic-meta {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 0.75rem;
	font-size: 0.85rem;
	color: #8E8E8E;
}

.impact-score {
	color: #0095F6;
	font-weight: 600;
}

.news-source {
	color: #8E8E8E;
}

.topic-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-top: auto;
}

.topic-views {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
}

/* 빈 상태 */
.empty-state {
	text-align: center;
	padding: 4rem 2rem;
	color: #8E8E8E;
}

.empty-state-icon {
	font-size: 4rem;
	margin-bottom: 1rem;
	opacity: 0.5;
}

.empty-state-title {
	font-size: 1.5rem;
	font-weight: 600;
	color: #262626;
	margin-bottom: 0.5rem;
}

.empty-state-text {
	font-size: 1rem;
	color: #8E8E8E;
}

/* 카테고리 페이지 */
.category-header {
	padding: 3rem 0 2.5rem;
	background: #FFFFFF;
	border-bottom: 1px solid #DBDBDB;
	margin-bottom: 2.5rem;
}

.category-title {
	font-size: 2rem;
	font-weight: 700;
	color: #262626;
	margin-bottom: 1rem;
}

.category-description {
	font-size: 1rem;
	color: #8E8E8E;
	font-weight: 400;
}

.topic-list-section {
	padding: 2rem 0 4rem;
	background-color: #FFFFFF;
}

/* 토픽 카드 - 카테고리 페이지용 추가 스타일 */
.topic-card .topic-thumbnail {
	width: 100%;
	height: 200px;
	overflow: hidden;
	border-radius: 8px;
	margin-bottom: 1rem;
	background-color: #FAFAFA;
	border: 1px solid #EFEFEF;
}

.topic-card .topic-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.topic-card:hover .topic-thumbnail img {
	transform: scale(1.05);
}

.topic-card .topic-content {
	flex: 1;
	display: flex;
	flex-direction: column;
}

/* 페이지네이션 */
.pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 1.5rem;
	margin-top: 3rem;
	padding: 2rem 0;
}

.pagination-btn {
	padding: 0.75rem 1.5rem;
	background: #262626;
	color: #FFFFFF;
	font-weight: 600;
	border-radius: 8px;
	transition: all 0.2s ease;
	border: 1px solid #262626;
}

.pagination-btn:hover {
	background: #000000;
	transform: translateY(-1px);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
	opacity: 1;
}

.pagination-info {
	font-size: 1rem;
	font-weight: 600;
	color: #262626;
	padding: 0.5rem 1rem;
	background-color: #FAFAFA;
	border-radius: 8px;
	border: 1px solid #DBDBDB;
}

/* 빈 상태 링크 */
.empty-state-link {
	display: inline-block;
	margin-top: 1.5rem;
	padding: 0.75rem 1.5rem;
	background: #262626;
	color: #FFFFFF;
	font-weight: 600;
	border-radius: 8px;
	transition: all 0.2s ease;
	border: 1px solid #262626;
}

.empty-state-link:hover {
	background: #000000;
	transform: translateY(-1px);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
	opacity: 1;
}

/* 반응형 디자인 */
@media (max-width: 1024px) {
	.top-issues-grid {
		grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	}
}

@media (max-width: 768px) {
	.hero-section,
	.brief-section,
	.recent-section {
		padding: 2rem 0;
	}

	.top-issues-grid,
	.topic-grid {
		gap: 1rem;
		grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	}

	.issue-card,
	.topic-card {
		border-radius: 8px;
	}

	.issue-content {
		padding: 1.2rem;
	}

	.issue-title {
		font-size: 1.15rem;
	}

	.brief-item {
		grid-template-columns: 80px 1fr;
		gap: 0.8rem;
		padding: 1rem;
	}

	.brief-time {
		grid-column: 1;
		text-align: center;
	}

	.brief-title {
		grid-column: 2;
		grid-row: 1 / 3;
	}

	.category-header {
		padding: 1.5rem 0;
	}

	.category-title {
		font-size: 1.5rem;
	}
}

@media (max-width: 480px) {
	.top-issues-grid,
	.topic-grid {
		grid-template-columns: 1fr;
		gap: 1rem;
	}

	.issue-thumbnail {
		height: 180px;
	}

	.issue-content,
	.topic-card {
		padding: 1rem;
	}

	.issue-title,
	.topic-title {
		font-size: 1rem;
	}

	.brief-item {
		grid-template-columns: 1fr;
		text-align: left;
		padding: 0.8rem 1rem;
	}

	.brief-category {
		width: fit-content;
		font-size: 0.75rem;
	}

	.brief-title {
		grid-column: 1;
		grid-row: auto;
		font-size: 0.9rem;
	}

	.brief-time {
		grid-column: 1;
		text-align: left;
		font-size: 0.75rem;
	}

	.category-title {
		font-size: 1.25rem;
	}

	.category-description {
		font-size: 0.9rem;
	}

	.pagination {
		gap: 1rem;
		padding: 1.5rem 0;
	}

	.pagination-btn {
		padding: 0.5rem 1rem;
		font-size: 0.9rem;
	}

	.pagination-info {
		font-size: 0.9rem;
		padding: 0.4rem 0.8rem;
	}
}

/* 스크롤바 스타일 (Chrome, Edge, Safari) */
::-webkit-scrollbar {
	width: 8px;
	height: 8px;
}

::-webkit-scrollbar-track {
	background: #FAFAFA;
}

::-webkit-scrollbar-thumb {
	background: #DBDBDB;
	border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
	background: #8E8E8E;
}
