/* 수업 아이디어 게시판 공통 */

/* 사이드 메뉴 활성 표시 */
.asideSubMenu a.on {
    color: var(--mainColor);
    font-weight: 700;
}

/* 목록 상단: 제목 + 글쓰기 버튼 */
.ideaPageTop {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.ideaWriteBtn {
    flex-shrink: 0;
    padding: 9px 22px;
    border: none;
    border-radius: 5px;
    background-color: var(--mainColor);
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
}

.ideaWriteBtn:hover {
    opacity: 0.92;
}

@media (max-width: 600px) {
    .ideaWriteBtn {
        padding: 8px 16px;
        font-size: 14px;
    }
}

/* 상세 - 영상 플레이어 */
.contentsVideo {
    display: flex;
    width: 100%;
}

/* 영상 셀은 높이 고정(60px) 대신 콘텐츠에 맞춰 늘어나도록 (첨부파일 행과 동일 처리) */
.contentsVideo .contentsTh {
    min-height: 60px;
    height: auto;
}

.contentsVideo .contentsTd {
    min-height: 60px;
    height: auto;
    align-items: flex-start;
    padding: 10px;
}

.ideaVideoList {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.ideaVideoItem {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ideaVideoItem video {
    width: 100%;
    max-width: 800px;
    max-height: 480px;
    background-color: #000;
    border-radius: 6px;
}

.ideaVideoDown {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: fit-content;
    font-size: 14px;
    color: var(--mainColor);
}

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

/* 다운로드 링크 (교사 전용 게이트) */
.ideaDownload {
    cursor: pointer;
}

.contentsFile .addFileBox {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.contentsFile .addFileBox .xi-download {
    color: var(--mainColor);
    font-size: 14px;
}

/* 상세 하단 작성자 버튼: button 요소 기본 UA 스타일 리셋 (앵커형 .roundLineBtns 와 통일) */
.pageBottomBtns .ideaDeleteBtn {
    background: none;
    font-family: inherit;
    line-height: normal;
}

/* ===== 댓글 ===== */
.commentArea {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.commentHead {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    font-weight: 700;
    color: var(--txtColor);
}

.commentCount {
    color: var(--mainColor);
}

.commentWrite {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.commentInput {
    flex: 1;
    min-height: 70px;
    resize: vertical;
    border: 1px solid var(--borderLine);
    border-radius: 5px;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.5;
}

.commentSubmitBtn {
    flex-shrink: 0;
    width: 90px;
    border: none;
    border-radius: 5px;
    background-color: var(--mainColor);
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
}

.commentSubmitBtn:hover {
    opacity: 0.92;
}

.commentNotice {
    font-size: 13px;
    color: #e8413a;
}

.commentList {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--borderLine);
}

.commentItem {
    padding: 14px 4px;
    border-bottom: 1px solid var(--borderLine);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.commentItemHead {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.commentMeta {
    font-size: 13px;
    color: #666;
    font-weight: 600;
}

.commentDel {
    cursor: pointer;
    color: #aaa;
    font-size: 16px;
}

.commentDel:hover {
    color: var(--mainColor);
}

.commentBody {
    font-size: 14px;
    color: var(--txtColor);
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}

.commentEmpty {
    padding: 30px 0;
    text-align: center;
    color: #999;
    font-size: 14px;
}

.commentPaging {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
}

.commentPage {
    min-width: 28px;
    height: 28px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--borderLine);
    border-radius: 4px;
    font-size: 13px;
    color: var(--txtColor);
    cursor: pointer;
}

.commentPage.on {
    background-color: var(--mainColor);
    border-color: var(--mainColor);
    color: #fff;
}

@media (max-width: 600px) {
    .commentSubmitBtn {
        width: 70px;
        font-size: 14px;
    }
}
