/* index.html */
/* 공지사항 Bar 스타일 */
.notice-bar {
    background-color: var(--color-secondary);
    color: #fff;
    height: 40px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: none;
}

.notice-bar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    height: 100%;
}

.notice-bar-text {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: calc(100% - 114px);
}

.notice-bar-label {
    font-weight: 700;
    font-size: 12px;
    background-color: rgba(255,255,255,0.2);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    aspect-ratio: 1/1;
    flex-shrink: 0;
}

.notice-bar-label img {
    width: 16px;
    display: block;
    flex-shrink: 0;
}

.notice-bar-title-container {
    position: relative;
    flex: 1;
    overflow: hidden;
    height: 24px; /* 제목 높이 고정 */
}

.notice-bar-title {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    line-height: 24px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.notice-bar-actions {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    column-gap: 4px;
}

.notice-bar-nav {
    display: flex;
    align-items: center;
    column-gap: 4px;
}
.notice-bar-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 500;
    color: #fff;
    min-width: 42px;
    border-radius: 12px;
    background-color: rgba(255,255,255,0.2);
    padding: 4px;
    flex-shrink: 0;
}
.notice-bar-nav-buttons {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.notice-bar-nav-buttons button {
    width: 100%;
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    background-color: rgba(255,255,255,0.2);
    transition: all var(--transition);
    cursor: pointer;
}
.notice-bar-nav-buttons button:hover:not(:disabled) {
    background-color: rgba(255,255,255,0.3);
}
.notice-bar-nav-buttons button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}
.notice-bar-nav-buttons button::after {
    content: "";
    width: 100%;
    height: 100%;
    mask-image: url(/shared/images/ico-notice-arrow.png);
    mask-size: 8px;
    mask-position: center;
    mask-repeat: no-repeat;
    background-color: #fff;
}
.notice-bar-nav-prev {}
.notice-bar-nav-next::after {
    transform: rotate(180deg);
}
.notice-bar-close {
    width: 24px;
    aspect-ratio: 1/1;
    flex-shrink: 0;
    border-radius: 4px;
    background-color: rgba(255,255,255,0.2);
    overflow: hidden;
    transition: all var(--transition);
    margin: 0 4px;
}
.notice-bar-close:hover {
    background-color: rgba(255,255,255,0.3);
}
.notice-bar-close::after {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    mask-image: url(/shared/images/ico-modal-close.png);
    mask-size: 20px;
    mask-position: center;
    mask-repeat: no-repeat;
    background-color: #fff;
}

/* 공통 모달 스타일 */
.notice-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.notice-modal .modal-content {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 6px 7px 24px 0 rgba(0, 0, 0, 0.30);
    background-color: #fff;
    display: flex;
    flex-direction: column;
    row-gap: 12px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 768px;
    z-index: 1000;
    max-height: calc(100% - 40px);
}

.notice-modal .modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 20px 20px 0 20px;
    flex-shrink: 0;
}

