.container {
    max-width: 950px;
    margin: 0 auto;
    margin-top: 40px;
}

/* 상단 네비게이션 */
.topNav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 0 4px 0 0;
    margin-bottom: 20px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.breadcrumb svg {
    width: 5.35px;
    height: 9.36px;
    fill: #2F3642;
}

.breadcrumb span {
    font-family: 'Pretendard', sans-serif;
    font-weight: 600;
    font-size: 13px;
    line-height: 1em;
    color: #66768F;
}

.manageLink {
    font-family: 'Pretendard', sans-serif;
    font-weight: 400;
    font-size: 13px;
    line-height: 1.5em;
    letter-spacing: -0.02em;
    color: #2F3642;
    text-decoration: none;
    cursor: pointer;
}

.manageLink:hover {
    text-decoration: underline;
}


/* 이벤트 헤더 */
.eventHeader {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-bottom: 21px;
    border-bottom: 1px solid #8898AF;
    margin-bottom: 20px;
}

.eventTitle {
    font-family: 'Pretendard', sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 1.5em;
    letter-spacing: -0.03em;
    color: #040404;
}

.eventMetaArea {
    display: flex;
    align-items: center;
    /* gap: 114px; */
    justify-content: space-between;
}

.eventDate {
    font-family: 'Pretendard', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 1.4em;
    letter-spacing: -0.02em;
    color: #737373;
    display: flex;
    gap: 10px;
}

.eventActions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.actionItem {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.actionItemNoCursor {
    display: flex;
    align-items: center;
    gap: 4px;
}

.actionItem svg {
    width: 20px;
    height: 20px;
}

.actionCount {
    font-family: 'Pretendard', sans-serif;
    font-weight: 400;
    font-size: 13px;
    line-height: 1.5em;
    color: #4A5668;
}

.shareBtn {
    width: 22px;
    height: 22px;
    background: #FFFFFF;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.shareBtn:hover {
    background: #F8F9FA;
}

/* 이벤트 콘텐츠 */
.eventContent {
    width: 100%;
    min-height: 314px;
    /* background: #F5F5F5; */
    /* display: flex; */
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    font-size: 15px;
}

.eventContent h1 { font-size: 2em; font-weight: bold; margin: 0.67em 0; line-height: 1.4; }
.eventContent h2 { font-size: 1.5em; font-weight: bold; margin: 0.75em 0; line-height: 1.4; }
.eventContent h3 { font-size: 1.17em; font-weight: bold; margin: 0.83em 0; line-height: 1.4; }
.eventContent h4 { font-size: 1em; font-weight: bold; margin: 1.12em 0; line-height: 1.4; }
.eventContent h5 { font-size: 0.83em; font-weight: bold; margin: 1.5em 0; line-height: 1.4; }
.eventContent h6 { font-size: 0.67em; font-weight: bold; margin: 1.67em 0; line-height: 1.4; }
.eventContent p,
.eventContent div,
.eventContent li { line-height: 1.5; }

.eventContent .placeholder {
    font-family: 'Pretendard', sans-serif;
    font-weight: 900;
    font-size: 24px;
    line-height: 1.5em;
    letter-spacing: -0.03em;
    color: #D9D9D9;
}

.eventContentRestricted {
    --event-gate-content-offset: 88px;
    --event-gate-bottom-space: 42px;
    --event-preview-blur-depth: 72px;
    position: relative;
    min-height: 150px;
    overflow: hidden;
}

.eventContentPreview {
    position: relative;
    width: 100%;
    min-height: 150px;
    overflow: hidden;
}

.eventContentRestricted:not(.is-ready) {
    min-height: 150px;
}

.eventContentRestricted:not(.is-ready) .eventContentPreview {
    min-height: 150px;
}

.eventContentRestricted .eventContentPreview::after {
    content: '';
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: 0;
    left: 0;
    height: var(--event-preview-blur-depth);
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.28) 28%,
        rgba(255, 255, 255, 0.68) 70%,
        #fff 100%
    );
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    mask-image: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.28) 0%,
        rgba(0, 0, 0, 0.42) 25%,
        rgba(0, 0, 0, 0.72) 68%,
        #000 100%
    );
    -webkit-mask-image: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.28) 0%,
        rgba(0, 0, 0, 0.42) 25%,
        rgba(0, 0, 0, 0.72) 68%,
        #000 100%
    );
    overflow: hidden;
    clip-path: inset(0);
    isolation: isolate;
    opacity: 0;
    pointer-events: auto;
}

