@charset "UTF-8";

.ql-font-pretendard {
  font-family: 'Pretendard-Regular', sans-serif;
}

.ql-font-nanumgothic {
  font-family: 'Nanum Gothic', sans-serif;
}

.ql-font-notosanskr {
  font-family: 'Noto Sans KR', sans-serif;
}

.ql-font-mabinogi_classic {
  font-family: 'mabinogi_classic';
}

.ql-size-12px {
  font-size: 12px;
}
.ql-size-16px {
  font-size: 16px;
}
.ql-size-20px {
  font-size: 20px;
}

.ql-snow .ql-picker.ql-font {
    width: 150px !important;
}

.ql-youtube {
  display: block;
  width: 100%;
  max-width: 560px;
  margin: 1rem auto;
  border: none;
}

/* 일반 유튜브 영상 (가로 16:9) */
.ql-youtube:not([data-isshort="true"]) {
  /* 16:9 비율 (높이 = 너비 × 9/16) */
  aspect-ratio: 16 / 9;
}

/* 쇼츠(세로형) 영상 (세로 16:9) */
.ql-youtube[data-isshort="true"] {
  /* 9:16 비율 (높이 = 너비 × 16/9) */
  aspect-ratio: 9 / 16;
}

.board-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.pagination-btn {
	color: var(--text-color);
}
.pagination-btn.active {
	color: var(--button-bg);
	font-size: large;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-wrap: wrap;
}

.tag-filter-group {
    display: flex;
    gap: 0.2rem;
}

.tag-filter-btn {
    padding: 0.3rem 0.6rem;
    border: 1px solid var(--input-border);
    background: var(--input-bg);
    color: var(--input-text);
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Pretendard-Regular';
    font-size: 0.75rem;
    transition: all 0.2s ease;
}

.tag-filter-btn:hover, .tag-filter-btn.active {
    background: var(--button-bg);
    color: var(--button-text);
    border-color: var(--button-bg);
}

.search-group {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    flex-wrap: nowrap;
}

#search-keyword {
    width: 120px;
    padding: 0.3rem;
    border-radius: 6px;
    border: 1px solid var(--input-border);
    font-size: 0.75rem;
}

.search-btn {
    padding: 0.3rem 0.6rem;
    background: var(--button-bg);
    color: var(--button-text);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.75rem;
}

.search-btn:hover {
    background: var(--button-hover-bg);
}

.action-group {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

#sort-order {
    padding: 0.3rem;
    border-radius: 6px;
    border: 1px solid var(--input-border);
    font-size: 0.75rem;
    background: var(--input-bg);
    color: var(--input-text);
    width: 80px;
}

#comment-sort-order {
    padding: 0.3rem;
    border-radius: 6px;
    border: 1px solid var(--input-border);
    font-size: 0.75rem;
    background: var(--input-bg);
    color: var(--input-text);
    width: 80px;
    margin-bottom: 0.5rem;
}

.write-btn {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: var(--button-bg);
    color: var(--button-text);
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: bold;
    transition: background 0.2s ease;
}

.write-btn:hover {
    background: var(--button-hover-bg);
}

.tip-board-table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    background: var(--container-bg);
    table-layout: fixed;
}

.tip-board-table.compact th, .tip-board-table.compact td {
    padding: 0.4rem;
    text-align: center;
    border-bottom: 1px solid var(--section-border);
    font-size: 13px;
    line-height: 1.2;
}

.tip-board-table.compact th {
    background: var(--section-bg);
    font-family: 'mabinogi_classic';
    font-size: 0.9rem;
    white-space: nowrap;
}

.tip-board-table.compact th:nth-child(1),
.tip-board-table.compact td:nth-child(1) {
    width: 13%;
}

.tip-board-table.compact th:nth-child(2),
.tip-board-table.compact td:nth-child(2) {
    width: 52%;
    text-align: left;
}

.tip-board-table.compact th:nth-child(3),
.tip-board-table.compact td:nth-child(3) {
    width: 15%;
}

.tip-board-table.compact th:nth-child(4),
.tip-board-table.compact td:nth-child(4) {
    width: 10%;
}

.tip-board-table.compact th:nth-child(5),
.tip-board-table.compact td:nth-child(5) {
    width: 5%;
}

.tip-board-table.compact th:nth-child(6),
.tip-board-table.compact td:nth-child(6) {
    width: 5%;
}

