/* =====================================================================
   Korea24 Dashboard Home — styles
   색상을 바꾸려면 아래 :root 안의 값만 수정하면 전체에 반영됩니다.
   ===================================================================== */

.k24-dash {
	--k24-navy: #0b1f2a;
	--k24-navy-soft: #14313f;
	--k24-teal: #16a87c;
	--k24-teal-dark: #0f6e56;
	--k24-bg: #f4f6f5;
	--k24-card: #ffffff;
	--k24-border: #e2e6e4;
	--k24-text: #1c2b2a;
	--k24-text-muted: #6b7a78;
	--k24-danger: #c23b3b;
	--k24-danger-bg: #fbe9e9;
	--k24-warning: #a3680f;
	--k24-warning-bg: #fbf0dd;

	max-width: 1080px;
	margin: 0 auto;
	padding: 28px 16px 64px;
	color: var(--k24-text);
	font-size: 15px;
	line-height: 1.55;
}

.k24-dash * {
	box-sizing: border-box;
}

/* ---------- 상단 퀵 네비게이션 ---------- */
.k24-topbar {
	display: flex;
	gap: 20px;
	margin-bottom: 18px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--k24-border);
}

.k24-topbar a {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 600;
	color: var(--k24-text-muted);
	text-decoration: none;
	transition: color 0.15s ease;
}

.k24-topbar a:hover {
	color: var(--k24-teal-dark);
}

.k24-topbar .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
}

/* ---------- 히어로 ---------- */
.k24-hero {
	background: linear-gradient(135deg, var(--k24-navy), var(--k24-navy-soft));
	color: #fff;
	border-radius: 18px;
	padding: 36px 28px 28px;
	margin-bottom: 32px;
}

.k24-hero-label {
	margin: 0 0 6px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--k24-teal);
}

.k24-hero-title {
	margin: 0 0 20px;
	font-size: 26px;
	font-weight: 700;
	color: #fff;
}

.k24-search {
	display: flex;
	align-items: center;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 12px;
	padding: 4px 4px 4px 14px;
	margin-bottom: 22px;
}

.k24-search-icon {
	color: rgba(255, 255, 255, 0.6);
	margin-right: 8px;
}

.k24-search input[type="search"] {
	flex: 1;
	border: none;
	background: transparent;
	color: #fff;
	font-size: 15px;
	padding: 10px 0;
	outline: none;
}

.k24-search input[type="search"]::placeholder {
	color: rgba(255, 255, 255, 0.5);
}

.k24-search button {
	background: var(--k24-teal);
	color: #06241b;
	border: none;
	border-radius: 8px;
	padding: 10px 20px;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	transition: background 0.15s ease;
}

.k24-search button:hover {
	background: #1ec694;
}

.k24-quick-tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 22px;
}

.k24-quick-tags-label {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.55);
	margin-right: 4px;
}

.k24-quick-tags a {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.85);
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.18);
	padding: 5px 12px;
	border-radius: 999px;
	text-decoration: none;
	transition: background 0.15s ease;
}

.k24-quick-tags a:hover {
	background: rgba(255, 255, 255, 0.2);
}

.k24-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.k24-stat-card {
	background: rgba(255, 255, 255, 0.06);
	border-radius: 10px;
	padding: 14px 16px;
}

.k24-stat-label {
	display: block;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.65);
	margin-bottom: 4px;
}

.k24-stat-value {
	display: block;
	font-size: 20px;
	font-weight: 700;
	color: #fff;
}

/* ---------- 본문 2칸 레이아웃 (메인 + 사이드) ---------- */
.k24-body-grid {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	gap: 32px;
	align-items: start;
}

.k24-main {
	min-width: 0;
}