.notice-modal .modal-title {
    color: var(--color-text);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.notice-modal .modal-close {
    width: 32px;
    aspect-ratio: 1/1;
    flex-shrink: 0;
    mask-image: url(/shared/images/ico-modal-close.png);
    mask-size: contain;
    mask-position: center;
    mask-repeat: no-repeat;
    background-color: var(--color-text);
    display: block;
}

.notice-modal .modal-body {
    padding: 0 20px 20px 20px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* 공지사항 상세보기 스타일 */
.notice-modal .notice-detail {
    line-height: 1.6;
}

.notice-modal .notice-detail-meta {
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e9ecef;
}

.notice-modal .notice-detail-date {
    font-size: 14px;
    color: #6c757d;
    background-color: #f8f9fa;
    padding: 6px 12px;
    border-radius: 4px;
    display: inline-block;
}

.notice-modal .notice-detail-content {
    font-size: 20px;
    color: var(--color-text);
    white-space: pre-wrap;
    word-wrap: break-word;
}

.notice-modal .notice-detail-content a {
    color: var(--color-primary);
    text-decoration: none;
}

.notice-modal .notice-detail-content a:hover {
    text-decoration: underline;
}

.notice-modal .notice-detail-content strong {
    font-weight: 600;
}

.notice-modal .notice-detail-content em {
    font-style: italic;
}

.notice-modal .notice-detail-content u {
    text-decoration: underline;
}

.notice-modal .notice-detail-content ul, .notice-modal .notice-detail-content ol {
    margin: 12px 0;
    padding-left: 20px;
}

.notice-modal .notice-detail-content li {
    margin: 8px 0;
}

.notice-modal .notice-detail-content .btn-link {
    color: #fff;
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}
.notice-modal .notice-detail-content .btn-link::after {
    background-color: #fff;
}


/* notice.html */
.notice-container {}
.notice-container .notice-content{
    padding: 120px 0;
}

.notice-container .notice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}

.notice-container .notice-title {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
}

.notice-container .btn-write {
    background-color: var(--color-secondary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.notice-container .btn-write:hover {
    background-color: rgba(46, 144, 250, 0.5);
}

.notice-container .notice-list {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.notice-container .notice-list .notice-item {
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.3s;
    cursor: pointer;
}

.notice-container .notice-list .notice-item:hover {
    background-color: #f8f9fa;
}

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

.notice-container .notice-list .notice-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.notice-container .notice-list .notice-item-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
}

.notice-container .notice-list .notice-item-date {
    font-size: 14px;
    color: #6c757d;
}

.notice-container .notice-list .notice-item-content {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.5;
    margin: 0;
}

.notice-container .notice-list .notice-item-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.notice-container .notice-list .notice-item-actions .btn-edit, .notice-container .notice-list .notice-item-actions .btn-delete {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.notice-container .notice-list .notice-item-actions .btn-edit {
    background-color: #28a745;
    color: white;
}

.notice-container .notice-list .notice-item-actions .btn-edit:hover {
    background-color: #218838;
}

.notice-container .notice-list .notice-item-actions .btn-delete {
    background-color: #dc3545;
    color: white;
}

.notice-container .notice-list .notice-item-actions .btn-delete:hover {
    background-color: #c82333;
}

.notice-container .notice-list .empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.notice-container .notice-list .empty-state h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.notice-container .notice-list .empty-state p {
    font-size: 16px;
}


.notice-modal .form-group {
    margin-bottom: 20px;
}

.notice-modal .form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--color-text);
}

.notice-modal .form-input, .notice-modal .form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

.notice-modal .form-textarea {
    min-height: 120px;
    resize: vertical;
}

.notice-modal .form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.notice-modal .form-actions .btn-save, .notice-modal .form-actions .btn-cancel {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.notice-modal .form-actions .btn-save {
    background-color: var(--color-primary);
    color: white;
}

.notice-modal .form-actions .btn-save:hover {
    background-color: #0f1a5a;
}

.notice-modal .form-actions .btn-cancel {
    background-color: #6c757d;
    color: white;
}

.notice-modal .form-actions .btn-cancel:hover {
    background-color: #5a6268;
}

@media (max-width: 768px) {
    .notice-bar-content {
        gap: 8px;
    }
    .notice-bar-label {
        font-size: 12px;
    }
    .notice-bar-title {
        font-size: 14px;
    }
    .notice-modal .modal-content {
        max-width: calc(100% - 32px);
        border-radius: 8px;
    }
    .notice-modal .modal-header {
        padding: 16px 16px 0 16px;
    }
    .notice-modal .modal-title {
        font-size: 20px;
    }
    .notice-modal .modal-close {
        width: 24px;
    }
    .notice-modal .modal-body {
        padding: 0 16px 16px 16px;
    }
    .notice-modal .notice-detail-meta {
        margin-bottom: 16px;
        padding-bottom: 12px;
    }
    .notice-modal .notice-detail-date {
        font-size: 12px;
        padding: 4px 8px;
    }
    .notice-modal .notice-detail-content {
        font-size: 14px;
    }
    .notice-modal .notice-detail-content .btn-link {
        font-size: 14px;
        min-height: 32px;
        padding: 4px 16px;
        border-radius: 4px;
    }
    .notice-modal .notice-detail-content .btn-link::after{
        width: 16px;
    }



    .notice-container {
        padding: 20px 16px;
    }
    .notice-container .notice-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .notice-container .notice-title {
        font-size: 24px;
    }
    .notice-container .notice-list .notice-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}