/* 새글 작성 모달 오버레이 */
.create-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /* 하단에서 올라오는 애니메이션 적용을 위함 */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.create-modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* 모달 본체 (Bottom Sheet 형태) */
.create-modal-content {
    background: #111111;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    min-height: 85dvh;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.create-modal-overlay.open .create-modal-content {
    transform: translateY(0);
}

/* 모달 헤더 */
.create-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #222222;
}

.create-close-btn {
    background: transparent;
    border: none;
    color: #FFFFFF;
    font-size: 16px;
    cursor: pointer;
    padding: 8px 0;
}

.create-title {
    font-size: 16px;
    font-weight: 700;
    color: #FFFFFF;
}

.create-submit-btn {
    background: #FFFFFF;
    color: #000000;
    border: none;
    border-radius: 100px;
    padding: 6px 14px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.create-submit-btn:active {
    transform: scale(0.95);
}

/* 작성 폼 영역 */
.create-body {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.create-category-label {
    font-size: 13px;
    font-weight: 700;
    color: #888888;
    margin-bottom: 8px;
}

.create-category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #222222;
}

.category-chip {
    padding: 10px 16px;
    background: #1A1A1A;
    border: 1px solid #333333;
    border-radius: 8px;
    /* 8px 라운딩 엄수 */
    color: #BBBBBB;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.category-chip.active {
    background: #FFFFFF;
    color: #000000;
    border-color: #FFFFFF;
}

.category-chip:active {
    transform: scale(0.95);
}

.create-input-title {
    width: 100%;
    background: transparent;
    border: none;
    color: #FFFFFF;
    font-size: 20px;
    font-weight: 700;
    outline: none;
    padding: 8px 0;
}

.create-input-title::placeholder {
    color: #555555;
}

.create-input-content {
    width: 100%;
    flex: 1;
    background: transparent;
    border: none;
    color: #DDDDDD;
    font-size: 16px;
    line-height: 1.6;
    outline: none;
    resize: none;
    padding: 8px 0;
}

.create-input-content::placeholder {
    color: #444444;
}