.board-table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    background: var(--container-bg);
    table-layout: fixed;
}

.board-table.compact th, .board-table.compact td {
    padding: 0.4rem;
    text-align: center;
    border-bottom: 1px solid var(--section-border);
    font-size: 13px;
    line-height: 1.2;
}

.board-table.compact th {
    background: var(--section-bg);
    font-family: 'mabinogi_classic';
    font-size: 0.9rem;
    white-space: nowrap;
}

.board-table.compact th:nth-child(1),
.board-table.compact td:nth-child(1) {
    width: 55%;
    text-align: left;
}

.board-table.compact th:nth-child(2),
.board-table.compact td:nth-child(2) {
    width: 15%;
}

.board-table.compact th:nth-child(3),
.board-table.compact td:nth-child(3) {
    width: 10%;
}

.board-table.compact th:nth-child(4),
.board-table.compact td:nth-child(4) {
    width: 10%;
}

.board-table.compact th:nth-child(5),
.board-table.compact td:nth-child(5) {
    width: 10%;
}

.task-text {
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-color);
    text-decoration: none;
    font-size: 13px;
}

.task-text:hover {
    color: var(--button-bg);
    text-decoration: underline;
}

.tag-box {
    font-family: 'mabinogi_classic';
    display: inline-block;
    padding: 0.2rem 0.4rem;
    background: var(--section-bg);
    border: 1px solid var(--section-border);
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--text-color);
    flex-shrink: 0;
    white-space: nowrap;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.3rem;
    margin-top: 1rem;
}

/* 상세 페이지 스타일 */
.post-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    max-width: 100%;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 70%;
    flex-wrap: nowrap;
}

.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-color);
}

.edit-controls {
    display: flex;
    gap: 0.3rem;
}

.post-title {
    font-family: 'Pretendard-Regular';
    font-size: 1.1rem;
    color: var(--text-color) !important;
    margin: 0;
    white-space: nowrap;
    /* overflow: hidden; */
    text-overflow: ellipsis;
    flex: 1;
}

.post-meta {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    color: var(--text-color);
}
.meta-left {
	padding-right: 1rem;
}
.meta-left, .meta-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.meta-label {
    font-weight: bold;
    color: var(--button-bg);
}

.post-content {
    border: 1px solid var(--section-border);
    padding: 1.5rem;
    border-radius: 6px;
    background: var(--section-bg);
    line-height: 1.6;
    word-break: break-word;
    overflow-wrap: break-word;
    overflow-x: hidden;
    margin-top: 1rem;
}
.post-content p {
	margin: 5px 0;
}
.post-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.vote-controls {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    width: 100%;
}

.vote-btn {
	font-family: 'mabinogi_classic';
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease;
    border: none;
}

.vote-up {
    background: #c8e6c9;
    color: #2d3436;
}

.vote-up:hover {
    background: #b2d8b5;
}

.vote-down {
    background: #ffccbc;
    color: #2d3436;
}

.vote-down:hover {
    background: #ffab91;
}

.vote-btn.voted {
    opacity: 0.6;
}

.controls {
    margin-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.list-controls {
    display: flex;
    gap: 0.5rem;
}

.styled-btn {
    padding: 0.5rem 1rem;
    background: var(--button-bg);
    color: var(--button-text);
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s ease;
}

.styled-btn:hover {
    background: var(--button-hover-bg);
}

.small-btn {
    font-family: 'mabinogi_classic';
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
}

.mml-attachment-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.mml-track-inputs {
    margin-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.mml-track-inputs-label {
    font-size: 0.85rem;
    opacity: 0.75;
    margin-bottom: 0.1rem;
}

.mml-track-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mml-track-name {
    flex: 0 0 3.5rem;
    font-size: 0.85rem;
    opacity: 0.85;
}

.mml-track-input {
    flex: 1;
    font-size: 0.85rem;
    resize: vertical;
}

.mml-preview-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 0.75rem 0;
}

.mml-preview-error {
    font-size: 0.8rem;
    color: var(--text-color);
    opacity: 0.7;
}

.list-container {
    position: relative;
}

.desktop-table {
    display: table;
}

.mobile-posts {
    display: none;
}

.post-list {
	margin-top: 1.5rem;
}

.nearby-posts {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--section-bg);
    border: 1px solid var(--section-border);
    border-radius: 6px;
}

