@charset "UTF-8";
/* ============================================================
   Article Detail Page Styles
   Figma: [공통]sovac_아티클 상세보기 (node-id: 1:813)
   Applied to: salon/view, contents/view, community/view
   ============================================================ */

/* ── Page Layout Override ── */
#container > .article-detail {
    padding-top: 56px;
}

.article-detail > .content {
    width: 100%;
    max-width: none;
    padding: 0;
}

/* ── Article Content Container (800px) ── */
.article-detail__content {
    width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding-bottom: 100px;
}

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

.article-detail__header-top {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Category Chips */
.article-detail__chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.article-detail__chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    background-color: #f3e9fb;
    color: #460082;
    font-family: 'Pretendard', sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 19px;
    border-radius: 2px;
    text-decoration: none;
    white-space: nowrap;
}

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

/* Meta Row (date, author, actions) */
.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;
    white-space: nowrap;
}

.article-detail__meta-sep {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 0;
    height: 14px;
}

.article-detail__meta-sep::after {
    content: '';
    display: block;
    width: 1px;
    height: 14px;
    background-color: #c8c9cc;
}

/* Action Icons (like/scrap/share) */
.article-detail__actions {
    display: flex;
    align-items: center;
}

.article-detail__actions .interset_wrap {
    float: none !important;
    position: static !important;
    display: flex !important;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
    top: auto !important;
    right: auto !important;
    transform: none !important;
    -webkit-transform: none !important;
}

.article-detail__actions .interset_wrap li {
    float: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
}

.article-detail__actions .btn_ico_sweet2 {
    display: block;
    width: 20px;
    height: 20px;
    padding: 0;
    font-size: 0;
    line-height: 0;
    overflow: hidden;
    color: transparent;
}

.article-detail__actions .btn_ico_sweet2 span {
    position: static;
    display: block;
    width: 20px;
    height: 20px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.article-detail__actions .btn_ico_scrap2 {
    width: 20px;
    height: 20px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.article-detail__actions .btn_ico_public2 {
    width: 20px;
    height: 20px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

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

/* ── Content Body (Rich Text Editor Content) ── */
.article-detail__body {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.article-detail__body .fr-view {
    font-family: 'Pretendard', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 22px;
    color: #464646;
    word-break: keep-all;
}

.article-detail__body .fr-view h1 {
    font-family: 'Pretendard', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #18191d;
    line-height: normal;
    margin: 24px 0;
}

.article-detail__body .fr-view h2 {
    font-family: 'Pretendard', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #18191d;
    line-height: normal;
    margin: 24px 0;
}

.article-detail__body .fr-view h3 {
    font-family: 'Pretendard', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #18191d;
    line-height: normal;
    margin: 20px 0;
}

.article-detail__body .fr-view img {
    border-radius: 6px;
    max-width: 100%;
    height: auto;
}

.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 !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

.article-detail__video-inner > div {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ── Card News Images ── */
.article-detail__cardnews {
    text-align: center;
}

.article-detail__cardnews img {
    max-width: 100%;
    border-radius: 6px;
    margin-bottom: 10px;
}

/* ── Link Buttons (홈페이지 링크 / 원문 보러가기) ── */
.article-detail__link-buttons {
    display: flex;
    gap: 32px;
    width: 100%;
}

.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: 16px;
    font-weight: 500;
    line-height: 22px;
    color: #3d3e44;
    box-sizing: border-box;
    transition: opacity 0.2s ease;
}

.article-detail__link-btn:hover {
    opacity: 0.85;
    text-decoration: none;
    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;
}

/* ── Related Contents ── */
.article-detail .media_cont_list_wrap {
    width: 100% !important;
    padding: 0 !important;
}

.article-detail .media_cont_list_wrap .title {
    font-family: 'Pretendard', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #18191d;
    padding: 0;
    margin-bottom: 20px;
    border: none;
    background: none;
}

/* ── Attachments ── */
.article-detail__attachments {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    background-color: #fafafb;
    border-radius: 6px;
}

.article-detail__attachments .tit {
    font-family: 'Pretendard', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #18191d;
    display: block;
    margin-bottom: 4px;
}

.article-detail__attachments ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-detail__attachments li {
    padding: 4px 0;
}

.article-detail__attachments .btn_attFile {
    font-family: 'Pretendard', sans-serif;
    font-size: 14px;
    color: #660fb3;
    text-decoration: underline;
}

/* ── Modify/Delete Buttons (Community) ── */
.article-detail__edit-btns {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.article-detail__edit-btns a {
    font-family: 'Pretendard', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #707178;
    padding: 8px 16px;
    border: 1px solid #e4e5e8;
    border-radius: 6px;
    text-decoration: none;
    background: #fff;
}

.article-detail__edit-btns a:hover {
    background-color: #fafafb;
}

/* ── SNS Crawling Section (Community) ── */
.article-detail .campaign_con2 {
    border-radius: 6px;
    overflow: hidden;
}

/* ── Comment Section Override ── */
.article-detail .streeList_wrap.comment_list_wrap {
    background-color: #ffffff;
    padding: 0;
    overflow: visible;
    max-height: none;
}

.article-detail .streeList_wrap.comment_list_wrap .inner_wrap {
    width: 100%;
    margin: 0;
}

.article-detail .commet_count {
    font-family: 'Pretendard', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #464646;
    line-height: 22px;
}

.article-detail .stree_item {
    background-color: #fafafb;
    border-radius: 6px;
    padding: 20px;
}

.article-detail .reply_input_wrap {
    background-color: #fafafb;
    border-radius: 6px;
}

/* ── Floating Navigation ── */
.article-detail-nav {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    z-index: 100;
    box-shadow: 2px 4px 4px rgba(200, 200, 200, 0.25);
    overflow: visible;
}

.article-detail-nav__progress-wrap {
    position: absolute;
    top: -3px;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    border-radius: 6px 6px 0 0;
    overflow: hidden;
}

.article-detail-nav__progress {
    width: 0%;
    height: 100%;
    background-color: #6c30a1;
    transition: width 0.15s ease-out;
}

.article-detail-nav__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #e9e9e9;
    font-family: 'Pretendard', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 27px;
    color: #464646;
    cursor: pointer;
    text-decoration: none;
    margin-right: -1px;
    white-space: nowrap;
    box-sizing: border-box;
    border-radius: 0;
}

.article-detail-nav__btn:hover {
    background-color: #fafafb;
    color: #464646;
    text-decoration: none;
}

/* Auto border-radius for first/last buttons */
.article-detail-nav > a:first-of-type {
    border-radius: 6px 0 0 6px;
}

.article-detail-nav > a:last-of-type {
    border-radius: 0 6px 6px 0;
    margin-right: 0;
}

.article-detail-nav > a:only-of-type {
    border-radius: 6px;
}

.article-detail-nav__btn--list {
    width: 83px;
}

.article-detail-nav__icon {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

/* Hide old detail_menu_bar */
.article-detail ~ .detail_menu_bar,
.article-detail .detail_menu_bar {
    display: none !important;
}
