/* 공지사항 전용 페이지 스타일 */

.notice-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
}

/* 양피지 전용 타이틀 스타일 */
.notice-page-title {
    margin-bottom: 25px;
    padding-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 2px solid rgba(80, 50, 20, 0.2);
    position: relative;
    min-height: 45px;
}

.notice-page-title .btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.card-title--ink {
    color: #3a2510;
    font-size: 28px;
    font-weight: bold;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.4);
}

/* 양피지 테이블 스타일 */
.parchment-table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
}

.parchment-table th {
    background: linear-gradient(180deg, rgba(80, 50, 20, 0.1) 0%, rgba(60, 38, 12, 0.15) 100%);
    color: #4a2f12;
    padding: 15px;
    text-align: center;
    border-bottom: 2px solid rgba(80, 50, 20, 0.3);
    font-weight: bold;
}

.notice-title-cell {
    overflow: hidden;
}

.notice-title-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
}

.notice-title-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.parchment-table td {
    padding: 15px;
    border-bottom: 1px solid rgba(80, 50, 20, 0.15);
    color: #3b2713;
}

.parchment-table tr:hover {
    background: rgba(80, 50, 20, 0.05);
}

.ink-link {
    color: #2f1e0d;
    text-decoration: none;
    font-weight: 600;
}

.ink-link:hover {
    color: #8b6914;
    text-decoration: underline;
}

.text-center {
    text-align: center;
}

/* 양피지 상세 페이지 스타일 */
.notice-detail-ink {
    color: #3b2713;
}

.notice-detail-header {
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(80, 50, 20, 0.2);
    padding-bottom: 20px;
}

.notice-detail-title {
    font-size: 26px;
    color: #4a2f12;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.3);
    min-width: 0;
    flex-wrap: wrap;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.notice-detail-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #6b4520;
    opacity: 0.8;
}

.notice-detail-content {
    line-height: 1.8;
    min-height: 300px;
    white-space: pre-wrap;
    font-size: 16px;
    color: #2f1e0d;
}

.notice-detail-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(80, 50, 20, 0.2);
    display: flex;
    justify-content: space-between;
}

/* 양피지 폼 스타일 */
.notice-form-ink label {
    display: block;
    color: #4a2f12;
    margin-bottom: 8px;
    font-weight: bold;
}

.parchment-input {
    width: 100%;
    background: rgba(255, 255, 220, 0.3) !important;
    border: 1px solid rgba(80, 50, 20, 0.3) !important;
    color: #2f1e0d !important;
    padding: 12px;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 15px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.parchment-input:focus {
    border-color: rgba(139, 105, 20, 0.6) !important;
    outline: none;
    background: rgba(255, 255, 220, 0.5) !important;
}

.notice-form-textarea {
    height: 400px;
    resize: none;
}

/* 모바일 전용 노출 제어 */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }

    /* 모바일 카드 리스트 스타일 */
    .notice-list {
        display: flex;
        flex-direction: column;
        background: rgba(255, 253, 245, 0.4);
        border: 1px solid rgba(111, 90, 68, 0.2);
        border-radius: 6px;
        overflow: hidden;
        margin-top: 10px;
    }

    .notice-list-item {
        padding: 14px 16px;
        background: transparent;
        border-bottom: 1px solid rgba(111, 90, 68, 0.15);
        cursor: pointer;
        transition: background-color 0.2s ease;
    }

    .notice-list-item:last-child {
        border-bottom: none;
    }

    .notice-list-item:active {
        background: rgba(255, 253, 245, 0.5);
    }

    .notice-item-main {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 8px;
    }

    .notice-item-title {
        margin: 0;
        font-size: 15px;
        font-weight: 600;
        color: #2a1a0b;
        line-height: 1.4;
        flex: 1;
    }

    .notice-item-title .notice-title-text {
        flex: 1;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .notice-item-meta {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 12px;
        color: #6f5a44;
        padding-left: 0;
    }

    .notice-item-author {
        font-weight: 500;
    }

    .notice-item-info {
        color: #8b7355;
    }

    .notice-list-empty {
        padding: 40px 20px;
        text-align: center;
        color: #8b7355;
        font-size: 14px;
        font-style: italic;
    }
}