.nearby-posts h3 {
    font-family: 'mabinogi_classic';
    font-size: 1.2rem;
    color: var(--text-color);
    margin: 0 0 1rem 0;
    padding-left: 0.5rem;
    border-left: 4px solid var(--button-bg);
}

.nearby-posts ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nearby-posts li {
    display: flex;
    align-items: center;
    padding: 0.6rem 0.4rem;
    border-bottom: 1px solid var(--section-border);
    transition: background 0.2s ease;
}

.nearby-posts li:last-child {
    border-bottom: none;
}

.nearby-posts li:hover {
    background: var(--input-bg);
}

.nearby-posts .tag-box {
    width: 10%;
    text-align: center;
    font-size: 0.8rem;
    padding: 0.2rem 0.4rem;
    background: var(--section-bg);
    border: 1px solid var(--section-border);
    border-radius: 4px;
}

.nearby-posts .task-text-wrapper {
    width: 60%;
}

.nearby-posts .task-text {
    width: 100%;
    font-size: 1rem;
    color: var(--text-color);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 0.5rem;
}

.nearby-posts .task-text:hover {
    color: var(--button-bg);
    text-decoration: underline;
}

.nearby-posts .post-meta {
    width: 30%;
    font-size: 0.7rem;
    color: var(--text-color);
    text-align: right;
    padding-right: 0.5rem;
    opacity: 0.8;
}

.default-style {
    padding: 8px 15px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.default-style:hover {
    background-color: #0056b3;
}

/* 취소 버튼 스타일 */
.cancel-btn {
    display: inline-block;
    padding: 8px 15px;
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s;
    text-align: center;
}

.cancel-btn:hover {
    background-color: #5a6268;
}

.controls {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

/* Quill.js 커스텀 스타일 */
#editor-container {
    min-height: 300px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 6px;
}

#editor-container .ql-editor {
    font-family: 'Pretendard-Regular';
    font-size: 1rem;
    color: var(--input-text);
}

.ql-toolbar.ql-snow {
    border: 1px solid var(--input-border);
    border-radius: 6px 6px 0 0;
    background: var(--section-bg);
}

.ql-container.ql-snow {
    border: 1px solid var(--input-border);
    border-radius: 0 0 6px 6px;
    min-height: 300px;
    max-height: 600px;
    resize: vertical;
    overflow-y: auto;
}

.ql-snow .ql-tooltip {
    font-family: 'Pretendard-Regular';
}

#editor-container .ql-editor {
    outline: none;
}

#editor-container .ql-editor:focus {
    border-color: var(--header-text);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    font-family: 'mabinogi_classic';
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    display: block;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 0.5rem;
    border-radius: 6px;
}

.form-group textarea {
    resize: vertical;
    font-family: inherit;
}

.comment-section {
    margin-top: 2rem;
    padding: 1rem;
    background: var(--section-bg);
    border: 1px solid var(--section-border);
    border-radius: 6px;
}

.commonet-section h3 {
	font-family: 'mabinogi_classic';
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.comment-form textarea {
    width: 100%;
    min-height: 80px;
    padding: 0.5rem;
    border: 1px solid var(--input-border);
    border-radius: 6px;
    resize: vertical;
    font-size: 0.9rem;
}
.comment-form button {
	font-family: 'mabinogi_classic';
    align-self: flex-end;
    padding: 0.5rem 1rem;
    background: var(--button-bg);
    color: var(--button-text);
    border: none;
    border-radius: 6px;
    cursor: pointer;
}
.comment-form button:hover {
    background: var(--button-hover-bg);
}
.comment-list {
    list-style: none;
    padding: 0;
}
.comment-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--section-border);
}
.comment-item.reply {
    position: relative;
    padding-left: 1rem;
}
.comment-item.reply:before {
    content: "↳";
    position: absolute;
    left: -0.5rem;
    top: 0.5rem;
    color: var(--button-bg);
    font-size: 1rem;
}
.comment-meta {
    font-size: 0.8rem;
    color: var(--text-color);
    margin-bottom: 0.3rem;
    opacity: 0.8;
}
.comment-content {
    font-size: 0.9rem;
    word-break: break-word;
    white-space: pre-wrap;
}
.reply-btn {
    font-size: 0.8rem;
    color: var(--button-bg);
    cursor: pointer;
    margin-left: 0.5rem;
}
.reply-btn:hover {
    text-decoration: underline;
}
.reply-form {
    margin-top: 0.5rem;
    display: none;
}
.reply-form.active {
    display: flex;
}
.no-comments {
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}
.login-prompt {
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}
.login-prompt a {
    color: var(--button-bg);
    text-decoration: none;
}
.login-prompt a:hover {
    text-decoration: underline;
}