.eventLoginGateContent {
    position: absolute;
    z-index: 3;
    top: calc(var(--event-gate-top, 150px) + var(--event-gate-content-offset));
    right: 35px;
    left: 35px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    opacity: 0;
}

.eventContentRestricted.is-ready .eventContentPreview::after,
.eventContentRestricted.is-ready .eventLoginGateContent {
    opacity: 1;
}

.eventContent .eventLoginGateTitle {
    margin: 0;
    color: #040404;
    font-family: 'Pretendard', sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
}

.eventJoinButton {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 264px;
    height: 48px;
    padding: 4px 60px;
    border-radius: 15px;
    background: #2754E7;
    color: #fff !important;
    font-family: 'Pretendard', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: normal;
    text-decoration: none;
    white-space: nowrap;
}

.eventJoinButton:hover {
    background: #163FC5;
    color: #fff;
}

.eventContent .eventLoginGuide {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #404040;
    font-family: 'Pretendard', sans-serif;
    font-size: 13px;
    line-height: 1;
    letter-spacing: -0.02em;
}

.eventContent .eventLoginGuide a {
    color: #404040;
    font-weight: 700;
    text-decoration: underline;
    text-underline-position: under;
}

/* 하단 액션 (좋아요/공유) */
.bottomActions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.likeButton {
    display: flex;
    gap: 10px;
    padding: 5px 8px;
    background: #F8FAFB;
    border: 1px solid #EFF2F6;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.likeButton:hover {
    background: #EFF2F6;
}

.likeButton.active {
    background: #F1F4FD;
    border-color: #163FC5;
}

.likeButton .likeIcon {
    display: flex;
    align-items: center;
    gap: 4px;
}

.likeButton svg {
    width: 16px;
    height: 14px;
}

.likeButton svg path {
    transition: fill 0.2s ease;
}

.likeButton.active svg path {
    fill: #FA4D4C;
}

.bottomShareBtn {
    width: 30px;
    height: 30px;
    background: #F8FAFB;
    border: 1px solid #EFF2F6;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
}

.bottomShareBtn:hover {
    background: #EFF2F6;
}

/* 댓글 섹션 */
.commentSection {
    border-top: 1px solid #DEE4ED;
    padding-top: 18px;
}

.commentHeader {
    font-family: 'Pretendard', sans-serif;
    font-weight: 700;
    font-size: 13px;
    line-height: 1.4em;
    letter-spacing: -0.02em;
    color: #66768F;
    margin-bottom: 18px;
}

/* 댓글 입력 */
.commentInputArea {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 20px;
}

.commentInput {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0px 14px;
    border: 1px solid #A6B2C4;
    border-radius: 8px;
    height: 50px;
}

.commentInput input {
    flex: 1;
    border: none;
    outline: none;
    font-family: 'Pretendard', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.5em;
    letter-spacing: -0.03em;
    color: #040404;
    padding: 0px;
}

.commentInput input::placeholder {
    color: #8898AF;
}

.commentInputActions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fileAttach {
    width: 20px;
    height: 20px;
    /* background: #DEE4ED; */
    border-radius: 90px;
    border: none;
    cursor: pointer;
}

.submitComment {
    width: 45px;
    height: 30px;
    background: #F1F4FD;
    border: none;
    border-radius: 8px;
    font-family: 'Pretendard', sans-serif;
    font-weight: 400;
    font-size: 13px;
    line-height: 1.5em;
    letter-spacing: -0.02em;
    color: #163FC5;
    cursor: pointer;
    transition: all 0.2s ease;
}

.submitComment:hover {
    background: #E3EBFC;
}

/* 댓글 리스트 */
.commentList {
    display: flex;
    flex-direction: column;
    margin-bottom: 100px;
}

.commentItem {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 8px;
    border-bottom: 1px solid #EBEBEB;
}

.commentItem.myComment {
    background: #F8FAFB;
    position: relative;
}

.commentAuthor {
    font-family: 'Pretendard', sans-serif;
    font-weight: 600;
    font-size: 12px;
    line-height: 1.4em;
    letter-spacing: -0.02em;
    color: #191E24;
}

.commentText {
    font-family: 'Pretendard', sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 1.4em;
    letter-spacing: -0.02em;
    color: #040404;
}

.commentDate {
    font-family: 'Pretendard', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 1.4em;
    letter-spacing: -0.02em;
    color: #737373;
}

/* 내 댓글 헤더 */
.myCommentHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding-right: 10px;
}

.moreBtn {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 6px 0;
    background: none;
    border: none;
    cursor: pointer;
}