.k24-side {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.k24-side-card {
	background: var(--k24-card);
	border: 1px solid var(--k24-border);
	border-radius: 12px;
	padding: 16px;
}

.k24-side-title {
	font-size: 15px;
	font-weight: 700;
	margin: 0 0 12px;
	color: var(--k24-text);
}

.k24-side-row {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 0;
	text-decoration: none;
	color: var(--k24-text);
	border-top: 1px solid var(--k24-border);
}

.k24-side-row:first-of-type {
	border-top: none;
	padding-top: 0;
}

.k24-side-rank {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: rgba(22, 168, 124, 0.12);
	color: var(--k24-teal-dark);
	font-size: 11px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}

.k24-side-row-title {
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
}

.k24-side-comment {
	flex-direction: column;
	align-items: flex-start;
	gap: 3px;
}

.k24-side-comment-author {
	font-size: 12px;
	font-weight: 700;
	color: var(--k24-teal-dark);
}

.k24-side-comment-excerpt {
	font-size: 13px;
	color: var(--k24-text-muted);
	line-height: 1.4;
}

/* ---------- 섹션 제목 ---------- */
.k24-section-title {
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 14px;
	color: var(--k24-text);
}

/* ---------- 카테고리 그리드 ---------- */
.k24-cat-grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 12px;
	margin-bottom: 36px;
}

.k24-cat-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	background: var(--k24-card);
	border: 1px solid var(--k24-border);
	border-radius: 12px;
	padding: 16px 14px;
	text-decoration: none;
	color: var(--k24-text);
	font-weight: 600;
	font-size: 13px;
	transition: border-color 0.15s ease, transform 0.15s ease;
}

.k24-cat-card:hover {
	border-color: var(--k24-teal);
	transform: translateY(-2px);
}

.k24-cat-card .dashicons {
	font-size: 22px;
	width: 22px;
	height: 22px;
	color: var(--k24-teal-dark);
}

/* ---------- 리스트(핫이슈/최근 업데이트) ---------- */
.k24-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 36px;
}

.k24-row {
	display: flex;
	align-items: center;
	gap: 12px;
	background: var(--k24-card);
	border: 1px solid var(--k24-border);
	border-radius: 10px;
	padding: 12px 14px;
	text-decoration: none;
	color: var(--k24-text);
	transition: border-color 0.15s ease;
}

.k24-row:hover {
	border-color: var(--k24-teal);
}

.k24-row-title {
	flex: 1;
	font-size: 14px;
	font-weight: 500;
}

.k24-row-meta {
	font-size: 12px;
	color: var(--k24-text-muted);
	white-space: nowrap;
}

.k24-badge {
	flex-shrink: 0;
	font-size: 11px;
	font-weight: 700;
	padding: 3px 9px;
	border-radius: 6px;
	white-space: nowrap;
}

.k24-badge-urgent {
	background: var(--k24-danger-bg);
	color: var(--k24-danger);
}

.k24-badge-hot {
	background: var(--k24-warning-bg);
	color: var(--k24-warning);
}

.k24-badge-publish {
	background: rgba(22, 168, 124, 0.12);
	color: var(--k24-teal-dark);
}

.k24-badge-neutral {
	background: var(--k24-bg);
	color: var(--k24-text-muted);
}

/* ---------- 태그 클라우드 ---------- */
.k24-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 36px;
}

.k24-tag {
	background: var(--k24-bg);
	border: 1px solid var(--k24-border);
	color: var(--k24-text);
	font-size: 13px;
	padding: 7px 14px;
	border-radius: 999px;
	text-decoration: none;
	transition: background 0.15s ease;
}

.k24-tag:hover {
	background: rgba(22, 168, 124, 0.12);
	border-color: var(--k24-teal);
}

.k24-empty {
	color: var(--k24-text-muted);
	font-size: 14px;
	margin: 4px 0;
}

/* ---------- 반응형 ---------- */
@media (max-width: 900px) {
	.k24-cat-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.k24-body-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 600px) {
	.k24-topbar {
		gap: 12px;
		flex-wrap: wrap;
	}

	.k24-hero-title {
		font-size: 21px;
	}

	.k24-stats {
		grid-template-columns: repeat(1, minmax(0, 1fr));
	}

	.k24-cat-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.k24-search {
		flex-wrap: wrap;
		padding: 10px;
	}

	.k24-search input[type="search"] {
		width: 100%;
		padding: 8px 0;
	}

	.k24-search button {
		width: 100%;
		margin-top: 8px;
	}

	.k24-row {
		flex-wrap: wrap;
	}

	.k24-row-meta {
		width: 100%;
		padding-left: 0;
	}
}
