@charset "UTF-8";
/* ============================================================
   Article Detail Page Styles (Mobile)
   Applied to: contents/view, community/view, salon/view
   ============================================================ */

/* ── Article Content Container ── */
.article-detail__content {
	width: 100%;
	padding: 20px 15px 80px;
	display: flex;
	flex-direction: column;
	gap: 20px;
	box-sizing: border-box;
	overflow-x: hidden;
	height: calc(100vh - 55px);
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

/* ── Header Section ── */
.article-detail__header {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

/* Category Chips */
.article-detail__chips {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}
.article-detail__chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	padding: 3px 8px;
	background-color: #f3e9fb;
	color: #460082;
	font-family: 'Pretendard', sans-serif;
	font-size: 11px;
	font-weight: 600;
	line-height: 17px;
	border-radius: 2px;
	white-space: nowrap;
}
.article-detail__chip svg {
	width: 11px;
	height: 11px;
	flex-shrink: 0;
}

/* Title */
.article-detail__title {
	font-family: 'Pretendard', sans-serif;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
	color: #18191d;
	margin: 0;
	word-break: keep-all;
}

/* Meta Row */
.article-detail__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.article-detail__meta-left {
	display: flex;
	align-items: center;
	gap: 8px;
}
.article-detail__date,
.article-detail__author {
	font-family: 'Pretendard', sans-serif;
	font-size: 16px;
	font-weight: 500;
	line-height: 22px;
	color: #a0a1a7;
}
.article-detail__meta-sep {
	width: 1px;
	height: 14px;
	background-color: #c8c9cc;
}

/* Action Icons */
.article-detail__actions {
	display: flex;
	align-items: center;
	gap: 10px;
}
.article-detail__actions .article-detail__action-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	padding: 0;
	border: none;
	background: none;
	cursor: pointer;
}
.article-detail__actions .article-detail__action-btn img {
	width: 20px;
	height: 20px;
}

/* Divider */
.article-detail__divider {
	width: 100%;
	height: 0;
	border: none;
	border-top: 1px solid #e4e5e8;
	margin: 0;
}

/* ── Content Body ── */
.article-detail__body {
	display: flex;
	flex-direction: column;
	gap: 20px;
}
.article-detail__body .fr-view {
	font-family: 'Pretendard', sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 21px;
	color: #52535a;
	word-break: keep-all;
}
.article-detail__body .fr-view h1 {
	font-size: 22px;
	font-weight: 700;
	color: #18191d;
	margin: 16px 0;
}
.article-detail__body .fr-view h2 {
	font-size: 19px;
	font-weight: 700;
	color: #18191d;
	margin: 16px 0;
}
.article-detail__body .fr-view h3 {
	font-size: 17px;
	font-weight: 700;
	color: #18191d;
	margin: 12px 0;
}
.article-detail__body .fr-view img {
	max-width: 100%;
	height: auto;
	border-radius: 6px;
}
.article-detail__body .fr-view p {
	margin-bottom: 0;
}
.article-detail__body .fr-view a {
	color: #660fb3;
}

/* ── Video Player ── */
.article-detail__video {
	width: 100%;
	border-radius: 6px;
	overflow: hidden;
}
.article-detail__video-inner {
	position: relative;
	width: 100%;
	padding-bottom: 56.25%;
	background-color: #151515;
}
.article-detail__video-inner iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

/* ── Card News ── */
.article-detail__cardnews {
	text-align: center;
}
.article-detail__cardnews img {
	max-width: 100%;
	border-radius: 6px;
	margin-bottom: 8px;
}

/* ── Link Buttons ── */
.article-detail__link-buttons {
	display: flex;
	gap: 12px;
}
.article-detail__link-btn {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 20px;
	border-radius: 6px;
	text-decoration: none;
	font-family: 'Pretendard', sans-serif;
	font-size: 14px;
	font-weight: 500;
	line-height: 21px;
	color: #3d3e44;
}
.article-detail__link-btn span {
	flex: 1;
}
.article-detail__link-btn svg {
	flex-shrink: 0;
}
.article-detail__link-btn--homepage {
	background-color: #fff;
	border: 1px solid #e4e5e8;
}
.article-detail__link-btn--source {
	background-color: #f3e9fb;
	border: none;
}

/* ── Attachments ── */
.article-detail__attachments {
	padding: 14px;
	background-color: #fafafb;
	border-radius: 6px;
}
.article-detail__attachments .tit {
	font-family: 'Pretendard', sans-serif;
	font-size: 14px;
	font-weight: 600;
	color: #18191d;
	display: block;
	margin-bottom: 8px;
}
.article-detail__attachments ul {
	list-style: none;
	padding: 0;
	margin: 0;
}
.article-detail__attachments li {
	padding: 3px 0;
}
.article-detail__attachments .btn_attFile {
	font-size: 13px;
	color: #660fb3;
	text-decoration: underline;
}

/* ── Edit Buttons ── */
.article-detail__edit-btns {
	display: flex;
	gap: 8px;
	justify-content: flex-end;
}
.article-detail__edit-btns a {
	font-family: 'Pretendard', sans-serif;
	font-size: 13px;
	font-weight: 500;
	color: #707178;
	padding: 8px 14px;
	border: 1px solid #e4e5e8;
	border-radius: 6px;
	text-decoration: none;
	background: #fff;
}

/* ── Scroll Progress Bar ── */
.article-detail__progress {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 4px;
	background: transparent;
	z-index: 900;
	pointer-events: none;
}
.article-detail__progress-bar {
	width: 0%;
	height: 100%;
	background-color: #660fb3;
	transition: width 0.1s ease-out;
}

/* ── Bottom Navigation (이전/목록/다음) ── */
.article-detail__bottom-nav {
	display: flex;
	gap: 8px;
	padding: 12px 20px;
	background: #fff;
}
.article-detail__nav-btn {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10px 16px;
	border: 1px solid #460082;
	border-radius: 6px;
	background: #fff;
	color: #460082;
	font-family: 'Pretendard', sans-serif;
	font-size: 16px;
	font-weight: 500;
	line-height: 22px;
	text-decoration: none;
	white-space: nowrap;
}
.article-detail__nav-btn--primary {
	background: #460082;
	color: #fff;
	border-color: #460082;
}