.comment-pagination {
    display: flex;
    justify-content: center;
    gap: 0.3rem;
    margin-top: 1rem;
}
.reply-list {
    padding-left: 1rem;
}
.delete-btn {
    font-size: 0.8rem;
    color: #e74c3c;
    cursor: pointer;
    margin-left: 0.5rem;
}
.delete-btn:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .ql-container.ql-snow {
        min-height: 150px;
    }
	.reply-list {
        margin-left: 1.5rem;
        padding-left: 0.5rem;
    }
	.comment-item.reply {
        padding-left: 0.5rem;
    }
    .comment-item.reply:before {
        left: -0.3rem;
        font-size: 0.9rem;
    }
    .reply-form {
        margin-left: 1.5rem;
    }
    
    .board-controls {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-group {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .tag-filter-group {
        flex-wrap: wrap;
    }

    .search-group {
        width: 100%;
        flex-wrap: nowrap;
    }

    .board-table.compact th, .board-table.compact td {
        padding: 0.3rem;
        font-size: 0.75rem;
    }

    .board-table.compact th:nth-child(1),
    .board-table.compact td:nth-child(1) {
        width: 15%;
    }

    .board-table.compact th:nth-child(2),
    .board-table.compact td:nth-child(2) {
        width: 45%;
    }

    .task-text {
        font-size: 0.75rem;
    }

    .tag-box {
        padding: 0.1rem 0.3rem;
        font-size: 0.65rem;
        flex-shrink: 0;
        white-space: nowrap;
    }

    .post-header {
        flex-direction: row;
        align-items: flex-start;
        gap: 0.3rem;
    }

    .header-left {
        max-width: 65%;
        flex-direction: row;
        align-items: center;
        gap: 0.2rem;
        flex-wrap: nowrap;
    }

    .header-right {
        flex-direction: column;
        gap: 0.2rem;
        font-size: 0.75rem;
        text-align: right;
        flex: 1;
    }

    .edit-controls {
        flex-direction: row;
        gap: 0.2rem;
    }

    .small-btn {
    	font-family: 'mabinogi_classic';
        padding: 0.2rem 0.4rem;
        font-size: 0.7rem;
    }

    .post-title {
        font-size: 1rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        flex: 1;
    }

    .post-meta {
        flex-direction: row;
        align-items: center;
        gap: 0.3rem;
        font-size: 0.75rem;
    }

    .meta-left, .meta-right {
        flex: 1;
    }

    .meta-right {
        text-align: right;
        position: absolute;
        right: 1rem;
    }

    .vote-controls {
        flex-direction: row;
        gap: 0.5rem;
        max-width: 200px;
        margin-left: auto;
        margin-right: auto;
    }

    .vote-btn {
        padding: 0.3rem 0.8rem;
        font-size: 0.75rem;
    }

    .controls {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
    }

    .list-controls {
        justify-content: space-between;
        width: 100%;
    }

    .list-controls .styled-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
        flex: 1;
        text-align: center;
    }

    #search-keyword {
        width: 100px;
        padding: 0.2rem;
        font-size: 0.7rem;
    }

    .search-btn {
        padding: 0.2rem 0.5rem;
        font-size: 0.7rem;
    }

    .tag-filter-btn {
        padding: 0.2rem 0.5rem;
        font-size: 0.7rem;
    }

    #sort-order {
        padding: 0.2rem;
        font-size: 0.7rem;
        width: 70px;
        right: 1rem;
        position: absolute;
    }

    .write-btn {
        padding: 0.2rem 0.6rem;
        font-size: 0.7rem;
        right: 1rem;
        position: absolute;
    }

    .action-group {
        width: 100%;
        justify-content: flex-end;
    }

    .desktop-table {
        display: none;
    }

    .mobile-posts {
        display: block;
    }

    .nearby-posts li {
        flex-direction: column;
        align-items: flex-start;
    }

    .nearby-posts .tag-box {
        width: auto;
        margin-right: 0.3rem;
    }

    .nearby-posts .task-text-wrapper {
        width: 100%;
    }

    .nearby-posts .task-text {
        padding: 0;
    }

    .nearby-posts .post-meta {
        width: 100%;
        text-align: left;
        padding: 0;
        margin-top: 0.3rem;
    }
}