.moreBtn svg {
    width: 4px;
    height: 4px;
    fill: #191E24;
}

/* 댓글 메뉴 */


/* 댓글 메뉴 */
.commentMenu {
    position: absolute;
    top: 35px;
    right: 8px;
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0px 2px 7px 0px rgba(0, 0, 0, 0.25);
    padding: 20px;
    display: none;
    flex-direction: column;
    gap: 14px;
    z-index: 10;
}

.commentMenu.active {
    display: flex;
}

.commentMenu button {
    font-family: 'Pretendard', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.4em;
    letter-spacing: -0.02em;
    color: #040404;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
}

.commentMenu button:hover {
    color: #163FC5;
}

/* 댓글 수정 영역 */
.commentEditArea {
    display: none;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.commentEditArea.active {
    display: flex;
}

.commentEditInput {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid #163FC5;
    border-radius: 8px;
    background: #FFFFFF;
}

.commentEditInput textarea {
    flex: 1;
    border: none;
    outline: none;
    font-family: 'Pretendard', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.5em;
    letter-spacing: -0.03em;
    color: #040404;
    resize: none;
    min-height: 40px;
    padding: 0px;
}

.commentEditActions {
    display: flex;
    gap: 8px;
}

.btnEditSave,
.btnEditCancel {
    height: 30px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-family: 'Pretendard', sans-serif;
    font-weight: 400;
    font-size: 13px;
    line-height: 1.5em;
    letter-spacing: -0.02em;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btnEditSave {
    background: #163FC5;
    color: #FFFFFF;
}

.btnEditSave:hover {
    background: #0E2E9E;
}

.btnEditCancel {
    background: #F5F5F5;
    color: #595959;
}

.btnEditCancel:hover {
    background: #EBEBEB;
}


/* 공유 모달 */
.shareModal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #FFFFFF;
    border-radius: 20px;
    box-shadow: 0px 2px 8px 0px rgba(0, 0, 0, 0.25);
    padding: 0 0 20px;
    display: none;
    flex-direction: column;
    align-items: center;
    z-index: 1000;
}

.shareModal.active {
    display: flex;
}

.shareModalHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 14px 18px 8px;
    gap: 4px;
}

.shareModalTitle {
    font-family: 'Pretendard', sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.4em;
    letter-spacing: -0.02em;
    color: #040404;
}

.closeModal {
    width: 24px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
}

.shareOptions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 0 20px;
}

.shareOption {
    width: 46px;
    height: 46px;
    background: #EBEEF2;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.shareOption:hover {
    transform: scale(1.1);
}

/* 복사 토스트 팝업 */
/* 토스트 팝업 기본 스타일 */
.toast-container {
    position: fixed;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 14px;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    /* 클릭 방해 금지 */
}

/* 활성화 상태 */
.toast-container.active {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}


.modalOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 999;
}

.modalOverlay.active {
    display: block;
}

.onlyPc {
    display: block;
}

.onlyMo {
    display: none;
}

@media screen and (max-width: 768px) {
    .onlyPc {
        display: none;
    }

    .onlyPcFlex {
        display: none;
    }

    .onlyMo {
        display: block;
    }

    .manageLinkMo {
        color: #1082DA !important;
    }

    #header {
        display: none;
    }

    #footer {
        display: none;
    }

    #top_btn,
    #top_btn2,
    #topBtn4Rn {
        display: none;
    }

    .container {
        width: auto;
        margin: 0px;
        padding: 0px;
        /* padding: 20px 16px; */
    }

    .topNav {
        padding: 0px 16px;
        padding-top: 20px;
        margin-bottom: 13px;
    }

    .eventHeader,
    .eventContent {
        margin-left: 16px;
        margin-right: 16px;
        width: calc(100% - 32px);
    }

    .eventHeader {
        padding-bottom: 16px;
    }

    .eventLoginGateContent {
        right: 16px;
        left: 16px;
    }

    .eventContentRestricted {
        --event-gate-content-offset: 80px;
        --event-gate-bottom-space: 32px;
    }

    .eventJoinButton {
        width: 100%;
        min-width: 0;
        max-width: 320px;
        padding-right: 20px;
        padding-left: 20px;
    }

    .eventLoginGuide {
        gap: 8px;
    }

    .bottomActions {
        margin-left: 16px;
        justify-content: flex-start;
    }

    .commentHeader {
        margin: 0px 16px 12px 16px;
    }

    .commentInputArea {
        margin: 0px 16px 12px 16px;
    }

    .commentItem {
        padding: 18px 16px;
    }
}