@media (min-width: 601px) {
    .desktop-table {
        display: table;
    }

    .mobile-posts {
        display: none;
    }
}



.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overflow: hidden;
}

.modal-content {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
}

.modal-content .container {
    margin: 0;
    padding: 1rem;
    height: auto;
    overflow: visible;
}

.modal-content .section {
    margin: 0;
    height: auto;
    overflow: visible;
}

.modal-content .header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #dfe6e9;
}

.modal-content .header-inner h2 {
    margin: 0;
    font-family: 'mabinogi_classic', sans-serif;
    font-size: 1.2rem;
    color: #2d3436;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #6b7280;
}

.modal-close:hover {
    color: #2d3436;
}

.rune-header {
    font-family: 'mabinogi_classic', sans-serif;
    font-size: 1.3rem;
    font-weight: bold;
    padding: 0.75rem;
    border-radius: 8px;
    margin: 1rem 0;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.rune-grade-legendary {
    background: #ffeb3b;
    color: #000;
}

.rune-grade-epic {
    background: #ab47bc;
    color: #fff;
}

.rune-grade-rare {
    background: #42a5f5;
    color: #fff;
}

.rune-grade-unique {
    background: #ff9800;
    color: #fff;
}

.rune-grade-common {
    background: #bdbdbd;
    color: #000;
}

.rune-grade-unknown {
    background: #e5e7eb;
    color: #000;
}

.rune-info-group {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.rune-info {
    display: flex;
    align-items: center;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0.5rem 0;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.rune-info .label {
    font-weight: bold;
    color: #2d3436;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 120px;
    flex-shrink: 0;
}

.rune-info .label::before {
    font-size: 1.1rem;
}

.rune-info .value {
    flex: 1;
    color: #2d3436;
    white-space: pre-line;
}

.grade {
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: bold;
}

.comments {
    margin: 1rem 0;
}

.comments-title {
    font-family: 'mabinogi_classic', sans-serif;
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #2d3436;
}

.comment {
    background: white;
    border: 1px solid #dfe6e9;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.comment-user {
    font-weight: bold;
    color: var(--header-blue-text);
}

.comment-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: #6b7280;
}

.comment-jobs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.comment-job {
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
	font-size: 13px;
    background: #e7f1ff;
    color: #2d3436;
}

.comment-text {
    margin-bottom: 0.75rem;
    line-height: 1.6;
    color: #2d3436;
}

.comment-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #6b7280;
}

@media (max-width: 600px) {
    .modal-content {
        width: 95%;
        max-height: 85vh;
        padding: 0.5rem;
    }
    .modal-content .container {
        padding: 0.5rem;
    }
    .rune-header {
        font-size: 1.1rem;
        padding: 0.5rem;
        margin: 0.5rem 0;
    }
    .rune-info-group {
        padding: 0.5rem;
        margin: 0.5rem 0;
    }
    .rune-info {
        flex-direction: column;
        align-items: flex-start;
        font-size: 0.9rem;
        padding: 0.5rem;
    }
    .rune-info .label {
        width: auto;
        margin-bottom: 0.25rem;
    }
    .rune-info .value {
        padding-left: 1.75rem;
    }
    .comments {
        margin: 0.5rem 0;
    }
    .comments-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    .comment {
        padding: 0.75rem;
        margin-bottom: 0.5rem;
    }
    .form-group {
        margin: 0.5rem 0;
    }
    .form-group label {
        width: auto;
        margin-bottom: 0.25rem;
    }
    .checkbox-group {
        padding-left: 1.75rem;
    }
    .controls {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.5rem;
    }
    .controls .button, .controls .action-btn, .controls button[type="submit"] {
        padding: 0.5rem;
    }
    .comment-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .vote-buttons {
        gap: 0.3rem;
    }
    .vote-btn {
        padding: 0.2rem 0.4rem;
        font-size: 0.8rem;
    }
    .vote-score {
        font-size: 0.8rem;
    }
    .comment-footer small {
        font-size: 0.8rem;
        margin-bottom: 0.3rem;
    }
}

body.dark-mode .modal {
    background: rgba(0, 0, 0, 0.7);
}

body.dark-mode .modal-content {
    background: #2d2d2d;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

body.dark-mode .modal-content .header-inner {
    border-bottom: 1px solid #3a3a3a;
}

body.dark-mode .modal-content .header-inner h2 {
    color: #e0e0e0;
}

body.dark-mode .modal-close {
    color: #e0e0e0;
}

body.dark-mode .modal-close:hover {
    color: #81d4fa;
}

body.dark-mode .rune-header {
    background: #252525;
    color: #e0e0e0;
    box-shadow: 0 1px 4px rgba(255, 255, 255, 0.1);
}

body.dark-mode .rune-info-group {
    background: #252525;
    box-shadow: 0 1px 3px rgba(255, 255, 255, 0.05);
}

body.dark-mode .rune-info {
    background: #3a3a3a;
    color: #e0e0e0;
}

body.dark-mode .rune-info .label {
    color: #e0e0e0;
}

body.dark-mode .rune-info .value {
    color: #e0e0e0;
}

body.dark-mode .comments-title {
    color: #e0e0e0;
}

body.dark-mode .comment {
    background: #252525;
    border: 1px solid #3a3a3a;
    box-shadow: 0 1px 2px rgba(255, 255, 255, 0.05);
}

body.dark-mode .comment-user {
    color: var(--header-blue-text);
}

body.dark-mode .comment-meta {
    color: #e0e0e0;
}

body.dark-mode .comment-job {
    background: #37474f;
    color: #e0e0e0;
}

body.dark-mode .comment-text {
    color: #e0e0e0;
}

body.dark-mode .comment-footer {
    color: #e0e0e0;
}

body.dark-mode .vote-btn {
    background: #3a3a3a;
    border-color: #546e7a;
    color: #e0e0e0;
}

body.dark-mode .vote-btn:hover {
    background: #546e7a;
}

body.dark-mode .vote-btn.active {
    background: #1e88e5;
    color: white;
    border: 2px solid #1e88e5; /* 다크 모드에서도 테두리 유지 */
}

body.dark-mode .vote-score.positive {
    color: #26a69a;
}

body.dark-mode .vote-score.negative {
    color: #ef5350;
}

body.dark-mode .excluded-evaluation {
    color: #ef5350;
}

body.dark-mode .controls {
    border-top: 1px solid #3a3a3a;
}

body.dark-mode .controls .button {
    background: #1e88e5;
}

body.dark-mode .controls .button:hover {
    background: #42a5f5;
}

body.dark-mode .controls .action-btn,
body.dark-mode .controls button[type="submit"] {
    background: #26a69a;
}

body.dark-mode .controls .action-btn:hover,
body.dark-mode .controls button[type="submit"]:hover {
    background: #4db6ac;
}

body.dark-mode .form-group label {
    color: #e0e0e0;
}

body.dark-mode .form-group select,
body.dark-mode .form-group textarea {
    background: #3a3a3a;
    border: 1px solid #546e7a;
    color: #e0e0e0;
}


.rune-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid #dfe6e9;
}

.rune-modal-header h2 {
  margin: 0;
  font-family: 'mabinogi_classic', sans-serif;
  font-size: 1.2rem;
  color: #2d3436;
  flex-grow: 1;
  text-align: center;
}

.rune-modal-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: #6b7280;
  padding: 0.5rem;
  line-height: 1;
}

.rune-modal-close:hover {
  color: #2d3436;
}

body.dark-mode .rune-modal-header {
  border-bottom: 1px solid #3a3a3a;
}

body.dark-mode .rune-modal-header h2 {
  color: #e0e0e0;
}

body.dark-mode .rune-modal-close {
  color: #e0e0e0;
}

body.dark-mode .rune-modal-close:hover {
  color: #81d4fa;
}


.controls .button, .controls .action-btn, .controls button[type="submit"] {
    padding: 0.5rem 1rem;
    border-radius: 6px;
   	font-family: 'mabinogi_classic';
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
	color: var(--button-text);
}

.commentCount {
        font-size: smaller;
        opacity: 0.8;
        margin-left: 0.3rem;
}

.new-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #e74c3c;
    border-radius: 50%;
    margin-left: 0.25rem;
}